/* Extinct — marketing site.
   Palette mirrors the in-game "Phobia" theme (menu/imgui_theme.h): near-black
   panels, cream text, deep-blue accent. Dark-only, like the menu itself. */

:root {
  --bg: #0c0c0e;
  --bg-2: #0f0f12;
  --panel: #121216;
  --card: #18181c;
  --card-hover: #1f1f24;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --text: #e3ddd1;
  --text-dim: #8d887f;
  --text-faint: #5d5a55;
  --accent: #2a78f5;
  --accent-hover: #509bff;
  --accent-deep: #1c64dc;
  --accent-glow: rgba(42, 120, 245, 0.35);
  --success: #2dd4a0;
  --warn: #f5b42a;
  --danger: #e24050;

  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 64px;

  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-hover); text-decoration: none; }
a:hover { color: #fff; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-hover);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--text-dim); max-width: 60ch; }
.muted { color: var(--text-dim); }
.mono { font-family: var(--font-mono); }

.strike { position: relative; display: inline-block; }
.strike::after {
  content: "";
  position: absolute;
  left: -4%; right: -4%;
  top: 52%;
  height: 0.09em;
  background: var(--accent);
  transform-origin: left center;
  animation: strike 0.9s 0.2s cubic-bezier(.7, 0, .2, 1) both;
}
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--btn-bg);
  color: var(--text);
  font: 600 15px/1 var(--font-body);
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:hover { color: #fff; background: var(--card-hover); border-color: rgba(255,255,255,.22); transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 28px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 12px 36px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { margin: auto; }

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav.open .nav-links,
  .nav.open .nav-cta {
    display: flex;
    position: fixed;
    left: 0; right: 0;
    background: var(--bg);
    padding-inline: var(--gutter);
  }
  .nav.open .nav-links {
    top: var(--nav-h);
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 8px;
    border-top: 1px solid var(--border);
  }
  .nav.open .nav-links a { font-size: 18px; padding: 12px 4px; }
  .nav.open .nav-cta {
    top: calc(var(--nav-h) + 16px + 6 * 53px + 8px);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin: 0;
  }
  .nav.open .nav-cta .btn { flex: 1; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.section-head h2 { font-size: clamp(36px, 5.5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  background:
    radial-gradient(600px 380px at 75% 30%, rgba(42,120,245,.22), transparent 70%),
    radial-gradient(500px 300px at 15% 10%, rgba(42,120,245,.08), transparent 70%);
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { font-size: clamp(56px, 9vw, 116px); margin: 18px 0 22px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent-hover); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Status pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.03);
  font-size: 13px;
  color: var(--text-dim);
}
.pill b { color: var(--text); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); flex: none; }
.dot.online { background: var(--success); box-shadow: 0 0 0 0 rgba(45,212,160,.6); animation: pulse 2s infinite; }
.dot.updating { background: var(--warn); }
.dot.offline { background: var(--danger); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45,212,160,.55); }
  70% { box-shadow: 0 0 0 8px rgba(45,212,160,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,212,160,0); }
}

/* ---------- ESP scene (hero visual) ---------- */
.scene {
  position: relative;
  aspect-ratio: 16 / 10.5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0a0d12;
  box-shadow: 0 40px 120px -30px rgba(42,120,245,.35), 0 20px 60px -20px rgba(0,0,0,.8);
  container-type: inline-size;
  font-family: var(--font-body);
  user-select: none;
}
.scene svg.world { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene .hud { position: absolute; inset: 0; pointer-events: none; }
.scene .tag {
  position: absolute;
  transform: translate(-50%, 0);
  font-size: clamp(8px, 1.7cqw, 12px);
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 2px #000, 0 0 3px #000;
  font-weight: 600;
}
.scene .tag small { display: block; font-weight: 500; opacity: .85; font-size: .9em; }
.scene .watermark {
  position: absolute;
  top: 3.2%; left: 2.6%;
  font-family: var(--font-mono);
  font-size: clamp(8px, 1.5cqw, 11px);
  color: var(--text);
  background: rgba(12,12,14,.8);
  border: 1px solid var(--border-strong);
  border-left: 2px solid var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: .04em;
}
.scene .watermark b { color: var(--accent-hover); font-weight: 700; }
.scene .hitlog {
  position: absolute;
  top: 13%; left: 2.6%;
  display: grid;
  gap: 3px;
  font-size: clamp(8px, 1.5cqw, 11px);
  text-shadow: 0 1px 2px #000;
}
.scene .hitlog div { animation: hitlog 6s infinite; opacity: 0; }
.scene .hitlog div:nth-child(2) { animation-delay: 1.2s; }
.scene .hitlog div:nth-child(3) { animation-delay: 2.4s; }
.scene .hitlog em { color: var(--accent-hover); font-style: normal; font-weight: 600; }
@keyframes hitlog { 0% { opacity: 0; transform: translateX(-6px); } 6%, 60% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; } }

