/* ============================================================
   BlueBox Production — design system
   Dark cinematic, monochrome strict icons, no emoji.
   ============================================================ */

@font-face {
  font-family: 'Inter var';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../font/inter-var.woff2') format('woff2');
}

/* ---------- tokens ---------- */
:root {
  --bg:          #08090d;
  --bg-2:        #0b0d13;
  --surface:     #101219;
  --surface-2:   #151824;
  --line:        rgba(255, 255, 255, .07);
  --line-2:      rgba(255, 255, 255, .14);

  --fg:          #f3f5f9;
  --fg-dim:      #a6acbd;
  --fg-mute:     #6b7183;

  --primary:     #7c5cff;
  --primary-2:   #5b7cfa;
  --primary-dim: rgba(124, 92, 255, .16);
  --live:        #34d399;
  --warn:        #f59e0b;

  --grad: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 100%);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  --container: 1240px;
  --nav-h: 68px;

  --ease:    cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t-fast: 180ms;
  --t:      280ms;
  --t-slow: 620ms;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 18px 50px -18px rgba(0,0,0,.85);
  --shadow-glow: 0 0 0 1px var(--line-2), 0 24px 70px -30px rgba(124,92,255,.55);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'ss03';
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100dvh;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(124, 92, 255, .35); color: #fff; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #232735;
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #333a4d; }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.section { padding-block: clamp(64px, 8.5vw, 116px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  font-variant-numeric: tabular-nums;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--line-2);
}

/* ---------- type ---------- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }

.h-display { font-size: clamp(44px, 7.4vw, 96px); font-weight: 600; line-height: 1.02; letter-spacing: -0.045em; }
.h1 { font-size: clamp(34px, 5vw, 60px); }
.h2 { font-size: clamp(28px, 3.6vw, 44px); }
.h3 { font-size: clamp(20px, 2.2vw, 26px); }

.lead {
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--fg-dim);
  line-height: 1.65;
  max-width: 62ch;
  text-wrap: pretty;
}
.muted { color: var(--fg-mute); }
.mono {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .92em;
  letter-spacing: -0.01em;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-line: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 46px;
  padding: 0 var(--s-5);
  border-radius: 99px;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t) var(--ease), background-color var(--t) var(--ease),
              border-color var(--t) var(--ease), color var(--t) var(--ease),
              box-shadow var(--t) var(--ease), opacity var(--t) var(--ease);
  will-change: transform;
  touch-action: manipulation;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.28); }
.btn:active { transform: translateY(0) scale(.985); }

.btn--primary {
  --btn-line: transparent;
  background: var(--grad);
  color: #fff;
  font-weight: 550;
  box-shadow: 0 10px 30px -12px rgba(124, 92, 255, .8);
}
.btn--primary:hover { box-shadow: 0 18px 44px -14px rgba(124, 92, 255, .95); }

.btn--solid { --btn-bg: var(--surface-2); --btn-line: var(--line-2); }
.btn--solid:hover { --btn-bg: #1d2130; }

.btn--ghost { --btn-line: var(--line); color: var(--fg-dim); }
.btn--ghost:hover { color: var(--fg); }

/* Steam-flavoured: their navy plus the familiar blue */
.btn--steam {
  --btn-line: rgba(102, 192, 244, .38);
  background: linear-gradient(180deg, #2a475e 0%, #1b2838 100%);
  color: #cfe6f8;
  font-weight: 550;
}
.btn--steam:hover {
  background: linear-gradient(180deg, #35617f 0%, #22344a 100%);
  border-color: rgba(102, 192, 244, .72);
  color: #fff;
}
.btn--steam svg { color: #66c0f4; }

.btn--lg { min-height: 54px; padding-inline: var(--s-6); font-size: 15px; }
.btn--sm { min-height: 38px; padding-inline: var(--s-4); font-size: 13px; }
.btn--block { display: flex; width: 100%; }

.btn[disabled], .btn[aria-disabled='true'] {
  opacity: .42;
  pointer-events: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-dim);
  transition: color var(--t) var(--ease), gap var(--t) var(--ease);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--t) var(--ease); }
.link-arrow:hover { color: var(--fg); gap: 12px; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- tags / chips ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fg-mute);
  white-space: nowrap;
}
.tag--live { color: var(--live); border-color: rgba(52,211,153,.28); background: rgba(52,211,153,.07); }
.tag--dev  { color: var(--warn); border-color: rgba(245,158,11,.28); background: rgba(245,158,11,.07); }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.dot {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}
.dot--pulse { animation: pulse 2.4s var(--ease-io) infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 0%, transparent); }
}

