/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --bg: #0c0b0a;
  --bg-2: #121010;
  --panel: #171514;
  --panel-2: #1d1a18;
  --line: rgba(255, 240, 225, 0.08);
  --line-2: rgba(255, 240, 225, 0.14);
  --text: #f2ece5;
  --muted: #9b938b;
  --faint: #5f5852;
  --accent: #ff7329;
  --accent-hi: #ffb27a;
  --accent-lo: #a8401a;
  --accent-rgb: 255, 115, 41;
  --radius: 10px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --display: "Archivo", "Inter", ui-sans-serif, system-ui, sans-serif;
  --pixel: "Silkscreen", "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: dark;
}
body[data-theme="amethyst"] { --accent: #a77bff; --accent-hi: #d6c2ff; --accent-lo: #5a35b8; --accent-rgb: 167, 123, 255; }
body[data-theme="vanilla"]  { --accent: #8bbf4a; --accent-hi: #cde8a6; --accent-lo: #4a7322; --accent-rgb: 139, 191, 74; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .6s;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
code { font-family: var(--mono); font-size: .88em; background: rgba(255,255,255,.06); padding: .12em .4em; border-radius: 5px; color: var(--text); }
::selection { background: var(--accent); color: #120a05; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.dim { color: var(--muted); }
.accent { color: var(--accent); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }


/* ───────────────────────── Embers canvas ───────────────────────── */
.embers {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none;
  transition: opacity .3s linear;
}
main, .footer { position: relative; z-index: 1; }

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(12, 11, 10, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); padding-top: 12px; padding-bottom: 12px; border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 125%; font-weight: 700; letter-spacing: .22em; font-size: 14px; }
.nav__brand svg { width: 26px; color: var(--accent); transition: transform .6s var(--ease); }
.nav__brand:hover svg { transform: rotate(-30deg); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { position: relative; padding: 8px 12px; font-size: 14px; color: var(--muted); transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__links a:hover, .nav__links a.is-current { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__gh { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); border-radius: 10px; transition: color .2s, background .2s; }
.nav__gh:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav__gh svg { width: 18px; }
.nav__burger { display: none; width: 40px; height: 40px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:first-child { top: 15px; } .nav__burger span:last-child { top: 24px; }
.nav.is-open .nav__burger span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  --h: 44px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px; border-radius: 8px; font-weight: 600; font-size: 15px;
  transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease), box-shadow .3s;
  white-space: nowrap; isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; }
.btn--sm { --h: 36px; padding: 0 14px; font-size: 14px; border-radius: 7px; }
.btn--lg { --h: 52px; padding: 0 24px; font-size: 16px; border-radius: 8px; }
.btn--accent { background: var(--accent); color: #140904; }
.btn--accent:hover { background: var(--accent-hi); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
body[data-theme="amethyst"] .btn--accent { color: #10071f; }

/* ───────────────────────── Shared type ───────────────────────── */
.h2 { font-family: var(--display); font-stretch: 112%; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 700; margin: 0; max-width: 16ch; text-wrap: balance; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section-sub { color: var(--muted); max-width: 46ch; font-size: 17px; margin: 22px 0 0; }
.section-head--row .section-sub { margin: 0; }
section { padding: clamp(96px, 14vw, 180px) 0; position: relative; }


/* ───────────────────────── Hero ───────────────────────── */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero__inner { position: relative; }
.hero__meta { color: var(--muted); margin: 0 0 28px; }
.hero__title { font-family: var(--display); font-stretch: 115%; font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.03em; font-weight: 800; margin: 0; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .08s; }
.hero__title .line:nth-child(3) > span { transition-delay: .16s; }
.hero__title .line:nth-child(4) > span { transition-delay: .24s; color: var(--accent); }
body.is-ready .hero__title .line > span { transform: none; }
.hero__lede { font-size: clamp(17px, 1.5vw, 20px); color: #c9c0b7; max-width: 44ch; margin: 34px 0 0; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 38px; }
.hero__fine { color: var(--faint); margin: 22px 0 0; }

/* ───────────────────────── Manifesto ───────────────────────── */
.manifesto { min-height: 120vh; display: flex; align-items: center; }
.manifesto__grid { max-width: var(--wrap); }
.manifesto__text { font-size: clamp(1.7rem, 3.6vw, 3.2rem); line-height: 1.14; letter-spacing: -.03em; font-weight: 600; margin: 0; max-width: 24ch; }
.manifesto__text .mw { color: var(--text); opacity: .14; transition: opacity .25s linear, color .4s; }
.manifesto__text .mw.on { opacity: 1; }
.manifesto__text .mw.hl.on { color: var(--accent); }

/* ───────────────────────── Numbers ───────────────────────── */
.numbers { background: linear-gradient(to bottom, transparent, var(--bg) 18%); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 28px 30px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat__val { font-family: var(--display); font-stretch: 105%; font-size: clamp(2.4rem, 4.4vw, 4rem); font-weight: 650; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__val small { font-size: .38em; letter-spacing: 0; color: var(--muted); font-weight: 500; margin-left: .25em; }
.stat__val .dim { font-weight: 400; margin: 0 .05em; }
.stat__label { color: var(--muted); margin-top: 14px; font-size: 14.5px; min-height: 3.1em; }
.stat__bar { margin-top: 22px; height: 2px; background: var(--line); }
.stat__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 1.6s var(--ease) .3s; }
.stat.is-in .stat__bar i { width: var(--w); }

.lagometer { margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18,16,16,.7); padding: 18px 20px 14px; }
.lagometer__head { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 12px; }
.lagometer__head b { color: var(--text); font-weight: 500; }
.lagometer canvas { width: 100%; height: 140px; }
.lagometer__axis { display: flex; justify-content: space-between; color: var(--faint); margin-top: 8px; font-size: 11px; }

.compare { margin-top: 48px; display: grid; gap: 8px; }
.compare__title { margin: 0 0 10px; font-weight: 600; }
.compare__mid { background: rgba(var(--accent-rgb), .45); }
.compare__row { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 20px; }
.compare__name { color: var(--muted); font-size: 14px; }
.compare__track { height: 30px; position: relative; }
.compare__track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; transition: width 1.8s var(--ease) .2s; }
.compare.is-in .compare__track i { width: var(--w); }
.compare__old { background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 6px, rgba(255,255,255,.03) 6px 12px); }
.compare__new { background: var(--accent); }
.compare__track span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.compare__new span, .compare__mid span { color: #160a04; right: auto; left: 10px; }

/* ───────────────────────── Pipeline ───────────────────────── */
.pipe { position: relative; width: 100%; aspect-ratio: 1200 / 420; border: 1px solid var(--line); border-radius: var(--radius); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 40px 40px,
  var(--bg-2); overflow: hidden; }
.pipe__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pipe__nodes { position: absolute; inset: 0; z-index: 2; }
.node { position: absolute; transform: translate(-50%, -50%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 13px; white-space: nowrap; transition: border-color .3s, box-shadow .3s, transform .4s var(--ease); }
.node b { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.node small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.node.is-hit { border-color: rgba(var(--accent-rgb), .8); }
.node--end { background: var(--accent); color: #140904; border-color: transparent; }
.node--end small { color: rgba(20,9,4,.65); }
.node--start { background: transparent; border-style: dashed; }
.pipe__legend { display: flex; gap: 22px; color: var(--muted); margin-top: 18px; flex-wrap: wrap; }
.lg { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.lg--a { background: #fff; } .lg--b { background: var(--accent-hi); } .lg--c { background: var(--accent); }

/* ───────────────────────── Showcase ───────────────────────── */
.showcase { padding-bottom: clamp(60px, 10vw, 140px); }
.tabs { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); gap: 2px; flex-wrap: wrap; }
.tabs button { position: relative; padding: 8px 14px; border-radius: 9px; font-size: 14px; color: var(--muted); transition: color .2s, background .25s; }
.tabs button:hover { color: var(--text); }
.tabs button.is-active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.stage { perspective: 1600px; padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto; position: relative; }
.stage__card {
  position: relative; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid var(--line-2);
  transform-origin: 50% 0%; transform: rotateX(var(--rx, 28deg)) scale(var(--sc, .88)) translateY(var(--ty, 40px));
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9);
  will-change: transform;
}
.stage__chrome { height: 32px; display: flex; align-items: center; gap: 8px; padding-left: 10px; background: #1b1918; border-bottom: 1px solid var(--line); font-size: 12px; color: #cfc7bf; }
.stage__chrome svg { width: 14px; color: var(--accent); }
.stage__chrome em { font-style: normal; }
.stage__chrome .win { margin-left: auto; display: flex; height: 100%; font-style: normal; }
.stage__chrome .win b { width: 46px; display: grid; place-items: center; font-weight: 400; color: #a9a19a; font-size: 12px; }
.stage__shots { position: relative; aspect-ratio: 16 / 9; }
.stage__shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); clip-path: inset(0 0 0 100%); transition: transform 1.4s var(--ease), clip-path 1s var(--ease-io); }
.stage__shots img.is-prev { clip-path: inset(0 0 0 0); transform: none; z-index: 1; transition: none; }
.stage__shots img.is-active { clip-path: inset(0 0 0 0); transform: none; z-index: 2; }
.stage__notes { margin: 24px 0 0; color: var(--muted); max-width: 62ch; }

/* ───────────────────────── HUD playground ───────────────────────── */
.play {
  position: relative; aspect-ratio: 16 / 8.2; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2);
  user-select: none; -webkit-user-select: none; touch-action: none; cursor: crosshair;
}
.play__sky { position: absolute; inset: 0; background:
  linear-gradient(to bottom, #8fb3f5 0%, #9fbaf0 34%, #b9c6ea 47%, #6f7ecf 52%, #4a55b8 70%, #343f9c 100%); }
.play__sky::after { content: ""; position: absolute; left: -10%; right: -10%; top: 46%; height: 12%; background: radial-gradient(ellipse at center, rgba(255,255,255,.55), transparent 70%); filter: blur(10px); }
.play__grid { position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px) 0 0 / 5% 10%, linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px) 0 0 / 5% 10%; }
.play.is-dragging .play__grid.is-on { opacity: 1; }
.play__cross { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%,-50%); }
.play__cross::before, .play__cross::after { content: ""; position: absolute; background: rgba(255,255,255,.85); mix-blend-mode: difference; }
.play__cross::before { left: 8px; top: 0; width: 2px; height: 18px; } .play__cross::after { top: 8px; left: 0; height: 2px; width: 18px; }

.w {
  position: absolute; color: #fff; font-family: var(--pixel); font-weight: 400; font-size: clamp(11px, 1.3vw, 16px);
  background: rgba(0, 0, 0, .32); padding: .4em .6em; border-radius: 3px; border: 1px solid transparent;
  cursor: grab; text-shadow: .12em .12em 0 rgba(0,0,0,.45); transition: box-shadow .2s, border-color .2s, transform .2s;
  white-space: nowrap; line-height: 1.3;
}
.w b { font-weight: 400; }
.w:hover { border-color: rgba(255,255,255,.7); }
.w.is-drag { cursor: grabbing; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .35), 0 16px 30px -10px rgba(0,0,0,.5); transform: scale(1.04); z-index: 5; }
.w--cps i { opacity: .6; font-style: normal; }
.w--keys { display: grid; grid-template-columns: repeat(3, 2.3em); gap: .25em; padding: .35em; background: transparent; border-color: transparent; }
.w--keys:hover { border-color: rgba(255,255,255,.45); }
.w--keys kbd { font-family: var(--pixel); height: 2.3em; display: grid; place-items: center; background: rgba(0,0,0,.32); border-radius: 2px; font-size: .86em; transition: background .08s, color .08s; }
.w--keys kbd.wide2 { grid-column: span 2; font-size: .7em; } .w--keys kbd.wide1 { font-size: .7em; } .w--keys kbd.wide3 { grid-column: span 3; height: 1.5em; font-size: .6em; }
.w--keys kbd.is-down { background: rgba(255,255,255,.92); color: #111; }
.play__toolbar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(16,15,15,.88); border: 1px solid var(--line-2); z-index: 6; }
.play__toolbar button { padding: 6px 12px; border-radius: 7px; color: #ddd; transition: background .2s, color .2s; }
.play__toolbar button:hover:not(:disabled) { background: rgba(255,255,255,.08); }
.play__toolbar button:disabled { color: #555; cursor: default; }
.play__toolbar button.is-on { background: rgba(var(--accent-rgb), .25); color: var(--accent-hi); }
.play__tip { position: absolute; padding: 5px 9px; background: var(--accent); color: #140904; border-radius: 6px; pointer-events: none; z-index: 7; left: 0; top: 0; transform: translateX(-50%); transition: opacity .4s; white-space: nowrap; }
.play__tip::after { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.play__tip.is-gone { opacity: 0; }


.fair { padding-block: clamp(60px, 9vw, 120px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fair__text { font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 600; margin: 0; max-width: 24ch; }
.fair__note { color: var(--muted); margin: 24px 0 0; }

/* ───────────────────────── Mods ───────────────────────── */
.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.mod {
  --mx: 50%; --my: 50%;
  position: relative; text-align: left; padding: 18px 16px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .3s, background .3s, transform .5s var(--ease), opacity .5s var(--ease);
  min-height: 148px; display: flex; flex-direction: column;
}
.mod:hover { border-color: var(--line-2); }
.mod svg { width: 28px; height: 28px; color: var(--muted); transition: color .3s, transform .5s var(--ease); }
.mod h4 { margin: 16px 0 4px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.mod p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; flex: 1; }
.mod__state { margin-top: 14px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; background: rgba(255,255,255,.05); color: var(--muted); transition: background .3s, color .3s; }
.mod.is-on { background: #241a14; border-color: rgba(var(--accent-rgb), .45); }
.mod.is-on svg { color: var(--accent); }
.mod.is-on .mod__state { background: var(--accent); color: #150904; }
.mod.is-hidden { display: none; }
.mods__hint { color: var(--faint); margin-top: 18px; }

/* ───────────────────────── Keycaps & controls */
.key {
  display: inline-grid; place-items: center; min-width: 2.2em; height: 2.1em; padding: 0 .6em;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--text);
  background: linear-gradient(#26221f, #1b1917); border: 1px solid #3a3430; border-bottom-width: 3px; border-radius: 6px;
  vertical-align: middle; white-space: nowrap;
}
.h2 .key { font-size: .42em; height: 2em; transform: translateY(-.12em); border-color: rgba(var(--accent-rgb), .55); color: var(--accent-hi); }
.controls__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.keys { margin: 0; border-top: 1px solid var(--line); }
.keys > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.keys dd { margin: 0; color: #cfc7bf; }

/* ───────────────────────── Packs ───────────────────────── */
.packs__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.featcols { display: grid; gap: 40px; }
.featcols__h { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.featlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.featlist li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.themes { margin-top: 44px; }
.themes__label { color: var(--muted); margin: 0 0 12px; }
.themes__row { display: flex; gap: 8px; flex-wrap: wrap; }
.themes__row button { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; transition: border-color .3s, background .3s; }
.themes__row button i { width: 14px; height: 14px; border-radius: 3px; background: var(--c); }
.themes__row button.is-active { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); }

/* ───────────────────────── Install ───────────────────────── */
.install__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; align-items: flex-start; min-height: 330px; }
.card .card__file { flex: none; margin: 0; color: var(--muted); display: flex; gap: 10px; }
.card__file span { color: var(--faint); }
.card h3 { font-family: var(--display); font-stretch: 110%; margin: 18px 0 10px; font-size: 22px; letter-spacing: -.02em; font-weight: 650; }
.card p { margin: 0 0 24px; color: var(--muted); font-size: 15px; flex: 1; }
.card .btn { margin-top: auto; }
.term { margin: 4px 0 0; width: 100%; flex: 1; background: #0a0909; border: 1px solid var(--line); border-radius: 10px; padding: 16px; font-size: 13px; line-height: 1.8; color: #d8d0c8; white-space: pre-wrap; min-height: 150px; }
.term code { background: none; padding: 0; font-size: inherit; }
.term .p { color: var(--accent); } .term .c { color: var(--faint); } .term .ok { color: #8bd48b; }
.term .caret { display: inline-block; width: .6em; height: 1.1em; background: var(--accent); vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.copy { position: absolute; top: 26px; right: 26px; color: var(--muted); padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; transition: color .2s, border-color .2s; }
.copy:hover { color: var(--text); border-color: var(--line-2); }
.opts { margin-top: 44px; border-top: 1px solid var(--line); }
.opts__row { display: grid; grid-template-columns: 320px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); align-items: baseline; }
.opts__row > code { background: none; padding: 0; color: var(--text); font-size: 14px; }

/* ───────────────────────── Changelog ───────────────────────── */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 180px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 0; padding: 0 0 56px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 180px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); transform: translateX(-50%); }
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .15); }
.timeline__meta { display: flex; flex-direction: column; gap: 4px; color: var(--muted); }
.timeline__meta b { font-size: 20px; color: var(--text); font-weight: 500; }
.timeline__body { padding-left: 44px; max-width: 680px; }
.timeline__body h3 { margin: 0 0 10px; font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.timeline__body p { margin: 0; color: var(--muted); }

/* ───────────────────────── Final ───────────────────────── */
.final { text-align: center; padding-bottom: clamp(120px, 16vw, 220px); }
.final__inner { display: flex; flex-direction: column; align-items: center; }
.final__mark { width: clamp(150px, 22vw, 240px); aspect-ratio: 1; display: grid; place-items: center; }
.has-gl .final__logo { opacity: 0; }
.final__logo { width: 34%; transition: opacity .6s; color: var(--accent); }
.final__title { font-family: var(--display); font-stretch: 118%; font-size: clamp(2.6rem, 7.5vw, 6.6rem); letter-spacing: -.03em; line-height: .95; margin: 30px 0 8px; font-weight: 800; }
.final .hero__cta { justify-content: center; }

/* ───────────────────────── Footer ───────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 40px 0 44px; background: var(--bg); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.footer__brand svg { width: 22px; color: var(--accent); }
.footer__legal { margin: 0; color: var(--faint); font-size: 13px; max-width: 60ch; }
.footer__links { display: flex; gap: 20px; color: var(--muted); flex-wrap: wrap; }
.footer__links a:hover { color: var(--text); }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1020px) {
  .nav__links { position: fixed; inset: 64px 12px auto 12px; flex-direction: column; background: rgba(18,16,16,.97); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px; gap: 0;
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 13px 12px; font-size: 16px; }
  .nav__links a::after { display: none; }
  .nav__burger { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 20px 28px 0 !important; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; padding-left: 20px !important; }
  .stat:nth-child(3) { padding-left: 0 !important; }
  .packs__grid, .controls__grid { grid-template-columns: 1fr; }
  .install__grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  .hero__title .line { display: inline; overflow: visible; }
  .hero__title .line > span { display: inline; transform: none; }
  .hero__title .line:nth-child(-n+3)::after { content: " "; }
  .hero { align-items: flex-start; padding-top: max(220px, 30svh); }
  .has-gl .hero { padding-top: max(230px, 31svh); }
  .play { overflow: visible; margin-bottom: 60px; }
  .play__sky, .play__grid { border-radius: inherit; overflow: hidden; }
  .play__toolbar { bottom: -54px; }
  .nav__gh { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; padding-left: 0 !important; }
  .compare__row { grid-template-columns: 1fr; gap: 6px; }
  .pipe { aspect-ratio: auto; height: 620px; }
  .play { aspect-ratio: 4 / 5; }
  .w { font-size: 11px; }
  .modgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mod { min-height: 0; padding: 14px 12px 12px; }
  .opts__row { grid-template-columns: 1fr; gap: 6px; }
  .keys > div { grid-template-columns: 110px 1fr; gap: 12px; }
  .timeline::before, .timeline li::before { left: 4px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 28px; gap: 10px; }
  .timeline__meta { flex-direction: row; gap: 12px; align-items: baseline; }
  .timeline__body { padding-left: 0; }
  .stage__chrome .win b { width: 34px; }
  .tabs button { padding: 7px 10px; font-size: 13px; }
  .copy { top: 22px; right: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__title .line > span { transform: none; }
}
