/* ============================================================================
   PULSE — cinematic AI-analytics landing (arsenal demo)
   Pattern: TWO independent pinned frame-scrub zones on one page —
     • hero    → particle-assembly film scrubs 0→dashboard, the headline
                 settles on the render-completion beat (co-timed text+video).
     • signal  → a dark cinematic interlude pinned inside the bright body,
                 revealing Predict · Explain · Prevent over the macro clip.
   Engine forked from the Grand Tour film engine (batched preload +
   nearest-loaded fallback + 3-tier mode). Legibility doctrine kept: text never
   sits raw on film — it rides glass or a local scrim.
   Design axis: near-black hero → bright paper body, single electric-violet accent.
   ============================================================================ */

/* ─────────────────────────── Tokens ─────────────────────────── */
:root {
  /* Dark end (hero, signal interlude, CTA, footer) */
  --void:    #08080C;
  --void-2:  #0E0B1A;
  --ink:     #0A0A12;
  --ink-glass:      rgba(255,255,255,0.045);
  --ink-glass-2:    rgba(255,255,255,0.07);
  --ink-line:       rgba(255,255,255,0.10);
  --violet-line:    rgba(124,92,255,0.34);

  /* Light end (product body) */
  --paper:   #FAFAFB;
  --paper-2: #F2F1F8;
  --paper-3: #EAE8F4;
  --slate:   #14141C;   /* near-black text on paper */
  --slate-2: #3A3A48;
  --muted:   #6E6E80;   /* secondary text on paper */
  --line:    rgba(20,20,32,0.09);
  --card:    #FFFFFF;

  /* Accent — single electric violet, a few tints */
  --violet:        #7C5CFF;
  --violet-bright: #9D86FF;
  --violet-soft:   #B9A9FF;
  --violet-deep:   #5B3FD6;
  --violet-ink:    #241B4A;
  --alert:         #FF5C7A;   /* the one red — anomaly */

  /* Type */
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:    "Space Grotesk", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Rhythm */
  --maxw: 1180px;
  --pad-section: clamp(5rem, 11vh, 8.5rem);
  --radius: 20px;
  --radius-sm: 13px;
  --radius-lg: 28px;
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-card: 0 24px 60px -28px rgba(40,30,90,0.28), 0 6px 18px -10px rgba(40,30,90,0.14);
  --shadow-float: 0 40px 90px -40px rgba(30,20,80,0.45);
  --glow-violet: 0 0 0 1px rgba(124,92,255,0.35), 0 18px 60px -18px rgba(124,92,255,0.55);
}

