/* ==========================================================================
   ApexFlow Digital // High-End Visual Design & Architectural Polish
   Engineered using Vanguard UI Architecture, Emil Kowalski Design Principles,
   Apple Physical Dynamics, and Anti-Slop Frontend Directives.
   ========================================================================== */

/* 1. TYPOGRAPHIC REFINEMENT & TABULAR NUMERICS */
:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Apple / Linear Physical Easing Curves */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
  
  /* OLED Depth & Hardware Surfaces */
  --surface-void: #030712;
  --surface-glass-dark: rgba(4, 9, 24, 0.82);
  --surface-card-outer: rgba(255, 255, 255, 0.035);
  --border-outer-hairline: rgba(255, 255, 255, 0.09);
  --border-inner-shimmer: rgba(0, 242, 254, 0.25);
}

body {
  font-family: var(--font-sans);
  background-color: var(--surface-void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Balanced Text Wrapping & Presence */
h1, h2, h3, .hero-title, .section-title, .bento-title {
  text-wrap: balance;
  letter-spacing: -0.03em;
}

.hero-title {
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
  background: linear-gradient(180deg, #FFFFFF 30%, #E2E8F0 70%, #94A3B8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.section-title {
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
}

.hero-subtitle {
  letter-spacing: -0.015em !important;
  line-height: 1.7 !important;
}

/* Tabular Figures on All Quantitative Elements */
.metric-score,
.metric-ticker-number,
.roi-highlight-number,
.package-pricing,
.text-mono,
.log-time {
  font-variant-numeric: tabular-nums;
}

/* Micro-Pill Eyebrow Badges */
.badge-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  padding: 0.35rem 0.95rem !important;
  border-radius: 9999px !important;
  background: rgba(0, 242, 254, 0.06) !important;
  border: 1px solid rgba(0, 242, 254, 0.25) !important;
  color: var(--neon-cyan) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* 2. FLOATING ISLAND CAPSULE HEADER (APPLE-TIER GLASS) */
.header {
  top: 14px !important;
  height: 64px !important;
  width: calc(100% - 32px) !important;
  max-width: 1140px !important;
  background: var(--surface-glass-dark) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid var(--border-outer-hairline) !important;
  border-radius: 9999px !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.88), inset 0 1px 1px 0 rgba(255, 255, 255, 0.22) !important;
  transition: all 0.35s var(--ease-spring) !important;
}

.header.scrolled {
  background: rgba(3, 7, 18, 0.94) !important;
  border-color: rgba(0, 242, 254, 0.3) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 242, 254, 0.18), inset 0 1px 1px 0 rgba(255, 255, 255, 0.28) !important;
}

/* 3. BUTTON-IN-BUTTON NESTED ARCHITECTURE & KINETIC MICRO-PHYSICS */
.btn {
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring), background-color 0.2s ease !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Button-in-Button Trailing Icon Bubble */
.btn-icon-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(3, 7, 18, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  transition: transform 0.25s var(--ease-spring);
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient-cyber) !important;
  color: #030712 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4) !important;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 0 45px rgba(0, 242, 254, 0.55), 0 15px 30px rgba(0, 0, 0, 0.6) !important;
}

.btn-primary:hover .btn-icon-bubble {
  transform: translateX(3px) translateY(-1px) scale(1.05);
}

.btn-secondary {
  border-radius: 9999px !important;
  background: rgba(10, 18, 38, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

.btn-secondary:hover {
  border-color: var(--neon-cyan) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.25), 0 15px 30px rgba(0, 0, 0, 0.6) !important;
}

/* Emil Kowalski Press Feedback: Tactile Physical Click */
.btn:active,
.nav-btn-cta:active,
.nav-btn-whatsapp:active {
  transform: scale(0.972) !important;
  transition: transform 0.08s var(--ease-snappy) !important;
}

/* 4. DOUBLE-BEZEL (DOPPELRAND) HARDWARE CARDS */
.double-bezel {
  position: relative;
  background: var(--surface-card-outer);
  border: 1px solid var(--border-outer-hairline);
  border-radius: 24px;
  padding: 6px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.95);
  transition: transform 0.4s var(--ease-spring), border-color 0.3s ease, box-shadow 0.4s var(--ease-spring);
}

.double-bezel:hover {
  border-color: rgba(0, 242, 254, 0.32);
  box-shadow: 0 35px 70px -15px rgba(0, 242, 254, 0.18), 0 25px 50px rgba(0, 0, 0, 0.95);
  transform: translateY(-3px);
}

.double-bezel-inner {
  background: linear-gradient(180deg, rgba(13, 24, 52, 0.85) 0%, rgba(5, 11, 26, 0.92) 100%);
  border-radius: calc(24px - 6px);
  padding: 2.25rem;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.18), 0 20px 40px -15px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.double-bezel-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.45), transparent);
}

