/* ============================================================
   FOOTAGEN.AI — marketing site
   Brand: dark slate-blue stage, ember accent, Space Grotesk
   ============================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Courier Prime';
  src: url('assets/fonts/courier-prime-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Courier Prime';
  src: url('assets/fonts/courier-prime-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: hsl(206 30% 8%);
  --bg-raised: hsl(205 28% 12%);
  --bg-panel: hsl(205 26% 16%);
  --ink: hsl(0 0% 98%);
  --ink-dim: hsl(207 18% 72%);
  --ink-faint: hsl(207 14% 52%);
  --ember: hsl(7 100% 64%);
  --ember-deep: hsl(7 90% 52%);
  --line: hsl(205 22% 24%);
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.8,.26,.99);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.mono { font-family: 'Courier Prime', monospace; letter-spacing: .08em; }
em { font-style: normal; color: var(--ember); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  color: hsl(206 40% 8%);
  box-shadow: 0 6px 28px hsl(7 100% 60% / .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px hsl(7 100% 60% / .5); }
.btn-ghost {
  border: 1px solid hsl(0 0% 100% / .25);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: hsl(0 0% 100% / .6); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: 13.5px; }
.btn-lg { padding: 18px 44px; font-size: 17px; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: hsl(206 30% 8% / .82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .14em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.nav-brand-icon {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 7px;
}
.nav-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
  white-space: nowrap;
}
.nav-brand-copy strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.nav-brand-copy small {
  display: block;
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .18em;
}
.logo-mark {
  width: 12px; height: 12px;
  background: var(--ember);
  border-radius: 2px;
  box-shadow: 0 0 14px hsl(7 100% 60% / .8);
}
.logo-dim { color: var(--ink-faint); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 14px;
  color: var(--ink-dim);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  perspective: 1400px;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
  will-change: transform;
}
.hero-grade {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 110%, hsl(7 90% 35% / .28), transparent 55%),
    linear-gradient(180deg, hsl(206 30% 8% / .85) 0%, hsl(206 30% 8% / .35) 30%, hsl(206 30% 8% / .55) 70%, hsl(206 30% 8% / .96) 100%);
}
.letterbox {
  position: relative;
  z-index: 2;
  background: hsl(0 0% 2%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 28px;
  min-height: 44px;
}
.letterbox-top { min-height: 26px; padding: 0; }
.lb-meta { font-size: 11px; color: hsl(0 0% 100% / .45); letter-spacing: .2em; }
.lb-meta.dim { color: hsl(7 100% 64% / .8); }
.rec { display: inline-flex; align-items: center; gap: 7px; }
.rec i {
  width: 8px; height: 8px;
  background: var(--ember);
  border-radius: 50%;
  animation: blink 1.4s steps(1) infinite;
}
@keyframes blink { 50% { opacity: .15; } }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 140px 24px 80px;
  width: 100%;
  will-change: transform, filter;
}
.kicker {
  font-size: 12.5px;
  letter-spacing: .14em;
  color: var(--ember);
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(44px, 7.2vw, 96px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-dim);
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* staggered hero reveal */
.hero .reveal { transition-delay: .1s; }
.hero .reveal:nth-child(2) { transition-delay: .25s; }
.hero .reveal:nth-child(3) { transition-delay: .4s; }
.hero .reveal:nth-child(4) { transition-delay: .55s; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-raised);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 36px;
  width: max-content;
  white-space: nowrap;
  animation: scroll 38s linear infinite;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ink-faint);
  align-items: center;
}
.marquee-track i { color: var(--ember); font-style: normal; font-size: 9px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 130px 0; }
.section-dark {
  background:
    radial-gradient(80% 60% at 80% 0%, hsl(7 80% 30% / .12), transparent 60%),
    var(--bg-raised);
  border-block: 1px solid var(--line);
}
.section-title {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.018em;
  margin-bottom: 26px;
  text-wrap: balance;
}
.section-sub {
  color: var(--ink-dim);
  max-width: 660px;
  font-size: 18px;
  margin-bottom: 60px;
}

