:root {
  --ink: #06050a;
  --ink-2: #0c0b12;
  --paper: #f4efe4;
  --paper-dim: #d9d1c2;
  --violet: #a78bfa;
  --violet-deep: #7c3aed;
  --cyan: #5eefff;
  --muted: #9b95ad;
  --line: rgba(244, 239, 228, 0.12);
  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-sans: "Satoshi", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--ink); color: var(--paper); }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 80;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  background: linear-gradient(to bottom, rgba(6,5,10,0.88), rgba(6,5,10,0));
  backdrop-filter: blur(10px);
}
.brand-island {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.2rem 0.7rem 0.2rem 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 11, 18, 0.72);
}
.x-follow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  max-height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--violet) 40%, transparent);
  text-decoration: none;
  overflow: hidden;
}
.x-follow-mark {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.x-follow-mark svg { width: 11px; height: 11px; max-width: 11px; max-height: 11px; fill: var(--paper); }
.x-follow-handle { display: none; font-size: 0.62rem; white-space: nowrap; padding-right: 0.5rem; color: var(--muted); }
@media (min-width: 1536px) {
  .x-follow-handle { display: inline; }
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 0.95rem;
}
.wordmark img { width: 22px; height: 22px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  text-decoration: none;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--cyan); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 7rem var(--pad) 4rem;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #06050a url("/assets/hero-poster.jpg") 28% 50% / cover no-repeat;
}
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 28% 50%;
}
.hero-copy {
  position: relative;
  z-index: 2;
  margin-left: auto;
  max-width: 34rem;
  padding: 1.5rem 0 1rem;
}
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  margin: 0 0 1rem;
}
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  margin: 0 0 1.1rem;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--paper-dim);
  max-width: 34ch;
  margin: 0 0 1.75rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: var(--cyan); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.fine {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0.85rem 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: tick 28s linear infinite;
}
@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

section { padding: clamp(4rem, 10vw, 8rem) var(--pad); }
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 1rem;
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 0.98;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split img {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
  border-radius: 4px;
}
.prose { max-width: 38rem; color: var(--paper-dim); font-size: 1.05rem; }
.prose p { margin: 0 0 1rem; }
.prose strong { color: var(--paper); font-weight: 600; }

.stat-slab {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--paper);
}
.stat span {
  display: block;
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 22ch;
  font-size: 0.92rem;
}

.film {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.beat {
  padding: 2rem var(--pad) 2.4rem 0;
  border-right: 1px solid var(--line);
}
.beat:last-child { border-right: 0; padding-right: 0; }
.beat em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.12em;
}
.beat h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  margin: 0.6rem 0 0.6rem;
}
.beat p { margin: 0; color: var(--muted); max-width: 28ch; }

.download {
  background: var(--paper);
  color: var(--ink);
  margin: 0 var(--pad) var(--pad);
  border-radius: 8px;
  padding: clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}
.download h2 { color: var(--ink); max-width: 12ch; }
.download p { color: #4a4458; max-width: 42ch; }
.download .btn-primary { background: var(--ink); color: var(--paper); }
.download .btn-primary:hover { background: var(--violet-deep); }
.download .btn-ghost { border-color: rgba(6,5,10,0.2); color: var(--ink); }
.dl-meta { font-size: 0.8rem; color: #6b6578; }

.faq { max-width: 46rem; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 0.7rem 0 0; }

.foot {
  padding: 2rem var(--pad) 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--line);
}
.foot a { color: var(--paper-dim); text-decoration: none; }
.foot a:hover { color: var(--cyan); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { align-items: end; min-height: 92svh; }
  .hero-copy { margin-left: 0; max-width: none; }
  .hero-media { background-position: 40% 50%; }
  .hero-media video { object-position: 40% 50%; }
  .split, .split.reverse, .stat-slab, .film, .download {
    grid-template-columns: 1fr;
  }
  .stat, .beat { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }
  .split img { height: 52vh; }
  h1 { font-size: clamp(2.6rem, 14vw, 4.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .hero-media video { animation: none !important; }
  .hero-media video { display: none; }
}
