/* =========================================================
   1号站娱乐游 · 全站共享样式 /assets/site.css
   墨蓝底 + 霓虹橙 + 电子青 + 暖金点缀的夜间后台面板体系
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
}

body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { width: 100%; border-collapse: collapse; }

/* ---------- 2. Design tokens ---------- */
:root {
  --ink-900: #070E1C;
  --ink-800: #0D1730;
  --ink-700: #16244A;
  --paper: #F2EDE3;
  --paper-dim: #DED6C6;
  --neon-orange: #FF6A2B;
  --electric-cyan: #35E0E6;
  --warm-gold: #E8B75C;
  --mint-signal: #7CE3A8;
  --alert-rose: #FF5C7A;
  --slate-400: #8A97B4;
  --pure-white: #FFFFFF;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: clamp(16px, 2.2vw, 28px);
  --section-y: clamp(56px, 7.5vw, 112px);

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-pill: 999px;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-lift: 0 22px 48px -28px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 520px at 10% -12%, rgba(53, 224, 230, 0.10), transparent 62%),
    radial-gradient(920px 460px at 94% 2%, rgba(255, 106, 43, 0.10), transparent 60%),
    linear-gradient(rgba(22, 36, 74, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 36, 74, 0.32) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--pure-white);
}

h1 { font-size: clamp(38px, 7vw, 96px); line-height: 1.02; }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 24px); font-weight: 800; }