/* ---------- compare ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-top: 50px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-raised);
}
.compare-col { padding: 40px 38px; }
.compare-label { font-size: 12px; letter-spacing: .25em; margin-bottom: 24px; }
.compare-bad .compare-label { color: var(--ink-faint); }
.compare-good { background: hsl(205 26% 14%); }
.compare-good .compare-label { color: var(--ember); }
.compare ul { list-style: none; display: grid; gap: 16px; }
.compare li { padding-left: 28px; position: relative; color: var(--ink-dim); }
.compare-bad li::before {
  content: '✕';
  position: absolute; left: 0;
  color: var(--ink-faint);
  font-size: 13px;
}
.compare-good li { color: var(--ink); }
.compare-good li::before {
  content: '◆';
  position: absolute; left: 0;
  color: var(--ember);
  font-size: 11px;
  top: 5px;
}
.compare-divider {
  display: flex;
  align-items: center;
  padding: 0 4px;
  position: relative;
}
.compare-divider::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: var(--line);
}
.compare-divider span {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  color: var(--ink-faint);
}

/* ---------- pipeline sticky scroller ----------
   Static by default. The sticky pin only engages where the pinned grid
   actually fits the viewport, so short windows scroll it normally instead
   of trapping content below the fold. */
.pipe-scroller { position: relative; }
@media (min-width: 1021px) and (min-height: 800px) {
  .pipe-scroller { height: 250vh; }
  .pipe-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  .pipe-sticky .pipeline { width: 100%; }
}

/* ---------- pipeline ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px;
  align-items: start;
  margin-top: 30px;
}
.pipe-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.pipe-step::before {
  content: attr(data-step);
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--ember);
}
.pipe-step h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.pipe-step > p { font-size: 13.5px; color: var(--ink-dim); line-height: 1.5; }

.pipe-frame {
  aspect-ratio: 4 / 3;
  background: hsl(206 30% 9%);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: border-color .3s, transform .3s var(--ease);
}
.pipe-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Placeholder shown until a screenshot is dropped in. It disappears on its
   own the moment the frame contains an <img>, so adding the real asset
   needs no CSS change. */
.pipe-frame:not(:has(img))::after {
  content: attr(data-shot);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-align: center;
  font-family: 'Courier Prime', monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--ink-faint);
  background:
    repeating-linear-gradient(
      to bottom,
      hsl(206 30% 11% / .5) 0 2px,
      transparent 2px 4px
    );
}
.pipe-step:hover .pipe-frame {
  border-color: hsl(7 80% 50% / .55);
  transform: translateY(-4px);
}

/* Shared by the showcase card scan sweep (.sc-scan). */
@keyframes scan { 0% { top: -40%; } 100% { top: 100%; } }

/* ---------- demo player ---------- */
.demo-player {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: hsl(0 0% 2%);
  box-shadow: 0 30px 80px hsl(0 0% 0% / .5);
}
.demo-player[hidden] { display: none; }
.demo-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: 11px;
  letter-spacing: .22em;
  color: hsl(0 0% 100% / .45);
  border-bottom: 1px solid hsl(0 0% 100% / .07);
}
.demo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px hsl(7 100% 60% / .8);
}
.demo-bar-right { margin-left: auto; }
.demo-stage {
  position: relative;
  aspect-ratio: 21 / 9;
  background: hsl(206 30% 6%);
}
.demo-stage video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.demo-stage.playing video { cursor: pointer; }
.demo-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  color: hsl(206 40% 8%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), box-shadow .3s, opacity .4s;
  box-shadow: 0 10px 50px hsl(7 100% 60% / .45);
}
.demo-play svg { margin-left: 4px; }
.demo-play:hover { transform: scale(1.08); box-shadow: 0 14px 70px hsl(7 100% 60% / .6); }
.demo-play-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid hsl(7 100% 64% / .5);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(.9); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
.demo-stage.playing .demo-play {
  opacity: 0;
  pointer-events: none;
}

