/* ==========================================================================
   DIVA AI — Teaser Site

   Design philosophy: Premium SaaS launch aesthetic. Generous whitespace,
   restrained animation, strong typography. The copy does the personality
   work; the design does the credibility work.

   Brand palette (from Canva Brand Kit):
     --blue:       #184edd  (primary blue)
     --purple:     #8000d7  (accent purple)
     --pink:       #f53198  (accent hot pink)
     --yellow:     #fee759  (highlight yellow)
     --lavender:   #efeaf4  (light background)
     --periwinkle: #dbeaff  (light accent)
   ========================================================================== */

:root {
  /* WHY: These six colors are pulled directly from the Canva Brand Kit */
  --blue: #184edd;
  --blue-dark: #1240b8;
  --blue-muted: rgba(24, 78, 221, 0.08);
  --purple: #8000d7;
  --purple-muted: rgba(128, 0, 215, 0.08);
  --pink: #f53198;
  --pink-muted: rgba(245, 49, 152, 0.08);
  --yellow: #fee759;
  --yellow-dark: #e6d04e;
  --lavender: #efeaf4;
  --periwinkle: #dbeaff;
  --ink: #111118;
  --ink-soft: #3D3D4A;
  --ink-muted: #7A7A8A;
  --white: #FFFFFF;
  --border: rgba(17, 17, 24, 0.08);

  /* WHY: Pacifico is the official brand title font (matches diva logo script).
     Open Sans is the official brand body font. Both from Canva Brand Kit. */
  --font-title: 'Pacifico', cursive;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.15, 1);
}

/* ---------- Reset ---------- */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }

img, svg { display: block; }

/* ---------- Shared Typography ---------- */

.section-kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
  text-align: center;
}

.section-kicker.light { color: rgba(255,255,255,0.5); }

.section-heading {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-heading.light { color: var(--white); }

.section-sub {
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink-muted);
  margin-bottom: 4rem;
  font-weight: 400;
  line-height: 1.6;
}

.section-sub.light { color: rgba(255,255,255,0.55); }
/* WHY: On light backgrounds yellow is unreadable, so emphasized text uses pink.
   On dark (`.light`) backgrounds, yellow works well. */
.section-sub em { color: var(--pink); font-style: italic; }
.section-sub.light em { color: var(--yellow); font-style: italic; }

/* ==========================================================================
   CURTAIN
   ========================================================================== */

.curtain {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  /* WHY: Subtle warm spotlight glow behind the curtain text */
  background: radial-gradient(ellipse at center, rgba(120,20,20,0.3) 0%, transparent 70%);
}

.curtain-left, .curtain-right {
  position: absolute; top: 0;
  width: 50%; height: 100%;
  /* WHY: Rich red velvet look — dark red base with vertical folds via repeating gradients */
  background:
    /* Velvet fold highlights — vertical light/dark stripes mimicking draped fabric */
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.06) 2px,
      transparent 4px,
      transparent 30px,
      rgba(0,0,0,0.12) 32px,
      transparent 34px,
      transparent 60px
    ),
    /* Deep velvet base gradient */
    linear-gradient(180deg, #5a0a0a 0%, #8b1a1a 15%, #6b0f0f 50%, #8b1a1a 85%, #3d0606 100%);
  /* WHY: 2.4s (doubled from 1.2s) for dramatic slow curtain pull */
  transition: transform 2.4s var(--ease-smooth);
}

/* WHY: Left curtain gets a slight rightward light edge — where the two panels meet */
.curtain-left  {
  left: 0;
  border-right: 1px solid rgba(255,200,150,0.08);
}
.curtain-right {
  right: 0;
  border-left: 1px solid rgba(255,200,150,0.08);
}

/* WHY: Gold fringe trim along the inner edges of the curtain */
.curtain-left::after, .curtain-right::after {
  content: '';
  position: absolute;
  top: 0;
  width: 6px;
  height: 100%;
  /* WHY: Repeating gold dots simulate the tasseled fringe on theater curtains */
  background: repeating-linear-gradient(
    180deg,
    #c9a84c 0px,
    #e6c561 3px,
    transparent 3px,
    transparent 8px
  );
}
.curtain-left::after  { right: 0; }
.curtain-right::after { left: 0; }

/* WHY: Scalloped valance across the top — the draped fabric header above the curtain */
.curtain-left::before, .curtain-right::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 60px;
  background: linear-gradient(180deg, #3d0606 0%, #6b0f0f 60%, transparent 100%);
  z-index: 1;
}