::selection { background: var(--neon-orange); color: #1A0700; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  background: var(--neon-orange);
  color: #1A0700;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(32px, 4.5vw, 64px); }

.section--paper {
  background: var(--paper);
  color: #1D2740;
  padding-block: var(--section-y);
}
.paper-block {
  background: var(--paper);
  color: #1D2740;
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 38px);
}
.section--paper h1, .section--paper h2, .section--paper h3, .section--paper h4,
.paper-block h1, .paper-block h2, .paper-block h3, .paper-block h4 { color: var(--ink-900); }
.section--paper .lede, .section--paper .note,
.paper-block .lede, .paper-block .note { color: #4E5A70; }
.section--paper .eyebrow, .paper-block .eyebrow { color: #B8470F; }
.section--paper .card, .paper-block .card {
  background: var(--pure-white);
  border-color: rgba(7, 14, 28, 0.10);
  color: #1D2740;
}
.section--paper .card:hover, .paper-block .card:hover { border-color: var(--neon-orange); }
.section--paper .card-title, .paper-block .card-title { color: var(--ink-900); }
.section--paper .btn--ghost, .paper-block .btn--ghost {
  border-color: rgba(7, 14, 28, 0.22);
  color: var(--ink-900);
}
.section--paper .stat-value, .paper-block .stat-value { color: #0B5F66; }

.stack { display: grid; gap: var(--gap); align-content: start; }
.stack--sm { gap: 12px; }
.stack--lg { gap: clamp(28px, 4vw, 56px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.span-wide { grid-column: 1 / -1; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }

/* ---------- 5. Type utilities ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--electric-cyan);
}
.section-head { display: grid; gap: 12px; max-width: 62ch; }
.section-title { font-size: clamp(26px, 3.4vw, 40px); }
.section-sub { color: var(--slate-400); font-size: 15.5px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.8; color: rgba(242, 237, 227, 0.84); }
.note { font-size: 13.5px; line-height: 1.75; color: var(--slate-400); }
.meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--slate-400);
}
.mono { font-family: var(--font-mono); letter-spacing: 0; }
.accent { color: var(--neon-orange); }
.text-link {
  color: var(--electric-cyan);
  border-bottom: 1px solid rgba(53, 224, 230, 0.42);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.text-link:hover { color: var(--paper); border-color: var(--paper); }

.prose { max-width: 68ch; font-size: 16.5px; line-height: 1.85; color: rgba(242, 237, 227, 0.80); }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: clamp(22px, 2.4vw, 30px); margin-top: 2em; }
.prose h3 { font-size: 18px; margin-top: 1.7em; }
.prose li { position: relative; padding-left: 1.5em; }
.prose li + li { margin-top: 0.6em; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--electric-cyan);
}
.prose--paper { color: #33405A; }
.prose--paper h2, .prose--paper h3 { color: var(--ink-900); }
.prose--paper li::before { background: var(--neon-orange); }

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(53, 224, 230, 0.55), rgba(22, 36, 74, 0.9) 45%, transparent);
}
.divider--paper { background: linear-gradient(90deg, rgba(7, 14, 28, 0.34), rgba(7, 14, 28, 0.05)); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: transform 0.24s var(--ease), background-color 0.24s var(--ease),
    border-color 0.24s var(--ease), color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.btn--primary {
  background: var(--neon-orange);
  color: #1A0700;
  box-shadow: 0 12px 28px -16px rgba(255, 106, 43, 0.9);
}
.btn--primary:hover { background: #FF8148; transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  border-color: var(--ink-700);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--electric-cyan); color: var(--electric-cyan); transform: translateY(-2px); }
.btn--quiet {
  background: rgba(53, 224, 230, 0.10);
  border-color: rgba(53, 224, 230, 0.32);
  color: var(--electric-cyan);
}
.btn--quiet:hover { background: rgba(53, 224, 230, 0.2); transform: translateY(-2px); }
.btn--sm { padding: 10px 17px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- 7. Chips / badges / status ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 5px 11px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-pill);
  background: rgba(22, 36, 74, 0.45);
  color: var(--slate-400);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.chip--cyan { color: var(--electric-cyan); border-color: rgba(53, 224, 230, 0.42); background: rgba(53, 224, 230, 0.08); }
.chip--gold { color: var(--warm-gold); border-color: rgba(232, 183, 92, 0.42); background: rgba(232, 183, 92, 0.08); }
.chip--mint { color: var(--mint-signal); border-color: rgba(124, 227, 168, 0.42); background: rgba(124, 227, 168, 0.08); }
.chip--rose { color: var(--alert-rose); border-color: rgba(255, 92, 122, 0.42); background: rgba(255, 92, 122, 0.08); }
.chip--neon { color: var(--neon-orange); border-color: rgba(255, 106, 43, 0.45); background: rgba(255, 106, 43, 0.1); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(232, 183, 92, 0.32);
  border-radius: var(--r-sm);
  background: rgba(232, 183, 92, 0.14);
  color: var(--warm-gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-signal);
  box-shadow: 0 0 0 4px rgba(124, 227, 168, 0.16);
}
.status-dot--warn { background: var(--warm-gold); box-shadow: 0 0 0 4px rgba(232, 183, 92, 0.16); }
.status-dot--rose { background: var(--alert-rose); box-shadow: 0 0 0 4px rgba(255, 92, 122, 0.16); }

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: var(--ink-800);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--electric-cyan); }
.card--flat:hover { transform: none; border-color: var(--ink-700); }
.card--neon::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, var(--neon-orange), var(--electric-cyan));
}
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { font-size: clamp(18px, 1.8vw, 22px); font-weight: 800; }
.card-body { margin-top: 12px; color: rgba(242, 237, 227, 0.78); font-size: 15px; }
.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-700);
}

/* ---------- 9. Media & frames ---------- */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--ink-800), var(--ink-900));
}
.media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.96) contrast(1.04) brightness(0.88); }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }
.media-frame {
  padding: 10px;
  border: 1px dashed rgba(138, 151, 180, 0.35);
  border-radius: calc(var(--r-xl) + 6px);
  background: rgba(7, 14, 28, 0.5);
}
.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--slate-400);
}

.framed {
  position: relative;
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--ink-700);
  border-radius: var(--r-xl);
  background: rgba(13, 23, 48, 0.5);
}
.framed::before,
.framed::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--electric-cyan);
  opacity: 0.72;
}
.framed::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r-xl); }
.framed::after { right: -1px; bottom: -1px; border-top: 0; border-left: 0; border-bottom-right-radius: var(--r-xl); }

