/* ============================================================
   1号站娱乐游戏 · 共享外壳样式 /assets/site.css
   暗场仪表盘：午夜蓝底 + 霓虹青信号 + A–K 色相刻度
   ============================================================ */

:root {
  --ink-900: #05070F;
  --ink-800: #0B1024;
  --ink-700: #141B36;
  --ink-600: #1D2650;
  --cyan: #3BE8E0;
  --magenta: #FF3D9A;
  --amber: #FFB84D;
  --cloud: #EDF1FA;
  --slate: #8C97B8;
  --red: #FF5C5C;

  --font-display: "Archivo Narrow", "Oswald", "Arial Narrow", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-cn: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: var(--font-cn);
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --cut: 12px;
  --shell: 1320px;
  --header-h: 66px;
  --gutter: 24px;
}

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--ink-800);
  background-image:
    radial-gradient(1100px 620px at 84% -12%, rgba(59, 232, 224, .075), transparent 62%),
    radial-gradient(900px 520px at 2% 34%, rgba(255, 61, 154, .055), transparent 60%),
    linear-gradient(180deg, #0B1024 0%, #0A0E1E 58%, #05070F 100%);
  color: var(--cloud);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(237, 241, 250, .022) 0 1px,
    transparent 1px 4px
  );
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-cn);
  font-weight: 900;
  line-height: 1.28;
  color: var(--cloud);
  margin: 0 0 .6em;
  letter-spacing: -.005em;
}

p { margin: 0 0 1.2em; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7FF5EF; }

ul, ol { margin: 0 0 1.2em; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: .02em; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--amber);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 6px 6px;
  transition: top .18s ease-out;
}

.skip-link:focus { top: 0; color: var(--ink-900); }