/* ---------- pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
  align-items: stretch;
  perspective: 1600px;
}
.pricing-fx .plan {
  opacity: 0;
  transform-origin: bottom center;
  transform: perspective(1200px) rotateX(-58deg) translateY(30px);
  transition: opacity .6s var(--ease), transform .65s var(--ease);
}
.pricing-fx.flip-in .plan { opacity: 1; transform: none; }
.pricing-fx.flip-in .plan:nth-child(1) { transition-delay: 0s; }
.pricing-fx.flip-in .plan:nth-child(2) { transition-delay: .09s; }
.pricing-fx.flip-in .plan:nth-child(3) { transition-delay: .18s; }
.pricing-fx.flip-in .plan:nth-child(4) { transition-delay: .27s; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 28px;
  transition: border-color .3s, transform .3s var(--ease);
}
.plan:hover { border-color: hsl(207 20% 40%); transform: translateY(-4px); }
.plan-featured {
  background: linear-gradient(180deg, hsl(7 60% 16% / .55), var(--bg) 55%);
  border-color: hsl(7 80% 50% / .55);
  box-shadow: 0 24px 70px hsl(7 90% 40% / .18);
}
.plan-featured:hover { border-color: hsl(7 90% 58% / .8); }
.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  color: hsl(206 40% 8%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name {
  font-size: 13px;
  letter-spacing: .28em;
  color: var(--ink);
  margin-bottom: 10px;
}
.plan-featured .plan-name { color: var(--ember); }
.plan-desc {
  font-size: 13.5px;
  color: var(--ink-dim);
  min-height: 42px;
  margin-bottom: 18px;
}
.plan-price {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.plan-period {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-faint);
  margin-left: 6px;
  letter-spacing: 0;
}
.plan-btn { width: 100%; margin-bottom: 26px; }
.plan-features {
  list-style: none;
  display: grid;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.plan-features li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  color: var(--ink-dim);
}
.plan-features li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 9px;
  color: var(--ember);
}

/* ---------- features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 50px;
}
.feature {
  background: var(--bg);
  padding: 38px 34px;
  transition: background .3s;
}
.feature:hover { background: var(--bg-raised); }
.feature-num {
  display: block;
  color: var(--ember);
  font-size: 12px;
  letter-spacing: .3em;
  margin-bottom: 18px;
}
.feature h3 { font-size: 21px; font-weight: 600; margin-bottom: 12px; letter-spacing: -.01em; }
.feature p { color: var(--ink-dim); font-size: 15px; }

/* staggered features */
.features .feature:nth-child(2) { transition-delay: .08s; }
.features .feature:nth-child(3) { transition-delay: .16s; }
.features .feature:nth-child(4) { transition-delay: .08s; }
.features .feature:nth-child(5) { transition-delay: .16s; }
.features .feature:nth-child(6) { transition-delay: .24s; }

/* ---------- manifesto ---------- */
.manifesto {
  padding: 170px 0;
  text-align: center;
  background:
    radial-gradient(60% 80% at 50% 50%, hsl(7 80% 35% / .14), transparent 70%),
    var(--bg);
  border-block: 1px solid var(--line);
}
.manifesto-line {
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.02em;
}
.manifesto-sub {
  margin-top: 18px;
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 500;
  transition-delay: .2s;
}

/* ---------- who ---------- */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 50px;
}
.who-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 46px 42px;
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
  transition: border-color .3s, transform .3s var(--ease);
}
.who-card:hover { border-color: hsl(7 80% 50% / .5); transform: translateY(-4px); }
.who-card:nth-child(2) { transition-delay: .12s; }
.who-label { font-size: 11.5px; letter-spacing: .28em; color: var(--ember); margin-bottom: 22px; }
.who-card h3 { font-size: 26px; line-height: 1.2; font-weight: 600; margin-bottom: 16px; letter-spacing: -.01em; }
.who-card p { color: var(--ink-dim); }

