/* ============================================================
   MEMBELA DESIGN SYSTEM
   UI UX Pro Max · Social Proof-Focused · Waitlist Pattern
   Brand: Manrope · Purple #6B21A8 · Teal #0891B2 · #F9FAFB
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video, iframe { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── DESIGN TOKENS ── */
:root {
  /* Brand */
  --purple-950: #2E1065;
  --purple-900: #3B0764;
  --purple-800: #4C1D95;
  --purple-700: #6B21A8;
  --purple-600: #7C3AED;
  --purple-200: #DDD6FE;
  --purple-100: #EDE9FE;
  --purple-50:  #F5F3FF;

  --teal-600: #0891B2;
  --teal-500: #06B6D4;
  --teal-200: #A5F3FC;
  --teal-100: #CFFAFE;
  --teal-50:  #ECFEFF;

  /* Neutral */
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;
  --white:    #FFFFFF;

  /* Semantic */
  --bg:         var(--gray-50);
  --bg-card:    var(--white);
  --text-head:  #1E1B4B;
  --text-body:  var(--gray-700);
  --text-muted: var(--gray-500);
  --border:     var(--gray-200);

  /* Spacing */
  --s1:  0.25rem;
  --s2:  0.5rem;
  --s3:  0.75rem;
  --s4:  1rem;
  --s5:  1.25rem;
  --s6:  1.5rem;
  --s8:  2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;

  /* Type */
  --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;

  /* Radius */
  --r-sm:   0.375rem;
  --r-md:   0.5rem;
  --r-lg:   0.75rem;
  --r-xl:   1rem;
  --r-2xl:  1.5rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.09), 0 10px 10px -5px rgba(0,0,0,0.03);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 200ms ease;
  --t-slow: 300ms ease;

  /* Z */
  --z-nav: 50;
}

/* ── BASE ── */
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s6);
}
.container-narrow { max-width: 720px; }
.container-xs     { max-width: 560px; }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: var(--s5) 0;
  transition: background var(--t-slow), box-shadow var(--t-slow), padding var(--t-slow);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: var(--s3) 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s6);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--white);
  letter-spacing: -0.02em;
  transition: color var(--t-base);
}
.nav-logo svg { width: 26px; height: 26px; flex-shrink: 0; }
.nav.scrolled .nav-logo { color: var(--purple-700); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t-base);
}
.btn:focus-visible {
  outline: 2px solid var(--purple-600);
  outline-offset: 3px;
}
.btn-sm  { padding: var(--s2)  var(--s5);  font-size: var(--text-sm);  }
.btn-md  { padding: var(--s3)  var(--s6);  font-size: var(--text-base); }
.btn-lg  { padding: var(--s4)  var(--s8);  font-size: var(--text-lg);  }
.btn-xl  { padding: var(--s5)  var(--s10); font-size: var(--text-xl);  }

.btn-primary {
  background: var(--teal-600);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-500);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.4);
}
.btn-primary:active { transform: translateY(0); }

.btn-white {
  background: var(--white);
  color: var(--purple-800);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  background: var(--purple-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s4);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal-100);
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(0.75); opacity: 0.55; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--s20) + 60px) 0 var(--s20);
  background: linear-gradient(140deg, var(--purple-900) 0%, var(--purple-700) 55%, #1d4ed8 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(8, 145, 178, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 5%  90%, rgba(124, 58, 237, 0.22) 0%, transparent 40%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { margin-bottom: var(--s6); }
.hero-headline {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--s5);
}
.hero-accent {
  display: block;
  color: var(--teal-500);
  font-style: italic;
}
.hero-subhead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: var(--s10);
  font-weight: 400;
}
.hero-cta-group { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.hero-cta-note {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.hero-visual { position: relative; z-index: 1; }
.hero-video-frame {
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
  aspect-ratio: 16 / 9;
  background: var(--purple-900);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-video-frame iframe { width: 100%; height: 100%; border: none; }

/* ── PROOF BAR ── */
.proof-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--s8) 0;
}
.proof-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s12);
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  text-align: center;
}
.proof-stat {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--purple-700);
  letter-spacing: -0.04em;
  line-height: 1;
}
.proof-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}
.proof-divider {
  width: 1px; height: 44px;
  background: var(--border);
  flex-shrink: 0;
}
.proof-icon-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.proof-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: var(--purple-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-700);
  flex-shrink: 0;
}
.proof-text { text-align: left; }
.proof-text strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-head);
}
.proof-text span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

/* ── SECTION DEFAULTS ── */
.section-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: var(--s3);
}
.section-eyebrow.light { color: var(--teal-200); }
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-head);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: var(--s5);
}
.section-title.light { color: var(--white); }
.section-body {
  font-size: var(--text-lg);
  color: var(--text-body);
  line-height: 1.7;
}

