/* ==========================================================================
   FB体育站 / FBSPORTS — 全站共享样式
   File: /assets/site.css
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* 主色板 */
  --c-deep: #0A1128;
  --c-midnight: #1E2A5A;
  --c-cyan: #00E5FF;
  --c-green: #39FF14;
  --c-orange: #FF5A1F;
  --c-ash: #8A94A6;
  --c-white: #F2F5FA;
  --c-gold: #FFC300;
  --c-black: #0D1218;

  /* 字体 */
  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* 布局 */
  --container-max: 1280px;
  --container-pad: clamp(20px, 4vw, 48px);

  /* 效果 */
  --border-thick: 3px;
  --border-thin: 1px;
  --shadow-hard-sm: 4px 4px 0 rgba(0, 0, 0, 0.45);
  --shadow-hard-md: 8px 8px 0 rgba(0, 0, 0, 0.45);
  --shadow-hard-cyan: 6px 6px 0 rgba(0, 229, 255, 0.14);
  --shadow-hard-green: 6px 6px 0 rgba(57, 255, 20, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* 动效 */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 300ms;

  /* 页头 */
  --header-height: 68px;
  --header-top-offset: 16px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-white);
  background:
    radial-gradient(ellipse at 18% -4%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 82% 15%, rgba(57, 255, 20, 0.05) 0%, transparent 40%),
    linear-gradient(rgba(0, 229, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.018) 1px, transparent 1px),
    var(--c-deep);
  background-size: auto, auto, 48px 48px, 48px 48px, auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

::selection {
  background: var(--c-cyan);
  color: var(--c-deep);
}

/* ---------- 3. Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: clamp(48px, 10vw, 120px);
}

#main-content {
  scroll-margin-top: 120px;
}

.page-content {
  padding-top: calc(var(--header-height) + var(--header-top-offset) + 28px);
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

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

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

@media (min-width: 601px) and (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 4. Skip Link & Accessibility ---------- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 2000;
  background: var(--c-green);
  color: var(--c-black);
  font-weight: 700;
  font-family: var(--font-display);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard-sm);
  transition: top 0.25s var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- 5. Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(13, 18, 24, 0.7);
  z-index: 1500;
  pointer-events: none;
}

.scroll-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-green));
  transition: width 0.15s linear;
}

/* ---------- 6. Header / Floating Capsule ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  padding: var(--header-top-offset) var(--container-pad) 0;
  pointer-events: none;
}

.header-inner {
  position: relative;
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 14px;
  background: linear-gradient(135deg, rgba(13, 18, 24, 0.92), rgba(30, 42, 90, 0.92));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 2px solid rgba(0, 229, 255, 0.28);
  border-radius: var(--radius-pill);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.5),
    0 0 0 4px rgba(0, 229, 255, 0.06);
  pointer-events: auto;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--c-cyan) 0%, var(--c-cyan) 48%, var(--c-green) 52%, var(--c-green) 100%);
  color: var(--c-black);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.02em;
  border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, transparent 48%, rgba(0, 0, 0, 0.18) 50%, transparent 52%);
}

.brand-mark span {
  position: relative;
  z-index: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--c-white);
}

.brand-text em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--c-ash);
  margin-top: 3px;
  white-space: nowrap;
}

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(13, 18, 24, 0.8);
  border: 1px solid var(--c-midnight);
  border-radius: var(--radius-pill);
  color: var(--c-white);
  cursor: pointer;
  transition: border-color var(--duration), color var(--duration);
}

.nav-toggle:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

.nav-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
  flex-shrink: 0;
}

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

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

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

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

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

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-white);
  border-radius: var(--radius-pill);
  transition: background var(--duration), color var(--duration);
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(30, 42, 90, 0.85);
  color: var(--c-cyan);
}

.nav-link[aria-current="page"] {
  background: var(--c-midnight);
  color: var(--c-cyan);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.5);
}

.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--c-cyan);
  border-radius: 2px;
}

.nav-index {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  color: var(--c-ash);
  letter-spacing: 0.04em;
}

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

/* CTA 按钮 */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  background: var(--c-green);
  color: var(--c-black);
  border-radius: var(--radius-pill);
  border: 2px solid rgba(0, 0, 0, 0.6);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
  transition: background var(--duration), transform var(--duration), box-shadow var(--duration);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--c-white);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
}

