/* ============================================================
   AESTHETIC DIRECTION: Dark Premium + Pearlescent Blue-Purple
   Background: #05070F (near-black, blue-tinted)
   Accent system: shifting gradient #3B82F6 → #6366F1 → #7C3AED
   The "pearl" quality comes from animated gradient position +
   subtle shimmer + multiple color stops (blue/indigo/violet/pink)
   Fonts: Space Grotesk (headings) + Inter (body)
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Backgrounds */
  --bg:            #080B14;
  --bg-elevated:   #0D1220;
  --bg-card:       rgba(255, 255, 255, 0.055);
  --bg-card-hover: rgba(255, 255, 255, 0.09);

  /* Pearl palette */
  --blue:          #3B82F6;
  --blue-dim:      #1D4ED8;
  --blue-light:    #60A5FA;
  --indigo:        #4F46E5;
  --purple:        #7C3AED;
  --purple-light:  #A78BFA;
  --pink-light:    #F0ABFC;
  --green:         #22C55E;

  /* Gradients */
  --grad-pearl:    linear-gradient(135deg, #3B82F6 0%, #6366F1 35%, #7C3AED 65%, #A78BFA 100%);
  --grad-pearl-h:  linear-gradient(90deg,  #3B82F6, #7C3AED);
  --grad-glow:     radial-gradient(ellipse at center, rgba(124,58,237,0.25) 0%, transparent 70%);

  /* Text */
  --text:          #F8FAFC;
  --text-muted:    #C1CEDF;
  --text-faint:    #8A9BB5;

  /* Borders */
  --border:        rgba(255, 255, 255, 0.10);
  --border-bright: rgba(255, 255, 255, 0.20);

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md:     0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-glow:   0 0 40px rgba(124, 58, 237, 0.18);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Fluid font sizes */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Easing */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-std:    cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 500; }
h4 { font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

p { color: var(--text-muted); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

section {
  position: relative;
}

/* ============================================================
   SKIP NAV
   ============================================================ */
.skip-nav {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--blue);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: var(--space-4);
}

/* ============================================================
   SECTION LABEL (small eyebrow above h2)
   ============================================================ */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad-pearl);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
}

.section-sub {
  color: var(--text-muted);
  font-size: var(--text-lg);
  max-width: 600px;
  margin-top: var(--space-4);
  line-height: 1.65;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  transition: transform 0.2s var(--ease-out), opacity 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Primary — pearl gradient */
.btn-primary {
  background: var(--grad-pearl);
  color: #fff;
  border: none;
}

/* Shimmer sweep on hover */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}

.btn-primary:hover::after { left: 150%; }
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
}
.btn-primary:active { transform: translateY(0); }

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-bright);
}
.btn-outline:hover {
  border-color: rgba(167, 139, 250, 0.4);
  color: var(--purple-light);
  transform: translateY(-1px);
}

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--text-faint);
  border: none;
  padding-left: var(--space-2);
}
.btn-ghost:hover { color: var(--text-muted); }

/* Nav CTA */
.btn-nav {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-light);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: var(--text-xs);
  padding: 0.45rem 1.1rem;
}
.btn-nav:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.4);
}

/* Sizes */
.btn-lg {
  font-size: var(--text-base);
  padding: 0.85rem 2rem;
}

.btn-full { width: 100%; justify-content: center; }