.curtain.open .curtain-left  { transform: translateX(-100%); }
.curtain.open .curtain-right { transform: translateX(100%); }
.curtain.done { display: none; }

.curtain-text {
  position: relative; z-index: 1;
  text-align: center;
  transition: opacity 0.6s ease;
}

.curtain.open .curtain-text { opacity: 0; }

.curtain-kicker {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  /* WHY: Warm gold tone instead of gray — fits the theater ambiance */
  color: rgba(255,220,150,0.6);
  opacity: 0;
  animation: fadeUp 0.6s ease 0.4s forwards;
}

.curtain-headline {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--yellow);
  margin-top: 0.6rem;
  opacity: 0;
  /* WHY: 1.4s delay (doubled from 0.7s) — text lingers before curtain pulls */
  animation: fadeUp 0.6s ease 1.4s forwards;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue);
  overflow: hidden;
}

/* WHY: Subtle radial creates depth without looking like a cheap gradient */
.hero-glow {
  position: absolute;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* WHY: Fine grid gives a techy, polished feel beneath the brand messaging */
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  color: var(--white);
  padding: 2rem;
  position: relative; z-index: 2;
  max-width: 720px;
}

.hero-content [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

.hero-content [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.hero-intro {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4rem;
}

.hero-logo {
  font-family: var(--font-title);
  font-size: clamp(5.5rem, 16vw, 11rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-logo-img {
  max-width: clamp(280px, 50vw, 480px);
  height: auto;
  display: inline-block;
}

.hero-logo-fallback {
  /* Fallback text styling matches the original hero-logo */
}

.hero-ai {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.28em;
  vertical-align: super;
  margin-left: 0.05em;
  opacity: 0.55;
  letter-spacing: 0.08em;
}

.tm {
  font-family: var(--font-body);
  font-size: 0.1em;
  vertical-align: super;
  opacity: 0.35;
  font-weight: 300;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.8vw, 1.9rem);
  font-weight: 400;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.9);
}

/* WHY: Yellow on white hero background is legible; pink is an alternative if
   the hero bg changes. Using yellow here for brand consistency. */
.hero-tagline em {
  color: var(--yellow);
  font-style: italic;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  background: var(--white);
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%; transform: translateX(-50%);
}

.scroll-line {
  display: block;
  width: 1px; height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */

.marquee {
  background: var(--ink);
  padding: 0.9rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  animation: slide 40s linear infinite;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.marquee-track span { flex-shrink: 0; padding: 0 1rem; }
.marquee-track .sep { color: var(--pink); opacity: 0.5; padding: 0 0.5rem; }
.marquee-track .marquee-sass { color: var(--yellow); font-style: italic; }

/* ==========================================================================
   ORIGIN STORY
   ========================================================================== */

.origin {
  padding: 7rem 0;
  background: var(--lavender);
}

.origin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.origin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.origin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--blue-muted);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

/* WHY: Each origin card gets a different brand accent — blue, purple, pink */
.origin-card:nth-child(2) .card-icon {
  background: var(--purple-muted);
  color: var(--purple);
}

.origin-card:nth-child(3) .card-icon {
  background: var(--pink-muted);
  color: var(--pink);
}

.card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.origin-card h3 {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.origin-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.origin-card em { color: var(--purple); font-style: italic; font-weight: 500; }
.origin-card strong { color: var(--ink); }

/* WHY: Origin cards sit on lavender bg — bright yellow is hard to read there,
   so we use the darkened yellow for sufficient contrast */
.card-flair {
  display: block;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--yellow-dark);
}

/* ==========================================================================
   CAPABILITIES
   ========================================================================== */

.capabilities {
  padding: 7rem 0;
  background: var(--blue);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.cap-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.04);
  transition: border-color 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cap-card:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
}

.cap-num {
  font-family: var(--font-body);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.1);
  line-height: 1;
  margin-bottom: 1rem;
}

.cap-card h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cap-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  flex: 1;
}

.cap-quip {
  display: block;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--yellow);
  opacity: 0.9;
}

/* ==========================================================================
   QUOTES
   ========================================================================== */