.scene .radar {
  position: absolute;
  right: 2.6%; top: 3.2%;
  width: 21%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(10,12,16,.82);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.scene .radar::before, .scene .radar::after {
  content: ""; position: absolute; background: rgba(255,255,255,.08);
}
.scene .radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.scene .radar::after { top: 50%; left: 0; right: 0; height: 1px; }
.scene .radar .sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, rgba(42,120,245,.35), transparent 22%);
  animation: sweep 3.2s linear infinite;
  border-radius: 50%;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.scene .radar i {
  position: absolute; width: 7%; height: 7%; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.scene .infobar {
  position: absolute;
  left: 50%; bottom: 3.5%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  font-size: clamp(7px, 1.3cqw, 10px);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.scene .infobar span {
  padding: 3px 7px;
  background: rgba(12,12,14,.82);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.scene .infobar span:first-child { border-radius: 4px 0 0 4px; }
.scene .infobar span:last-child { border-radius: 0 4px 4px 0; }
.scene .infobar span.on { color: var(--text); border-bottom: 1px solid var(--accent); }

.scene .tag.above { transform: translate(-50%, -100%); }
.fov-pulse { animation: fov 3s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes fov { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.stat { padding: 26px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-size: clamp(36px, 4.5vw, 52px); line-height: 1; color: var(--text); }
.stat .num span { color: var(--accent); }
.stat .label { margin-top: 8px; font-size: 14px; color: var(--text-dim); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0)) , var(--panel);
  transition: border-color .2s, transform .2s, background .2s;
}
a.card { color: inherit; display: block; }
a.card:hover, .card.hover:hover { border-color: rgba(42,120,245,.45); transform: translateY(-2px); }
.card h3 { font-size: 19px; margin: 18px 0 8px; }
.card p { margin: 0; color: var(--text-dim); font-size: 15px; }
.card .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(42,120,245,.12);
  border: 1px solid rgba(42,120,245,.3);
  color: var(--accent-hover);
}
.card .icon svg { width: 22px; height: 22px; }
.card .count {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
}
.card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chip {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
}

/* ---------- Showcase (menu demo) ---------- */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.showcase ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.showcase li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-dim); font-size: 15px; }
.showcase li b { color: var(--text); font-weight: 600; }
.showcase li svg { width: 20px; height: 20px; color: var(--accent-hover); margin-top: 2px; }
.demo-frame {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 30px 100px -30px rgba(42,120,245,.35);
}
.demo-frame .chrome {
  height: 34px;
  display: flex; align-items: center; gap: 7px;
  padding-inline: 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint);
}
.demo-frame .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #2a2a30; }
.demo-frame .chrome span { margin-left: 10px; }
.demo-frame iframe { display: block; width: 100%; height: 640px; border: 0; background: var(--bg); }
.demo-note { margin-top: 12px; font-size: 13px; color: var(--text-faint); text-align: center; }
@media (max-width: 1000px) {
  .showcase { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .demo-frame iframe { height: 560px; }
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { padding-top: 30px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1;
  color: rgba(255,255,255,.05);
}
kbd {
  display: inline-block;
  min-width: 26px;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  background: var(--card);
  font: 600 12.5px/1.5 var(--font-mono);
  color: var(--text);
  text-align: center;
}

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan {
  display: flex; flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  position: relative;
}
.plan.featured {
  border-color: rgba(42,120,245,.6);
  background: linear-gradient(180deg, rgba(42,120,245,.12), rgba(42,120,245,0) 60%), var(--panel);
  box-shadow: 0 30px 80px -40px var(--accent-glow);
}
.plan .badge {
  position: absolute; top: -11px; left: 24px;
  font: 600 11px/1 var(--font-mono);
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: var(--accent); color: #fff;
}
.plan h3 { font-size: 15px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em; font-family: var(--font-mono); }
.plan .price { margin: 16px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan .price .amt { font-family: var(--font-display); font-size: 54px; line-height: 1; }
.plan .price .per { color: var(--text-dim); font-size: 14px; }
.plan .sub { font-size: 14px; color: var(--text-faint); min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 14.5px; color: var(--text-dim); flex: 1; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li svg { width: 16px; height: 16px; color: var(--accent-hover); margin-top: 3px; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
thead th { background: var(--panel); font-weight: 600; color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.015); }
td.c, th.c { text-align: center; }
.yes { color: var(--success); }
.no { color: var(--text-faint); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font: 400 22px/1 var(--font-mono);
  color: var(--accent-hover);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 18px; color: var(--text-dim); font-size: 15px; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- Feature browser ---------- */
.feature-toolbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 10;
  padding: 16px 0;
  background: linear-gradient(var(--bg) 75%, rgba(12,12,14,0));
  display: grid;
  gap: 14px;
}
.search {
  position: relative;
  max-width: 520px;
}
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-faint); }
.search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  font: 15px var(--font-body);
}
.search input::placeholder { color: var(--text-faint); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,120,245,.2); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font: 500 14px var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab .n { opacity: .65; margin-left: 6px; font-family: var(--font-mono); font-size: 12px; }

.feature-group { margin-top: 44px; }
.feature-group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.feature-group-head h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4vw, 42px); }
.feature-group-head p { margin: 0; color: var(--text-dim); font-size: 15px; flex-basis: 100%; }
.feature-group-head .n { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
.feature-sub { margin: 26px 0 12px; font: 600 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.feature {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--panel);
}
.feature h4 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.feature h4::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); flex: none; }
.feature p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
.feature mark { background: rgba(42,120,245,.35); color: #fff; border-radius: 2px; padding: 0 1px; }
.empty { padding: 60px 0; text-align: center; color: var(--text-dim); }

/* ---------- Page header ---------- */
.page-head {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(32px, 4vw, 48px);
  position: relative;
  isolation: isolate;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 600px;
  background: radial-gradient(520px 300px at 50% 40%, rgba(42,120,245,.16), transparent 70%);
  z-index: -1;
}
.page-head h1 { font-size: clamp(52px, 8vw, 96px); margin: 16px 0 18px; }
.page-head .lead { margin: 0; }

/* ---------- Download ---------- */
.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 16px;
  border: 1px solid rgba(42,120,245,.4);
  background: linear-gradient(120deg, rgba(42,120,245,.14), rgba(42,120,245,0) 60%), var(--panel);
}
.download-card h2 { font-size: clamp(26px, 3vw, 34px); }
.download-card dl { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 0; font-size: 14px; }
.download-card dt { color: var(--text-faint); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.download-card dd { margin: 2px 0 0; color: var(--text); font-weight: 500; }
@media (max-width: 700px) { .download-card { grid-template-columns: 1fr; } }

.req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.req-list li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: 15px; }
.req-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.req-list li span:first-child { color: var(--text-faint); }
@media (max-width: 520px) { .req-list li { grid-template-columns: 1fr; gap: 2px; } }