/* ---------- cta ---------- */
.cta {
  padding: 150px 0 160px;
  text-align: center;
  background:
    radial-gradient(70% 100% at 50% 100%, hsl(7 90% 40% / .18), transparent 65%),
    var(--bg-raised);
  border-top: 1px solid var(--line);
}
.cta .kicker { margin-bottom: 18px; }
.cta-title {
  font-size: clamp(40px, 5.8vw, 76px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.cta .section-sub { margin: 0 auto 44px; }
.cta .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.footer {
  background: hsl(0 0% 2%);
  padding: 60px 0 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-tag { color: var(--ember); font-size: 11px; letter-spacing: .3em; margin-top: 12px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-faint); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { width: 100%; color: hsl(0 0% 100% / .25); font-size: 10.5px; letter-spacing: .2em; margin-top: 26px; }

/* ---------- hero pills ---------- */
.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-pill {
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

/* ---------- showcase / examples ---------- */
.showcase-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 30px auto 0;
  perspective: 1400px;
}
.showcase-portrait-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  perspective: 1400px;
}
.showcase-card { display: flex; flex-direction: column; gap: 10px; will-change: transform; }
.ratio-16-9 .showcase-placeholder { aspect-ratio: 16 / 9; }
.ratio-9-16 .showcase-placeholder { aspect-ratio: 9 / 16; width: 260px; }
.showcase-placeholder {
  position: relative;
  background: hsl(206 30% 9%);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s, transform .3s var(--ease);
  cursor: pointer;
}
.showcase-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: hsl(206 30% 6%);
}
.showcase-card:hover .showcase-placeholder { border-color: hsl(7 80% 50% / .5); transform: translateY(-4px); }
.sc-scan {
  position: absolute;
  inset-inline: 0;
  height: 35%;
  background: linear-gradient(180deg, transparent, hsl(205 30% 30% / .15), transparent);
  animation: scan 4s linear infinite;
}
.sc-label {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--ember);
  background: hsl(206 30% 8% / .8);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid hsl(7 80% 50% / .4);
  transition: opacity .2s;
}
.sc-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  color: inherit;
  background: linear-gradient(180deg, transparent 55%, hsl(206 30% 4% / .38));
  cursor: pointer;
  opacity: .55;
  transition: opacity .3s;
}
.showcase-card:hover .sc-overlay { opacity: .9; }
.sc-overlay:focus-visible { outline: 2px solid var(--ember); outline-offset: -4px; }
.showcase-placeholder.is-playing .sc-overlay,
.showcase-placeholder.is-playing .sc-label {
  opacity: 0;
  pointer-events: none;
}
.sc-play {
  font-size: 28px;
  color: var(--ink);
}
.showcase-meta {
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--ink-faint);
  padding-left: 4px;
}

/* ---------- who 6-card grid ---------- */
.who-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}
.who-grid-6 .who-card { padding: 34px 30px; }
.who-grid-6 .who-card h3 { font-size: 21px; }

/* ---------- genres marquee (reverse) ---------- */
.marquee-2 { border-top: none; }
.marquee-track-reverse { animation: scroll-reverse 42s linear infinite; }
@keyframes scroll-reverse { to { transform: translateX(50%); } }

/* ---------- production coverage figure ---------- */
.coverage { margin: 70px 0 0; }
.coverage-head {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ember);
  margin-bottom: 22px;
}
.coverage-frame {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}
.coverage-frame img {
  display: block;
  width: 100%;
  /* The stage labels are baked into the artwork. Below this width they stop
     being legible, so the frame scrolls sideways instead of shrinking them. */
  min-width: 760px;
  height: auto;
}
.coverage-note {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 62ch;
}

/* ---------- capability grid ---------- */
.capabilities { margin-top: 60px; }
.capabilities-head {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--ember);
  margin-bottom: 22px;
}
.capability-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.capability-grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-dim);
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.capability-grid li::before {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--ember);
  flex-shrink: 0;
}
.capability-grid li:hover {
  border-color: hsl(7 55% 38%);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ---------- features 2-column list ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin-top: 50px;
}
.feat-col { display: flex; flex-direction: column; gap: 0; }
.feat-item {
  display: flex;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.feat-item:first-child { padding-top: 0; }
.feat-dot {
  color: var(--ember);
  font-size: 10px;
  margin-top: 5px;
  flex-shrink: 0;
}
.feat-item strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.feat-item p { color: var(--ink-dim); font-size: 14px; margin: 0; }

/* ---------- enterprise row ---------- */
.enterprise-row {
  margin-top: 22px;
}
.enterprise-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 34px;
  background: hsl(205 26% 14%);
}
.enterprise-label {
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--ember);
  margin-bottom: 8px;
}
.enterprise-desc { color: var(--ink-dim); font-size: 15px; }