.quotes {
  padding: 6rem 0;
  background: var(--ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* WHY: Subtle side gradients add depth without distracting from text */
.quotes::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(24,78,221,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 50%, rgba(128,0,215,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.quote-stage {
  position: relative;
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
}

.quote-slide {
  position: absolute;
  width: 100%; max-width: 700px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  border: none;
}

.quote-slide.active {
  opacity: 1;
  transform: translateY(0);
}

.quote-slide p {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-style: italic;
  font-weight: 400;
  color: var(--yellow);
  line-height: 1.35;
  margin-bottom: 1.5rem;
}

.quote-slide cite {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--yellow);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote-dots {
  display: flex; gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
  position: relative; z-index: 1;
}

.quote-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none; cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.quote-dot:hover { background: rgba(255,255,255,0.3); }

.quote-dot.active {
  background: var(--yellow);
  transform: scale(1.35);
}

/* ==========================================================================
   STATS
   ========================================================================== */

.stats {
  padding: 7rem 0;
  background: var(--white);
}

.stats-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
  margin: 3.5rem 0 4rem;
  flex-wrap: wrap;
}

.stat { text-align: center; flex: 1; min-width: 200px; }

.stat-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  align-self: center;
  flex-shrink: 0;
}

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-pre {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--blue);
}

.stat-num {
  font-family: var(--font-body);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--blue);
  margin-left: 0.1em;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.6rem;
}

.stat-detail {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 0.3rem;
}

.stats-coda {
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.6;
}

.stats-coda strong { color: var(--purple); font-style: italic; }

/* ==========================================================================
   ROADMAP
   ========================================================================== */

.roadmap {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
}

.roadmap-answer {
  text-align: center;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-style: italic;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 4rem;
}

.roadmap-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

/* WHY: Horizontal line connecting nodes — clean roadmap visual */
.roadmap-line {
  display: none; /* Only show on desktop */
}

.roadmap-node {
  text-align: center;
}

.node-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  margin: 0 auto 1.5rem;
  position: relative;
}

/* WHY: Outer ring draws attention to the dot without being loud */
.node-dot::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(254,231,89,0.3);
}

.node-phase {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.roadmap-node h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.roadmap-node p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

@media (min-width: 769px) {
  .roadmap-line {
    display: block;
    position: absolute;
    top: 6px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(254,231,89,0.3), rgba(254,231,89,0.3), transparent);
  }
}

/* ==========================================================================
   SIGNUP
   ========================================================================== */

.signup {
  padding: 7rem 0;
  background: var(--lavender);
}

.signup-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.signup-sub {
  font-size: 1.05rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.signup-form {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 0.95rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  min-width: 0;
  transition: border-color 0.2s ease;
}

.signup-form input:focus { border-color: var(--blue); }
.signup-form input::placeholder { color: #bbb; }

.btn-submit {
  padding: 0.95rem 1.8rem;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.btn-submit:hover { background: var(--blue-dark); }

.signup-note {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 1rem;
}

.signup-success { margin-top: 1rem; animation: fadeUp 0.5s ease; }

.success-headline {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.success-sub {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  padding: 3.5rem 0 2.5rem;
  background: var(--ink);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.footer-ai {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.4em;
  vertical-align: super;
  opacity: 0.5;
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.5rem;
}

.footer-rule {
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0 auto 1.5rem;
}

.footer-legal {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  line-height: 1.7;
}

/* ==========================================================================
   CONFETTI CANVAS
   ========================================================================== */

#confettiCanvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-scroll-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%   { opacity: 0.4; transform: translateX(-50%) scaleY(0.6); transform-origin: top; }
  50%  { opacity: 1;   transform: translateX(-50%) scaleY(1); }
  100% { opacity: 0.4; transform: translateX(-50%) scaleY(0.6); }
}

@keyframes slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .origin, .capabilities, .stats, .roadmap, .signup { padding: 5rem 0; }

  .origin-grid,
  .cap-grid,
  .roadmap-track { grid-template-columns: 1fr; }

  .stats-row { flex-direction: column; gap: 2.5rem; }
  .stat-divider { width: 40px; height: 1px; align-self: center; }

  .signup-form {
    flex-direction: column;
    border-radius: 8px;
  }

  .signup-form input[type="email"] {
    border-right: 1px solid var(--border);
    border-radius: 8px 8px 0 0;
    border-bottom: none;
  }

  .btn-submit { border-radius: 0 0 8px 8px; padding: 0.95rem; }

  .hero-content { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .section-heading { font-size: 1.8rem; }
  .hero-tagline { font-size: 1.15rem; }
  .hero-sub { font-size: 0.95rem; }
  .btn-primary { padding: 0.85rem 2rem; font-size: 0.9rem; }
}