.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); font-size: 14.5px; }
.key-row span { color: var(--text-dim); }

.callout {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(245,180,42,.3);
  background: rgba(245,180,42,.06);
  font-size: 14.5px;
  color: var(--text-dim);
}
.callout svg { width: 20px; height: 20px; color: var(--warn); margin-top: 1px; }
.callout b { color: var(--text); }

/* ---------- Status / changelog ---------- */
.status-board { display: grid; gap: 10px; }
.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.status-row .name { font-weight: 600; }
.status-row .desc { font-size: 13.5px; color: var(--text-dim); }
.status-row .state { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.uptime { display: flex; gap: 3px; margin-top: 10px; }
.uptime i { flex: 1; height: 26px; border-radius: 2px; background: rgba(45,212,160,.55); }
.uptime i.warn { background: rgba(245,180,42,.7); }
.uptime i.none { background: rgba(255,255,255,.06); }

.timeline { position: relative; display: grid; gap: 28px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.release { position: relative; }
.release::before {
  content: ""; position: absolute; left: -28px; top: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.release header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; }
.release h3 { font-size: 20px; }
.release time { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
.release ul { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 15px; display: grid; gap: 6px; }
.release .tagl { font: 600 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; padding: 3px 7px; border-radius: 4px; margin-right: 6px; }
.tagl.new { background: rgba(42,120,245,.18); color: var(--accent-hover); }
.tagl.fix { background: rgba(45,212,160,.14); color: var(--success); }
.tagl.imp { background: rgba(245,180,42,.14); color: var(--warn); }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 760px; color: var(--text-dim); font-size: 16px; }
.prose h2 { color: var(--text); font-size: 24px; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 4px; font-size: 14px; }
.toc a { color: var(--text-dim); padding: 6px 0; }
.toc a:hover { color: var(--text); }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; } .toc { display: none; } }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(42,120,245,.35);
  padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px);
  background:
    radial-gradient(600px 300px at 85% 120%, rgba(42,120,245,.35), transparent 70%),
    var(--panel);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.cta h2 { font-size: clamp(40px, 6vw, 72px); }
