/* ============================================================
   风云体育 / 共享站点样式  /assets/site.css
   ============================================================ */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input { font: inherit; }

img, svg { display: block; max-width: 100%; }

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #04101A;
  --storm: #0B2A4A;
  --cyan: #19D3E6;
  --cyan-lite: #7CF3FF;
  --lava: #FF6A2B;
  --amber: #FFB35C;
  --mist: #EAF4F8;
  --steel: #8FA9B8;
  --slate: #3E5B6E;
  --signal: #38D39F;

  --line: rgba(25, 211, 230, 0.26);
  --line-soft: rgba(143, 169, 184, 0.2);

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono", "Noto Sans SC", monospace;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --maxw: 1440px;
  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);

  --shadow-float: 0 26px 54px -30px rgba(4, 16, 26, 0.95);
}

/* ---------- 3. Base typography ---------- */
body {
  margin: 0;
  background-color: var(--ink);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--mist);
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 5.2vw, 68px); }
h2 { font-size: clamp(26px, 3.2vw, 42px); }
h3 { font-size: clamp(20px, 2.1vw, 27px); }
h4 { font-size: 19px; font-weight: 700; }

p { text-wrap: pretty; }

strong { font-weight: 700; }

code, kbd, samp, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

::selection {
  background: rgba(25, 211, 230, 0.35);
  color: #ffffff;
}

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

/* ---------- 4. Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--lava);
  color: #180A02;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 32px -14px rgba(255, 106, 43, 0.95);
  transform: translateY(-240%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 56px);
}

.section { padding-block: clamp(44px, 6vw, 96px); }
.section--tight { padding-block: clamp(26px, 4vw, 54px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--lava);
  flex: 0 0 auto;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, rgba(25, 211, 230, 0.55), rgba(143, 169, 184, 0.16) 60%, transparent);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.btn--primary {
  background: linear-gradient(120deg, var(--lava) 0%, #FF8A4D 100%);
  color: #1B0A02;
  box-shadow: 0 12px 26px -16px rgba(255, 106, 43, 0.95);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -16px rgba(255, 106, 43, 1);
}

.btn--ghost {
  border-color: rgba(25, 211, 230, 0.5);
  background: rgba(25, 211, 230, 0.07);
  color: var(--cyan-lite);
}

.btn--ghost:hover {
  background: rgba(25, 211, 230, 0.16);
  color: #ffffff;
}

.btn--quiet {
  border-color: rgba(143, 169, 184, 0.36);
  color: var(--mist);
}

.btn--quiet:hover {
  border-color: rgba(25, 211, 230, 0.6);
  color: var(--cyan-lite);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 13.5px;
}

/* ---------- 6. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid rgba(25, 211, 230, 0.35);
  border-radius: 6px;
  background: rgba(25, 211, 230, 0.09);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--cyan-lite);
}

.tag--lava {
  border-color: rgba(255, 106, 43, 0.45);
  background: rgba(255, 106, 43, 0.14);
  color: var(--amber);
}

.tag--signal {
  border-color: rgba(56, 211, 159, 0.42);
  background: rgba(56, 211, 159, 0.14);
  color: var(--signal);
}

/* ---------- 7. Breadcrumbs ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: rgba(143, 169, 184, 0.45);
}

.breadcrumbs a { color: rgba(234, 244, 248, 0.75); transition: color 0.16s var(--ease); }
.breadcrumbs a:hover { color: var(--cyan-lite); }
.breadcrumbs [aria-current="page"] { color: var(--cyan-lite); }

/* ---------- 8. Prose ---------- */
.prose {
  max-width: 70ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: rgba(234, 244, 248, 0.88);
}

.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  margin-top: 2em;
  font-size: clamp(24px, 2.6vw, 32px);
}

.prose h3 {
  margin-top: 1.7em;
  font-size: clamp(19px, 2vw, 23px);
}

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

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

.prose ul {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}

.prose ul li {
  position: relative;
  padding-left: 1.25em;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 2px;
  background: var(--lava);
}