/* ---------- validation / stats ---------- */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 50px 0 60px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 36px 24px;
  background: hsl(205 26% 14%);
}
.stat-divider {
  width: 1px;
  align-self: stretch;
  background: var(--line);
}
.stat-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-plus { color: var(--ember); }
.stat-label { font-size: 11px; letter-spacing: .22em; color: var(--ink-faint); }

/* ---------- testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 28px;
  transition: border-color .3s;
}
.testimonial-card:hover { border-color: hsl(205 30% 38%); }
.testimonial-quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-dim);
  font-style: italic;
  margin-bottom: 18px;
}
.testimonial-author {
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--ink-faint);
}

/* ---------- faq accordion ---------- */
.faq {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  transition: background .2s;
  letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '＋';
  color: var(--ember);
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--bg-raised); }
.faq-item[open] summary { background: var(--bg-raised); }
.faq-body {
  padding: 0 28px 24px;
  background: var(--bg-raised);
}
.faq-body p {
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.65;
}
.faq-body a { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- legal ---------- */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.legal-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  background: hsl(205 26% 14%);
  transition: border-color .3s;
}
.legal-card:hover { border-color: hsl(205 30% 38%); }
.legal-badge {
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--ember);
  margin-bottom: 14px;
}
.legal-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.legal-card p { color: var(--ink-dim); font-size: 13.5px; line-height: 1.6; }
.legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.legal-link {
  color: var(--ink-dim);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.legal-link:hover { color: var(--ink); }
.legal-sep { color: var(--ink-faint); }

/* ---------- subscription / waitlist CTA ---------- */
.waitlist-cta {
  margin-top: 46px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.waitlist-note {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-faint);
}
.waitlist-note::before {
  content: '●';
  color: var(--ember);
  margin-right: 8px;
  font-size: 8px;
  vertical-align: middle;
}

/* ---------- waitlist modal ---------- */
.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.waitlist-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.waitlist-backdrop {
  position: absolute;
  inset: 0;
  background: hsl(0 0% 2% / .78);
  backdrop-filter: blur(6px);
}
.waitlist-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 40px 40px;
  box-shadow: 0 40px 100px hsl(0 0% 0% / .55);
  transform: translateY(18px) scale(.98);
  opacity: 0;
  transition: transform .35s var(--ease), opacity .3s var(--ease);
}
.waitlist-modal.open .waitlist-dialog {
  transform: none;
  opacity: 1;
}
.waitlist-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-dim);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.waitlist-close:hover { border-color: hsl(207 20% 40%); color: var(--ink); }

.waitlist-h {
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 6px 0 30px;
}

.wl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wl-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--ink-dim);
}
.wl-field input,
.wl-field select {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s;
}
.wl-field input:focus-visible,
.wl-field select:focus-visible {
  outline: none;
  border-color: var(--ember);
}
.wl-sublabel { font-size: 13.5px; color: var(--ink-dim); margin-bottom: 12px; }

.wl-type {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.wl-radio {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  transition: border-color .2s, background .2s;
}
.wl-radio input { accent-color: var(--ember); }
.wl-radio:has(input:checked) {
  border-color: hsl(7 80% 50% / .6);
  background: hsl(7 60% 16% / .35);
  color: var(--ink);
}

.wl-branch {
  border: none;
  padding: 18px 18px 4px;
  margin: 0 0 22px;
  background: hsl(206 30% 9%);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.wl-branch legend {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--ember);
  padding: 0 4px;
}
.wl-branch[hidden] { display: none; }

.wl-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.wl-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-dim);
  cursor: pointer;
}
.wl-check input { accent-color: var(--ember); width: 16px; height: 16px; flex-shrink: 0; }
.wl-check-standalone { margin-bottom: 18px; }

.wl-other-field { margin-top: -6px; }
.wl-other-field[hidden] { display: none; }

