/* ===================================================
   B体育主站 · /assets/site.css
   轨道导航 + 状态条 + 冷灰画布
   =================================================== */

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

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

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

ul, ol { padding: 0; }

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

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

a { color: inherit; }

/* ---------- 2. Design tokens ---------- */
:root {
  --navy: #0A1B3D;
  --midnight: #102B57;
  --lime: #C6FF3D;
  --lime-soft: #D8FF6B;
  --orange: #FF8A3D;
  --fog: #E7EBF2;
  --fog-light: #EFF3F9;
  --mist: #B8C2D1;
  --white: #FFFFFF;
  --ice: #5FD4FF;
  --ink: #07101F;
  --slate: #33425B;

  --rail-w: 268px;
  --topbar-h: 56px;
  --bar-h: 60px;
  --bottom-h: 62px;

  --font-display: "Archivo Black", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Inter", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --line: rgba(184, 194, 209, 0.28);
  --line-strong: rgba(184, 194, 209, 0.5);
  --line-ink: rgba(10, 27, 61, 0.12);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  padding-top: var(--topbar-h);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--fog);
  background-image:
    radial-gradient(circle at 8% -4%, rgba(95, 212, 255, 0.16), transparent 42%),
    radial-gradient(circle at 92% 4%, rgba(198, 255, 61, 0.16), transparent 38%),
    linear-gradient(180deg, var(--fog-light) 0%, var(--fog) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

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

.rail :focus-visible,
.topbar :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--lime);
}

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.18s var(--ease);
}

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

/* ---------- 5. Header / rail ---------- */
.site-header {
  position: relative;
  z-index: 90;
}

.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 16px 18px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 0%, rgba(95, 212, 255, 0.18), transparent 46%),
    radial-gradient(circle at 96% 88%, rgba(198, 255, 61, 0.14), transparent 52%),
    linear-gradient(180deg, #0A1B3D 0%, #07101F 100%);
  border-right: 1px solid rgba(198, 255, 61, 0.14);
  z-index: 80;
}

.rail::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: repeating-linear-gradient(
    0deg,
    rgba(95, 212, 255, 0.08) 0 1px,
    transparent 1px 14px
  );
  pointer-events: none;
  opacity: 0.7;
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px;
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(198, 255, 61, 0.38);
  background: linear-gradient(150deg, rgba(198, 255, 61, 0.22), rgba(95, 212, 255, 0.1));
  box-shadow: inset 0 0 14px rgba(198, 255, 61, 0.14);
}

.brand-mark-bar {
  display: block;
  width: 15px;
  height: 3px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 -6px 0 rgba(198, 255, 61, 0.45), 0 6px 0 rgba(198, 255, 61, 0.45);
}

.brand-mark-dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255, 138, 61, 0.85);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(184, 194, 209, 0.85);
  white-space: nowrap;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(198, 255, 61, 0.34);
  border-radius: 10px;
  color: var(--lime);
  background: rgba(198, 255, 61, 0.06);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-toggle:hover {
  border-color: rgba(198, 255, 61, 0.7);
  background: rgba(198, 255, 61, 0.12);
}

.nav-toggle-box {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

/* 抽屉 / 侧轨主体 */
.rail-drawer {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.rail-drawer::-webkit-scrollbar { width: 4px; }
.rail-drawer::-webkit-scrollbar-thumb {
  background: rgba(198, 255, 61, 0.3);
  border-radius: 4px;
}

.rail-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(184, 194, 209, 0.18);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(184, 194, 209, 0.72);
}

.rail-label-mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(95, 212, 255, 0.72);
}

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

.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr 10px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(198, 255, 61, 0.3);
  color: var(--white);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(95, 212, 255, 0.62);
}

.nav-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-tick {
  justify-self: end;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  border-color: rgba(198, 255, 61, 0.42);
  background: linear-gradient(90deg, rgba(198, 255, 61, 0.18), rgba(198, 255, 61, 0.02));
  box-shadow: inset 2px 0 0 var(--lime);
}

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

.nav-link[aria-current="page"] .nav-tick {
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.18);
}

.rail-quick {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(184, 194, 209, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.74);
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.quick-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 6px rgba(255, 138, 61, 0.7);
  flex: 0 0 auto;
}

.quick-link:hover {
  color: var(--white);
  border-color: rgba(255, 138, 61, 0.5);
  background: rgba(255, 138, 61, 0.08);
}