.prose blockquote {
  padding: 14px 18px;
  border-left: 2px solid var(--cyan);
  background: rgba(25, 211, 230, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: rgba(234, 244, 248, 0.92);
}

/* ---------- 9. Media frames ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(25, 211, 230, 0.22), transparent 62%),
    linear-gradient(150deg, var(--storm) 0%, var(--ink) 100%);
  box-shadow: var(--shadow-float);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 16, 26, 0.16) 0%, rgba(4, 16, 26, 0.62) 100%);
  pointer-events: none;
  z-index: 1;
}

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

.media-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--lava);
  color: #1B0A02;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.media-caption {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--steel);
}

/* ---------- 10. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--mist);
  background:
    radial-gradient(130% 190% at 0% 0%, rgba(25, 211, 230, 0.16) 0%, rgba(25, 211, 230, 0) 58%),
    linear-gradient(180deg, #04101A 0%, #0B2A4A 100%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  background-image:
    linear-gradient(90deg, rgba(25, 211, 230, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(25, 211, 230, 0.055) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
}

.site-header[data-scrolled="true"] {
  box-shadow: 0 22px 44px -32px rgba(4, 16, 26, 1);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-lite) 55%, var(--lava) 100%);
  box-shadow: 0 0 12px rgba(25, 211, 230, 0.7);
  transition: width 0.1s linear;
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 30px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  min-height: 76px;
  padding: 12px clamp(14px, 3vw, 44px);
  transition: min-height 0.25s var(--ease), padding 0.25s var(--ease);
}

.site-header[data-scrolled="true"] .header-inner {
  min-height: 62px;
  padding-block: 8px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-height: 44px;
  color: var(--mist);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(25, 211, 230, 0.45));
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--mist);
}

.brand-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: var(--steel);
  white-space: nowrap;
}

/* Navigation */
.site-nav {
  position: relative;
  z-index: 5;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(2px, 1.1vw, 20px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(234, 244, 248, 0.76);
  white-space: nowrap;
  transition: color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--lava));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.nav-link:hover { color: var(--cyan-lite); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--mist);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* Tools */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease), padding 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-header[data-scrolled="true"] .header-tools {
  padding: 4px 9px;
  background-color: rgba(4, 16, 26, 0.92);
  border-color: rgba(25, 211, 230, 0.45);
  box-shadow:
    0 0 0 1px rgba(124, 243, 255, 0.1),
    0 18px 38px -24px rgba(25, 211, 230, 0.9);
  transform: translateY(-1px);
}

.round-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid rgba(25, 211, 230, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(25, 211, 230, 0.08);
}

.round-badge-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal);
  animation: badge-pulse 2.6s ease-out infinite;
}

@keyframes badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(56, 211, 159, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(56, 211, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 211, 159, 0); }
}

.round-badge-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--steel);
  white-space: nowrap;
}

.round-badge-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lava);
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(143, 169, 184, 0.34);
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(234, 244, 248, 0.82);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.search-trigger:hover {
  color: var(--cyan-lite);
  border-color: rgba(25, 211, 230, 0.62);
  background: rgba(25, 211, 230, 0.1);
}

.search-trigger-icon { width: 15px; height: 15px; flex: 0 0 auto; }
.search-trigger-label { white-space: nowrap; }

.header-cta { white-space: nowrap; }

/* Nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(25, 211, 230, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(25, 211, 230, 0.08);
  color: var(--mist);
  flex: 0 0 auto;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover {
  background: rgba(25, 211, 230, 0.18);
  border-color: rgba(25, 211, 230, 0.68);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
}

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

/* Search panel */
.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: clamp(14px, 3vw, 44px);
  z-index: 9;
  width: min(464px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid rgba(25, 211, 230, 0.42);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #071B2E 0%, #04101A 100%);
  box-shadow:
    0 30px 60px -26px rgba(4, 16, 26, 0.98),
    0 0 0 1px rgba(124, 243, 255, 0.08);
}

.search-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.search-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 1px solid rgba(143, 169, 184, 0.3);
  border-radius: 50%;
  color: var(--steel);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.search-close:hover { color: var(--cyan-lite); border-color: var(--cyan); }

.search-field { display: block; }

.search-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(25, 211, 230, 0.34);
  border-radius: 12px;
  background: rgba(4, 16, 26, 0.82);
  color: var(--mist);
  font-size: 15px;
  line-height: 1.5;
}

.search-input::placeholder { color: var(--steel); }

.search-input:focus {
  outline: none;
  border-color: var(--cyan-lite);
  box-shadow: 0 0 0 3px rgba(25, 211, 230, 0.18);
}

.search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.search-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  max-height: 290px;
  overflow-y: auto;
}

.search-result { display: block; }

.search-result-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.search-result-link:hover {
  background: rgba(25, 211, 230, 0.1);
  border-color: rgba(25, 211, 230, 0.32);
  transform: translateX(2px);
}

.search-result-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--lava);
  flex: 0 0 auto;
}

.search-result-name {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--mist);
}

.search-result-type {
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.search-empty {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--steel);
}

.search-hint {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.7;
  color: var(--steel);
}

/* Back to top */
.to-top {
  position: fixed;
  right: clamp(14px, 2.5vw, 32px);
  bottom: clamp(14px, 2.5vw, 32px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(25, 211, 230, 0.5);
  border-radius: 50%;
  background: rgba(4, 16, 26, 0.92);
  color: var(--cyan-lite);
  box-shadow: 0 16px 32px -18px rgba(25, 211, 230, 0.95);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
              visibility 0.25s var(--ease), background-color 0.18s var(--ease);
}

.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { background: rgba(25, 211, 230, 0.18); }

/* ---------- 11. Table of contents ---------- */
.toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line-soft);
  padding-left: 14px;
}

