:root {
  --ink: #070a0d;
  --ink-2: #0d1317;
  --ink-3: #121d21;
  --paper: #f0f4ef;
  --muted: #8a9999;
  --line: rgba(224, 244, 241, 0.16);
  --cyan: #5cecff;
  --acid: #d7ff45;
  --signal: #ff664d;
  --amber: #ffb340;
  --radius: 6px;
  --content: min(1320px, calc(100vw - 64px));
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-shell { min-height: 100svh; overflow-x: clip; }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 0 max(32px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 10, 13, 0.48);
  backdrop-filter: blur(16px) saturate(125%);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; width: fit-content; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  background: #071116;
  color: var(--cyan);
  font: 700 12px/1 var(--mono);
  clip-path: polygon(12% 0, 100% 0, 100% 76%, 78% 100%, 0 100%, 0 24%);
}
.brand-mark.small { width: 30px; height: 30px; font-size: 10px; }
.brand-copy { display: grid; line-height: 1; gap: 7px; }
.brand-copy strong { font: 700 17px/1 var(--mono); letter-spacing: 0; }
.brand-copy small { color: var(--muted); font: 600 9px/1 var(--mono); }
.site-nav { display: flex; gap: 32px; }
.site-nav a { color: #b7c2c1; text-decoration: none; font: 600 13px/1 var(--mono); padding: 9px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--paper); border-color: var(--acid); }
.header-signal { justify-self: end; display: inline-flex; align-items: center; gap: 9px; color: #b3c0bd; font: 600 11px/1 var(--mono); }
.signal-dot { display: inline-block; width: 7px; height: 7px; border: 1px solid var(--acid); background: var(--acid); box-shadow: 0 0 16px rgba(215, 255, 69, 0.8); }
.header-signal:has([data-field="short-status"]:not([data-state="online"])) .signal-dot { background: var(--signal); border-color: var(--signal); }

.hero {
  position: relative;
  min-height: 900px;
  height: 100svh;
  max-height: 1040px;
  display: flex;
  align-items: center;
  background: #06090c url("/assets/hero-test-range.webp") center right / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #070a0d 0%, rgba(7, 10, 13, 0.96) 22%, rgba(7, 10, 13, 0.65) 48%, rgba(7, 10, 13, 0.08) 76%, rgba(7, 10, 13, 0.18) 100%);
}
.hero::after {
  content: "";
  position: absolute;
  left: var(--header-x, 0);
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}
.hero-copy { width: var(--content); margin: 0 auto; padding-top: 92px; }
.eyebrow { width: 570px; max-width: 65%; display: flex; align-items: center; gap: 13px; color: #bdcbc8; font: 600 10px/1 var(--mono); }
.eyebrow > :last-child { color: var(--acid); }
.eyebrow-rule { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.22); }
.hero h1 {
  margin: 29px 0 22px;
  font-size: 6.5rem;
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 760;
  max-width: 700px;
  text-wrap: balance;
}
.hero h1 em { color: var(--cyan); font-style: normal; font-size: 0.72em; display: inline-block; margin-top: 12px; }
.hero-lede { width: 560px; max-width: 78%; margin: 0; color: #c0cbca; font-size: 18px; line-height: 1.7; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font: 700 13px/1 var(--mono);
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}
.button svg { width: 18px; height: 18px; }
.button-primary { background: var(--acid); color: #101407; border-color: var(--acid); }
.button-secondary { background: rgba(7, 10, 13, 0.58); color: var(--paper); }
.button:hover { transform: translateY(-2px); }
.button-secondary:hover { border-color: var(--cyan); background: rgba(12, 20, 25, 0.8); }
.hero-readout { width: min(780px, 82%); display: grid; grid-template-columns: 1.08fr 1fr 0.82fr; gap: 1px; margin-top: 52px; border-top: 1px solid var(--line); }
.hero-readout div { display: grid; gap: 8px; padding: 14px 18px 0 0; }
.hero-readout span { color: var(--muted); font: 600 9px/1 var(--mono); }
.hero-readout strong { font: 600 13px/1.3 var(--mono); color: #d9e5e2; }
.hero-index { position: absolute; right: max(32px, calc((100vw - 1320px) / 2)); bottom: 42px; display: flex; align-items: center; gap: 12px; color: var(--muted); font: 600 10px/1 var(--mono); }
.hero-index span:first-child { color: var(--paper); }
.hero-index i { display: block; width: 80px; height: 1px; background: var(--line); }

.section-label, .section-index { color: var(--muted); font: 600 10px/1 var(--mono); }
.section-label { width: var(--content); margin: 0 auto; display: flex; justify-content: space-between; padding: 18px 0 0; }
.telemetry { background: #0b1013; border-bottom: 1px solid var(--line); }
.telemetry-grid { width: var(--content); margin: 0 auto; display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr 52px; min-height: 138px; align-items: stretch; }
.telemetry-lead, .telemetry-stat { padding: 24px 24px; border-left: 1px solid var(--line); }
.telemetry-lead { border-left: 0; }
.telemetry-lead > span, .telemetry-stat > span { display: block; color: var(--muted); font: 600 10px/1 var(--mono); }
.telemetry-lead strong { font: 560 4.2rem/0.9 var(--mono); letter-spacing: 0; }
.telemetry-lead strong + .telemetry-unit { font: 600 1.3rem/1 var(--mono); color: var(--muted); margin-left: 6px; }
.telemetry-lead p { margin: 15px 0 0; display: flex; align-items: center; gap: 8px; color: #b6c3c0; font: 600 10px/1 var(--mono); }
.telemetry-lead p .signal-dot { width: 6px; height: 6px; }
.telemetry-stat { display: flex; flex-direction: column; justify-content: center; }
.telemetry-stat strong { font: 560 2.1rem/1 var(--mono); margin: 14px 0 7px; }
.telemetry-stat small { color: var(--muted); font-size: 11px; }
.telemetry-link { display: grid; place-items: center; border-left: 1px solid var(--line); color: var(--acid); }
.telemetry-link svg { width: 24px; height: 24px; }

.control-band, .ac-band, .access-band, .command-band { width: var(--content); margin: 0 auto; padding: 110px 0; }
.control-band { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 100px; border-bottom: 1px solid var(--line); }
.section-intro h2, .ac-heading h2, .access-copy h2, .command-heading h2 { margin: 20px 0 20px; font-size: 2.7rem; line-height: 1.08; letter-spacing: 0; text-wrap: balance; }
.section-intro p, .ac-heading p, .access-copy p, .command-heading p { color: #a8b5b2; max-width: 500px; margin: 0; }
.control-rules { border-top: 1px solid var(--line); }
.rule-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 22px; align-items: start; padding: 25px 0; border-bottom: 1px solid var(--line); }
.rule-number { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--cyan); font: 600 11px/1 var(--mono); }
.rule-row h3 { margin: 0 0 7px; font-size: 16px; }
.rule-row p { margin: 0; color: #94a1a0; font-size: 13px; line-height: 1.65; }
.rule-state { margin-top: 6px; color: var(--acid); font: 600 9px/1 var(--mono); }

.ac-band { border-bottom: 1px solid var(--line); }
.ac-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 42px; }
.ac-heading .section-index { flex: 0 0 auto; }
.ac-heading h2 { margin: 0; }
.ac-heading p { width: 350px; text-align: right; }
.ac-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); }
.ac-item { min-height: 190px; display: flex; flex-direction: column; padding: 18px; border-right: 1px solid var(--line); position: relative; }
.ac-item:last-child { border-right: 0; }
.ac-item > span { color: var(--muted); font: 600 10px/1 var(--mono); }
.ac-item strong { margin: auto 0 6px; font: 700 15px/1.2 var(--mono); }
.ac-item small { color: var(--muted); font: 500 9px/1 var(--mono); }
.ac-item i { width: 9px; height: 9px; position: absolute; top: 16px; right: 16px; border: 1px solid var(--muted); }
.ac-item[data-state="online"] i, .engine-list div[data-state="online"] i { background: var(--acid); border-color: var(--acid); box-shadow: 0 0 15px rgba(215, 255, 69, 0.5); }
.ac-item[data-state="offline"] i, .engine-list div[data-state="offline"] i { background: var(--signal); border-color: var(--signal); }

.access-band { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 100px; border-bottom: 1px solid var(--line); }
.access-copy p { max-width: 440px; }
.access-steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.access-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.access-steps li > span { color: var(--cyan); font: 600 11px/1.2 var(--mono); }
.access-steps div { display: grid; gap: 12px; }
.access-steps strong { font-size: 16px; }
.access-steps code { color: var(--acid); font-family: var(--mono); font-size: 13px; }
.access-steps p { margin: 0; color: #a8b5b2; font-size: 13px; }

.command-band { display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 100px; }
.command-table { display: grid; border-top: 1px solid var(--line); }
.command-table > div { display: grid; grid-template-columns: minmax(180px, 0.9fr) 1.1fr; gap: 24px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: center; }
.command-table code { color: var(--cyan); font: 600 12px/1.3 var(--mono); overflow-wrap: anywhere; }
.command-table span { color: #a8b5b2; font-size: 13px; }

.site-footer {
  width: var(--content);
  margin: 0 auto;
  min-height: 116px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer > div { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.site-footer strong { font: 600 12px/1 var(--mono); }
.site-footer p { font: 500 9px/1.5 var(--mono); text-align: center; }
.site-footer a { justify-self: end; color: var(--acid); text-decoration: none; font: 600 10px/1 var(--mono); }

.status-page .site-header { position: relative; background: #080c0f; }
.status-main { width: var(--content); margin: 0 auto; }
.status-hero { padding: 90px 0 56px; max-width: 830px; }
.status-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.status-hero h1 { margin: 20px 0 18px; font-size: 4.2rem; line-height: 1; letter-spacing: 0; }
.status-hero > p { color: #a8b5b2; max-width: 620px; margin: 0; }
.status-connection { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; color: #b8c5c1; font: 600 11px/1 var(--mono); }
.status-dashboard { display: grid; grid-template-columns: 1.35fr repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { min-height: 172px; padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.metric:last-child { border-right: 0; }
.metric > span { color: var(--muted); font: 600 10px/1 var(--mono); }
.metric strong { margin: 17px 0 8px; font: 560 2.6rem/1 var(--mono); }
.metric strong small { color: var(--muted); font-size: 1rem; }
.metric p { margin: 0; color: var(--muted); font-size: 11px; }
.metric-primary { background: #0d1417; }
.metric-primary strong { font-size: 4.5rem; }
.status-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 72px; background: var(--line); border: 1px solid var(--line); }
.panel { background: var(--ink); padding: 28px; }
.panel-heading { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font: 600 10px/1 var(--mono); }
.player-list { display: grid; }
.player-list div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.player-list span { color: var(--muted); font-size: 12px; }
.player-list strong { font: 500 12px/1.5 var(--mono); overflow-wrap: anywhere; }
.server-facts { margin: 0; display: grid; }
.server-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.server-facts dt { color: var(--muted); font-size: 12px; }
.server-facts dd { margin: 0; font: 500 12px/1.4 var(--mono); }
.engine-panel { margin-top: 1px; border: 1px solid var(--line); padding: 28px; }
.engine-list { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 18px; }
.engine-list div { display: grid; gap: 5px; padding: 20px; border-right: 1px solid var(--line); position: relative; }
.engine-list div:last-child { border-right: 0; }
.engine-list strong { font: 600 13px/1.2 var(--mono); }
.engine-list span { color: var(--muted); font: 500 9px/1 var(--mono); }
.engine-list i { position: absolute; right: 18px; top: 18px; width: 8px; height: 8px; border: 1px solid var(--muted); }
.status-note { padding: 72px 0 100px; max-width: 720px; }
.status-note p { margin: 18px 0 0; color: #a8b5b2; font-size: 16px; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 16px;
  border: 1px solid var(--acid);
  background: #0d1410;
  color: var(--paper);
  font: 600 12px/1 var(--mono);
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  :root { --content: min(calc(100% - 48px), 900px); }
  .site-header { padding: 0 24px; grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { min-height: 820px; }
  .hero-copy { padding-top: 120px; }
  .hero h1 { font-size: 5.2rem; }
  .telemetry-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .telemetry-link { display: none; }
  .control-band, .access-band, .command-band { grid-template-columns: 1fr; gap: 54px; }
  .ac-heading { display: block; }
  .ac-heading p { width: auto; text-align: left; margin-top: 20px; }
  .ac-grid { grid-template-columns: repeat(3, 1fr); }
  .ac-item:nth-child(3) { border-right: 0; }
  .ac-item:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .ac-item:nth-child(5) { border-right: 0; }
  .status-dashboard { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--line); }
  .metric:nth-child(even) { border-right: 0; }
  .metric-primary { grid-column: span 1; }
  .status-columns { grid-template-columns: 1fr; }
  .engine-list { grid-template-columns: 1fr; }
  .engine-list div { border-right: 0; border-bottom: 1px solid var(--line); }
  .engine-list div:last-child { border-bottom: 0; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p { display: none; }
}

@media (max-width: 700px) {
  :root { --content: calc(100% - 32px); }
  .site-header { height: 70px; padding: 0 16px; }
  .brand-copy small { display: none; }
  .header-signal { font-size: 9px; }
  .hero {
    min-height: 780px;
    height: 100svh;
    background-position: 64% center;
  }
  .hero::before { background: linear-gradient(180deg, rgba(7, 10, 13, 0.82) 0%, rgba(7, 10, 13, 0.92) 48%, rgba(7, 10, 13, 0.35) 100%); }
  .hero-copy { padding-top: 110px; align-self: start; }
  .eyebrow { width: 100%; max-width: none; font-size: 9px; }
  .hero h1 { margin-top: 24px; font-size: 3.45rem; line-height: 0.96; }
  .hero h1 em { font-size: 0.68em; margin-top: 10px; }
  .hero-lede { width: 100%; max-width: none; font-size: 15px; line-height: 1.7; color: #d0d9d6; }
  .hero-actions { margin-top: 26px; }
  .button { min-height: 46px; padding: 0 14px; font-size: 12px; }
  .hero-readout { width: 100%; grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .hero-readout div:last-child { display: none; }
  .hero-index { display: none; }
  .section-label { font-size: 8px; }
  .telemetry-grid { grid-template-columns: 1fr 1fr; }
  .telemetry-lead { grid-column: span 2; border-bottom: 1px solid var(--line); }
  .telemetry-stat { border-bottom: 1px solid var(--line); }
  .telemetry-stat:nth-of-type(3) { border-left: 0; }
  .control-band, .ac-band, .access-band, .command-band { padding: 76px 0; }
  .section-intro h2, .ac-heading h2, .access-copy h2, .command-heading h2 { font-size: 2rem; }
  .rule-row { grid-template-columns: 34px 1fr; }
  .rule-state { grid-column: 2; }
  .ac-grid { grid-template-columns: 1fr; }
  .ac-item { min-height: 124px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ac-item:last-child { border-bottom: 0; }
  .ac-item strong { margin-top: 32px; }
  .command-table > div { grid-template-columns: 1fr; gap: 6px; }
  .site-footer { min-height: 128px; grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .site-footer a { justify-self: start; }
  .status-hero { padding: 62px 0 42px; }
  .status-title-row { display: block; }
  .status-hero h1 { font-size: 2.9rem; }
  .status-connection { margin-top: 20px; }
  .status-dashboard { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 145px; padding: 18px; }
  .metric-primary strong { font-size: 3.4rem; }
  .status-columns { margin-top: 48px; }
  .panel, .engine-panel { padding: 20px; }
  .player-list div, .server-facts div { grid-template-columns: 86px 1fr; }
  .status-note { padding: 54px 0 70px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