.wl-legal {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-faint);
  margin: 8px 0 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.wl-legal a { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }

/* Honeypot: off-screen rather than display:none, because some bots skip
   hidden fields but still fill positioned ones. Never focusable. */
.wl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wl-consent {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.wl-status {
  font-size: 13.5px;
  color: var(--ink-dim);
  min-height: 1.4em;
  margin-bottom: 6px;
}
.wl-status.is-error { color: var(--ember); }
.wl-status.is-ok { color: hsl(150 45% 60%); }

.wl-submit { width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .legal-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1020px) {
  .pipeline { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: 1fr 1fr; gap: 22px; }
  .who-grid-6 { grid-template-columns: 1fr 1fr; }
  .showcase-row { grid-template-columns: 1fr 1fr; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; }
  .stat-divider { width: auto; height: 1px; align-self: stretch; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .section { padding: 90px 0; }
  .pipeline { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .who-grid-6 { grid-template-columns: 1fr; }
  .showcase-row { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .enterprise-inner { flex-direction: column; align-items: flex-start; }
  .capability-grid { grid-template-columns: 1fr; }
  .demo-stage { aspect-ratio: 16 / 9; }
  .demo-play { width: 72px; height: 72px; }
  .letterbox { padding: 8px 16px; }
  .lb-meta { font-size: 9.5px; }
  .hero-content { padding: 120px 24px 60px; }
  .hero-pillars { gap: 8px; }
  .showcase-portrait-row { flex-wrap: nowrap; gap: 12px; }
  .showcase-card.ratio-9-16 { min-width: 0; }
  .ratio-9-16 .showcase-placeholder { width: min(42vw, 180px); }
  .waitlist-dialog { padding: 34px 22px 28px; border-radius: 16px; }
  .wl-row { grid-template-columns: 1fr; gap: 0; }
  .wl-check-grid { grid-template-columns: 1fr; }
  .wl-type { flex-direction: column; }
}
/* ============================================================
   EFFECTS v2 — cinematic layer
   ============================================================ */

/* ---------- view transitions (page navigation) ---------- */
@view-transition { navigation: auto; }

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  z-index: 2000;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain-shift .8s steps(2) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 2%); }
}

/* ---------- opening curtain ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.curtain::before,
.curtain::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 50.5%;
  background: hsl(0 0% 2%);
  z-index: 0;
}
.curtain::before { top: 0; animation: curtain-up .95s var(--ease) .55s both; }
.curtain::after { bottom: 0; animation: curtain-down .95s var(--ease) .55s both; }
@keyframes curtain-up { to { transform: translateY(-101%); } }
@keyframes curtain-down { to { transform: translateY(101%); } }
.curtain-meta {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: .3em;
  color: hsl(0 0% 100% / .5);
  animation: curtain-meta .45s ease .4s both;
}
@keyframes curtain-meta { to { opacity: 0; } }

/* ---------- hero cinematic intro ---------- */
.ht-line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.ht-in {
  display: inline-block;
  transform: translateY(112%);
  animation: ht-rise .95s var(--ease) 1.15s forwards;
  will-change: transform;
}
.ht-in-2 { animation-delay: 1.32s; }
@keyframes ht-rise { to { transform: translateY(0); } }

.kicker-type {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  border-right: 2px solid var(--ember);
  animation: type-in 1.1s steps(27) 1s forwards, caret-off .01s 2.7s forwards;
}
@keyframes type-in { to { max-width: 330px; } }
@keyframes caret-off { to { border-color: transparent; } }

.intro-fade {
  opacity: 0;
  transform: translateY(22px);
  animation: intro-fade .9s var(--ease) forwards;
}
.if-1 { animation-delay: 2.1s; }
.if-2 { animation-delay: 2.25s; }
.if-3 { animation-delay: 2.4s; }
@keyframes intro-fade { to { opacity: 1; transform: none; } }

/* ---------- pixel-mist title formation ---------- */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 1;
  transition: opacity .55s var(--ease);
}
.hero.pxfx-done .hero-canvas { opacity: 0; }
.hero.pxfx .ht-in {
  animation: none;
  transform: none;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.hero.pxfx.pxfx-done .ht-in { opacity: 1; }

/* ---------- timecode HUD ---------- */
.tc-hud {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border: 1px solid hsl(0 0% 100% / .14);
  border-radius: 8px;
  background: hsl(206 30% 8% / .72);
  backdrop-filter: blur(10px);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-dim);
  pointer-events: none;
  opacity: 0;
  translate: 0 12px;
  transition: opacity .5s var(--ease), translate .5s var(--ease);
}
.tc-hud.on { opacity: 1; translate: 0 0; }
.tc-rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ember);
}
.tc-rec i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
  animation: blink 1.4s steps(1) infinite;
}
#tc-time { color: var(--ink); font-variant-numeric: tabular-nums; }
.tc-fps { color: var(--ink-faint); }