.btn-arrow {
  transition: transform 0.2s var(--ease-spring);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Loading state */
.btn-loading { display: inline-flex; align-items: center; gap: var(--space-2); }

/* ============================================================
   BADGE (hero status indicator)
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  animation: pulse-dot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(34, 197, 94, 0.7); }
  50%       { opacity: 0.6; box-shadow: 0 0 12px rgba(34, 197, 94, 0.9); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: background 0.3s var(--ease-std), backdrop-filter 0.3s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-accent {
  background: var(--grad-pearl);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
  flex: 1;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--text-faint);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s, width 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  color: var(--text-faint);
  padding: var(--space-2);
}
.mobile-nav-close:hover { color: var(--text); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}
.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s;
}
.mobile-nav-links a:hover { color: var(--text); }

.mobile-nav-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--text-faint);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(80px + var(--space-16)) 0 var(--space-16);
  overflow: hidden;
  background: var(--bg);
}

/* Hero text */
.hero-text {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.hero-h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.08;
  margin-bottom: var(--space-6);
  color: #ffffff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.8);
}

/* Pearl animated gradient text */
.pearl-text {
  display: block;
  background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 30%, #F0ABFC 55%, #60A5FA 80%, #A78BFA 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pearl-shift 6s ease infinite;
}

@keyframes pearl-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.hero-cta {
  margin-bottom: var(--space-6);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
}

.hero-stars {
  background: linear-gradient(135deg, #F59E0B, #FCD34D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}


/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--bg-elevated);
  padding: var(--space-8) 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.trust-icon {
  color: var(--purple-light);
  flex-shrink: 0;
  opacity: 0.8;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1px;
}

.trust-item span {
  font-size: var(--text-xs);
  color: var(--text-faint);
}

/* ============================================================
   SHARED SECTION SPACING
   ============================================================ */
.pain-points,
.how-it-works,
.about,
.faq,
.audit-section {
  padding: var(--space-24) 0;
}

/* Alternating bg */
.pain-points,
.how-it-works,
.faq { background: var(--bg-elevated); }


/* ============================================================
   PAIN POINTS
   ============================================================ */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.pain-card:hover {
  border-color: rgba(167, 139, 250, 0.25);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.08), var(--shadow-sm);
}

.pain-icon {
  color: var(--purple-light);
  margin-bottom: var(--space-4);
  opacity: 0.8;
}

.pain-card h3 {
  margin-bottom: var(--space-2);
  color: var(--text);
}

.pain-card p { font-size: var(--text-base); }

/* Stagger */
.pain-grid .pain-card:nth-child(2) { transition-delay: 80ms; }
.pain-grid .pain-card:nth-child(3) { transition-delay: 160ms; }
.pain-grid .pain-card:nth-child(4) { transition-delay: 240ms; }
.pain-grid .pain-card:nth-child(5) { transition-delay: 320ms; }


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-12);
  position: relative;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-8) 0;
}

.step-number {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  background: var(--grad-pearl);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  opacity: 0.25;
  min-width: 5rem;
}

.step-content h3 {
  color: var(--text);
  margin-bottom: var(--space-3);
  padding-top: var(--space-4);
}

.step-connector {
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--purple), transparent);
  opacity: 0.2;
  margin-left: 5rem;
}

.how-cta {
  text-align: center;
  margin-top: var(--space-12);
}

/* Stagger */
.steps .step:nth-child(3) { transition-delay: 100ms; }
.steps .step:nth-child(5) { transition-delay: 200ms; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: start;
}


.about-creds {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.cred-badge {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.85rem;
}

.about-text-col h2 { margin-bottom: var(--space-6); }
.about-text-col p  { margin-bottom: var(--space-4); }
.about-text-col .btn-outline { margin-top: var(--space-4); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  margin-top: var(--space-12);
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  gap: var(--space-4);
  transition: color 0.2s;
}

.faq-question:hover { color: var(--purple-light); }
.faq-question:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.faq-icon {
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--text-faint);
  transition: transform 0.3s var(--ease-out), color 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--purple-light);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease-out), padding 0.35s var(--ease-out);
  padding-bottom: 0;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: var(--space-5);
}

.faq-answer p { font-size: var(--text-base); line-height: 1.7; }

/* Stagger */
.faq-list .faq-item:nth-child(2) { transition-delay: 60ms; }
.faq-list .faq-item:nth-child(3) { transition-delay: 120ms; }
.faq-list .faq-item:nth-child(4) { transition-delay: 180ms; }
.faq-list .faq-item:nth-child(5) { transition-delay: 240ms; }

/* ============================================================
   AUDIT FORM SECTION
   ============================================================ */