.toc-link {
  display: block;
  padding: 6px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--steel);
  transition: color 0.16s var(--ease), padding-left 0.16s var(--ease);
}

.toc-link:hover { color: var(--mist); padding-left: 4px; }

.toc-link[aria-current="true"] {
  color: var(--cyan-lite);
  font-weight: 700;
  padding-left: 4px;
}

/* ---------- 12. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  overflow: hidden;
  color: var(--mist);
  border-top: 1px solid rgba(25, 211, 230, 0.3);
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(25, 211, 230, 0.16) 0%, rgba(25, 211, 230, 0) 62%),
    linear-gradient(180deg, #04101A 0%, #071B2E 58%, #04101A 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    linear-gradient(90deg, rgba(25, 211, 230, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(25, 211, 230, 0.05) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
}

.footer-rail {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  max-width: var(--maxw);
  height: 26px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 56px);
  border-bottom: 1px dashed rgba(143, 169, 184, 0.22);
}

.footer-rail-tick {
  display: block;
  width: 1px;
  height: 8px;
  background: rgba(25, 211, 230, 0.42);
}

.footer-rail-tick:nth-child(4n + 1) {
  height: 14px;
  background: rgba(25, 211, 230, 0.82);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(34px, 5vw, 64px) clamp(16px, 4vw, 56px) clamp(26px, 4vw, 44px);
}

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

.footer-statement {
  margin-top: 16px;
  max-width: 36ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: rgba(234, 244, 248, 0.8);
}

.footer-micro {
  margin-top: 12px;
  max-width: 40ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--steel);
}

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

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-list a {
  position: relative;
  display: inline-block;
  padding-left: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(234, 244, 248, 0.78);
  transition: color 0.16s var(--ease), padding-left 0.16s var(--ease);
}

.footer-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--lava);
  transition: width 0.16s var(--ease);
}

.footer-list a:hover {
  color: var(--cyan-lite);
  padding-left: 13px;
}

.footer-list a:hover::before { width: 9px; }

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

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 13.5px;
  line-height: 1.7;
}

.contact-row dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
}

.contact-row dd {
  margin: 0;
  color: rgba(234, 244, 248, 0.88);
  overflow-wrap: anywhere;
}

.contact-note {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 12px;
  line-height: 1.75;
  color: var(--steel);
}

.footer-legal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px clamp(16px, 4vw, 56px) 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--steel);
}

.legal-copy {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.legal-icp {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}

.legal-links a {
  color: rgba(234, 244, 248, 0.72);
  transition: color 0.16s var(--ease);
}

.legal-links a:hover { color: var(--cyan-lite); }

/* ---------- 13. Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .header-tools { margin-left: auto; }

  .header-cta { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 8;
    display: none;
    margin-left: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 10px clamp(14px, 4vw, 28px) 22px;
    background: linear-gradient(180deg, #04101A 0%, #0B2A4A 100%);
    border-bottom: 1px solid rgba(25, 211, 230, 0.32);
    box-shadow: 0 30px 50px -24px rgba(4, 16, 26, 0.98);
  }

  .site-nav[data-open="true"] { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 4px;
    font-size: 16.5px;
    border-bottom: 1px solid rgba(143, 169, 184, 0.16);
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] { color: var(--cyan-lite); }

  .nav-link[aria-current="page"]::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--lava);
  }

  .search-panel {
    left: clamp(14px, 4vw, 28px);
    right: clamp(14px, 4vw, 28px);
    width: auto;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .footer-inner {
    gap: 28px;
  }

  .footer-legal {
    gap: 8px 18px;
  }

  .legal-links { margin-left: 0; }
}

@media (max-width: 640px) {
  .header-inner {
    gap: 8px;
    min-height: 66px;
    padding-inline: 14px;
  }

  .site-header[data-scrolled="true"] .header-inner { min-height: 58px; }

  .brand-mark { width: 26px; height: 26px; }

  .brand-name { font-size: 18px; }

  .brand-tag { display: none; }

  .round-badge { padding: 5px 9px; }

  .round-badge-label { display: none; }

  .search-trigger { padding: 9px; }

  .search-trigger-label { display: none; }

  .nav-toggle { padding: 9px 11px; }

  .nav-toggle-label { display: none; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); }

  .footer-statement,
  .footer-micro,
  .contact-note { max-width: none; }

  .to-top { width: 42px; height: 42px; }
}

/* ---------- 14. Reduced motion ---------- */
@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;
    scroll-behavior: auto !important;
  }

  .to-top { transform: none; }
}