/* ---------- surfaces ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.008));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.card:hover { border-color: var(--line-2); }

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   PRELOADER — custom segmented (non-circular) progress
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 620ms var(--ease), visibility 620ms;
}
.preloader[hidden] { display: grid; }
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__inner {
  width: min(420px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.preloader__mark {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

/* stacked layers that fill like the studio mark */
.loader-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.loader-stack__row {
  position: relative;
  height: 10px;
  border-radius: 3px;
  background: rgba(255,255,255,.05);
  overflow: hidden;
}
.loader-stack__row::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(var(--fill, 0));
  transform-origin: left;
  background: var(--grad);
  transition: transform 380ms var(--ease);
}
.loader-stack__row:nth-child(1) { width: 34%; }
.loader-stack__row:nth-child(2) { width: 58%; }
.loader-stack__row:nth-child(3) { width: 82%; }
.loader-stack__row:nth-child(4) { width: 100%; }
.loader-stack__row:nth-child(5) { width: 76%; }

.preloader__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--fg-mute);
}
.preloader__pct {
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.preloader__status { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease),
              backdrop-filter var(--t) var(--ease);
}
.header.is-stuck {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 15.5px;
}
.brand__mark { width: 26px; height: 26px; flex: none; }
.brand span b { font-weight: 600; }
.brand span i { font-style: normal; color: var(--fg-mute); font-weight: 400; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--fg-dim);
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.nav a:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.nav a[aria-current='page'] { color: var(--fg); }
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--grad);
}
.header__actions { display: flex; align-items: center; gap: var(--s-3); }

.burger {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.burger svg { width: 18px; height: 18px; }

.mobile-nav {
  position: fixed;
  inset: var(--nav-h) 0 auto;
  z-index: 89;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: var(--s-4) var(--s-5) var(--s-6);
  display: grid;
  gap: 2px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
}
.mobile-nav.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-nav a {
  padding: 13px 12px;
  border-radius: 10px;
  font-size: 16px;
  color: var(--fg-dim);
  border: 1px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a[aria-current='page'] {
  color: var(--fg);
  background: rgba(255,255,255,.045);
  border-color: var(--line);
}
.mobile-nav .btn { margin-top: var(--s-3); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: var(--s-8);
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1200ms var(--ease);
}
.hero__canvas.is-ready { opacity: 1; }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 78% 40%, transparent 25%, var(--bg) 82%),
    linear-gradient(180deg, transparent 45%, var(--bg) 96%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 700px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(8px);
  font-size: 12.5px;
  color: var(--fg-dim);
  margin-bottom: var(--s-5);
}
.hero h1 { margin-bottom: var(--s-5); }
.hero .lead { margin-bottom: var(--s-7); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(48px, 7vw, 84px);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.stat__num {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 300;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 6px;
}
.stat__num--sm { font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; letter-spacing: -0.02em; padding-top: 10px; }
.stat__label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.scroll-hint {
  position: absolute;
  /* right-aligned: centred it collided with the stats row */
  right: clamp(24px, 4vw, 56px);
  bottom: 26px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.scroll-hint__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--line-2), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint__line::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  height: 12px;
  background: var(--primary);
  animation: scrollDrop 2.2s var(--ease-io) infinite;
}
@keyframes scrollDrop {
  0%   { transform: translateY(-14px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(40px); opacity: 0; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-8);
}
.pillar {
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.026), transparent);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.pillar:hover { border-color: var(--line-2); transform: translateY(-3px); }
.pillar__icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04);
  margin-bottom: var(--s-5);
  color: var(--fg);
}
.pillar__icon svg { width: 19px; height: 19px; }
.pillar h3 { margin-bottom: var(--s-3); font-size: 18px; letter-spacing: -0.02em; }
.pillar p { color: var(--fg-dim); font-size: 14.5px; line-height: 1.6; }

