/* OGCops — ogcops.com design system
   Dark, precise, gold/silver brand. No frameworks. */

:root {
  --bg: #07090d;
  --bg-2: #0b0f15;
  --surface: #0f141c;
  --surface-2: #141b26;
  --surface-3: #1a2231;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #e9edf3;
  --text-2: #aeb7c6;
  --muted: #7d8798;
  --gold: #d8a94c;
  --gold-2: #f0c66a;
  --gold-deep: #a97d2c;
  --silver: #c9cfd9;
  --blue: #83b5ff;
  --discord: #5865f2;
  --discord-2: #6d78ff;
  --ok: #3ddc84;
  --warn: #f5b342;
  --bad: #ff5d5d;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .5);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, .35);
  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1180px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(216, 169, 76, .14), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, rgba(131, 181, 255, .08), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, rgba(216, 169, 76, .07), transparent 60%),
    linear-gradient(180deg, #080a0f 0%, #07090d 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, .9), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, .9), transparent 70%);
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--text-2); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
::selection { background: rgba(216, 169, 76, .35); }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-border);
  cursor: pointer; white-space: nowrap; text-decoration: none !important;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .28); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  --btn-fg: #15110a; --btn-border: transparent;
  box-shadow: 0 10px 30px rgba(216, 169, 76, .25);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(216, 169, 76, .35); }
.btn-discord { --btn-bg: var(--discord); --btn-fg: #fff; --btn-border: transparent; box-shadow: 0 10px 30px rgba(88, 101, 242, .3); }
.btn-discord:hover { --btn-bg: var(--discord-2); box-shadow: 0 14px 40px rgba(88, 101, 242, .4); }
.btn-ghost { --btn-bg: rgba(255, 255, 255, .03); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(7, 9, 13, .6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.topbar.scrolled { border-bottom-color: var(--border); background: rgba(7, 9, 13, .82); }
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; }
.brand img { height: 36px; width: auto; }
.brand .brand-mark { height: 38px; }
.brand .brand-word { height: 22px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-2); font-weight: 500; font-size: .93rem; padding: 10px 14px; border-radius: 999px;
  text-decoration: none !important; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.active { color: var(--text); background: rgba(216, 169, 76, .12); }
.nav a.active::after { display: none; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px; background: rgba(255, 255, 255, .03);
}
.lang-switch button {
  border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: .78rem; letter-spacing: .06em;
  padding: 6px 10px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .03); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .3s, background .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, top .3s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
main { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; z-index: -1; opacity: .9; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 50%, #f5dfae);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .9rem; display: flex; gap: 10px; align-items: center; }
.hero-note svg { width: 16px; height: 16px; color: var(--gold-2); }

.console {
  position: relative; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(20, 27, 38, .92), rgba(12, 16, 23, .92));
  box-shadow: var(--shadow); overflow: hidden;
}
.console::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at 80% -20%, rgba(216, 169, 76, .18), transparent 60%);
}
.console-head {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.console-body { padding: 22px 20px 20px; display: grid; gap: 16px; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .8rem; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
.live-dot[data-state="degraded"] i { background: var(--warn); box-shadow: 0 0 0 0 rgba(245, 179, 66, .6); }
.live-dot[data-state="down"] i { background: var(--bad); box-shadow: 0 0 0 0 rgba(255, 93, 93, .6); animation: none; }
.live-dot[data-state="unknown"] i { background: var(--muted); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.console-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric {
  padding: 14px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); border: 1px solid var(--border);
}
.metric .label { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.metric .value { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; margin-top: 4px; line-height: 1.1; color: var(--text); }
.metric .value small { font-size: .8rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.console-chart { height: 96px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02); border: 1px solid var(--border); overflow: hidden; }
.console-chart canvas { width: 100%; height: 100%; }
.console-foot { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); }
.console-foot a { color: var(--gold-2); }

/* ---------- Stat strip ---------- */
.strip { border-block: 1px solid var(--border); background: rgba(255, 255, 255, .015); }
.strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip .item { padding: 22px 18px; border-left: 1px solid var(--border); }
.strip .item:first-child { border-left: 0; padding-left: 0; }
.strip .k { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.strip .v { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-top: 4px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-main { grid-template-columns: 1.6fr 1fr; }
.card {
  position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 16px; }
.card p { color: var(--text-2); margin: 0; font-size: .96rem; }
.card-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(216, 169, 76, .22), rgba(216, 169, 76, .06));
  border: 1px solid rgba(216, 169, 76, .3); color: var(--gold-2);
}
.card-icon svg { width: 22px; height: 22px; }
.card.featured { border-color: rgba(216, 169, 76, .35); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--border-strong); color: var(--text-2); background: rgba(255, 255, 255, .03);
}
.pill.mono { text-transform: none; letter-spacing: 0; font-family: var(--font-mono); font-size: .78rem; }
.pill.gold { color: var(--gold-2); border-color: rgba(216, 169, 76, .4); background: rgba(216, 169, 76, .1); }
.pill.ok { color: var(--ok); border-color: rgba(61, 220, 132, .35); background: rgba(61, 220, 132, .08); }
.pill.warn { color: var(--warn); border-color: rgba(245, 179, 66, .35); background: rgba(245, 179, 66, .08); }
.pill.bad { color: var(--bad); border-color: rgba(255, 93, 93, .35); background: rgba(255, 93, 93, .08); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 28px 26px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.steps li::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; color: var(--gold-2);
}
.steps h3 { margin: 12px 0 8px; }
.steps p { margin: 0; color: var(--text-2); font-size: .95rem; }
.steps.vertical { grid-template-columns: 1fr; gap: 12px; }
.steps.vertical li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 20px 22px; }
.steps.vertical li::before { font-size: 1.2rem; font-family: var(--font-display); font-weight: 700; color: var(--gold-2); line-height: 1.2; letter-spacing: 0; }
.steps.vertical h3 { margin: 0 0 4px; }

