@font-face {
  font-family: 'Marvin Visions';
  src: url('fonts/marvin-visions-big-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --base: #0b070d;
  --deep: #060408;
  --panel: #140e17;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --accent: #ee960d;
  --accent-line: #fca10f;
  --hover: #f1cb4d;
  --display: 'Marvin Visions', 'Arial Black', sans-serif;
  --body: 'Bricolage Grotesque', system-ui, sans-serif;
  --wrap: 1200px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-line); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--hover); }
code { font: 0.9em ui-monospace, monospace; background: rgba(255,255,255,.07); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--accent); color: #000; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ── Top bar: echoes the app's own tab bar ─────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(11, 7, 13, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 44px; width: auto; mix-blend-mode: screen; }
.topbar nav { display: flex; gap: 28px; margin-left: auto; }
.topbar nav a {
  font: 700 1.15rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
  color: var(--text); text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent;
}
.topbar nav a:hover { color: var(--hover); }
.topbar nav a.active { color: var(--accent); border-color: var(--accent); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1.2rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
  padding: 16px 26px; border-radius: 10px; text-decoration: none;
  background: var(--accent); color: #120a03; border: 2px solid var(--accent);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--hover); border-color: var(--hover); color: #120a03; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(238,150,13,.35); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--hover); border-color: var(--hover); box-shadow: none; }
.btn-sm { font-size: 1rem; padding: 11px 18px; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  max-width: 1400px; margin: 0 auto; padding: clamp(48px, 8vw, 110px) clamp(16px, 4vw, 40px) 48px;
}
.hero::before {
  content: ''; position: absolute; inset: -20% -40vw auto; height: 130%; z-index: -1;
  background:
    radial-gradient(60% 50% at 75% 40%, rgba(238,150,13,.22), transparent 70%),
    radial-gradient(40% 40% at 10% 20%, rgba(120,40,200,.22), transparent 70%);
}
.eyebrow, .kicker {
  font: 700 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--accent);
  margin: 0 0 16px;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .98; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
h1 span { color: var(--accent); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 22px 0 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.meta { color: var(--muted); font-size: .95rem; margin: 18px 0 0; }

.tv { margin: 0; }
.tv-screen {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 10px solid #18111c;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 40px 120px -20px rgba(238,150,13,.35), 0 30px 60px rgba(0,0,0,.6);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s ease;
}
.tv:hover .tv-screen { transform: none; }
.tv-screen::after { /* faint scanlines, a nod to the logo */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.12) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.tv figcaption { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 14px; }

.proof {
  grid-column: 1 / -1; list-style: none; padding: 22px 0 0; margin: 12px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line);
  color: var(--muted);
}
.proof b { color: var(--text); }

/* ── Sections ──────────────────────────────────────────────────── */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 40px) 0; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; margin-bottom: 44px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }
.small { font-size: .92rem; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps p { color: var(--muted); margin: 0 0 14px; }
.steps p b { color: var(--text); }
.num { display: block; font: 700 3rem/1 var(--display); color: var(--accent); margin-bottom: 18px; }

.needs { margin-top: 20px; background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius); }
.needs summary { cursor: pointer; padding: 20px 28px; font: 700 1.25rem/1 var(--display); text-transform: uppercase; }
.needs dl { margin: 0; padding: 0 28px 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 40px; }
.needs dl div { padding: 14px 0; border-top: 1px solid var(--line); }
.needs dt { font-weight: 800; }
.needs dd { margin: 4px 0 0; color: var(--muted); }

/* Tour */
.tour { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 24px; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 22px; }
.feature h3, .feature p { padding: 0 24px; }
.feature p { color: var(--muted); margin: 0; }
.feature.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 2fr; align-items: center; padding: 0; }
.feature.wide img { margin: 0; height: 100%; }
.feature.wide > div { padding: 32px 12px; }

.extras { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.extras li { color: var(--muted); padding-left: 18px; border-left: 3px solid var(--accent); }
.extras b { color: var(--text); display: block; }

/* Consoles */
.reel {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px;
  scrollbar-color: var(--accent) transparent;
}
.reel figure, .backdrops figure { margin: 0; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.reel figcaption, .backdrops figcaption { font: 700 1.1rem/1 var(--display); text-transform: uppercase; padding: 14px 16px; background: var(--deep); }
.backdrops figcaption span { font: 400 .85rem var(--body); text-transform: none; color: var(--muted); margin-left: 6px; }
.sub { margin: 56px 0 22px; font-size: 1.6rem; }
.backdrops { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.backdrops img { aspect-ratio: 4 / 3; object-fit: cover; }
.reel img { transition: transform .5s; }
.reel figure:hover img { transform: scale(1.05); }

/* Controller */
.pad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.pad-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.pad-row span { margin-left: 8px; color: var(--text); }
.pad-row.hold { grid-column: 1 / -1; }
kbd {
  font: 700 1rem/1 var(--display); min-width: 44px; height: 44px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid rgba(255,255,255,.16); border-bottom-width: 3px; border-radius: 22px; color: var(--accent-line);
}
.note { color: var(--muted); margin-top: 24px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-weight: 800; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font: 700 1.8rem/1 var(--display); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 22px; color: var(--muted); max-width: 60em; }

/* Closing */
.closing {
  text-align: center; margin: clamp(80px, 10vw, 140px) auto 0; padding: 80px clamp(16px, 4vw, 40px);
  background: url('img/hero.webp') center / cover no-repeat, var(--deep);
  border-block: 1px solid var(--line); position: relative;
}
.closing::before { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--base), rgba(11,7,13,.55) 30%, rgba(11,7,13,.55) 70%, var(--base)); }
.closing > * { position: relative; }
.closing h2 { margin: 0 auto 18px; max-width: none; }
.closing p { color: var(--muted); max-width: 36em; margin: 0 auto 28px; }
.closing .ctas { justify-content: center; }
.closing .meta { margin-top: 20px; }

.footer { max-width: var(--wrap); margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 64px; color: var(--muted); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 20px; }
.footer-links a { font: 700 1rem/1 var(--display); text-transform: uppercase; color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--hover); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .tv-screen { transform: none; }
  .steps, .extras { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-template-columns: 1fr; }
  .feature.wide > div { padding: 0 12px 24px; }
  .backdrops { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .topbar nav { display: none; }
  .topbar .btn-sm { margin-left: auto; }
  .proof, .steps, .extras, .tour, .pad, .needs dl { grid-template-columns: 1fr; }
  .backdrops { grid-template-columns: 1fr 1fr; }
  .reel { grid-auto-columns: 78%; }
  .tv-screen { border-width: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
