/* Glitch Stack: matte black, white type, one red. */
@font-face { font-family: 'Cinzel'; src: url('../fonts/cinzel-700-latin.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/manrope-variable-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #0A0A0A;
  --bg-2: #111110;
  --ink: #F2F2F0;
  --muted: #8C8C88;
  --dim: #5E5E5A;
  --line: #1F1F1D;
  --line-2: #2B2B28;
  --red: #E10600;
  --red-hot: #FF1F12;
  --serif: 'Cinzel', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --top-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.red { color: var(--red); }
.eyebrow { margin: 0 0 12px; font: 700 11px/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; color: var(--muted); }
.section-title { margin: 0 0 28px; font: 700 12px/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; color: var(--muted); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  background: linear-gradient(rgba(10,10,10,.92), rgba(10,10,10,0));
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.top.is-solid { background: rgba(10,10,10,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 34px; height: auto; color: var(--ink); }
.brand__word { font: 700 15px/1 var(--serif); letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; }
.top__buy {
  border: 1px solid var(--line-2); background: rgba(10,10,10,.6); border-radius: 999px;
  padding: 8px 16px; font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.top__buy:hover { border-color: var(--red); background: var(--red); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-areas: "head" "stage" "buy"; grid-template-rows: auto minmax(300px, 1fr) auto;
  padding-top: calc(var(--top-h) + env(safe-area-inset-top));
  background:
    radial-gradient(60% 45% at 50% 52%, rgba(225,6,0,.10), rgba(225,6,0,0) 70%),
    radial-gradient(120% 80% at 50% 40%, #121211 0%, var(--bg) 70%);
}
.hero__head { grid-area: head; text-align: center; padding: 6px var(--gutter) 0; position: relative; z-index: 2; }
.hero__head .eyebrow { margin-bottom: 8px; font-size: 10px; }
.hero__title { margin: 0; font: 700 clamp(26px, 7.4vw, 64px)/1.08 var(--serif); letter-spacing: .04em; }
.hero__lede { display: none; }

.stage { grid-area: stage; position: relative; min-height: 300px; outline: none; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.stage:focus-visible { box-shadow: inset 0 0 0 2px rgba(225,6,0,.6); }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity .9s ease; }
.stage.is-3d .stage__canvas { opacity: 1; }
.stage__canvas:active { cursor: grabbing; }
.stage__fallback { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.stage__fallback svg { width: min(56%, 300px); animation: hover 3.2s ease-in-out infinite; filter: drop-shadow(0 18px 40px rgba(225,6,0,.25)); }
.stage__fallback { transition: opacity .7s ease; }
.stage.is-3d .stage__fallback { opacity: 0; }
@keyframes hover { 50% { transform: translateY(-8px); } }

.stage__hint {
  position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); margin: 0; z-index: 3;
  display: flex; align-items: center; gap: 10px; white-space: nowrap; pointer-events: none;
  font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: opacity .6s ease, transform .6s ease;
}
.stage__hint.is-gone { opacity: 0; transform: translate(-50%, 6px); }
.stage__hand { width: 22px; height: 2px; background: currentColor; position: relative; animation: swipe 1.8s ease-in-out infinite; }
.stage__hand::after { content: ''; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
@keyframes swipe { 0%, 100% { transform: translateX(-6px); opacity: .4; } 50% { transform: translateX(6px); opacity: 1; } }

.stage__mode {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%); margin: 0; z-index: 3;
  padding: 7px 14px; border: 1px solid var(--red); color: var(--red-hot);
  font: 800 11px/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; white-space: nowrap;
  animation: blink .5s steps(2) infinite; background: rgba(10,10,10,.6);
}
.stage__mode[hidden] { display: none; }
@keyframes blink { 50% { opacity: .55; } }

.stage__controls {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(12,12,12,.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ctl { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background .2s; }
.ctl:hover { border-color: var(--ink); }
.ctl:active { background: var(--red); border-color: var(--red); }
.ctl svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.rpm { min-width: 66px; display: flex; align-items: baseline; justify-content: center; gap: 5px; font-variant-numeric: tabular-nums; }
.rpm b { font: 800 15px/1 var(--sans); }
.rpm small { font: 700 9px/1 var(--sans); letter-spacing: .2em; color: var(--muted); }
.stage.is-overdrive .rpm b { color: var(--red-hot); }
.ctl-sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 2px; }
.leds { display: flex; gap: 2px; }
.leds button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.leds button::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); opacity: .75; transition: transform .2s, opacity .2s; }
.leds button[aria-pressed="true"]::before { opacity: 1; transform: scale(1.15); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink), 0 0 14px var(--c); }

/* glitch mode: brief red/white channel split and a jolt */
.stage.is-glitch .stage__canvas { animation: glitch .2s steps(2, end) 1; }
@keyframes glitch {
  0%   { transform: translate(0, 0); filter: none; }
  30%  { transform: translate(-7px, 1px) skewX(-2deg); filter: drop-shadow(7px 0 0 rgba(225,6,0,.9)) drop-shadow(-5px 0 0 rgba(255,255,255,.45)); }
  65%  { transform: translate(6px, -1px); filter: drop-shadow(-6px 0 0 rgba(225,6,0,.9)) drop-shadow(5px 0 0 rgba(255,255,255,.35)); }
  100% { transform: translate(0, 0); filter: none; }
}
.stage.is-overdrive ~ .buy .buy__price, body.is-overdrive .brand__word { text-shadow: 2px 0 var(--red), -2px 0 rgba(255,255,255,.35); }

.stage.is-still .stage__controls, .stage.is-still .stage__hint { display: none; }
.stage.is-still .stage__canvas { transition: none; }

/* ---------- Buy box ---------- */
.buy { grid-area: buy; position: relative; z-index: 2; padding: 4px var(--gutter) calc(18px + env(safe-area-inset-bottom)); width: 100%; max-width: 520px; justify-self: center; }
.buy__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.buy__name { font: 700 15px/1 var(--serif); letter-spacing: .22em; text-transform: uppercase; }
.buy__price { font: 800 26px/1 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.buy__note { margin: 8px 0 0; min-height: 0; font-size: 13px; color: var(--red-hot); text-align: center; }
.buy__note:empty { display: none; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; border-radius: 4px; cursor: pointer;
  font: 800 14px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.button--buy { width: 100%; background: var(--red); color: #fff; box-shadow: 0 10px 34px rgba(225,6,0,.28); }
.button--buy:hover { background: var(--red-hot); box-shadow: 0 12px 40px rgba(225,6,0,.42); }
.button--buy:active { transform: translateY(1px) scale(.995); }
.button--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.button--ghost:hover { border-color: var(--red); color: #fff; background: var(--red); }
.button--wide { max-width: 420px; }

.perks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font: 600 12px/1.4 var(--sans); color: var(--muted); }
.perks li { display: flex; align-items: center; gap: 7px; }
.perks li::before { content: ''; width: 5px; height: 5px; background: var(--red); }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(2, 1fr); }
.strip li { padding: 18px 12px; text-align: center; font: 600 11px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip li:nth-child(2n) { border-right: 0; }
.strip li:nth-child(n+3) { border-bottom: 0; }
.strip b { color: var(--ink); font-weight: 800; }

/* ---------- Statement ---------- */
.statement { max-width: 980px; margin: 0 auto; padding: clamp(80px, 14vw, 160px) var(--gutter); text-align: center; }
.statement__big { margin: 0; font: 700 clamp(26px, 5.4vw, 54px)/1.18 var(--serif); letter-spacing: .02em; }
.statement__big--red { color: var(--red); margin-top: 10px; }
.statement__body { max-width: 600px; margin: 34px auto 0; color: var(--muted); font-size: 17px; }

/* ---------- Features ---------- */
.features { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter) clamp(80px, 12vw, 140px); }
.features__grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.feature { padding: 30px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; }
.feature__icon { width: 40px; height: 40px; grid-row: span 2; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: square; }
.feature h3 { margin: 4px 0 6px; font: 700 18px/1.2 var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Gift ---------- */
.gift { padding: clamp(80px, 12vw, 140px) var(--gutter); text-align: center; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gift__title { margin: 0 auto; max-width: 900px; font: 700 clamp(26px, 5vw, 50px)/1.2 var(--serif); letter-spacing: .02em; }
.gift__tags { list-style: none; margin: 34px auto 38px; padding: 0; max-width: 720px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gift__tags li { border: 1px solid var(--line-2); padding: 9px 14px; font: 700 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Details ---------- */
.details { max-width: 820px; margin: 0 auto; padding: clamp(80px, 12vw, 140px) var(--gutter) 0; }
.details__list { margin: 0; border-top: 1px solid var(--line); }
.details__list div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.details__list dt { font: 700 11px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.details__list dd { margin: 0; font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; padding: clamp(80px, 12vw, 140px) var(--gutter) 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 700 16px/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: linear-gradient(var(--ink), var(--ink)) center/12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 12px no-repeat; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); background: linear-gradient(var(--red), var(--red)) center/12px 2px no-repeat, linear-gradient(var(--red), var(--red)) center/2px 12px no-repeat; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 640px; }
.faq a { color: var(--ink); }

/* ---------- Final ---------- */
.final { padding: clamp(100px, 14vw, 170px) var(--gutter) clamp(90px, 12vw, 140px); text-align: center; }
.final__title { margin: 0; font: 700 clamp(26px, 5vw, 50px)/1.2 var(--serif); letter-spacing: .02em; }
.final__price { margin: 26px 0 22px; font: 800 34px/1 var(--sans); }
.final .button { width: 100%; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px var(--gutter) calc(84px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--dim); font-size: 13px; }
.foot__brand { font: 700 14px/1 var(--serif); letter-spacing: .26em; text-transform: uppercase; color: var(--ink); }
.foot__email { color: var(--muted); }

/* ---------- Sticky bar ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 14px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(10,10,10,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-2);
  transform: translateY(110%); transition: transform .35s ease;
}
.bar.is-on { transform: translateY(0); }
.bar__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bar__name { font: 700 13px/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.bar__sub { font: 600 11px/1 var(--sans); color: var(--muted); white-space: nowrap; }
.button--bar { width: auto; flex: 1; max-width: 300px; margin-left: auto; min-height: 48px; padding: 0 16px; font-size: 12px; letter-spacing: .16em; }

/* ---------- Bigger screens ---------- */
@media (min-width: 640px) {
  .strip ul { grid-template-columns: repeat(4, 1fr); }
  .strip li { border-bottom: 0; }
  .strip li:nth-child(2n) { border-right: 1px solid var(--line); }
  .strip li:last-child { border-right: 0; }
  .features__grid { grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .feature { border-top: 1px solid var(--line); border-bottom: 0; }
  .details__list div { grid-template-columns: 180px 1fr; gap: 20px; align-items: baseline; }
}

@media (min-width: 960px) {
  :root { --top-h: 72px; }
  .hero {
    grid-template-areas: "stage head" "stage buy";
    grid-template-columns: minmax(0, 1.25fr) minmax(380px, .75fr);
    grid-template-rows: 1fr 1fr;
    height: 100vh; height: 100svh; min-height: 640px; max-height: 1100px;
  }
  .stage { min-height: 0; }
  .hero__head { align-self: end; text-align: left; padding: 0 var(--gutter) 30px 0; }
  .hero__head .eyebrow { font-size: 11px; margin-bottom: 18px; }
  .hero__title { font-size: clamp(44px, 4.4vw, 68px); }
  .hero__lede { display: block; max-width: 420px; margin: 22px 0 0; color: var(--muted); font-size: 17px; }
  .buy { align-self: start; justify-self: start; max-width: 440px; padding: 0 var(--gutter) 0 0; }
  .buy__row { padding-top: 24px; border-top: 1px solid var(--line); }
  .perks { justify-content: flex-start; }
  .stage__hint { bottom: 76px; }
  .stage__controls { bottom: 26px; }
  .bar__text { flex-direction: row; align-items: baseline; gap: 14px; }
}

@media (max-width: 380px) {
  .brand__word { font-size: 13px; letter-spacing: .2em; }
  .stage__controls { gap: 5px; padding: 5px 6px; }
  .leds button { width: 22px; }
  .rpm { min-width: 56px; }
}

@media (max-height: 700px) and (max-width: 959px) {
  .hero__head .eyebrow { display: none; }
  .hero__title { font-size: 26px; }
  .stage__hint { bottom: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage__fallback svg, .stage__hand, .stage__mode { animation: none; }
  .stage.is-glitch .stage__canvas { animation: none; }
}