/* ---------- Release / changelog ---------- */
.release { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: stretch; }
.release .card { display: flex; flex-direction: column; }
.release-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.release ul { margin: 10px 0 0; padding-left: 18px; color: var(--text-2); }
.release ul li { margin-bottom: 6px; }
.release .card .btn { margin-top: auto; align-self: flex-start; }

.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(216, 169, 76, .05)); }
.timeline .entry { position: relative; margin-bottom: 26px; }
.timeline .entry::before {
  content: ""; position: absolute; left: -31px; top: 10px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold); box-shadow: 0 0 0 4px rgba(216, 169, 76, .14);
}
.timeline .entry.latest::before { background: var(--gold); }
.timeline .entry .card { padding: 22px 24px; }
.timeline .entry h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.timeline .entry ul { margin: 0; padding-left: 18px; color: var(--text-2); }
.timeline .entry li { margin-bottom: 6px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 24px; padding: 56px 48px;
  background: linear-gradient(135deg, rgba(88, 101, 242, .22), rgba(88, 101, 242, .06) 50%, rgba(216, 169, 76, .1));
  border: 1px solid rgba(88, 101, 242, .35);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, .35), transparent 65%); pointer-events: none;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--text-2); margin: 0; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.cta-band .actions .hint { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 40px; background: rgba(0, 0, 0, .25); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer p { color: var(--text-2); font-size: .93rem; max-width: 40ch; }
.footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-family: var(--font-mono); font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--text-2); }
.footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.disclaimer { font-size: .8rem; color: var(--muted); max-width: 70ch; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 36px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 14px 0 14px; }
.page-hero .lead { font-size: 1.08rem; }

/* ---------- Status page ---------- */
.status-top { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: stretch; }
.status-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px;
  border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .03); font-weight: 600;
}
.status-badge i { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); }
.status-badge[data-state="operational"] { border-color: rgba(61, 220, 132, .4); background: rgba(61, 220, 132, .08); }
.status-badge[data-state="operational"] i { background: var(--ok); box-shadow: 0 0 16px rgba(61, 220, 132, .7); }
.status-badge[data-state="degraded"] { border-color: rgba(245, 179, 66, .4); background: rgba(245, 179, 66, .08); }
.status-badge[data-state="degraded"] i { background: var(--warn); box-shadow: 0 0 16px rgba(245, 179, 66, .7); }
.status-badge[data-state="down"] { border-color: rgba(255, 93, 93, .4); background: rgba(255, 93, 93, .08); }
.status-badge[data-state="down"] i { background: var(--bad); box-shadow: 0 0 16px rgba(255, 93, 93, .7); }
.status-updated { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.status-updated .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--gold-2); animation: spin 1s linear infinite; opacity: 0; transition: opacity .2s; }
.status-updated.busy .spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.pulse-card { position: relative; min-height: 300px; display: grid; place-items: center; overflow: hidden; padding: 0; }
.pulse-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pulse-center { position: relative; text-align: center; z-index: 1; }
.pulse-center .big { font-family: var(--font-mono); font-size: 3.6rem; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.pulse-center .cap { color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; }

.components { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.component { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; }
.component .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--muted); }
.component[data-state="up"] .dot { background: var(--ok); box-shadow: 0 0 12px rgba(61, 220, 132, .6); }
.component[data-state="degraded"] .dot { background: var(--warn); box-shadow: 0 0 12px rgba(245, 179, 66, .6); }
.component[data-state="down"] .dot { background: var(--bad); box-shadow: 0 0 12px rgba(255, 93, 93, .6); }
.component h3 { margin: 0 0 2px; font-size: 1rem; }
.component .state { font-size: .85rem; color: var(--text-2); }
.component .extra { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin-top: 6px; }