.nav-cta-arrow {
  font-style: normal;
  font-size: 14px;
  line-height: 1;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--c-midnight);
  border: 2px solid var(--c-cyan);
  border-radius: var(--radius-pill);
  color: var(--c-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--duration), transform var(--duration), visibility var(--duration), background var(--duration), color var(--duration);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--c-cyan);
  color: var(--c-deep);
}

.back-to-top-icon {
  font-size: 16px;
  line-height: 1;
}

.back-to-top-text {
  font-weight: 600;
}

/* ---------- 7. Footer / Terminal ---------- */
.site-footer {
  position: relative;
  background: var(--c-black);
  border-top: 4px solid var(--c-midnight);
  margin-top: var(--space-3xl);
  overflow: hidden;
}

.footer-terminal {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 100%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(0, 229, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.015) 1px, transparent 1px),
    var(--c-black);
  background-size: auto, 48px 48px, 48px 48px, auto;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px var(--container-pad);
  background: var(--c-midnight);
  border-bottom: 2px solid rgba(0, 229, 255, 0.16);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-ash);
  max-width: var(--container-max);
  margin-inline: auto;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.terminal-dots {
  display: inline-flex;
  gap: 7px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.3);
}

.terminal-dot-r { background: var(--c-orange); }
.terminal-dot-y { background: var(--c-gold); }
.terminal-dot-g { background: var(--c-green); }

.terminal-path {
  letter-spacing: 0.04em;
}

.terminal-meta {
  margin-left: auto;
  color: var(--c-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-inner {
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding: 56px 0 48px;
  position: relative;
}

.footer-brand-col {
  position: relative;
}

.footer-brand-col::before {
  content: 'FB';
  position: absolute;
  top: -24px;
  right: -10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 140px;
  line-height: 1;
  color: rgba(0, 229, 255, 0.04);
  pointer-events: none;
  z-index: 0;
}

.footer-brand-col .brand {
  position: relative;
  z-index: 1;
}

.footer-brand-col .brand-text strong {
  font-size: 18px;
}

.footer-about {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-size: 14px;
  color: var(--c-ash);
  line-height: 1.9;
  max-width: 360px;
}

.footer-trust {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 10px 14px;
  font-size: 12px;
  color: rgba(138, 148, 166, 0.8);
  border-left: 3px solid var(--c-orange);
  background: rgba(255, 90, 31, 0.06);
  line-height: 1.7;
  max-width: 360px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.footer-heading {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-cyan);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--c-green);
}

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

.footer-list a {
  font-size: 14px;
  color: rgba(242, 245, 250, 0.72);
  transition: color var(--duration), padding-left var(--duration);
}

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

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

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

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ash);
}

.contact-value {
  font-size: 14px;
  color: var(--c-white);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(138, 148, 166, 0.18);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-ash);
}

.footer-icp {
  margin-left: auto;
}

.footer-domain {
  letter-spacing: 0.06em;
}

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--c-green);
  color: var(--c-black);
  border-color: rgba(13, 18, 24, 0.5);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  background: var(--c-white);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

.btn-cyan {
  background: transparent;
  color: var(--c-cyan);
  border-color: var(--c-cyan);
}

.btn-cyan:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(242, 245, 250, 0.4);
}

.btn-ghost:hover {
  border-color: var(--c-white);
  background: rgba(242, 245, 250, 0.08);
  transform: translateY(-2px);
}

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

.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ---------- 9. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-ash);
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: var(--c-cyan);
  transition: color var(--duration);
}

.breadcrumb a:hover {
  color: var(--c-green);
}

.breadcrumb-sep {
  color: var(--c-midnight);
  margin-inline: 2px;
}

/* ---------- 10. Section Chapter & Titles ---------- */
.section-chapter {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--c-midnight);
  position: relative;
}

.section-chapter::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 72px;
  height: 2px;
  background: var(--c-cyan);
}

.chapter-index {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-cyan);
  letter-spacing: 0.04em;
  line-height: 1;
  padding-top: 6px;
}

.section-chapter h2,
.section-chapter .h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-chapter .chapter-desc {
  margin-left: auto;
  max-width: 320px;
  font-size: 14px;
  color: var(--c-ash);
  text-align: right;
  line-height: 1.7;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.section-kicker::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--c-green);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 24px;
}