.quote {
  margin-top: var(--s-8);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--primary-dim), transparent 55%),
    var(--surface);
  font-size: clamp(19px, 2.3vw, 28px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.quote b { font-weight: 600; }

/* ============================================================
   GAME CARDS
   ============================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: var(--s-5);
}
.game {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.game:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.game__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
  isolation: isolate;
}
.game__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease), filter var(--t) var(--ease);
  filter: saturate(.9) contrast(1.04);
}
.game:hover .game__media img { transform: scale(1.055); filter: saturate(1.02) contrast(1.06); }
.game__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8,9,13,.86) 100%);
  pointer-events: none;
}
.game__media-tags {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  z-index: 2;
  display: flex;
  gap: var(--s-2);
}
.game__media-tags .tag { backdrop-filter: blur(10px); background: rgba(10,12,18,.62); }

.game__body {
  padding: var(--s-5) var(--s-5) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  flex: 1;
}
.game__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
}
.game__title { font-size: 21px; letter-spacing: -0.028em; }
.game__year {
  font-size: 12px;
  color: var(--fg-mute);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.game__desc { color: var(--fg-dim); font-size: 14.5px; line-height: 1.62; flex: 1; }
.game__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}
.game__meta div span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 3px;
}
.game__meta div b { font-size: 13px; font-weight: 500; }
.game__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* placeholder art for unreleased title */
.game__media--art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(124,92,255,.16), transparent 62%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.028) 0 2px, transparent 2px 9px),
    var(--surface-2);
}
.game__media--art svg { width: 46%; max-width: 210px; opacity: .85; }

/* ============================================================
   GAME DETAIL (games.html)
   ============================================================ */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.detail:first-of-type { border-top: 0; padding-top: 0; }
.detail__gallery { display: grid; gap: var(--s-3); }
.detail__main {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}
.detail__main img { width: 100%; height: 100%; object-fit: cover; }
.detail__thumbs { display: grid; grid-auto-flow: column; gap: var(--s-3); }
.detail__thumb {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--t) var(--ease), opacity var(--t) var(--ease);
  opacity: .58;
}
.detail__thumb:hover, .detail__thumb[aria-selected='true'] { opacity: 1; border-color: var(--line-2); }
.detail__thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail__info h2 { margin-bottom: var(--s-4); }
.detail__info .lead { margin-bottom: var(--s-5); }
.spec-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: var(--s-6);
}
.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 12px var(--s-4);
  background: var(--surface);
  font-size: 13.5px;
}
.spec-list dt, .spec-list span:first-child { color: var(--fg-mute); }
.spec-list b { font-weight: 500; }

/* ============================================================
   CODE / TERMINAL BLOCK (bluegent)
   ============================================================ */
.term {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #0a0c12;
  overflow: hidden;
}
.term__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 10px var(--s-4);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.022);
}
.term__os {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--fg-dim);
  letter-spacing: .02em;
}
.term__os svg { width: 15px; height: 15px; }
.term__body {
  padding: var(--s-4) var(--s-5);
  overflow-x: auto;
}
.term__line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.85;
  white-space: pre;
}
.term__line + .term__line { margin-top: 2px; }
.term__prompt { color: var(--primary); user-select: none; }
.term__cmd { color: #dfe4f0; }
.term__comment { color: var(--fg-mute); }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--fg-dim);
  font-size: 12px;
  cursor: pointer;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.copy-btn.is-copied { color: var(--live); border-color: rgba(52,211,153,.4); }