/* ---------- A–K 色相刻度 ---------- */
.scale {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.scale > * {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2px;
  display: block;
}

.scale--h { flex-direction: row; }
.scale--v { flex-direction: column; }

.scale > *:nth-child(1)  { background: #3BE8E0; }
.scale > *:nth-child(2)  { background: #4FD1C5; }
.scale > *:nth-child(3)  { background: #7BD88F; }
.scale > *:nth-child(4)  { background: #C3E05A; }
.scale > *:nth-child(5)  { background: #FFD166; }
.scale > *:nth-child(6)  { background: #FFA94D; }
.scale > *:nth-child(7)  { background: #FF8A5B; }
.scale > *:nth-child(8)  { background: #FF6B8A; }
.scale > *:nth-child(9)  { background: #FF3D9A; }
.scale > *:nth-child(10) { background: #B47BFF; }
.scale > *:nth-child(11) { background: #6C8CFF; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(5, 7, 15, .97) 0%, rgba(11, 16, 36, .94) 100%);
  border-bottom: 1px solid rgba(59, 232, 224, .22);
  box-shadow: 0 18px 44px -32px rgba(0, 0, 0, .95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 232, 224, .5) 45%, transparent);
  opacity: .75;
  pointer-events: none;
}

.header-rail {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  z-index: 1;
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 9px 24px 9px 26px;
}

/* brand */
.brand {
  order: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cloud);
  text-decoration: none;
}

.brand:hover { color: var(--cloud); }

.brand-mark {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink-900);
  background: var(--cyan);
  padding: 4px 6px;
  border-radius: 2px;
  box-shadow: 0 0 16px -2px rgba(59, 232, 224, .6);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.15;
  color: var(--cloud);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1.3;
  color: var(--slate);
  white-space: nowrap;
}

/* nav */
.site-nav {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: navidx;
}

.nav-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 7px 11px 6px;
  border-radius: 4px;
  color: var(--slate);
  font-family: var(--font-cn);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease-out, background-color .18s ease-out, box-shadow .18s ease-out;
}

.nav-link::before {
  counter-increment: navidx;
  content: "0" counter(navidx);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--cyan);
  opacity: .5;
  transition: opacity .18s ease-out, color .18s ease-out;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--cloud);
  background: rgba(59, 232, 224, .09);
}

.nav-link:hover::before,
.nav-link:focus-visible::before { opacity: 1; }

.nav-link[aria-current="page"] {
  color: var(--ink-900);
  background: var(--cyan);
  box-shadow: 0 0 20px -6px rgba(59, 232, 224, .9);
}

.nav-link[aria-current="page"]::before {
  color: rgba(5, 7, 15, .68);
  opacity: 1;
}

/* tools */
.header-tools {
  order: 3;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cmd {
  position: relative;
  display: flex;
  align-items: center;
}

.cmd-input {
  width: 200px;
  padding: 9px 46px 9px 12px;
  background: rgba(5, 7, 15, .78);
  border: 1px solid rgba(59, 232, 224, .28);
  border-radius: 4px;
  color: var(--cloud);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  -webkit-appearance: none;
  appearance: none;
  transition: width .22s ease-out, border-color .18s ease-out, box-shadow .18s ease-out;
}

.cmd-input::placeholder { color: rgba(140, 151, 184, .8); }

.cmd-input:focus {
  width: 288px;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(59, 232, 224, .35), 0 0 26px -8px rgba(59, 232, 224, .85);
  outline: none;
}

.cmd-input:focus-visible { outline: none; }

.cmd-kbd {
  position: absolute;
  right: 9px;
  padding: 2px 5px;
  border: 1px solid rgba(140, 151, 184, .36);
  border-radius: 3px;
  background: rgba(11, 16, 36, .92);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  pointer-events: none;
}

.cmd-input:focus ~ .cmd-kbd { opacity: 0; }

.cmd-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: min(420px, 88vw);
  max-height: 336px;
  overflow: auto;
  padding: 8px;
  background: linear-gradient(180deg, #141B36, #0E1428);
  border: 1px solid rgba(59, 232, 224, .3);
  border-radius: 6px;
  box-shadow: 0 30px 64px -30px rgba(0, 0, 0, .95);
}

.cmd-results[hidden] { display: none; }

.cmd-result {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--cloud);
  font-family: var(--font-body);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.cmd-result:hover,
.cmd-result:focus-visible { background: rgba(59, 232, 224, .13); }

.cmd-result-tag {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--amber);
}

.cmd-empty {
  margin: 0;
  padding: 12px 10px;
  color: var(--slate);
  font-size: 13px;
}

@media (prefers-reduced-motion: no-preference) {
  .cmd-result {
    opacity: 0;
    transform: translateY(-4px);
    animation: cmd-drop .22s ease-out forwards;
    animation-delay: var(--drop, 0ms);
  }
}

@keyframes cmd-drop {
  to { opacity: 1; transform: none; }
}

/* nav toggle */
.nav-toggle {
  order: 4;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  padding: 0;
  background: rgba(5, 7, 15, .75);
  border: 1px solid rgba(59, 232, 224, .35);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .18s ease-out, background-color .18s ease-out;
}

.nav-toggle:hover { border-color: var(--cyan); background: rgba(59, 232, 224, .1); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  transition: transform .2s ease-out, opacity .2s ease-out;
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta) 55%, var(--amber));
  box-shadow: 0 0 12px rgba(59, 232, 224, .8);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-progress { transition: width .08s linear; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease-out, color .18s ease-out, border-color .18s ease-out, box-shadow .18s ease-out;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink-900);
  box-shadow: 0 0 24px -10px rgba(255, 184, 77, 1);
}

.btn-primary:hover { background: #FFCB77; color: var(--ink-900); }

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(59, 232, 224, .45);
}

.btn-ghost:hover { background: rgba(59, 232, 224, .12); color: var(--cyan); border-color: var(--cyan); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  background: linear-gradient(180deg, #070B18 0%, var(--ink-900) 100%);
  border-top: 1px solid rgba(59, 232, 224, .18);
  color: var(--slate);
  font-size: 14.5px;
}

.footer-scale { height: 4px; width: 100%; }

.footer-scale > * { min-height: 4px; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 36px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.footer-brand .brand { margin-bottom: 16px; }

.footer-note {
  margin: 0 0 12px;
  color: var(--slate);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(140, 151, 184, .8);
}

.footer-col { min-width: 0; }

.footer-title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(59, 232, 224, .18);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cloud);
  font-size: 14px;
  text-decoration: none;
  transition: color .18s ease-out;
}

.footer-list a::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--cyan);
  opacity: .5;
  transition: width .18s ease-out, opacity .18s ease-out;
}

.footer-list a:hover { color: var(--cyan); }
.footer-list a:hover::before { width: 20px; opacity: 1; }

.footer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-chips li {
  padding: 3px 8px;
  border: 1px dashed rgba(140, 151, 184, .4);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--cloud);
}

.footer-contact .footer-line {
  margin: 0 0 10px;
  color: var(--cloud);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-contact .mono { color: var(--amber); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px 24px 30px;
  border-top: 1px solid rgba(140, 151, 184, .16);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(140, 151, 184, .85);
}

.footer-sign { margin-right: auto; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-links a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease-out, border-color .18s ease-out;
}

.legal-links a:hover { color: var(--cyan); border-color: rgba(59, 232, 224, .5); }

/* ---------- shared layout ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.layout-rail {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.layout-side { min-width: 0; }
.layout-anchor { min-width: 0; }

/* ---------- panels & bento ---------- */
.panel {
  position: relative;
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, #141B36 0%, #10162C 100%);
  border: 1px solid rgba(140, 151, 184, .16);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

.panel::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 232, 224, .65), transparent);
  opacity: .55;
  pointer-events: none;
}