/* ── CONTEXT ── */
.context {
  padding: var(--s24) 0;
  text-align: center;
}
.context .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── TESTIMONIALS ── */
.testimonials { padding: 0 0 var(--s24); }
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s10) var(--s12);
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -1rem; left: var(--s10);
  font-size: 9rem;
  color: var(--purple-100);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.testimonial-quote {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-head);
  line-height: 1.65;
  margin-bottom: var(--s8);
  font-style: italic;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--teal-600));
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-head);
}
.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* ── HOW IT WORKS ── */
.how-it-works {
  padding: var(--s24) 0;
  background: var(--white);
  text-align: center;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s8);
  margin-top: var(--s16);
  position: relative;
}
.steps-connector {
  position: absolute;
  top: 27px;
  left: calc(16.67% + 27px);
  right: calc(16.67% + 27px);
  height: 2px;
  background: linear-gradient(90deg, var(--purple-700), var(--teal-600));
  pointer-events: none;
  z-index: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-circle {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--teal-600));
  color: var(--white);
  font-size: var(--text-lg);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s6);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}
.step h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: var(--s3);
  letter-spacing: -0.01em;
}
.step p {
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: 1.65;
}

/* ── FEATURES ── */
.features { padding: var(--s24) 0; text-align: center; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  margin-top: var(--s16);
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  text-align: left;
  transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t-slow);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--purple-200);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-lg);
  background: var(--purple-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s5);
  color: var(--purple-700);
  transition: background var(--t-base);
}
.feature-card:hover .feature-icon {
  background: var(--purple-100);
}
.feature-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: var(--s3);
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: var(--text-base);
  color: var(--text-body);
  line-height: 1.65;
}

/* ── SEO SECTION ── */
.seo-section {
  padding: var(--s20) 0;
  background: var(--purple-50);
  text-align: center;
}
.seo-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.seo-section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--text-head);
  letter-spacing: -0.02em;
  margin-bottom: var(--s5);
  max-width: 600px;
}
.seo-section p {
  color: var(--text-body);
  line-height: 1.75;
  font-size: var(--text-base);
  max-width: 660px;
}

/* ── FINAL CTA ── */
.final-cta { padding: var(--s24) 0; }
.cta-card {
  background: linear-gradient(140deg, var(--purple-900) 0%, var(--purple-700) 70%, #1e40af 100%);
  border-radius: var(--r-2xl);
  padding: var(--s20) var(--s12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 10%, rgba(8,145,178,0.22) 0%, transparent 50%);
  pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card .section-title { margin-bottom: var(--s4); }
.cta-card > p {
  color: rgba(255,255,255,0.72);
  font-size: var(--text-lg);
  line-height: 1.65;
  margin-bottom: var(--s8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-note {
  margin-top: var(--s4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}

/* ── FOOTER ── */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: var(--s16) 0 var(--s8);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s12);
  flex-wrap: wrap;
  padding-bottom: var(--s12);
  border-bottom: 1px solid var(--gray-800);
  margin-bottom: var(--s8);
}
.footer-logo-wrap .nav-logo {
  color: var(--white);
  margin-bottom: var(--s3);
}
.footer-tagline {
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-style: italic;
  max-width: 240px;
  line-height: 1.5;
}
.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: var(--s4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s2); }
.footer-col a {
  font-size: var(--text-sm);
  color: var(--gray-400);
  font-weight: 500;
  transition: color var(--t-base);
}
.footer-col a:hover { color: var(--white); }
.footer-copy {
  font-size: var(--text-xs);
  color: var(--gray-600);
  text-align: center;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-child.is-visible { opacity: 1; transform: translateY(0); }
.reveal-child:nth-child(1) { transition-delay: 0.05s; }
.reveal-child:nth-child(2) { transition-delay: 0.15s; }
.reveal-child:nth-child(3) { transition-delay: 0.25s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--s12);
  }
  .hero-subhead { max-width: 100%; }
  .steps-grid { grid-template-columns: 1fr; gap: var(--s10); }
  .steps-connector { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .proof-divider { display: none; }
  .proof-grid { gap: var(--s8); }
  .cta-card { padding: var(--s12) var(--s8); }
}

@media (max-width: 640px) {
  .container { padding: 0 var(--s4); }
  .nav-inner  { padding: 0 var(--s4); }
  .hero { padding: calc(var(--s16) + 60px) 0 var(--s16); }
  .hero-cta-group { align-items: stretch; }
  .hero-cta-group .btn { text-align: center; }
  .testimonial-card { padding: var(--s8) var(--s6); }
  .footer-inner { flex-direction: column; gap: var(--s8); }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-child {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── HERO CENTERED (no video variant) ── */
.hero-content-centered {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-content-centered .hero-subhead {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-content-centered .hero-cta-group {
  align-items: center;
}
.hero-content-centered .badge {
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
}

/* ── SR-ONLY ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── TESTIMONIALS 3-UP GRID ── */
.testimonials {
  padding: var(--s16) 0 var(--s20);
  background: linear-gradient(140deg, var(--purple-900) 0%, var(--purple-700) 60%, #1e40af 100%);
}
.testimonials-intro { text-align: center; margin-bottom: var(--s10); }

.tgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  align-items: stretch;
}
.tcard {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-xl);
  padding: var(--s6) var(--s6) var(--s5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  transition: background var(--t-base), transform var(--t-slow);
}
.tcard:hover {
  background: rgba(255,255,255,0.13);
  transform: translateY(-3px);
}
.tcard-quote-mark {
  font-size: 2.5rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--teal-500);
  opacity: 0.75;
}
.tcard-stars {
  color: #FBBF24;
  font-size: var(--text-sm);
  letter-spacing: 2px;
}
.tcard-quote {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  flex: 1;
}
.tcard-footer {
  padding-top: var(--s4);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}
.tcard-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--white);
}
.tcard-role {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  margin-top: 2px;
}
@media (max-width: 760px) {
  .tgrid { grid-template-columns: 1fr; gap: var(--s4); }
}

/* ── BETA CALLOUT ── */
.beta-callout {
  background: var(--purple-50);
  border: 1px solid var(--purple-200);
  border-radius: var(--r-xl);
  padding: var(--s5) var(--s6);
  display: flex; align-items: flex-start; gap: var(--s4);
  max-width: 820px; margin: 0 auto var(--s6);
}
.beta-callout-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--purple-100); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-700);
}
.beta-callout p { font-size: var(--text-sm); color: var(--text-body); line-height: 1.65; margin: 0; }
.beta-callout strong { color: var(--text-head); }


