:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --surface: #141417;
  --surface-2: #1a1a1e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f2f3;
  --text-2: #a8a8b0;
  --muted: #74747d;

  --accent: #ff3d00;
  --accent-2: #ff6d00;
  --pink: #ff4081;
  --blue: #40c4ff;
  --green: #69f0ae;
  --amber: #ffd740;
  --violet: #e040fb;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1160px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--font);
  --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.gh-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
  border: 1px solid var(--border-strong); background: var(--surface);
  padding: 7px 12px; border-radius: 999px;
  transition: border-color .2s, background .2s;
}
.gh-btn:hover { border-color: rgba(255,255,255,.3); background: var(--surface-2); }
.gh-count {
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
  padding-left: 8px; border-left: 1px solid var(--border-strong);
}

/* ── Buttons ── */
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-left { justify-content: flex-start; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 30px -10px rgba(255, 61, 0, .7);
}
.btn-primary:hover { background: #ff5a26; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 14px 40px -10px rgba(255, 61, 0, .85); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.05); }
.btn-light { background: #fff; color: #111; }
.btn-light:hover { background: #ececec; }
.btn-ghost-light { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }

/* ── Hero ── */
.hero { position: relative; padding: 96px 0 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 61, 0, .18), transparent 70%),
    radial-gradient(40% 40% at 15% 30%, rgba(224, 64, 251, .08), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, rgba(64, 196, 255, .08), transparent 70%);
}
.hero-bg::after {
  /* beat grid: one bar = 4 beats */
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 240px 100%, 60px 100%, 100% 60px;
  background-position: center top;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; text-align: center; max-width: 860px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2);
  padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgba(20,20,23,.7);
  margin-bottom: 28px; transition: border-color .2s, color .2s;
}
.eyebrow:hover { border-color: rgba(255,255,255,.3); color: var(--text); }
.eyebrow [data-version] { font-family: var(--mono); color: var(--text); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.eyebrow-sep { color: var(--muted); }
.eyebrow-arrow { transition: transform .2s; }
.eyebrow:hover .eyebrow-arrow { transform: translateX(3px); }

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.grad {
  background: linear-gradient(92deg, var(--accent) 0%, var(--pink) 45%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-2); max-width: 640px; margin: 0 auto 36px; }
.lead em { color: var(--text); font-style: normal; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.hero-note a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.hero-note a:hover { color: var(--text); }

/* product shot */
.shot-wrap { position: relative; margin-top: 64px; }
.shot-wrap::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 10%; bottom: -10%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 61, 0, .35), rgba(224, 64, 251, .15) 50%, transparent 75%);
  filter: blur(60px); z-index: 0; pointer-events: none;
}
.window {
  position: relative; z-index: 1;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0d0d0f;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6);
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; background: #19191c; border-bottom: 1px solid var(--border);
}
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #3a3a3f; }
.window-bar i:nth-child(1) { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin: 0 auto; transform: translateX(-30px); font-size: 12px; color: var(--muted); font-family: var(--mono); }
.window-body { position: relative; }
.demo-video { display: block; width: 100%; height: auto; background: #0b0b0d; }
.playhead {
  position: absolute; top: 5.5%; bottom: 7%; left: 23%;
  width: 2px; background: #fff; opacity: .85;
  box-shadow: 0 0 12px rgba(255,255,255,.7), 0 0 30px rgba(255, 61, 0, .6);
  animation: sweep 7s linear infinite;
}
@keyframes sweep {
  0% { left: 23%; opacity: 0; }
  5% { opacity: .85; }
  95% { opacity: .85; }
  100% { left: 78%; opacity: 0; }
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none; z-index: 2;
}

/* ── Strip ── */
.strip { padding: 56px 0 24px; position: relative; z-index: 3; }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.strip-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.strip-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; }
.strip-list li { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--text-2); opacity: .8; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 48px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--border); overflow: hidden;
}
.stat { background: var(--bg-2); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.stat span { font-size: 14px; color: var(--muted); }

/* ── Section heads ── */
section { position: relative; }
.watch, .features, .how, .audience, .devs, .faq { padding: 120px 0 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.kicker {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent); margin-bottom: 14px;
}
.section-head h2, .devs h2, .final h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.08; letter-spacing: -0.03em;
}
.section-sub { margin-top: 18px; color: var(--text-2); font-size: 1.08rem; }