.panel--focus {
  background: linear-gradient(180deg, #17203F 0%, #101830 100%);
  border-color: rgba(59, 232, 224, .38);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--cloud);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}

.label::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--cloud);
  font-variant-numeric: tabular-nums;
}

.stat-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(59, 232, 224, .4);
  border-radius: 3px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}

.tag--magenta { color: var(--magenta); border-color: rgba(255, 61, 154, .4); }
.tag--amber { color: var(--amber); border-color: rgba(255, 184, 77, .4); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin: 0 0 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -.01em;
}

.section-head .label { margin-left: auto; }

.divider-slash {
  height: 1px;
  border: 0;
  margin: 40px 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(59, 232, 224, .5) 0 6px,
    transparent 6px 14px
  );
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--slate);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li::after {
  content: "/";
  margin-left: 8px;
  color: rgba(140, 151, 184, .5);
}

.breadcrumbs li:last-child::after { content: ""; }

.breadcrumbs a { color: var(--slate); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--cloud); }

/* ---------- prose ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.78;
  color: var(--cloud);
}

.prose p { margin: 0 0 1.2em; }

.prose h2,
.prose h3 {
  margin: 1.8em 0 .6em;
  font-family: var(--font-cn);
  font-weight: 900;
  line-height: 1.3;
}

.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol { padding-left: 1.2em; }

.prose li { margin-bottom: .4em; }

.prose strong { color: var(--amber); }

.prose code {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(59, 232, 224, .1);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .9em;
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--magenta);
  color: var(--slate);
}

/* ---------- media frame ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(140, 151, 184, .18);
  background-image:
    linear-gradient(135deg, rgba(59, 232, 224, .14), rgba(255, 61, 154, .1) 48%, rgba(255, 184, 77, .12)),
    linear-gradient(180deg, #10162C, #070B18);
  clip-path: polygon(
    var(--cut) 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%,
    0 var(--cut)
  );
}

.media-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

/* ---------- flash state ---------- */
.is-flash {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .is-flash { animation: flash-ring .9s ease-out forwards; }
}

@keyframes flash-ring {
  0% { outline-color: rgba(59, 232, 224, .95); }
  100% { outline-color: rgba(59, 232, 224, 0); }
}

/* ---------- reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-js="on"] [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease-out, transform .5s ease-out;
  }

  [data-js="on"] [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .cmd-input { width: 156px; }
  .cmd-input:focus { width: 216px; }
}

@media (max-width: 1180px) {
  .layout-rail { grid-template-columns: 180px minmax(0, 1fr); }
  .layout-anchor { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 1120px) {
  :root { --header-h: 62px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 55;
    width: min(340px, 88vw);
    padding: calc(var(--header-h) + 22px) 18px 32px;
    overflow-y: auto;
    background: linear-gradient(180deg, #0E1428 0%, #05070F 100%);
    border-left: 1px solid rgba(59, 232, 224, .25);
    box-shadow: -26px 0 60px -30px rgba(0, 0, 0, .95);
    transform: translateX(102%);
    transition: transform .26s ease-out;
  }

  .site-nav[data-open] { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    gap: 2px;
  }

  .nav-link {
    width: 100%;
    padding: 13px 14px;
    font-size: 17px;
    border-left: 2px solid transparent;
  }

  .nav-link[aria-current="page"] { border-left-color: var(--ink-900); }

  .header-inner { padding: 9px 18px 9px 20px; gap: 12px; }
}

@media (max-width: 880px) {
  .btn-anchor { display: none; }
  .cmd-input { width: 168px; }
}

@media (max-width: 860px) {
  .layout-rail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }

  body { font-size: 16px; }

  .brand-tag { display: none; }
  .brand-name { font-size: 17px; }
  .header-inner { padding: 8px 14px 8px 16px; gap: 10px; }
  .cmd-input { width: 132px; padding: 8px 40px 8px 10px; font-size: 11.5px; }
  .cmd-input:focus { width: 168px; }
  .cmd-kbd { right: 7px; font-size: 9px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 18px 30px; }
  .footer-legal { padding: 18px 18px 26px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-sign { margin-right: 0; }

  .stat-value { font-size: 24px; }
}

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

  .cmd-result { opacity: 1; transform: none; }
}