/* ---------- 10. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--slate-400);
}
.breadcrumb-item { display: inline-flex; align-items: center; gap: 0.55em; }
.breadcrumb-sep { color: rgba(138, 151, 180, 0.55); }
.breadcrumb-link { color: var(--slate-400); transition: color 0.2s var(--ease); }
.breadcrumb-link:hover { color: var(--electric-cyan); }

/* ---------- 11. Tabs & segmented ---------- */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-pill);
  background: rgba(13, 23, 48, 0.88);
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  padding: 10px 18px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--slate-400);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease),
    background-color 0.22s var(--ease);
}
.tab:hover { color: var(--paper); border-color: var(--electric-cyan); }
.tab[aria-selected="true"] {
  background: var(--neon-orange);
  border-color: var(--neon-orange);
  color: #1A0700;
}
.tabpanel { padding-top: 22px; }
.tabpanel[hidden] { display: none; }

/* ---------- 12. Accordion ---------- */
.accordion { display: grid; gap: 10px; }
.accordion-item {
  overflow: hidden;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-md);
  background: rgba(13, 23, 48, 0.66);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.accordion-item[data-open="true"] {
  border-color: rgba(53, 224, 230, 0.45);
  background: var(--ink-800);
}
.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-align: left;
  transition: color 0.22s var(--ease);
}
.accordion-trigger:hover { color: var(--electric-cyan); }
.accordion-icon {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.28s var(--ease);
}
.accordion-item[data-open="true"] .accordion-icon { transform: rotate(-135deg); }
.accordion-panel {
  padding: 0 20px 20px;
  color: rgba(242, 237, 227, 0.78);
  font-size: 15px;
}
.accordion-panel[hidden] { display: none; }

/* ---------- 13. TOC ---------- */
.toc { display: grid; gap: 4px; }
.toc-title {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-400);
}
.toc-link {
  display: block;
  padding: 8px 12px;
  border-left: 2px solid var(--ink-700);
  color: var(--slate-400);
  font-size: 14px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.toc-link:hover { color: var(--paper); border-left-color: var(--electric-cyan); }
.toc-link[aria-current="true"] {
  color: var(--electric-cyan);
  border-left-color: var(--neon-orange);
  background: linear-gradient(90deg, rgba(53, 224, 230, 0.14), transparent);
}

/* ---------- 14. Steps / stats / meters ---------- */
.steps { display: grid; gap: 22px; }
.step { position: relative; padding-left: 58px; }
.step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: -22px;
  width: 1px;
  background: linear-gradient(180deg, rgba(53, 224, 230, 0.5), rgba(22, 36, 74, 0.1));
}
.step:last-child::before { display: none; }
.step-node {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--neon-orange);
  color: #1A0700;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
.step-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--pure-white); }
.step-text { margin-top: 6px; color: rgba(242, 237, 227, 0.75); font-size: 15px; }

.stat { display: grid; gap: 6px; }
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--electric-cyan);
}
.stat-label { font-size: 13px; color: var(--slate-400); }

.meter {
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-pill);
  background: var(--ink-800);
}
.meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon-orange), var(--electric-cyan));
}
.meter--gold .meter-fill { background: linear-gradient(90deg, var(--warm-gold), var(--neon-orange)); }