/* ============================================================
   FEATURE ROWS / SPLIT
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.split--reverse > *:first-child { order: 2; }

.feature-list { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.feature-list li {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  list-style: none;
}
.feature-list .ico {
  width: 30px; height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.035);
  margin-top: 1px;
}
.feature-list .ico svg { width: 15px; height: 15px; }
.feature-list h4 { font-size: 15px; margin-bottom: 3px; letter-spacing: -0.015em; }
.feature-list p { font-size: 14px; color: var(--fg-dim); line-height: 1.55; }

/* platform download buttons */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.dl {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 14px var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,255,255,.022);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), background-color var(--t) var(--ease);
}
.dl:hover { border-color: var(--line-2); transform: translateY(-2px); background: rgba(255,255,255,.045); }
.dl__ico { width: 26px; height: 26px; flex: none; color: var(--fg); }
.dl__ico svg { width: 100%; height: 100%; }
.dl__txt span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 2px;
}
.dl__txt b { font-size: 14.5px; font-weight: 500; letter-spacing: -0.015em; }

/* device mock for rupor */
.mock {
  position: relative;
  width: min(300px, 78vw);
  margin-inline: auto;
  aspect-ratio: 9 / 16.6;
  border-radius: 38px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, #14171f, #0a0c11);
  padding: 10px;
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.mock::before {
  content: '';
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
  z-index: 3;
}
.mock__screen {
  width: 100%; height: 100%;
  border-radius: 30px;
  background: var(--bg-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px 12px 12px;
  gap: 8px;
}
.mock__input {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--fg-mute);
}
.mock__input svg { width: 14px; height: 14px; flex: none; }
.chat {
  display: flex;
  gap: 8px;
  max-width: 84%;
  opacity: 0;
  transform: translateY(8px);
  animation: chatIn 520ms var(--ease) forwards;
}
.chat--me { margin-left: auto; flex-direction: row-reverse; }
.chat__bubble {
  padding: 8px 11px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--fg-dim);
}
.chat--me .chat__bubble {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}
.chat__av {
  width: 24px; height: 24px;
  flex: none;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--fg-mute);
}
@keyframes chatIn { to { opacity: 1; transform: none; } }

/* ============================================================
   COMMUNITY CTA
   ============================================================ */
.cta-band {
  position: relative;
  border: 1px solid var(--line);
  border-radius: clamp(20px, 3vw, 28px);
  padding: clamp(36px, 6vw, 76px);
  overflow: hidden;
  background:
    radial-gradient(90% 160% at 8% 0%, rgba(124,92,255,.22), transparent 58%),
    radial-gradient(70% 130% at 100% 100%, rgba(91,124,250,.18), transparent 55%),
    var(--surface);
  text-align: center;
}
.cta-band__inner { position: relative; z-index: 2; max-width: 640px; margin-inline: auto; }
.cta-band h2 { margin-bottom: var(--s-4); }
.cta-band p { color: var(--fg-dim); margin-bottom: var(--s-6); }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.legal__toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  gap: 1px;
  font-size: 13.5px;
}
.legal__toc a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--fg-mute);
  border-left: 2px solid transparent;
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.legal__toc a:hover { color: var(--fg-dim); background: rgba(255,255,255,.03); }
.legal__toc a.is-active { color: var(--fg); border-left-color: var(--primary); background: rgba(255,255,255,.04); }