/* ═══════════════════════════════════════════════════════════
   MEMBELA ANIMATION LAYER
   ═══════════════════════════════════════════════════════════ */

/* ── Hero load sequence ── */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.hero-eyebrow  { animation: hero-rise 0.6s ease 0.1s both; }
.hero-headline { animation: hero-rise 0.6s ease 0.25s both; }
.hero-subhead  { animation: hero-rise 0.6s ease 0.4s both; }
.hero-cta-group { animation: hero-rise 0.6s ease 0.55s both; }
.hero-visual    { animation: hero-rise 0.7s ease 0.35s both; }

/* ── Badge float ── */
@keyframes badge-float {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-5px); }
}
.badge { animation: badge-float 3s ease-in-out infinite; }

/* ── Button pulse (teal glow) ── */
@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8,145,178,0); }
  50%       { box-shadow: 0 0 0 10px rgba(8,145,178,0.25); }
}
.btn-pulse { animation: btn-glow 2.5s ease-in-out infinite; }

/* ── Proof bar stagger scale-in ── */
.proof-bar.is-visible .proof-item {
  animation: hero-rise 0.5s ease both;
}
.proof-bar.is-visible .proof-item:nth-child(1) { animation-delay: 0.05s; }
.proof-bar.is-visible .proof-item:nth-child(3) { animation-delay: 0.15s; }
.proof-bar.is-visible .proof-item:nth-child(5) { animation-delay: 0.25s; }

/* ── Feature card icon spring hover ── */
.feature-card:hover .feature-icon svg {
  transform: rotate(-6deg) scale(1.15);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-icon svg {
  transition: transform 0.25s ease;
}

/* ── CTA card shimmer ── */
.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.06) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: cta-shimmer 4s linear infinite;
  pointer-events: none;
}
@keyframes cta-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Footer link lift ── */
.footer-col a:hover {
  color: var(--white);
  transform: translateY(-2px);
  display: inline-block;
}

/* ── How It Works: animated SVG icons ── */
.step-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--teal-600));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s6);
  box-shadow: 0 8px 24px rgba(107,33,168,0.3);
  flex-shrink: 0;
  color: var(--white);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.step:hover .step-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 12px 32px rgba(107,33,168,0.45);
}
.step-svg { overflow: visible; }
.svg-draw {
  stroke: var(--white);
  fill: none;
  /* JS sets dasharray/dashoffset */
}

/* ── Connector line draw-on ── */
.steps-connector {
  position: absolute;
  top: 36px;
  left: calc(16.67% + 36px);
  right: calc(16.67% + 36px);
  height: 2px;
  background: rgba(107,33,168,0.15);
  pointer-events: none;
  z-index: 0;
}
.connector-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--purple-700), var(--teal-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.4,0,0.2,1) 0.3s;
}
.connector-line.drawn { transform: scaleX(1); }

/* ── Testimonial carousel styles ── */
.testimonials {
  padding: var(--s24) 0;
  background: linear-gradient(140deg, var(--purple-900) 0%, var(--purple-700) 60%, #1e40af 100%);
}
.testimonials-intro { text-align: center; margin-bottom: var(--s12); }
.carousel {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  overflow: visible;
}
.tcard {
  flex: 0 0 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-2xl);
  padding: var(--s10) var(--s8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tcard-stars {
  color: #FBBF24;
  font-size: var(--text-lg);
  letter-spacing: 3px;
  margin-bottom: var(--s5);
}
.tcard-quote {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--white);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: var(--s8);
}
.tcard-author {
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.tcard-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(8,145,178,0.5));
  flex-shrink: 0;
}
.tcard-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--white);
}
.tcard-role {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  margin-top: 2px;
}

/* Respect reduced motion for animations */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-headline, .hero-subhead, .hero-cta-group, .hero-visual {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .badge { animation: none; }
  .btn-pulse { animation: none; }
  .cta-card::after { animation: none; }
  .carousel-track { transition: none; }
  .connector-line { transition: none; }
}