/* ---------- word-by-word rack-focus title reveal ---------- */
.split .w {
  display: inline-block;
  perspective: 640px;
}
.split .wi {
  display: inline-block;
  filter: blur(15px);
  opacity: 0;
  transform: translateZ(-130px) scale(1.08);
  transition: filter .68s var(--ease), opacity .4s ease, transform .68s var(--ease);
  transition-delay: calc(var(--i) * 55ms);
  will-change: filter, transform, opacity;
}
.split.in .wi { filter: blur(0); opacity: 1; transform: none; }

/* ---------- pipeline scroll scrub ---------- */
.pipeline.scrub .pipe-step {
  opacity: .28;
  filter: saturate(.5) brightness(.85);
  transform: perspective(900px) rotateX(12deg) translateY(20px) scale(.96);
  transition: opacity .6s var(--ease), filter .6s var(--ease), transform .6s var(--ease);
}
.pipeline.scrub .pipe-step.lit { opacity: 1; filter: none; transform: none; }
.pipeline.scrub .pipe-step::before { transition: text-shadow .6s, color .6s; }
.pipeline.scrub .pipe-step.lit::before { text-shadow: 0 0 14px hsl(7 100% 60% / .9); }

/* ---------- 3D tilt + glare ---------- */
.tilt { position: relative; }
.tilt .glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
  background: radial-gradient(480px circle at var(--gx, 50%) var(--gy, 50%), hsl(0 0% 100% / .09), transparent 45%);
  z-index: 2;
}
.tilt:hover .glare { opacity: 1; }

/* ---------- FAQ smooth accordion ---------- */
.faq-body {
  padding: 0;
  transition: height .45s var(--ease);
  overflow: hidden;
}
.faq-body p { padding: 2px 28px 24px; }

/* ---------- marquee pause on hover ---------- */
.marquee:hover .marquee-track,
.marquee:hover .marquee-track-reverse { animation-play-state: paused; }

/* ---------- nav scrollspy ---------- */
.nav-links a { position: relative; }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px hsl(7 100% 60% / .9);
}

/* ---------- stat counters ---------- */
.stat-num span[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- ambient depth dust ---------- */
.dust-canvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* ---------- effects responsive ---------- */
@media (max-width: 720px) {
  .tc-hud { right: 12px; bottom: 12px; padding: 7px 10px; font-size: 9.5px; gap: 9px; }
}
@media (max-width: 1020px) {
  .pipe-scroller { height: auto; }
  .pipe-sticky { position: static; height: auto; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .marquee-track-reverse, .sc-scan, .rec i, .demo-play-ring { animation: none; }
  html { scroll-behavior: auto; }
  .grain, .curtain, .tc-hud, .hero-canvas, .dust-canvas { display: none !important; }
  .kicker-type { max-width: none; border-right: none; animation: none; }
  .ht-in { transform: none; animation: none; }
  .intro-fade { opacity: 1; transform: none; animation: none; }
  .split .wi { transform: none; filter: none; opacity: 1; transition: none; }
  .pipeline.scrub .pipe-step { opacity: 1; filter: none; transform: none; }
  .faq-body { transition: none; }
  .pipe-scroller { height: auto; }
  .pipe-sticky { position: static; height: auto; min-height: 0; }
  .waitlist-modal, .waitlist-dialog { transition: none; }
}