/* ── Promo video ── */
.promo {
  position: relative; max-width: 1040px; margin: 0 auto;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border-strong); background: #0a0a0b;
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.9), 0 0 80px -20px rgba(255, 61, 0, .35);
}
.promo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0a0a0b; }
.promo-play {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px 14px 20px;
  border: 0; border-radius: 999px; cursor: pointer;
  font: 600 16px/1 var(--font); color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 16px 50px rgba(255, 61, 0, .5), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .2s;
}
.promo-play:hover { transform: translateX(-50%) scale(1.05); }
.promo-play:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ── Features ── */
.feature {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center;
  padding: 48px 0;
}
.feature + .feature { border-top: 1px solid var(--border); }
.feature-flip .feature-copy { order: 2; }
.feature-copy h3 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; margin: 14px 0 14px; }
.feature-copy > p { color: var(--text-2); font-size: 1.04rem; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: 6px; border: 1px solid currentColor;
}
.tag-pink { color: var(--pink); background: rgba(255,64,129,.08); }
.tag-blue { color: var(--blue); background: rgba(64,196,255,.08); }
.tag-green { color: var(--green); background: rgba(105,240,174,.08); }
.tag-amber { color: var(--amber); background: rgba(255,215,64,.08); }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--text); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 10px;
  border-radius: 2px; background: var(--surface-2); border: 1px solid var(--border-strong);
}
.ticks li::after {
  content: ''; position: absolute; left: 4px; top: 9px; width: 5px; height: 6px; border-radius: 1px;
  background: var(--accent);
}
.feature-media {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-strong); background: #0d0d0f;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
}
.feature-media-tall { max-width: 300px; justify-self: center; }

/* ── How ── */
.pipeline {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  counter-reset: none; position: relative;
}
.pipeline::before {
  content: ''; position: absolute; left: 12%; right: 12%; top: 46px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
}
.pipeline li {
  position: relative; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.pipe-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
  margin-bottom: 18px;
}
.pipe-icon svg { width: 20px; height: 20px; }
.pipeline li:nth-child(1) .pipe-icon { color: var(--pink); }
.pipeline li:nth-child(2) .pipe-icon { color: var(--blue); }
.pipeline li:nth-child(3) .pipe-icon { color: var(--green); }
.pipeline li:nth-child(4) .pipe-icon { color: var(--amber); }
.pipe-n { position: absolute; top: 24px; right: 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pipeline h3 { font-family: var(--display); font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.pipeline p { font-size: 14px; color: var(--text-2); }

/* ── Audience ── */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.aud { background: var(--bg); padding: 28px 24px; transition: background .2s; }
.aud:hover { background: var(--bg-2); }
.aud h3 { font-family: var(--display); font-size: 18px; margin-bottom: 8px; }
.aud p { font-size: 14px; color: var(--text-2); }

/* ── Developers ── */
.devs-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.devs-copy h2 { margin-bottom: 18px; }
.devs-copy > p:not(.kicker) { color: var(--text-2); font-size: 1.04rem; }
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.stack li { font-family: var(--mono); font-size: 12px; color: var(--text-2); padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--bg-2); }
.code { border: 1px solid var(--border-strong); border-radius: var(--radius); background: #0c0c0e; overflow: hidden; min-width: 0; }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.code-bar span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.copy {
  font: 500 12px var(--mono); color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--border-strong); padding: 4px 10px; border-radius: 6px; cursor: pointer;
}
.copy:hover { color: var(--text); }
.code pre { padding: 20px; overflow-x: auto; }
.code code { font-family: var(--mono); font-size: 13px; line-height: 1.85; color: #d6d6dc; }
.code .c { color: var(--muted); }
.code-note { padding: 0 20px 18px; font-size: 13px; color: var(--muted); }
.code-note code { font-size: 12px; color: var(--text-2); }

/* ── FAQ ── */
.faq-inner { max-width: 820px; }
.faq-list { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 20px; color: var(--muted); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--text); }
.faq details p { padding: 0 40px 24px 0; color: var(--text-2); }
.faq details a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ── Final CTA ── */
.final { padding: 120px 0; }
.final-inner {
  text-align: center; padding: 72px 24px; border-radius: 24px; position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, #ff3d00 0%, #ff1f6b 55%, #b02bd8 100%);
}
.final-inner img { margin: 0 auto 24px; width: 72px; height: 72px; padding: 10px; border-radius: 20px; background: #0a0a0b; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.final-inner p { color: rgba(255,255,255,.85); margin: 14px 0 32px; font-size: 1.1rem; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; font-family: var(--display); }
.footer-brand span { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.footer-links a, .footer-credit { font-size: 14px; color: var(--text-2); }
.footer-links a:hover, .footer-credit a:hover { color: var(--text); }
.footer-credit a { color: var(--text); }

/* ── Reveal ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .playhead { animation: none; display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .gh-btn { margin-left: auto; }
  .feature, .devs-inner { grid-template-columns: 1fr; gap: 32px; }
  .feature-flip .feature-copy { order: 0; }
  .pipeline, .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline::before { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wrap, .nav-inner { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 64px; }
  .eyebrow { font-size: 12px; }
  .eyebrow-sep, .eyebrow-free { display: none; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
  .shot-wrap { margin-top: 44px; }
  .window-bar span { display: none; }
  .pipeline, .aud-grid { grid-template-columns: 1fr; }
  .stat b { font-size: 24px; }
  .stat { padding: 18px; }
  .watch, .features, .how, .audience, .devs, .faq { padding-top: 88px; }
  .promo-play { bottom: 5%; gap: 6px; padding: 7px 14px 7px 11px; font-size: 13px; }
  .promo-play svg { width: 13px; height: 13px; }
  .section-head { margin-bottom: 40px; }
  .final { padding: 88px 0; }
  .final-inner { padding: 56px 20px; }
  .footer-links { margin-left: 0; }
}