.rail-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(184, 194, 209, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(198, 255, 61, 0.85);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.16);
  animation: statusPulse 2.4s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(198, 255, 61, 0.05); }
}

.rail-mono {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(184, 194, 209, 0.55);
}

/* ---------- 6. Topbar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  background: rgba(7, 16, 31, 0.93);
  border-bottom: 1px solid rgba(184, 194, 209, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 70;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  height: 100%;
  padding: 0 26px;
}

.topbar-tagline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.topbar-spark {
  width: 9px;
  height: 9px;
  border: 1px solid var(--lime);
  border-radius: 2px;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

.topbar-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.topbar-link {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.topbar-link:hover {
  color: var(--lime);
  border-color: rgba(198, 255, 61, 0.34);
  background: rgba(198, 255, 61, 0.08);
}

.topbar-cta {
  flex: 0 0 auto;
}

.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--ice));
  box-shadow: 0 0 12px rgba(198, 255, 61, 0.55);
  transition: width 0.12s linear;
}

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn--primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 14px 28px -18px rgba(198, 255, 61, 0.95);
}

.btn--primary:hover {
  background: var(--lime-soft);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -18px rgba(198, 255, 61, 1);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(10, 27, 61, 0.26);
  color: var(--navy);
}

.btn--ghost:hover {
  border-color: rgba(198, 255, 61, 0.9);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.18);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ---------- 8. Layout utilities ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: clamp(40px, 6vw, 84px) 0;
}

.section--tight {
  padding: clamp(26px, 3.4vw, 48px) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5b6b85;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
}

.lede {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--slate);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

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

.grid--thirds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ---------- 9. Crumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #6b7a92;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(10, 27, 61, 0.28);
}

.crumb-link {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 27, 61, 0.22);
}

.crumb-link:hover {
  border-bottom-color: var(--lime);
  color: #0A1B3D;
}

/* ---------- 10. Cards & tags ---------- */
.card {
  padding: 22px;
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
  box-shadow: 0 22px 44px -34px rgba(7, 16, 31, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.card--dark {
  border-color: rgba(198, 255, 61, 0.2);
  background: linear-gradient(160deg, rgba(16, 43, 87, 0.95), rgba(10, 27, 61, 0.88));
  color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 26px 50px -34px rgba(7, 16, 31, 0.85);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  color: var(--navy);
}

.card--dark .card-title {
  color: var(--white);
}

.card-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #5b6b85;
}

.card--dark .card-meta {
  color: rgba(95, 212, 255, 0.8);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(10, 27, 61, 0.16);
  border-radius: 999px;
  background: rgba(10, 27, 61, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--slate);
  white-space: nowrap;
}

.tag--alert {
  border-color: rgba(255, 138, 61, 0.45);
  background: rgba(255, 138, 61, 0.14);
  color: #A4420F;
}

.tag--lime {
  border-color: rgba(198, 255, 61, 0.45);
  background: rgba(198, 255, 61, 0.16);
  color: #33510A;
}

/* ---------- 11. Media frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: linear-gradient(140deg, #123059 0%, #0A1B3D 62%, #07101F 100%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(95, 212, 255, 0.14) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(95, 212, 255, 0.1) 0 1px, transparent 1px 56px),
    radial-gradient(circle at 82% 16%, rgba(198, 255, 61, 0.22), transparent 46%);
  opacity: 0.8;
  pointer-events: none;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* ---------- 12. Prose ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
  color: #1B2740;
}

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

.prose h2 {
  margin-top: 1.8em;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--navy);
}

.prose h3 {
  margin-top: 1.5em;
  font-size: 19px;
  color: var(--navy);
}

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

.prose li + li { margin-top: 0.4em; }

.prose a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid rgba(198, 255, 61, 0.9);
}

.prose a:hover { border-bottom-color: var(--ice); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-family: var(--font-mono);
}

.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-ink);
  text-align: left;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 84px);
  padding-top: clamp(40px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 6% 0%, rgba(95, 212, 255, 0.16), transparent 44%),
    radial-gradient(circle at 92% 10%, rgba(198, 255, 61, 0.12), transparent 42%),
    linear-gradient(180deg, #0A1B3D 0%, #07101F 100%);
  border-top: 1px solid rgba(198, 255, 61, 0.16);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), rgba(198, 255, 61, 0) 46%, var(--ice));
  opacity: 0.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 1.3fr;
  gap: clamp(24px, 3vw, 44px);
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px clamp(30px, 4vw, 48px);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand--footer {
  padding: 0;
}

.footer-summary {
  margin: 18px 0 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.footer-meta {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(95, 212, 255, 0.68);
}

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

.footer-title {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--lime);
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: rgba(198, 255, 61, 0.6);
}

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

.footer-link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--white);
  border-bottom-color: var(--lime);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.contact-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: rgba(184, 194, 209, 0.6);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
}

.contact-note {
  margin: 14px 0 0;
  max-width: 34ch;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(184, 194, 209, 0.62);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 28px 28px;
  border-top: 1px solid rgba(184, 194, 209, 0.18);
}

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

.legal-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 194, 209, 0.34);
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.legal-link:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(184, 194, 209, 0.62);
}

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(184, 194, 209, 0.5);
}

/* ---------- 14. Reveal contract ---------- */
[data-reveal] {
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1199px) and (min-width: 1024px) {
  .topbar-tagline { display: none; }
}

@media (max-width: 1023px) {
  body {
    padding-left: 0;
    padding-top: var(--bar-h);
    padding-bottom: var(--bottom-h);
  }

  .rail {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--bar-h);
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0 16px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(184, 194, 209, 0.18);
    background: linear-gradient(90deg, #0A1B3D 0%, #07101F 100%);
  }

  .rail::after { display: none; }

  .rail-head {
    width: 100%;
    flex: 1 1 auto;
  }

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

  .rail-drawer {
    position: fixed;
    top: var(--bar-h);
    left: 0;
    bottom: 0;
    width: min(86vw, 352px);
    margin: 0;
    padding: 22px 18px 30px;
    gap: 24px;
    overflow-y: auto;
    border-right: 1px solid rgba(198, 255, 61, 0.2);
    background:
      radial-gradient(circle at 0% 0%, rgba(95, 212, 255, 0.16), transparent 46%),
      linear-gradient(180deg, #0A1B3D 0%, #07101F 100%);
    transform: translateX(-102%);
    transition: transform 0.26s var(--ease);
    z-index: 81;
  }

  .rail-drawer[data-open] {
    transform: translateX(0);
    box-shadow: 24px 0 60px -30px rgba(0, 0, 0, 0.8);
  }

  .nav-text { font-size: 16px; }

  .topbar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-h);
    border-top: 1px solid rgba(184, 194, 209, 0.18);
    border-bottom: 0;
    background: rgba(7, 16, 31, 0.97);
  }

  .topbar-inner {
    padding: 0 10px;
    gap: 8px;
    justify-content: center;
  }

  .topbar-tagline { display: none; }
  .topbar-cta { display: none; }

  .topbar-links {
    flex: 1 1 auto;
    justify-content: space-around;
    gap: 2px;
  }

  .topbar-link {
    padding: 9px 12px;
    font-size: 12.5px;
  }

  .progress-track {
    top: -1px;
    bottom: auto;
  }

  .nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(7, 16, 31, 0.62);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 75;
  }

  .nav-scrim:not([hidden]) { display: block; }

  body.nav-open { overflow: hidden; }

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

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

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

@media (min-width: 1024px) {
  .nav-scrim { display: none; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }

  .container { padding: 0 18px; }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 18px 32px;
    gap: 28px;
  }

  .footer-legal {
    padding: 16px 18px 24px;
    justify-content: flex-start;
  }

  .legal-links { gap: 14px; }

  .card { padding: 18px; }

  .media-frame { aspect-ratio: 4 / 3; }
  .media-frame--wide { aspect-ratio: 16 / 10; }
  .media-frame--tall { aspect-ratio: 4 / 5; }

  .contact-line { grid-template-columns: 52px minmax(0, 1fr); }
}

@media (min-width: 1440px) {
  :root { --rail-w: 300px; }
  .nav-text { font-size: 16px; }
  .footer-grid { max-width: 1320px; }
  .container { max-width: 1320px; }
}

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

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .status-dot { animation: none; }
  .progress-bar { transition: none; }
  .rail-drawer { transition: none; }
}

@media print {
  .rail,
  .topbar,
  .nav-scrim,
  .skip-link { display: none !important; }

  body {
    padding: 0;
    background: #fff;
    color: #000;
  }

  .site-footer { color: #000; background: #fff; }
}