/* ─────────────────────────── Reset ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--slate);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.tabnum { font-variant-numeric: tabular-nums; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 300;
  background: var(--violet); color: #fff; padding: .65rem 1rem; border-radius: 10px;
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(124,92,255,0.28); }

/* ─────────────────────────── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--body); font-weight: 600; font-size: .95rem; letter-spacing: -0.005em;
  padding: .85rem 1.5rem; border-radius: 99px; cursor: pointer; border: 1px solid transparent;
  transition: transform .3s var(--ease-lux), background .3s, color .3s, border-color .3s, box-shadow .3s;
  will-change: transform;
}
.btn--lg { padding: 1.02rem 1.9rem; font-size: 1rem; }
.btn--violet {
  background: linear-gradient(135deg, var(--violet-bright), var(--violet) 55%, var(--violet-deep));
  color: #fff; box-shadow: 0 14px 34px -12px rgba(124,92,255,.62), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn--violet:hover { box-shadow: 0 20px 46px -14px rgba(124,92,255,.8), inset 0 1px 0 rgba(255,255,255,.28); }
.btn--ghost-d { background: rgba(255,255,255,.05); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn--ghost-d:hover { background: rgba(255,255,255,.11); border-color: var(--violet-soft); }
.btn--ghost-l { background: transparent; color: var(--slate); border-color: var(--line); }
.btn--ghost-l:hover { border-color: var(--violet); color: var(--violet-deep); }
.btn__arrow { transition: transform .3s var(--ease-lux); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ─────────────────────────── Eyebrow / chips ─────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.18); }
.on-dark .eyebrow { color: var(--violet-soft); }
.on-light .eyebrow { color: var(--violet-deep); }

.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem .4rem .55rem;
  border-radius: 99px; font-size: .8rem; font-weight: 500;
}
.on-dark .pill { background: rgba(124,92,255,.12); border: 1px solid var(--violet-line); color: var(--violet-soft); }
.pill__live { display: inline-flex; align-items: center; gap: .4rem; }
.pill__beat { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-bright); box-shadow: 0 0 0 0 rgba(157,134,255,.7); animation: beat 1.8s var(--ease-out) infinite; }
@keyframes beat { 0%{ box-shadow: 0 0 0 0 rgba(157,134,255,.55);} 60%{ box-shadow: 0 0 0 9px rgba(157,134,255,0);} 100%{ box-shadow:0 0 0 0 rgba(157,134,255,0);} }

/* ─────────────────────────── Loader ─────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 34%, #14102a 0%, var(--void) 68%);
  transition: opacity .7s ease, visibility .7s ease;
}
body:not(.is-loading) #loader { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; width: min(320px, 76vw); }
.loader-mark { display:inline-flex; align-items:center; gap:.6rem; font-family: var(--display); font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.loader-track { margin-top: 1.5rem; height: 2px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.loader-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--violet), var(--violet-bright)); border-radius: 99px; transition: width .25s ease; }
.loader-pct { margin-top: .85rem; font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; color: rgba(255,255,255,.75); letter-spacing: .04em; font-size: .9rem; }
.loader-cue { margin-top: .35rem; font-size: .72rem; color: rgba(185,169,255,.65); letter-spacing: .18em; text-transform: uppercase; }

/* mark glyph — a small pulse waveform */
.mark-glyph { width: 26px; height: 26px; }
.mark-glyph path { stroke: var(--violet-bright); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ─────────────────────────── Nav ─────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 120; transition: background .4s, backdrop-filter .4s, border-color .4s, color .4s; border-bottom: 1px solid transparent; color: #fff; }
.nav__inner { max-width: var(--maxw); margin-inline: auto; padding: 1rem clamp(1.25rem, 5vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav__brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.24rem; letter-spacing: -.01em; }
.nav__brand .mark-glyph { width: 22px; height: 22px; }
.nav__links { display: flex; gap: 1.9rem; }
.nav__links a { font-size: .9rem; font-weight: 500; opacity: .8; position: relative; padding: .25rem 0; transition: opacity .25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--violet-bright); transition: width .3s var(--ease-lux); }
.nav__links a:hover { opacity: 1; } .nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__login { font-size: .9rem; font-weight: 500; opacity: .82; }
.nav__login:hover { opacity: 1; }
.nav__cta { padding: .6rem 1.15rem; font-size: .88rem; }
.nav__burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.nav__burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }

/* scrolled state — neutral dark glass so white text stays legible over BOTH the
   dark cinematic sections and the bright product body (no light/dark text swap). */
.nav.is-scrolled { background: rgba(10,10,18,.74); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: rgba(255,255,255,.08); }
body.drawer-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.drawer-open .nav__burger span:nth-child(2) { opacity: 0; }
body.drawer-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); z-index: 110;
  background: rgba(12,10,24,.9); backdrop-filter: blur(20px) saturate(1.3);
  border-left: 1px solid var(--violet-line); color: #fff;
  transform: translateX(100%); transition: transform .45s var(--ease-lux);
  display: flex; flex-direction: column; justify-content: center; gap: 1.3rem; padding: 2rem;
}
body.drawer-open .drawer { transform: translateX(0); }
.drawer__links { display: flex; flex-direction: column; gap: 1rem; }
.drawer__links a { font-family: var(--display); font-size: 1.5rem; }
.drawer__links a:hover { color: var(--violet-soft); }