.metrics-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metrics-4 .metric { padding: 20px 22px; }
.metrics-4 .metric .value { font-size: 2rem; }

.chart-card { padding: 22px 22px 16px; display: flex; flex-direction: column; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.chart-head h3 { margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.chart-wrap { position: relative; height: 260px; flex: 1; min-height: 260px; }
.chart-wrap.small { height: 200px; }
.chart-wrap canvas { width: 100%; height: 100%; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; pointer-events: none; }
.chart-tip {
  position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 12px));
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 10px;
  font-family: var(--font-mono); font-size: .76rem; white-space: nowrap; opacity: 0; transition: opacity .15s; box-shadow: var(--shadow-sm);
}
.chart-tip.show { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; font-size: .85rem; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.table th { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table td.num { font-family: var(--font-mono); }
.table .empty { color: var(--muted); text-align: center; padding: 28px; }
.bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; min-width: 90px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 999px; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .84rem; margin-top: 14px; }
.privacy-note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--gold-2); }

/* ---------- Download page ---------- */
.gate { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.gate-card { text-align: center; padding: 36px 30px 32px; border-color: rgba(88, 101, 242, .4); background: linear-gradient(170deg, rgba(88, 101, 242, .16), rgba(255, 255, 255, .02) 60%); }
.ring { position: relative; width: 180px; height: 180px; margin: 6px auto 18px; }
.ring canvas { width: 100%; height: 100%; }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 3rem; font-weight: 600; }
.gate-card h2 { font-size: 1.5rem; }
.gate-card p { color: var(--text-2); }
.gate-card .actions { display: grid; gap: 10px; margin-top: 20px; }
.gate-card .stay { background: transparent; border: 0; color: var(--muted); font-size: .85rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.gate-card .stay:hover { color: var(--text); }
.gate-card .done { color: var(--text-2); font-size: .9rem; }
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.why .card { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.why .card svg { width: 20px; height: 20px; color: var(--gold-2); flex: none; margin-top: 2px; }
.why .card strong { display: block; margin-bottom: 2px; }
.req { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.req li { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(255, 255, 255, .02); color: var(--text-2); }
.req li svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid rgba(245, 179, 66, .35); background: rgba(245, 179, 66, .07); color: var(--text-2); }
.notice svg { width: 20px; height: 20px; color: var(--warn); flex: none; margin-top: 2px; }
.notice strong { color: var(--text); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card { padding: 34px 32px; }
.contact-card .big-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--discord); color: #fff; margin-bottom: 18px; box-shadow: 0 12px 30px rgba(88, 101, 242, .35); }
.contact-card .big-icon svg { width: 30px; height: 30px; }
.contact-card .link { font-family: var(--font-mono); font-size: 1.05rem; color: var(--text); display: inline-block; margin: 6px 0 20px; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.topics li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.topics .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(216, 169, 76, .12); border: 1px solid rgba(216, 169, 76, .3); color: var(--gold-2); }
.topics .ic svg { width: 18px; height: 18px; }
.topics strong { display: block; margin-bottom: 2px; }
.topics span { color: var(--text-2); font-size: .93rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code { font-family: var(--font-mono); font-size: 6rem; font-weight: 600; letter-spacing: -.06em; line-height: 1; background: linear-gradient(120deg, var(--silver), var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot i, .status-updated .spin { animation: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .status-top, .gate, .release, .contact-grid, .grid-main { grid-template-columns: 1fr; }
  .metrics-4 { grid-template-columns: repeat(2, 1fr); }
  .components { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 32px; }
  .cta-band .actions { align-items: flex-start; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; --gutter: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 48px; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 18px; background: rgba(7, 9, 13, .96); border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 14px; border-radius: 12px; }
  .nav-toggle { display: inline-flex; }
  .top-actions .btn { display: none; }
  .brand .brand-word { display: none; }
  .strip .container { grid-template-columns: 1fr 1fr; }
  .strip .item { border-left: 0; padding-left: 0; }
  .grid-2, .grid-3, .grid-4, .why { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .console-metrics { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .metric .value { font-size: 1.3rem; }
  .metrics-4 { grid-template-columns: 1fr 1fr; }
  .pulse-center .big { font-size: 2.8rem; }
  .chart-wrap { height: 220px; }
  .table th:nth-child(4), .table td:nth-child(4) { display: none; }
  .steps.vertical li { grid-template-columns: 40px 1fr; gap: 12px; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .console-metrics { grid-template-columns: 1fr 1fr; }
  .metrics-4 { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; }
}