.cta p { margin: 12px 0 0; color: var(--text-dim); font-size: 17px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--border); padding: 56px 0 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer .brand img { height: 30px; }
.footer p { color: var(--text-faint); font-size: 14px; max-width: 34ch; margin: 16px 0 0; }
.footer h4 { font: 600 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer ul a { color: var(--text-dim); font-size: 14.5px; }
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--text-faint);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Auth / Login ---------- */
.auth-section { display: grid; place-items: center; min-height: calc(100vh - var(--nav-h) - 120px); padding: 60px 0; }
.auth-shell { width: 100%; max-width: 420px; }
.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 38px; margin: 0 auto; }
.auth-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 24px;
  padding: 3px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-dim);
  font: 600 14px var(--font-body);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active { background: var(--card); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.25); }

.auth-form { display: grid; gap: 16px; }
[hidden] { display: none !important; }
.field label {
  display: block;
  font: 500 13px var(--font-body);
  color: var(--text-dim);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: 400 15px var(--font-body);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field input::placeholder { color: var(--text-faint); }

.auth-submit { margin-top: 4px; position: relative; }
.auth-submit .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-msg {
  text-align: center;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}
.auth-msg[hidden] { display: none; }
.msg-ok { background: rgba(45,212,160,.1); color: var(--success); }
.msg-err { background: rgba(226,64,80,.1); color: var(--danger); }

.auth-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-faint);
  margin: 20px 0 0;
}

/* ---------- Dashboard ---------- */
.dash-section { padding: 60px 0; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(36px, 5vw, 54px); margin-top: 8px; }
.dash-cards { margin-bottom: 56px; }
.dash-cards .card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.card-label { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--text-faint); margin-bottom: 10px; }
.card-value { font: 600 20px var(--font-body); color: var(--text); word-break: break-all; }
.card-sub { font-size: 13px; margin-top: 6px; }
.card-sub.active { color: var(--success); }
.card-sub.expired { color: var(--danger); }
.card-action {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-dim);
  font: 500 12px var(--font-body);
  padding: 5px 10px;
  cursor: pointer;
  transition: color .15s;
}
.card-action:hover { color: var(--text); }

/* ---------- Download panel ---------- */
.dash-download { margin-bottom: 56px; }
.download-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 480px;
  text-align: center;
}
.download-info { margin-bottom: 20px; }
.download-version { font-size: 14px; color: var(--text-dim); font-family: var(--font-mono); }
.download-panel .btn-block { display: block; width: 100%; text-align: center; text-decoration: none; }
.download-note { font-size: 13px; color: var(--text-dim); margin-top: 14px; }

/* ---------- Redeem ---------- */
.dash-redeem { max-width: 480px; }
.redeem-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.redeem-form .field { flex: 1; min-width: 200px; }
.redeem-form .btn { min-height: 42px; }
.redeem-form .auth-msg { flex-basis: 100%; margin-top: 4px; }