/* Upgrade existing .bento-card with concentric specular glow */
.bento-card {
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038) 0%, rgba(255, 255, 255, 0.008) 100%), rgba(6, 12, 28, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.18), 0 25px 50px -15px rgba(0, 0, 0, 0.9) !important;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-spring), border-color 0.25s ease !important;
}

.bento-card:hover {
  border-color: rgba(0, 242, 254, 0.45) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.28), 0 30px 60px -10px rgba(0, 242, 254, 0.2), 0 25px 50px rgba(0, 0, 0, 0.95) !important;
  transform: translateY(-4px) !important;
}

/* Position 0 Quick Answer Double-Bezel Elevation */
.position0-quick-answer > .container > div {
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(14, 25, 52, 0.9) 0%, rgba(6, 12, 28, 0.96) 100%) !important;
  border: 1px solid rgba(0, 242, 254, 0.35) !important;
  box-shadow: 0 20px 50px -10px rgba(0, 242, 254, 0.16), inset 0 1px 1px 0 rgba(255, 255, 255, 0.22) !important;
}

/* 5. AMBIENT GLOW MESH & NOISE OVERLAY */
.ambient-glow-orb {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  z-index: 0;
  opacity: 0.18;
}

.orb-cyan {
  top: -100px;
  left: 15%;
  background: radial-gradient(circle, #00f2fe 0%, transparent 70%);
}

.orb-emerald {
  top: 40%;
  right: 10%;
  background: radial-gradient(circle, #05ffa1 0%, transparent 70%);
}

/* Macro Spacing & Section Rhythm */
.section {
  padding: 7.5rem 0 !important;
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0 !important;
  }
}

/* 6. HARDWARE-GRADE DIAGNOSTIC TOOL & CALCULATOR ENCLOSURES */
.audit-tool-wrapper {
  background: var(--surface-card-outer) !important;
  border: 1px solid var(--border-outer-hairline) !important;
  border-radius: 24px !important;
  padding: 8px !important;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 242, 254, 0.08) !important;
  position: relative;
}

.audit-tool-wrapper form {
  background: linear-gradient(180deg, rgba(14, 25, 52, 0.9) 0%, rgba(6, 12, 28, 0.95) 100%) !important;
  border-radius: calc(24px - 8px) !important;
  padding: 2.25rem 2rem !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2) !important;
  position: relative;
}

.audit-tool-wrapper form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 254, 0.5), transparent);
}

/* Input Fields & Select Controls */
.input-field,
.select-field {
  background: rgba(3, 7, 18, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #fff !important;
  padding: 0.75rem 1.1rem !important;
  font-family: inherit !important;
  transition: all 0.25s var(--ease-spring) !important;
}

.input-field:focus,
.select-field:focus {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
  outline: none !important;
}

/* ROI Simulator Hardware Enclosure */
.calculator-controls.bento-card {
  border-radius: 24px !important;
  padding: 2.25rem !important;
  background: linear-gradient(180deg, rgba(14, 25, 52, 0.85) 0%, rgba(6, 12, 28, 0.92) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.18), 0 25px 60px rgba(0, 0, 0, 0.85) !important;
}

.roi-display-card {
  border-radius: 24px !important;
  padding: 2.5rem !important;
  background: linear-gradient(180deg, rgba(16, 32, 68, 0.9) 0%, rgba(6, 14, 34, 0.95) 100%) !important;
  border: 1px solid rgba(0, 242, 254, 0.35) !important;
  box-shadow: 0 30px 70px -15px rgba(0, 242, 254, 0.2), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25) !important;
  position: relative;
  overflow: hidden;
}

.roi-display-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00f2fe, transparent);
}

.roi-highlight-number {
  font-size: 3.4rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  font-variant-numeric: tabular-nums !important;
  background: linear-gradient(180deg, #FFFFFF 30%, #00F2FE 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Range Slider Hardware Dynamics */
.range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transition: background 0.2s ease;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #00f2fe;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5);
  border: 2px solid #ffffff;
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease-spring);
}

.range-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.9), 0 3px 8px rgba(0, 0, 0, 0.6);
}

.range-input::-webkit-slider-thumb:active {
  transform: scale(0.95);
}

/* Package Pricing & Service Cards */
.package-card {
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(14, 25, 52, 0.85) 0%, rgba(6, 12, 28, 0.92) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.16), 0 25px 60px rgba(0, 0, 0, 0.85) !important;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease, box-shadow 0.35s var(--ease-spring) !important;
}

.package-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(0, 242, 254, 0.4) !important;
  box-shadow: 0 30px 70px -15px rgba(0, 242, 254, 0.22), inset 0 1px 1px 0 rgba(255, 255, 255, 0.28) !important;
}

.package-card.featured {
  border: 1px solid rgba(0, 242, 254, 0.45) !important;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.2), inset 0 1px 1px 0 rgba(255, 255, 255, 0.25) !important;
}
