/* ════════════════════════════════════════════════════════════
   BLACKBOX — design system
   Engineered by XPSuedoX
   ════════════════════════════════════════════════════════════ */

@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

[hidden] { display: none !important; }

:root {
  --bg: #04050a;
  --bg-2: #080a14;
  --panel: rgb(14 16 30 / 0.72);
  --panel-solid: #0d0f1d;
  --line: rgb(148 163 255 / 0.12);
  --line-strong: rgb(168 85 247 / 0.45);
  --text: #e8eaf6;
  --muted: #8b90b3;
  --dim: #5b6088;
  --violet: #a855f7;
  --violet-2: #c084fc;
  --indigo: #818cf8;
  --cyan: #22d3ee;
  --pink: #e879f9;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(110deg, var(--violet-2), var(--indigo) 50%, var(--cyan));
  --glow-v: 0 0 24px rgb(168 85 247 / 0.45);
  --glow-c: 0 0 24px rgb(34 211 238 / 0.45);
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1240px;
  --font-display: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgb(168 85 247 / 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgb(34 211 238 / 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgb(129 140 248 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(129 140 248 / 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #67e8f9; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgb(168 85 247 / 0.45); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0.04em; line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-head p { max-width: 52ch; margin: 0; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font: 600 0.72rem/1 var(--font-mono); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--grad); }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgb(4 5 10 / 0.72);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgb(168 85 247 / 0.6)); }
.brand span { font: 700 1.05rem/1 var(--font-display); letter-spacing: 0.32em; }
.brand:hover { color: #fff; }
.nav-links { display: flex; gap: 0.25rem; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  display: block; padding: 0.5rem 0.85rem; border-radius: 8px;
  color: var(--muted); font: 600 0.78rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgb(129 140 248 / 0.08); }
.nav-links a[aria-current='page'] { color: #fff; background: rgb(168 85 247 / 0.16); box-shadow: inset 0 0 0 1px var(--line-strong); }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links, .nav-cta { display: none; }
  .site-header[data-open] .nav-links {
    display: flex; flex-direction: column; position: absolute; inset: 68px 0 auto 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.5rem; margin: 0;
  }
  .site-header[data-open] .nav-links a { padding: 0.9rem 0.75rem; font-size: 0.9rem; }
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
  --b: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.8rem 1.35rem; border-radius: 10px; border: 1px solid var(--b);
  background: rgb(168 85 247 / 0.08); color: var(--text);
  font: 700 0.78rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase;
  cursor: pointer; transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--glow-v); background: rgb(168 85 247 / 0.18); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); border-color: transparent; color: #05060c; box-shadow: 0 8px 30px -8px rgb(168 85 247 / 0.7); }
.btn-primary:hover { color: #05060c; background: var(--grad); box-shadow: 0 10px 38px -6px rgb(34 211 238 / 0.7); }
.btn-ghost { background: transparent; --b: var(--line); }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.7rem; }
.btn-discord { --b: rgb(88 101 242 / 0.6); background: rgb(88 101 242 / 0.15); }
.btn-discord:hover { background: rgb(88 101 242 / 0.3); box-shadow: 0 0 24px rgb(88 101 242 / 0.5); }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ── Panels / cards ─────────────────────────────────── */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* animated gradient border (used on featured items) */
.glow-border { position: relative; isolation: isolate; }
.glow-border::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--angle), transparent 0 55%, var(--violet) 70%, var(--cyan) 85%, transparent 100%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude; -webkit-mask-composite: xor;
  animation: spin-border 4s linear infinite;
  --animation-reduced: none;
}
@keyframes spin-border { to { --angle: 360deg; } }

/* ── Hero ───────────────────────────────────────────── */
.hero { position: relative; min-height: min(92dvh, 900px); display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: kenburns 30s ease-in-out infinite alternate; --animation-reduced: none; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgb(4 5 10 / 0.88) 35%, rgb(4 5 10 / 0.25) 70%, rgb(4 5 10 / 0.5) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
@keyframes kenburns { from { scale: 1.04; translate: 0 0; } to { scale: 1.12; translate: -1.5% -1%; } }
#particles { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-scan { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.018) 0 1px, transparent 1px 3px); }

.hero-inner { padding-block: 6rem 7rem; max-width: 760px; }
.hero h1 { margin-bottom: 1.25rem; text-shadow: 0 0 40px rgb(168 85 247 / 0.35); }
.hero h1 .line { display: block; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c3c7e6; max-width: 56ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none;
}
.glitch:hover::before { opacity: 0.8; color: var(--cyan); translate: 2px 0; clip-path: inset(10% 0 55% 0); animation: glitch 0.4s steps(2) infinite; }
.glitch:hover::after { opacity: 0.8; color: var(--pink); translate: -2px 0; clip-path: inset(60% 0 8% 0); animation: glitch 0.5s steps(2) infinite reverse; }
@keyframes glitch { 0% { translate: 2px 0; } 50% { translate: -3px 1px; } 100% { translate: 1px -1px; } }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3.5rem; max-width: 720px; }
.stat { padding: 1rem 1.25rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat b { display: block; font: 700 clamp(1.5rem, 3vw, 2.1rem)/1.1 var(--font-display); }
.stat span { font: 600 0.68rem/1.4 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 0.5rem 0; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
}

.hidden-sigil {
  position: absolute; right: 21.5%; top: 47%; width: 14px; height: 14px; color: var(--cyan);
  opacity: 0.18; cursor: pointer; background: none; border: 0; padding: 0; transition: opacity 0.3s, scale 0.3s;
}
.hidden-sigil:hover, .hidden-sigil:focus-visible { opacity: 1; scale: 1.6; filter: drop-shadow(0 0 6px var(--cyan)); }
@media (max-width: 900px) { .hidden-sigil { right: 8%; top: 18%; } }

/* page hero (inner pages) */
.page-hero { position: relative; padding-block: clamp(4.5rem, 10vw, 7.5rem) 3rem; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero .bg { position: absolute; inset: 0; z-index: -1; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.page-hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), rgb(4 5 10 / 0.55) 60%, rgb(4 5 10 / 0.8)); }
.page-hero p.lead { color: #c3c7e6; max-width: 60ch; font-size: 1.1rem; }

/* ── Status pill ────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.32rem 0.65rem; border-radius: 99px;
  font: 700 0.66rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase;
  background: rgb(4 5 10 / 0.75); border: 1px solid var(--line); color: var(--muted);
  backdrop-filter: blur(6px);
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.on { color: var(--green); border-color: rgb(52 211 153 / 0.35); }
.pill.on::before { box-shadow: 0 0 0 0 rgb(52 211 153 / 0.6); animation: ping 1.8s infinite; --animation-reduced: none; }
.pill.warn { color: var(--amber); border-color: rgb(251 191 36 / 0.35); }
.pill.off { color: var(--red); border-color: rgb(248 113 113 / 0.3); }
.pill.soon { color: var(--violet-2); border-color: var(--line-strong); }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgb(52 211 153 / 0); } 100% { box-shadow: 0 0 0 0 rgb(52 211 153 / 0); } }

.tag { display: inline-block; padding: 0.25rem 0.55rem; border-radius: 6px; font: 600 0.66rem/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo); background: rgb(129 140 248 / 0.1); border: 1px solid rgb(129 140 248 / 0.2); }

/* ── Server tiles ───────────────────────────────────── */
.toolbar { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.75rem; }
.input, .select, textarea.input {
  background: rgb(8 10 20 / 0.85); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 0.7rem 0.9rem; font: inherit; font-size: 0.92rem; min-width: 0;
}
.input:focus, .select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgb(168 85 247 / 0.2); }
.toolbar .input { flex: 1 1 240px; }
.seg { display: inline-flex; padding: 4px; background: rgb(8 10 20 / 0.85); border: 1px solid var(--line); border-radius: 11px; }
.seg button, .seg label {
  border: 0; background: none; color: var(--muted); padding: 0.5rem 0.9rem; border-radius: 8px; cursor: pointer;
  font: 700 0.7rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.seg [aria-pressed='true'], .seg input:checked + span { color: #fff; background: rgb(168 85 247 / 0.22); box-shadow: inset 0 0 0 1px var(--line-strong); }
.seg label { padding: 0; }
.seg label span { display: block; padding: 0.55rem 1rem; border-radius: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:focus-visible) span { outline: 2px solid var(--cyan); }

.grid-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.4rem; }

.tile {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--panel-solid); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s;
  transform-style: preserve-3d;
}
.tile:hover { border-color: var(--line-strong); box-shadow: 0 20px 60px -20px rgb(168 85 247 / 0.45), 0 0 0 1px rgb(34 211 238 / 0.15); }
.tile-media { position: relative; aspect-ratio: 460 / 215; overflow: hidden; background: #0a0b14; }
.tile-media img.cover { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s var(--ease-out), filter 0.4s; filter: saturate(0.9) brightness(0.85); }
.tile:hover .tile-media img.cover { scale: 1.06; filter: saturate(1.1) brightness(1); }
.tile-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel-solid) 2%, transparent 55%); }
.tile.is-off .tile-media img.cover { filter: grayscale(0.7) brightness(0.55); }
.tile-media .pill { position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2; }
.tile-media .badge-feat { position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2; }
.tile-body { padding: 0.4rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.tile-title { display: flex; justify-content: space-between; gap: 1rem; align-items: start; }
.tile-title h3 { margin: 0; font-size: 1rem; }
.tile-title h3 a { color: var(--text); }
.tile-title h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.tile-title small { display: block; color: var(--muted); font: 600 0.7rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.3rem; }
.tile-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.meter { font: 600 0.66rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.meter b { display: block; font-size: 0.95rem; color: var(--text); letter-spacing: 0.02em; margin-top: 0.15rem; }
.bar { height: 5px; border-radius: 99px; background: rgb(129 140 248 / 0.12); overflow: hidden; margin-top: 0.4rem; }
.bar > i { display: block; height: 100%; width: var(--v, 0%); background: var(--grad); border-radius: inherit; box-shadow: var(--glow-c); transition: width 0.8s var(--ease-out); }
.tile-actions { display: flex; gap: 0.5rem; margin-top: auto; position: relative; z-index: 2; }
.tile-actions .btn { flex: 1; }
.connect-chip { font: 500 0.78rem/1 var(--font-mono); color: var(--muted); background: rgb(129 140 248 / 0.06); border: 1px dashed var(--line); border-radius: 8px; padding: 0.55rem 0.7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.skeleton { background: linear-gradient(90deg, rgb(129 140 248 / 0.06), rgb(129 140 248 / 0.14), rgb(129 140 248 / 0.06)); background-size: 200% 100%; animation: shimmer 1.4s infinite; --animation-reduced: none; border-radius: var(--radius); min-height: 340px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); grid-column: 1 / -1; }

/* ── Server detail ──────────────────────────────────── */
.srv-hero { position: relative; min-height: 440px; display: flex; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.srv-hero .bg { position: absolute; inset: 0; z-index: -1; }
.srv-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.srv-hero .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 4%, rgb(4 5 10 / 0.6) 45%, rgb(4 5 10 / 0.25)), linear-gradient(90deg, rgb(4 5 10 / 0.75), transparent 60%); }
.srv-hero .container { padding-block: 3rem 2.5rem; }
.srv-logo { max-height: 110px; max-width: min(420px, 80%); object-fit: contain; margin-bottom: 1rem; filter: drop-shadow(0 6px 30px rgb(0 0 0 / 0.8)); }
.srv-head { display: flex; gap: 1.5rem; align-items: end; justify-content: space-between; flex-wrap: wrap; }
.crumbs { font: 600 0.72rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cyan); }

.srv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
@media (max-width: 980px) { .srv-layout { grid-template-columns: 1fr; } }
.side-card { padding: 1.4rem; position: sticky; top: 88px; display: grid; gap: 1.1rem; }
.kv { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; border-bottom: 1px dashed var(--line); padding-bottom: 0.65rem; }
.kv span:first-child { color: var(--muted); font: 600 0.72rem/1.6 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.kv:last-child { border-bottom: 0; }

.tabs { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; overflow-x: auto; scrollbar-width: none; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 0.9rem 1.1rem; cursor: pointer;
  font: 700 0.75rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected='true'] { color: #fff; border-bottom-color: var(--violet); text-shadow: var(--glow-v); }
[role='tabpanel'][hidden] { display: none; }
.prose { color: #cdd0ea; }
.prose p { white-space: pre-line; }
.rules { counter-reset: r; list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.rules li { counter-increment: r; display: flex; gap: 0.9rem; padding: 0.85rem 1rem; }
.rules li::before { content: counter(r, decimal-leading-zero); font: 700 0.8rem/1.6 var(--font-mono); color: var(--violet-2); }

.chart { width: 100%; height: 200px; }
.chart .area { fill: url(#chartFill); }
.chart .line { fill: none; stroke: url(#chartStroke); stroke-width: 2; vector-effect: non-scaling-stroke; }
.uptime-bars { display: flex; gap: 3px; height: 34px; align-items: stretch; }
.uptime-bars i { flex: 1; border-radius: 2px; background: rgb(129 140 248 / 0.12); }
.uptime-bars i.up { background: var(--green); opacity: 0.85; }
.uptime-bars i.part { background: var(--amber); }
.uptime-bars i.down { background: var(--red); opacity: 0.7; }
.players-list { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.players-list li { padding: 0.4rem 0.75rem; border-radius: 8px; background: rgb(52 211 153 / 0.08); border: 1px solid rgb(52 211 153 / 0.2); font: 500 0.82rem/1 var(--font-mono); }

.steps { counter-reset: s; display: grid; gap: 1rem; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 1.1rem 1.2rem 1.1rem 3.6rem; }
.steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #05060c; font: 800 0.8rem/1 var(--font-mono); }

/* ── News ───────────────────────────────────────────── */
.grid-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; }
.news-card { display: flex; flex-direction: column; overflow: hidden; color: var(--text); transition: border-color 0.3s, transform 0.3s var(--ease-out); position: relative; }
.news-card:hover { border-color: var(--line-strong); transform: translateY(-3px); color: var(--text); }
.news-card .thumb { aspect-ratio: 16 / 8; background: #0a0b14 center / cover no-repeat; position: relative; }
.news-card .thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel-solid), transparent 60%); }
.news-card .body { padding: 1rem 1.2rem 1.25rem; display: grid; gap: 0.6rem; }
.news-card h3 { font-family: var(--font-body); letter-spacing: 0; font-size: 1.02rem; font-weight: 700; margin: 0; }
.news-meta { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; font: 600 0.68rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.news-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.ai-sum { font-size: 0.86rem; white-space: pre-line; color: #d6d9f2; padding: 0.75rem 0.9rem; border-radius: 10px; background: linear-gradient(135deg, rgb(168 85 247 / 0.1), rgb(34 211 238 / 0.06)); border: 1px solid rgb(168 85 247 / 0.25); }
.ai-sum b { display: block; font: 700 0.64rem/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet-2); margin-bottom: 0.45rem; }

/* ── Support ────────────────────────────────────────── */
.goal { padding: 1.6rem 1.8rem; display: grid; gap: 0.9rem; }
.goal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.goal-top b { font: 700 1.9rem/1 var(--font-display); }
.goal-top .eyebrow { display: flex; }
.goal .bar { height: 12px; }
.grid-tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; align-items: stretch; }
@media (max-width: 1180px) { .grid-tiers { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.tier { --c: var(--violet); padding: 1.5rem 1.3rem; display: flex; flex-direction: column; gap: 1rem; position: relative; overflow: hidden; transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.3s; }
.tier::after { content: ''; position: absolute; inset: auto -30% -60% -30%; height: 70%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 35%, transparent), transparent); opacity: 0.45; pointer-events: none; transition: opacity 0.3s; }
.tier:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 24px 60px -24px var(--c); }
.tier:hover::after { opacity: 0.9; }
.tier .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); box-shadow: 0 0 22px color-mix(in srgb, var(--c) 40%, transparent); }
.tier .icon svg { width: 24px; height: 24px; }
.tier h3 { margin: 0; color: var(--c); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.95rem; }
.tier .price { font: 800 2.4rem/1 var(--font-display); }
.tier .price small { font: 600 0.8rem/1 var(--font-mono); color: var(--muted); letter-spacing: 0.06em; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; align-content: start; gap: 0.55rem; font-size: 0.88rem; color: #c9cce8; flex: 1; }
.tier li { display: flex; gap: 0.55rem; }
.tier li::before { content: '▸'; color: var(--c); }
.tier .btn { width: 100%; position: relative; z-index: 1; }
.tier.featured { border-color: transparent; }
.tier .ribbon { position: absolute; top: 1rem; right: 1rem; font: 800 0.6rem/1 var(--font-mono); letter-spacing: 0.16em; padding: 0.35rem 0.55rem; border-radius: 6px; background: var(--grad); color: #05060c; }
.alloc { display: grid; gap: 0.9rem; }
.alloc-row { display: grid; grid-template-columns: 180px 1fr 48px; gap: 1rem; align-items: center; font-size: 0.9rem; }
@media (max-width: 600px) { .alloc-row { grid-template-columns: 1fr 48px; } .alloc-row .bar { grid-column: 1 / -1; grid-row: 2; } }
.wall { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wall span { padding: 0.5rem 0.85rem; border-radius: 9px; font: 600 0.82rem/1 var(--font-mono); border: 1px solid var(--line); background: rgb(14 16 30 / 0.7); }
.wall span[data-tier='overclock'], .wall span[data-tier='mainframe'] { border-color: var(--line-strong); box-shadow: var(--glow-v); }
.notice { padding: 0.9rem 1.1rem; border-radius: 10px; border: 1px solid rgb(251 191 36 / 0.35); background: rgb(251 191 36 / 0.08); color: #fde68a; font-size: 0.9rem; }

details.faq { padding: 0; }
details.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--violet-2); font: 700 1.2rem/1 var(--font-mono); transition: rotate 0.25s; }
details.faq[open] summary::after { rotate: 45deg; }
details.faq > div { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq-list { display: grid; gap: 0.75rem; }

/* ── Hardware ───────────────────────────────────────── */
.hw-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hw-row:nth-child(even) .hw-media { order: 2; }
@media (max-width: 880px) { .hw-row { grid-template-columns: 1fr; } .hw-row:nth-child(even) .hw-media { order: 0; } }
.hw-media { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgb(168 85 247 / 0.45); }
.hw-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hw-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgb(168 85 247 / 0.15), transparent 40%, rgb(34 211 238 / 0.12)); mix-blend-mode: screen; }
.hw-media .corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--cyan); z-index: 1; }
.hw-media .corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.hw-media .corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-top: 1.5rem; }
.spec { padding: 1rem 1.1rem; }
.spec b { display: block; font: 700 1.5rem/1.1 var(--font-display); }
.spec span { font: 600 0.66rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hw-stack { display: grid; gap: clamp(4rem, 8vw, 7rem); }
.live-load { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.live-load .panel { padding: 1.3rem; }

/* ── CTA band ───────────────────────────────────────── */
.cta-band { padding: clamp(2.5rem, 6vw, 4rem); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; overflow: hidden; position: relative; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 0% 0%, rgb(88 101 242 / 0.25), transparent), radial-gradient(500px 300px at 100% 100%, rgb(168 85 247 / 0.25), transparent); z-index: -1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.feature { padding: 1.5rem; }
.feature .icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgb(168 85 247 / 0.12); border: 1px solid var(--line-strong); color: var(--violet-2); margin-bottom: 1rem; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 0.95rem; }
.feature p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ── Ticker ─────────────────────────────────────────── */
.ticker { border-block: 1px solid var(--line); background: rgb(8 10 20 / 0.7); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 3rem; padding: 0.75rem 0; animation: marquee 40s linear infinite; --animation-reduced: none; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font: 600 0.75rem/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 0.6rem; align-items: center; }
.ticker-item b { color: var(--text); }
.ticker-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.ticker-item .dot.off { background: var(--dim); box-shadow: none; }
@keyframes marquee { to { translate: -50% 0; } }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding-block: 3.5rem 2rem; background: linear-gradient(0deg, rgb(168 85 247 / 0.05), transparent); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font: 700 0.7rem/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.foot-grid a { color: #c3c7e6; font-size: 0.92rem; }
.foot-grid a:hover { color: var(--cyan); }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font: 500 0.75rem/1.5 var(--font-mono); color: var(--dim); }
.signature { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.signature img { width: 16px; height: 16px; opacity: 0.8; }
.signature b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.signature:hover img { filter: drop-shadow(0 0 6px var(--cyan)); opacity: 1; }

/* ── Toast ──────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; translate: -50% 0; z-index: 100;
  padding: 0.8rem 1.2rem; border-radius: 10px; background: var(--panel-solid); border: 1px solid var(--line-strong);
  box-shadow: var(--glow-v); font: 600 0.82rem/1 var(--font-mono);
  transition: opacity 0.25s, translate 0.25s var(--ease-out), display 0.25s allow-discrete;
  transition-behavior: allow-discrete;
}
.toast[hidden] { display: none; opacity: 0; translate: -50% 10px; }
@starting-style { .toast { opacity: 0; translate: -50% 10px; } }

/* ── Dialogs (terminal easter egg + admin editor) ───── */
dialog {
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel-solid); color: var(--text);
  padding: 0; max-width: min(720px, calc(100% - 2rem)); width: 100%;
  box-shadow: 0 30px 120px -20px rgb(168 85 247 / 0.5);
  opacity: 1; scale: 1;
  transition: opacity 0.25s, scale 0.25s var(--ease-out), display 0.25s allow-discrete, overlay 0.25s allow-discrete;
}
dialog:not([open]) { opacity: 0; scale: 0.96; }
@starting-style { dialog[open] { opacity: 0; scale: 0.96; } }
dialog::backdrop { background: rgb(2 3 8 / 0.75); backdrop-filter: blur(4px); transition: opacity 0.25s, display 0.25s allow-discrete, overlay 0.25s allow-discrete; }
@starting-style { dialog[open]::backdrop { opacity: 0; } }

.terminal { font: 500 0.88rem/1.7 var(--font-mono); color: #a7f3d0; background: #020306; padding: 1.4rem 1.6rem 1.8rem; min-height: 340px; white-space: pre-wrap; }
.terminal .hl { color: var(--cyan); }
.terminal .vi { color: var(--violet-2); }
.terminal-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); font: 600 0.72rem/1 var(--font-mono); color: var(--muted); letter-spacing: 0.12em; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.terminal-bar i:nth-child(2) { background: #fbbf24; }
.terminal-bar i:nth-child(3) { background: #34d399; margin-right: 0.6rem; }
.terminal-bar button { margin-left: auto; }
.cursor { display: inline-block; width: 0.6em; height: 1.1em; background: #a7f3d0; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Scroll reveal (CSS scroll-driven, progressive) ── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }

/* ── Admin ──────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.75rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font: 700 0.66rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.admin-table tr:hover td { background: rgb(129 140 248 / 0.04); }
.admin-table img { width: 92px; border-radius: 6px; aspect-ratio: 460/215; object-fit: cover; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: grid; gap: 0.4rem; font: 600 0.7rem/1.2 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.form-grid .check { display: flex; align-items: center; gap: 0.6rem; text-transform: none; letter-spacing: 0; font: 500 0.9rem/1.2 var(--font-body); color: var(--text); }
.form-grid .check input { width: 18px; height: 18px; accent-color: var(--violet); }
.dialog-head, .dialog-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.dialog-foot { border-bottom: 0; border-top: 1px solid var(--line); }
.dialog-head h3 { margin: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.scroll-x { overflow-x: auto; }

/* reduced motion: swap heavy animations for their --animation-reduced value */
@property --animation-reduced { syntax: '*'; inherits: false; initial-value: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg img, .glow-border::before, .pill.on::before, .ticker-track, .skeleton { animation: var(--animation-reduced) !important; }
  .tile, .tier, .btn { transition: none; }
}