.section-desc {
  max-width: 640px;
  color: var(--c-ash);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* ---------- 11. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--c-midnight);
  border-radius: var(--radius-pill);
  color: var(--c-ash);
  background: var(--c-black);
  white-space: nowrap;
}

.tag-cyan {
  color: var(--c-cyan);
  border-color: rgba(0, 229, 255, 0.55);
}

.tag-green {
  color: var(--c-green);
  border-color: rgba(57, 255, 20, 0.55);
}

.tag-orange {
  color: var(--c-orange);
  border-color: rgba(255, 90, 31, 0.55);
}

.tag-gold {
  color: var(--c-gold);
  border-color: rgba(255, 195, 0, 0.55);
}

/* ---------- 12. Data Card ---------- */
.data-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 42, 90, 0.65), rgba(13, 18, 24, 0.92));
  border: 2px solid rgba(138, 148, 166, 0.25);
  border-radius: var(--radius-md);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-hard-sm);
  transition: transform var(--duration) var(--ease-out), border-color var(--duration);
}

.data-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 24px;
  width: 48px;
  height: 3px;
  background: var(--c-cyan);
  border-radius: 0 0 3px 3px;
}

.data-card:hover {
  transform: translate(-2px, -2px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: var(--shadow-hard-cyan);
}

.data-card .card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.data-card .card-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-ash);
}

/* ---------- 13. Image Frame ---------- */
.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-midnight);
  border: var(--border-thick) solid var(--c-black);
  box-shadow: var(--shadow-hard-md);
  border-radius: var(--radius-sm);
}

.img-frame::before {
  content: '';
  display: block;
  padding-bottom: 56.25%;
}

.img-frame > img,
.img-frame > picture img,
.img-frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame-wide::before {
  padding-bottom: 42.85%;
}

.img-frame-tall::before {
  padding-bottom: 125%;
}

.img-frame-square::before {
  padding-bottom: 100%;
}

/* ---------- 14. Diagonal Divider ---------- */
.clip-diagonal-right {
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.clip-diagonal-left {
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}

/* ---------- 15. Content Wrap ---------- */
.content-wrap {
  max-width: 760px;
}

.content-wrap h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  margin: 40px 0 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.content-wrap h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  line-height: 1.4;
}

.content-wrap p {
  margin-bottom: 16px;
  color: rgba(242, 245, 250, 0.86);
}

.content-wrap ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
  color: rgba(242, 245, 250, 0.86);
}

.content-wrap a {
  color: var(--c-cyan);
  border-bottom: 1px solid rgba(0, 229, 255, 0.4);
  transition: color var(--duration), border-color var(--duration);
}

.content-wrap a:hover {
  color: var(--c-green);
  border-bottom-color: var(--c-green);
}

/* ---------- 16. Misc Helpers ---------- */
.text-glow-cyan {
  color: var(--c-cyan);
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
}

.divider-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.4), rgba(57, 255, 20, 0.2), transparent);
  border: none;
  margin: var(--space-xl) 0;
}

.mono {
  font-family: var(--font-mono);
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer-brand-col::before {
    font-size: 100px;
    right: 0;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--duration), transform var(--duration), visibility var(--duration);
    background: var(--c-black);
    border: 2px solid var(--c-midnight);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-hard-md);
    pointer-events: none;
    z-index: -1;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: auto;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    margin-top: 14px;
  }

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

  .nav-link {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    width: 100%;
  }

  .nav-link[aria-current="page"]::after {
    width: 4px;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    transform: none;
    border-radius: 0;
  }

  .site-footer {
    margin-top: var(--space-2xl);
  }

  .terminal-topbar {
    border-radius: 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  .terminal-meta {
    display: none;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    padding: 10px 14px;
  }
}

@media (max-width: 600px) {
  :root {
    --header-top-offset: 12px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .brand-text em {
    font-size: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 14px;
    border-radius: 10px;
  }

  .header-inner {
    padding: 8px 10px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 0 32px;
  }

  .footer-brand-col {
    grid-column: auto;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-icp {
    margin-left: 0;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  .scroll-progress-fill {
    transition: none;
  }

  .back-to-top {
    transition: none;
  }

  .site-nav {
    transition: none;
  }
}