.prose { max-width: 74ch; }
.prose h2 {
  font-size: clamp(21px, 2.4vw, 27px);
  margin-top: var(--s-8);
  margin-bottom: var(--s-4);
  scroll-margin-top: calc(var(--nav-h) + 28px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin-top: var(--s-6); margin-bottom: var(--s-3); }
.prose p, .prose li { color: var(--fg-dim); font-size: 15px; line-height: 1.72; }
.prose p + p { margin-top: var(--s-4); }
.prose ul, .prose ol { margin: var(--s-4) 0; padding-left: var(--s-5); display: grid; gap: 8px; }
.prose li::marker { color: var(--fg-mute); }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--primary); }
.prose strong { color: var(--fg); font-weight: 550; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s-5) 0;
  font-size: 14px;
}
.prose th, .prose td {
  text-align: left;
  padding: 11px var(--s-4);
  border: 1px solid var(--line);
  color: var(--fg-dim);
}
.prose th { background: rgba(255,255,255,.03); color: var(--fg); font-weight: 550; }
.note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--primary);
  border-radius: var(--r-sm);
  background: rgba(124,92,255,.06);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0;
  font-size: 14px;
  color: var(--fg-dim);
}

.page-head {
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(32px, 5vw, 56px);
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head h1 { margin-bottom: var(--s-4); }
.page-head .lead { margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s-8) var(--s-6);
  margin-top: var(--s-9);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}
.footer__brand p {
  color: var(--fg-mute);
  font-size: 14px;
  margin-top: var(--s-4);
  max-width: 34ch;
  line-height: 1.6;
}
.footer h4 {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: var(--s-4);
  font-weight: 500;
}
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col a {
  font-size: 14px;
  color: var(--fg-dim);
  transition: color var(--t) var(--ease);
  width: fit-content;
}
.footer__col a:hover { color: var(--fg); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-mute);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.footer__legal a:hover { color: var(--fg-dim); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 780ms var(--ease), transform 780ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal='scale'] { transform: translateY(18px) scale(.985); }
[data-reveal='scale'].is-in { transform: none; }

[data-reveal='left']  { transform: translateX(-22px); }
[data-reveal='right'] { transform: translateX(22px); }
[data-reveal='left'].is-in, [data-reveal='right'].is-in { transform: none; }

.split-line { display: block; overflow: hidden; }
.split-line > span {
  display: block;
  transform: translateY(100%);
  transition: transform 900ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.is-in .split-line > span, .split-line.is-in > span { transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); }
  .legal { grid-template-columns: 1fr; }
  .legal__toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: var(--s-4);
    border-bottom: 1px solid var(--line);
  }
  .legal__toc a { border-left: 0; border: 1px solid var(--line); }
  .detail { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: inline-flex; }
  .hero { min-height: auto; padding-block: calc(var(--nav-h) + 56px) 72px; }
  .hero__canvas { opacity: 0; }
  .hero__canvas.is-ready { opacity: .34; }
  /* sideways reveals would push past the viewport on narrow screens */
  [data-reveal='left'], [data-reveal='right'] { transform: translateY(18px); }
  .scroll-hint { display: none; }
  .split--reverse > *:first-child { order: 0; }
}

@media (max-width: 560px) {
  .container { padding-inline: var(--s-4); }
  .footer__grid { grid-template-columns: 1fr; }
  .game__actions .btn { flex: 1; }
  .hero__stats { gap: var(--s-5) var(--s-6); }
}

/* ============================================================
   MOTION / CONTRAST PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .split-line > span { transform: none !important; }
}

@media (prefers-contrast: more) {
  :root { --fg-dim: #d3d8e4; --fg-mute: #9aa1b4; --line: rgba(255,255,255,.16); --line-2: rgba(255,255,255,.3); }
}

/* view transitions between pages */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 220ms var(--ease-io) both; }
::view-transition-new(root) { animation: vtIn 420ms var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }

/* print */
@media print {
  .header, .footer, .preloader, .hero__canvas, .scroll-hint { display: none !important; }
  body { background: #fff; color: #000; }
  .prose p, .prose li { color: #222; }
}
