:root {
  --bg: #0b0b0d;
  --surface: #141418;
  --line: #26262c;
  --text: #ececf0;
  --muted: #9b9ba6;
  --accent: #e8b04a;
  --accent-ink: #1a1306;
  --radius: 14px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; }
h1 em { color: var(--accent); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 600; color: var(--accent); margin: 0 0 14px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px); background: rgba(11, 11, 13, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 1.6rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: 0.92rem; }
.nav nav a:not(.btn) { color: var(--muted); }
.nav nav a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; border: 1px solid var(--accent); }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-small { padding: 7px 16px; font-size: 0.88rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Layout */
main > section { padding: clamp(56px, 9vw, 110px) clamp(16px, 4vw, 48px); max-width: 1280px; margin: 0 auto; }
.band { border-top: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p:not(.eyebrow) { color: var(--muted); margin: 14px 0 0; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.lede { color: var(--muted); font-size: 1.12rem; max-width: 34em; margin: 22px 0 0; }
.lede strong { color: var(--text); }
.hero-video { margin: 0; }
.hero-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: #000; }
figcaption, .credit { color: var(--muted); font-size: 0.82rem; margin-top: 10px; }

/* Compare */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button { font: inherit; font-size: 0.9rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.compare { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000;
  user-select: none; touch-action: pan-y; cursor: ew-resize; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp-off { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 44px; margin-left: -22px; display: grid; place-items: center; outline: none; }
.handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, 0.5); }
.handle span { position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
.handle span::before, .handle span::after { content: ""; position: absolute; top: 50%; border: 6px solid transparent; margin-top: -6px; }
.handle span::before { left: 7px; border-right-color: #222; }
.handle span::after { right: 7px; border-left-color: #222; }
.handle:focus-visible span { outline: 3px solid var(--accent); outline-offset: 2px; }
.tag { position: absolute; top: 14px; padding: 4px 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.tag-left { left: 14px; }
.tag-right { right: 14px; color: var(--accent); }
.mag { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.55); font-size: 0.82rem; color: #ddd; }
.mag b { color: var(--accent); font-size: 1.25rem; font-weight: 600; margin-right: 4px; }

/* Ladder */
.ladder { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ladder li { position: relative; }
.ladder img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ladder span { position: absolute; left: 10px; bottom: 10px; font-family: var(--serif); font-size: 1.7rem; line-height: 1; color: var(--accent); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }

/* Trailer */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.yt iframe, .yt-play, .yt-play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { padding: 0; cursor: pointer; background: none; }
.yt-play img { object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5); transition: transform 0.15s; }
.play::after { content: ""; position: absolute; left: 34px; top: 26px; border: 16px solid transparent; border-left: 24px solid var(--accent-ink); border-right: 0; }
.yt-play:hover .play { transform: scale(1.06); }

/* How / features */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps > div, .features > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps p, .features p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-weight: 600; margin-bottom: 16px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.wide { margin: 36px 0 0; }
.wide img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }

/* Get */
.get { display: flex; justify-content: center; }
.price-card { width: min(560px, 100%); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 5vw, 48px); }
.price { font-family: var(--serif); font-size: 4rem; line-height: 1; margin: 0; }
.soon { color: var(--accent); margin: 10px 0 22px; font-weight: 500; }
.specs { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.specs li { padding: 8px 0; border-top: 1px solid var(--line); }
.price-card .cta { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px clamp(16px, 4vw, 48px); text-align: center; color: var(--muted); font-size: 0.9rem; }
footer .fine { font-size: 0.78rem; max-width: 760px; margin: 10px auto 0; }

/* Docs page */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 16px 96px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 18px; }
.doc h2 { font-size: 1.9rem; margin: 52px 0 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.1rem; margin: 30px 0 10px; }
.doc p, .doc li { color: #cfcfd6; }
.doc strong { color: var(--text); }
.doc code { font-size: 0.88em; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.doc .table { overflow-x: auto; margin: 16px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); font-weight: 600; }
.doc td { color: #cfcfd6; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .ladder { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav nav a:not(.btn) { display: none; }
  .nav nav a[href="/docs"] { display: inline; }
  .steps, .features { grid-template-columns: 1fr; }
  .tag { font-size: 0.68rem; }
  .mag { font-size: 0.72rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