.audit-section {
  overflow: hidden;
}

.aurora-form {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-form-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: aurora-drift-2 16s ease-in-out infinite;
}

.aurora-form-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: aurora-drift-1 12s ease-in-out infinite;
}

.audit-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: start;
  position: relative;
  z-index: 1;
}

.audit-text h2 { margin-bottom: var(--space-4); }
.audit-text p  { margin-bottom: var(--space-6); }

.audit-promise {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.audit-promise li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.audit-promise svg { color: var(--purple-light); flex-shrink: 0; }

/* Form card */
.audit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
}

/* Pearl gradient top border accent */
.audit-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: var(--space-8);
  right: var(--space-8);
  height: 1px;
  background: var(--grad-pearl);
  border-radius: var(--radius-full);
}

/* Progress indicator */
.form-progress {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.form-progress-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}

.form-progress-step.active {
  background: var(--grad-pearl);
  border-color: transparent;
}

.form-progress-step.completed {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--green);
}

.progress-num {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-faint);
}

.form-progress-step.active .progress-num { color: #fff; }

.form-progress-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 60px;
}

/* Form step */
.form-step { display: flex; flex-direction: column; gap: var(--space-4); }
.form-step.hidden { display: none; }

.form-step-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

/* Form group */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }

.form-group textarea { resize: vertical; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: rgba(239, 68, 68, 0.5);
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-elevated);
  color: var(--text);
}

.field-error {
  font-size: var(--text-xs);
  color: #F87171;
  min-height: 1rem;
}

.form-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

/* Success */
.form-success {
  text-align: center;
  padding: var(--space-8) 0;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--green);
}

.form-success h3 {
  font-size: var(--text-xl);
  color: var(--text);
  margin-bottom: var(--space-3);
}

.form-success p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.form-success a {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Spinner */
.spin {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-faint);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 360px;
}

.footer-logo { margin-bottom: 0; }

.footer-contact h4,
.footer-links h4 {
  color: var(--text-faint);
  margin-bottom: var(--space-4);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-contact a,
.footer-contact span {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-contact a:hover { color: var(--blue-light); }

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.footer-bottom p,
.footer-bottom a {
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.footer-bottom a:hover { color: var(--text-muted); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pearl-text,
  .badge-dot {
    animation: none !important;
  }

  .pearl-text {
    background: var(--grad-pearl);
  }
}

/* ============================================================
   RESPONSIVE — TABLET (≥ 640px)
   ============================================================ */
@media (min-width: 640px) {
  /* trust-grid uses flexbox now — no override needed */
  .pain-grid      { grid-template-columns: repeat(2, 1fr); }
  .pain-card-wide { grid-column: 1 / -1; }
  .footer-grid    { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — DESKTOP (≥ 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  /* Nav */
  .nav-links  { display: flex; }
  .hamburger  { display: none; }

  /* Pain grid */
  .pain-grid { grid-template-columns: repeat(2, 1fr); }

  /* Steps — horizontal on wide screens */
  .steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .step {
    flex: 1;
    grid-template-columns: 1fr;
    padding: 0 var(--space-6);
    border-left: 1px solid var(--border);
    border-bottom: none;
  }

  .step:first-child { border-left: none; padding-left: 0; }

  .step-number {
    font-size: 5rem;
    min-width: auto;
    margin-bottom: var(--space-2);
  }

  .step-content h3 { padding-top: 0; }

  .step-connector { display: none; }

  /* About */
  .about-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
  }

  /* Audit form */
  .audit-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}


/* ============================================================
   SCRAMBLE TEXT — hero H1 first line wrapper
   ============================================================ */
.scramble-text {
  display: block;
}


/* ============================================================
   ENHANCED CARD HOVER — pain cards
   ============================================================ */
.pain-card {
  transition: border-color 0.25s var(--ease-out),
              background 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out),
              transform 0.3s var(--ease-out);
  will-change: transform;
}

.pain-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(167, 139, 250, 0.1);
}


/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: var(--space-24) 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Radial glow */
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.14) 0%, rgba(59, 130, 246, 0.06) 45%, transparent 70%);
  pointer-events: none;
}