/* ---------- 15. Reveal ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}
.js-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 16. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-block: 16px;
  transition: padding 0.3s var(--ease);
}
.site-header.is-compact { padding-block: 7px; }

.scroll-progress {
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: rgba(22, 36, 74, 0.75);
  overflow: hidden;
}
.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
  background: linear-gradient(90deg, var(--neon-orange), var(--electric-cyan));
  transition: opacity 0.3s var(--ease);
}

.header-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-island {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  padding: 9px 12px 9px 14px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-pill);
  background: rgba(13, 23, 48, 0.86);
  box-shadow: var(--shadow-lift);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  transition: background-color 0.3s var(--ease), padding 0.3s var(--ease), border-radius 0.3s var(--ease);
}
.site-header.is-compact .nav-island { background: rgba(9, 17, 34, 0.94); padding-block: 6px; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--neon-orange), #FF9052);
  color: #1A0700;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  box-shadow: 0 10px 20px -12px rgba(255, 106, 43, 0.95);
}
.brand-text { display: grid; gap: 1px; min-width: 0; text-align: left; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--paper);
  white-space: nowrap;
}
.brand-tag {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--slate-400);
  white-space: nowrap;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--slate-400);
}
.brand--footer .brand-mark { width: 32px; height: 32px; border-radius: 11px; }
.site-header.is-compact .brand-tag { display: none; }

.nav { display: block; flex: 1 1 auto; }
.nav-list { display: flex; align-items: center; justify-content: center; gap: 2px; }
.nav-link {
  display: block;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  color: rgba(242, 237, 227, 0.82);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.24s var(--ease), background-color 0.24s var(--ease);
}
.nav-link:hover { color: var(--paper); background: rgba(53, 224, 230, 0.13); }
.nav-link[aria-current="page"] { background: var(--paper); color: var(--ink-900); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(53, 224, 230, 0.35);
  border-radius: var(--r-pill);
  color: var(--electric-cyan);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background-color 0.24s var(--ease);
}
.quick-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--electric-cyan);
  box-shadow: 0 0 9px var(--electric-cyan);
}
.quick-link:hover { background: rgba(53, 224, 230, 0.14); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--ink-700);
  border-radius: var(--r-pill);
  background: rgba(22, 36, 74, 0.55);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  transition: color 0.24s var(--ease), border-color 0.24s var(--ease);
}
.nav-toggle:hover { color: var(--electric-cyan); border-color: var(--electric-cyan); }
.nav-toggle-icon { display: grid; gap: 5px; width: 16px; }
.nav-toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav-toggle.is-active .nav-toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 17. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  padding-block: clamp(40px, 6vw, 72px) 30px;
  border-top: 1px solid var(--ink-700);
  background: var(--ink-900);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-orange), var(--electric-cyan) 55%, transparent);
}
.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: var(--gap);
  align-items: start;
}
.footer-brand { display: grid; gap: 14px; max-width: 36ch; }
.footer-note { color: var(--slate-400); font-size: 14px; line-height: 1.8; }

.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.footer-col-title {
  margin-bottom: 12px;
  color: var(--electric-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer-links { display: grid; gap: 9px; }
.footer-link {
  color: rgba(242, 237, 227, 0.78);
  font-size: 14.5px;
  transition: color 0.2s var(--ease);
}
.footer-link:hover { color: var(--electric-cyan); }

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: clamp(24px, 3.5vw, 42px);
  padding-top: 20px;
  border-top: 1px dashed rgba(138, 151, 180, 0.28);
}
.footer-contact-item { display: inline-flex; align-items: baseline; gap: 8px; }
.footer-contact-key {
  color: var(--warm-gold);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}
.footer-contact-value {
  color: rgba(242, 237, 227, 0.86);
  font-family: var(--font-mono);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--slate-400);
}
.footer-legal-line { color: var(--slate-400); }
.footer-legal-mark { color: var(--warm-gold); }

/* ---------- 18. Responsive ---------- */
@media (min-width: 1280px) {
  .brand-tag { display: block; }
}

@media (max-width: 1023px) {
  .nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    max-height: 0;
    padding: 14px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    border: 1px solid var(--ink-700);
    border-radius: var(--r-lg);
    background: rgba(9, 17, 34, 0.98);
    box-shadow: var(--shadow-lift);
    transition: max-height 0.34s var(--ease), opacity 0.24s var(--ease),
      transform 0.34s var(--ease), visibility 0.34s var(--ease);
  }
  .nav[data-open="true"] {
    max-height: min(72vh, 520px);
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 13px 16px; border-radius: var(--r-sm); font-size: 16px; }
  .nav-link[aria-current="page"] { background: var(--neon-orange); color: #1A0700; }
  .nav-toggle { display: inline-flex; }
  .nav-island { border-radius: var(--r-xl); }
}

@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--7-5, .grid--5-7 { grid-template-columns: minmax(0, 1fr); }
  .sticky-col, .toc { position: static; top: auto; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-legal { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .quick-link { display: none; }
  h1 { font-size: clamp(34px, 11vw, 52px); }
  .btn { padding: 13px 20px; }
  .step { padding-left: 50px; }
}

@media (max-width: 480px) {
  .header-cta { display: none; }
  .site-header { padding-block: 10px; }
}

/* ---------- 19. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-ready [data-reveal] { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
}