/* ─────────────────────────── Section frame ─────────────────────────── */
.section { position: relative; padding-block: var(--pad-section); }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.025em; }
.on-dark .section__title { color: #fff; }
.section__lead { margin-top: 1.1rem; font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.on-light .section__lead { color: var(--muted); }
.on-dark .section__lead { color: rgba(255,255,255,.68); }

/* ═══════════════════════════ HERO (assembly scrub) ═══════════════════════════ */
.hero { position: relative; height: 100vh; min-height: 640px; background: var(--void); color: #fff; overflow: hidden; }
.hero__stage { position: absolute; inset: 0; z-index: 0; }
#assemblyCanvas, #assemblyPoster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#assemblyPoster { opacity: 0; }
/* radial glow + vignette so the UI edges bed into the void and text stays legible */
.hero__glow { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, rgba(8,8,12,.92) 0%, rgba(8,8,12,.66) 30%, rgba(8,8,12,.18) 60%, rgba(8,8,12,0) 82%),
    linear-gradient(to bottom, rgba(8,8,12,.6) 0%, rgba(8,8,12,0) 22%, rgba(8,8,12,0) 55%, rgba(8,8,12,.88) 100%),
    radial-gradient(95% 75% at 70% 45%, transparent 42%, rgba(8,8,12,.35) 100%);
}
.hero__grain { position: absolute; inset: -50%; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px; }

.hero__content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero__copy { max-width: 760px; }
.hero__title { font-size: clamp(2.7rem, 7vw, 5.6rem); font-weight: 700; letter-spacing: -.035em; margin: 1.2rem 0 0; text-shadow: 0 2px 32px rgba(8,8,12,.7), 0 1px 3px rgba(8,8,12,.5); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title em { font-style: normal; color: transparent; background: linear-gradient(120deg, var(--violet-soft), var(--violet-bright) 50%, var(--violet)); -webkit-background-clip: text; background-clip: text; }
.hero__sub { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: rgba(255,255,255,.78); max-width: 44ch; text-shadow: 0 1px 16px rgba(8,8,12,.7); }
.hero__cta { margin-top: 2.1rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero__note { margin-top: 1.1rem; font-size: .84rem; color: rgba(255,255,255,.42); display: flex; align-items: center; gap: .5rem; }
.hero__scrollcue { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .55rem; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.hero__scrollcue-line { width: 1px; height: 38px; background: linear-gradient(var(--violet-bright), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100%{ transform: scaleY(.4); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* the pinned spacer gives the hero its scroll runway (set in JS to mode) */
.hero-spacer { height: 0; }

/* ═══════════════════════════ Social proof ═══════════════════════════ */
.proof { position: relative; background: linear-gradient(to bottom, var(--void) 0%, var(--void-2) 30%, #171526 62%, var(--paper) 100%); padding-block: clamp(4rem, 9vh, 7rem) clamp(5rem,11vh,8rem); text-align: center; color: #fff; }
.proof__label { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.proof__row { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.6rem, 4vw, 3.4rem); }
.proof__logo { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.4rem); letter-spacing: -.01em; color: #fff; opacity: .62; display: inline-flex; align-items: center; gap: .5rem; transition: opacity .3s; }
.proof__logo:hover { opacity: 1; }
.proof__logo svg { width: 20px; height: 20px; opacity: .8; }

/* ═══════════════════════════ FEATURES (signal interlude scrub) ═══════════════════════════ */
.features { position: relative; height: 100vh; min-height: 640px; background: var(--ink); color: #fff; overflow: hidden; }
.features__stage { position: absolute; inset: 0; z-index: 0; }
#signalCanvas, #signalPoster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#signalPoster { opacity: 0; }
.features__scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(8,8,14,.9) 0%, rgba(8,8,14,.5) 42%, rgba(8,8,14,.2) 70%, rgba(8,8,14,.55) 100%),
              linear-gradient(to bottom, rgba(8,8,14,.7), rgba(8,8,14,0) 24%, rgba(8,8,14,0) 70%, rgba(8,8,14,.7)); }
.features__inner { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; }
.features__head { position: absolute; top: clamp(5.5rem, 12vh, 8rem); left: 0; right: 0; }
.features__rail { width: 100%; max-width: 560px; }
.feature { position: absolute; max-width: 560px; opacity: 0; transform: translateY(30px); }
.feature__idx { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; color: var(--violet-soft); }
.feature__title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: .6rem 0 0; color: #fff; }
.feature__title span { color: transparent; background: linear-gradient(120deg, var(--violet-soft), var(--violet-bright)); -webkit-background-clip: text; background-clip: text; }
.feature__body { margin-top: 1.1rem; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.72); max-width: 42ch; }
.feature__meta { margin-top: 1.4rem; display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .9rem; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--ink-line); font-size: .82rem; color: rgba(255,255,255,.8); font-family: var(--mono); }
/* progress dots for the three features */
.features__dots { position: absolute; bottom: clamp(2rem,6vh,3.5rem); left: 0; right: 0; z-index: 3; display: flex; gap: .5rem; justify-content: center; }
.features__dot { width: 34px; height: 3px; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; }
.features__dot i { display: block; height: 100%; width: 0; background: var(--violet-bright); }

/* ═══════════════════════════ METRICS (counters) ═══════════════════════════ */
.metrics { background: var(--paper); }
.metrics__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.5rem); }
.metric { padding: 2rem 0; border-top: 1px solid var(--line); }
.metric__num { font-family: var(--display); font-weight: 600; font-size: clamp(2.8rem, 6vw, 4.4rem); letter-spacing: -.03em; color: var(--slate); line-height: 1; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; }
.metric__num .u { color: var(--violet); margin-left: .06em; }
.metric__label { margin-top: .9rem; font-size: .98rem; color: var(--muted); max-width: 22ch; }

/* ═══════════════════════════ PRODUCT MOCKUP ═══════════════════════════ */
.showcase { background: linear-gradient(to bottom, var(--paper) 0%, var(--paper-2) 100%); overflow: hidden; }
.browser { max-width: 980px; margin: 3rem auto 0; border-radius: var(--radius-lg); background: #14121f; box-shadow: var(--shadow-float); border: 1px solid rgba(124,92,255,.2); overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.1rem; background: #1b1930; border-bottom: 1px solid rgba(255,255,255,.06); }
.browser__dots { display: flex; gap: .45rem; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.browser__dots i:nth-child(1){ background:#ff5f57; } .browser__dots i:nth-child(2){ background:#febc2e; } .browser__dots i:nth-child(3){ background:#28c840; }
.browser__url { flex: 1; text-align: center; font-family: var(--mono); font-size: .78rem; color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); border-radius: 8px; padding: .35rem .8rem; max-width: 320px; margin-inline: auto; }
.browser__shot { position: relative; }
.browser__shot img { width: 100%; display: block; }
.browser__badge { position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 99px; background: rgba(10,8,20,.6); backdrop-filter: blur(8px); border: 1px solid var(--violet-line); color: #fff; font-size: .78rem; font-family: var(--mono); }

/* ═══════════════════════════ PRICING ═══════════════════════════ */
.pricing { background: var(--paper-2); }
.pricing__toggle { display: inline-flex; align-items: center; gap: .9rem; margin: 1.6rem auto 0; padding: .4rem; background: var(--card); border: 1px solid var(--line); border-radius: 99px; box-shadow: var(--shadow-card); }
.pricing__toggle button { border: none; background: transparent; cursor: pointer; padding: .55rem 1.1rem; border-radius: 99px; font-weight: 600; font-size: .9rem; color: var(--muted); transition: color .3s, background .3s; position: relative; }
.pricing__toggle button.is-active { color: #fff; }
.pricing__slider { position: absolute; z-index: 0; }
.pricing__toggle { position: relative; }
.pricing__pill { position: absolute; top: .4rem; bottom: .4rem; left: .4rem; width: calc(50% - .4rem); border-radius: 99px; background: linear-gradient(135deg, var(--violet-bright), var(--violet-deep)); transition: transform .4s var(--ease-lux); z-index: 0; }
.pricing__toggle[data-plan="annual"] .pricing__pill { transform: translateX(100%); }
.pricing__toggle button { position: relative; z-index: 1; }
.pricing__save { font-size: .74rem; font-weight: 600; color: var(--violet-deep); background: rgba(124,92,255,.12); padding: .2rem .5rem; border-radius: 6px; }

.pricing__grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; transition: transform .35s var(--ease-lux), box-shadow .35s; }
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.tier--featured { background: linear-gradient(180deg, #17132c 0%, #0f0c20 100%); color: #fff; border-color: transparent; box-shadow: var(--glow-violet); transform: translateY(-10px) scale(1.015); }
.tier--featured:hover { transform: translateY(-14px) scale(1.015); }
.tier__flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--violet-bright), var(--violet-deep)); padding: .35rem .9rem; border-radius: 99px; box-shadow: 0 8px 20px -8px rgba(124,92,255,.7); }
.tier__name { font-family: var(--display); font-weight: 600; font-size: 1.16rem; }
.tier--featured .tier__name { color: #fff; }
.tier__desc { margin-top: .4rem; font-size: .88rem; color: var(--muted); min-height: 2.6em; }
.tier--featured .tier__desc { color: rgba(255,255,255,.62); }
.tier__price { margin-top: 1.4rem; display: flex; align-items: baseline; gap: .3rem; }
.tier__amt { font-family: var(--display); font-weight: 700; font-size: 3rem; letter-spacing: -.03em; color: var(--slate); font-variant-numeric: tabular-nums; }
.tier--featured .tier__amt { color: #fff; }
.tier__per { font-size: .9rem; color: var(--muted); }
.tier--featured .tier__per { color: rgba(255,255,255,.6); }
.tier__cycle { margin-top: .25rem; font-size: .8rem; color: var(--muted); min-height: 1.1em; }
.tier--featured .tier__cycle { color: rgba(255,255,255,.55); }
.tier__cta { margin-top: 1.5rem; width: 100%; }
.tier__feats { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .75rem; }
.tier__feats li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--slate-2); }
.tier--featured .tier__feats li { color: rgba(255,255,255,.82); }
.tier__feats svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--violet); }
.tier--featured .tier__feats svg { color: var(--violet-soft); }

/* ═══════════════════════════ FAQ ═══════════════════════════ */
.faq { background: var(--paper); }
.faq__list { max-width: 780px; margin: 3rem auto 0; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem 0; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: var(--slate); }
.faq__icon { flex: none; position: relative; width: 20px; height: 20px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--violet); border-radius: 2px; transition: transform .35s var(--ease-lux), opacity .35s; }
.faq__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq__icon::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__a { overflow: hidden; height: 0; }
.faq__a-inner { padding: 0 0 1.6rem; color: var(--muted); font-size: 1rem; max-width: 62ch; }

/* ═══════════════════════════ FINAL CTA ═══════════════════════════ */
.final { position: relative; background: var(--void); color: #fff; overflow: hidden; text-align: center; padding-block: clamp(6rem, 15vh, 11rem); }
.final__aurora { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 50% 12%, rgba(124,92,255,.4) 0%, transparent 60%),
    radial-gradient(40% 50% at 18% 90%, rgba(91,63,214,.35) 0%, transparent 60%),
    radial-gradient(45% 55% at 85% 80%, rgba(157,134,255,.25) 0%, transparent 60%);
  filter: saturate(1.1); }
.final__grain { position: absolute; inset: -50%; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 140px; }
.final__inner { position: relative; z-index: 2; max-width: 720px; margin-inline: auto; }
.final__title { font-size: clamp(2.4rem, 6vw, 4.3rem); font-weight: 700; letter-spacing: -.03em; }
.final__title em { font-style: normal; color: transparent; background: linear-gradient(120deg, var(--violet-soft), var(--violet-bright)); -webkit-background-clip: text; background-clip: text; }
.final__lead { margin: 1.3rem auto 0; font-size: 1.15rem; color: rgba(255,255,255,.72); max-width: 46ch; }
.final__cta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.final__note { margin-top: 1.3rem; font-size: .84rem; color: rgba(255,255,255,.42); }

/* ═══════════════════════════ Footer ═══════════════════════════ */
.footer { background: var(--void); color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.08); padding-top: 3.5rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.2rem; padding-bottom: 2.6rem; }
.footer__brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: #fff; }
.footer__brand .mark-glyph { width: 22px; height: 22px; }
.footer__tag { margin-top: .9rem; font-size: .92rem; color: rgba(255,255,255,.55); max-width: 30ch; }
.footer__col h4 { font-family: var(--body); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--violet-soft); margin-bottom: 1rem; }
.footer__col a { display: block; color: rgba(255,255,255,.62); font-size: .92rem; margin-bottom: .6rem; transition: color .25s; }
.footer__col a:hover { color: #fff; }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: rgba(255,255,255,.42); flex-wrap: wrap; }
.footer__demo { color: rgba(157,134,255,.6); }

/* ═══════════════════════════ Reveal states ═══════════════════════════ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-lux), transform .9s var(--ease-lux); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-line > span { transform: translateY(110%); transition: transform 1s var(--ease-lux); display: block; }
.reveal-line.is-in > span { transform: none; }
[data-stagger] > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-lux), transform .8s var(--ease-lux); transition-delay: calc(var(--i, 0) * 80ms); }
[data-stagger].is-in > * { opacity: 1; transform: none; }

/* ═══════════════════════════ Mode: scrub (desktop film) ═══════════════════════════ */
/* The pinned hero timeline drives the copy directly, frame-by-frame with scroll —
   so kill the IntersectionObserver reveal transitions inside the hero (they'd smear
   a scrubbed value) and let JS own opacity/transform/blur. */
body.mode-scrub .hero .reveal { transition: none; }
body.mode-scrub .hero .reveal-line > span { transform: none; transition: none; }
body.mode-scrub .hero__copy > * { opacity: 0; }

/* ═══════════════════════════ Mode: flat (mobile / reduced / low-power) ═══════════════════════════ */
/* No canvas, no frame downloads — posters carry the visuals and the pinned zones
   collapse into normal stacked sections. */
body.mode-flat #assemblyPoster, body.mode-flat #signalPoster { opacity: 1; }
body.mode-flat .hero { height: auto; min-height: auto; padding: 7.5rem 0 3.5rem; }
body.mode-flat .hero__content { height: auto; justify-content: flex-start; }
/* darken the bright dashboard poster enough for stacked text on small screens */
body.mode-flat .hero__glow { background: linear-gradient(to bottom, rgba(8,8,12,.86) 0%, rgba(8,8,12,.5) 42%, rgba(8,8,12,.92) 100%); }
body.mode-flat .features__scrim { background: linear-gradient(to bottom, rgba(8,8,14,.6), rgba(8,8,14,.82)); }
body.mode-flat .features { height: auto; min-height: auto; padding-block: var(--pad-section); }
body.mode-flat .features__inner { display: block; }
body.mode-flat .features__head { position: relative; top: auto; margin-bottom: 2rem; }
body.mode-flat .features__rail { max-width: none; }
body.mode-flat .feature { position: relative; opacity: 1; transform: none; margin-bottom: 2.4rem; max-width: 42rem; }
body.mode-flat .features__dots { display: none; }
body.mode-flat .hero__scrollcue { display: none; }

/* ═══════════════════════════ Responsive ═══════════════════════════ */
@media (max-width: 940px) {
  .nav__links, .nav__login { display: none; }
  .nav__burger { display: flex; }
  .metrics__grid { grid-template-columns: 1fr; gap: 0; }
  .metric { padding: 1.6rem 0; }
  .pricing__grid { grid-template-columns: 1fr; gap: 1.6rem; max-width: 460px; margin-inline: auto; }
  .tier--featured { transform: none; } .tier--featured:hover { transform: translateY(-4px); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .feature { position: relative; opacity: 1; transform: none; margin-bottom: 2rem; }
}
@media (max-width: 620px) {
  .footer__inner { grid-template-columns: 1fr; }
  .hero__cta .btn, .final__cta .btn { flex: 1 1 auto; }
  .proof__row { gap: 1.2rem 1.8rem; }
}

/* ═══════════════════════════ Reduced motion ═══════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .reveal-line > span { transform: none !important; }
  .feature { opacity: 1 !important; transform: none !important; position: relative !important; margin-bottom: 2rem; }
}