/* Dot grid texture */
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.cta-banner-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-banner-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad-pearl);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-5);
}

.cta-banner h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: var(--space-5);
  line-height: 1.1;
}

.cta-banner-body {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.cta-banner .btn {
  display: inline-flex;
  margin-bottom: var(--space-5);
}

.cta-banner-sub {
  font-size: var(--text-sm);
  color: var(--text-faint);
}


/* ============================================================
   REDUCED MOTION — additions
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .pain-card {
    transition: border-color 0.2s, background 0.2s !important;
    will-change: auto !important;
  }
}

/* ============================================================
   HERO — VIDEO BACKGROUND
   ============================================================ */
.hero-video-section {
  position: relative;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(4, 6, 15, 0.78) 0%,
      rgba(4, 6, 15, 0.60) 45%,
      rgba(4, 6, 15, 0.88) 100%
    ),
    radial-gradient(ellipse at 50% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 65%);
}

.hero-text-centered {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: calc(100px + var(--space-16)) var(--space-4) var(--space-20);
}

.hero-text-centered .hero-sub {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero-text-centered .hero-cta {
  justify-content: center;
  display: flex;
}

.hero-text-centered .hero-trust {
  justify-content: center;
}

/* ============================================================
   SYSTEM SECTION — 5 modules
   ============================================================ */
.system-section {
  padding: var(--space-24) 0;
  background: var(--bg-elevated);
}

.system-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-12);
}

@media (min-width: 640px) {
  .system-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .system-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .system-module-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 var(--space-6);
    align-items: start;
  }
  .system-module-wide .system-num {
    grid-column: 1;
    grid-row: 1;
  }
  .system-module-wide .system-icon {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
  }
  .system-module-wide h3 {
    grid-column: 2;
    grid-row: 1;
  }
  .system-module-wide p {
    grid-column: 2;
    grid-row: 2;
  }
  .system-module-wide .system-tags {
    grid-column: 2;
    grid-row: 3;
  }
}

.system-module {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.system-module::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-pearl);
  opacity: 0;
  transition: opacity 0.3s;
}

.system-module:hover {
  border-color: rgba(124, 58, 237, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.system-module:hover::before {
  opacity: 1;
}

.system-num {
  display: none;
}

.system-icon {
  margin-bottom: var(--space-4);
  color: var(--purple-light);
}

.system-module h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--text);
}

.system-module p {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.system-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.system-tags span {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  letter-spacing: 0.02em;
}

.system-note {
  margin-top: var(--space-10);
  padding: var(--space-5) var(--space-6);
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--radius-lg);
}

.system-note p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

.system-note strong {
  color: var(--blue-light);
}

/* ============================================================
   OFFER SECTION — 2-step model
   ============================================================ */
.offer-section {
  padding: var(--space-24) 0;
  background: var(--bg);
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-12);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .offer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.offer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
}

.offer-card-featured {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.10), rgba(59, 130, 246, 0.06));
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.10);
}

.offer-step-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.8rem;
  margin-bottom: var(--space-4);
}

.offer-step-badge-featured {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.3);
  color: var(--purple-light);
}

.offer-card h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.offer-tagline {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.offer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.offer-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.5;
}

.offer-list li svg {
  color: var(--blue-light);
  flex-shrink: 0;
  margin-top: 2px;
}

.offer-card-featured .offer-list li svg {
  color: var(--purple-light);
}

.offer-price-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
}

.offer-card-featured .offer-price-label {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.35);
  color: var(--purple-light);
}

.offer-note {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-faint);
  font-style: italic;
}

/* ============================================================
   ABOUT — portrait image
   ============================================================ */
.about-portrait-wrap {
  margin-bottom: var(--space-6);
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  position: relative;
  clip-path: inset(0 0 11% 0 round 16px);
  border: 1px solid var(--border-bright);
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.15);
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
