/* ==========================================================================
   爱游戏体育主站 / 共享样式表 / assets/site.css
   深海基底 · 潮汐板蓝 · 荧光青 / 暖橙 对照体系
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background-color: var(--deep);
}

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

ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

/* --------------------------------------------------------------------------
   02  Tokens
   -------------------------------------------------------------------------- */
:root {
  --deep: #04121F;
  --tide: #0A2A45;
  --cyan: #2FF3D6;
  --orange: #FF7A2F;
  --cyan-soft: #9FF6E4;
  --amber: #FFB27A;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --hairline: rgba(47, 243, 214, 0.28);
  --rule: rgba(143, 166, 188, 0.18);
  --ink: #EDF3F7;
  --muted: #8FA6BC;
  --indigo: #2E2A6B;
  --wine: #6E1F3C;
  --alert: #FF5C5C;

  --font-display: "Oswald", "Arial Narrow", "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Serif 4", Georgia, "Songti SC", serif;
  --font-mono: "JetBrains Mono", "Sarasa Mono SC", ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
  --font-body: "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* --------------------------------------------------------------------------
   03  Base typography
   -------------------------------------------------------------------------- */
body {
  position: relative;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--ink);
  background: none;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(143, 166, 188, 0.045) 0 1px, transparent 1px 11px),
    radial-gradient(120% 70% at 50% -12%, rgba(47, 243, 214, 0.11), transparent 62%),
    radial-gradient(90% 60% at 108% 104%, rgba(255, 122, 47, 0.08), transparent 58%);
}

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

p { text-wrap: pretty; }

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

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

/* --------------------------------------------------------------------------
   04  Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 56px);
}

.shell--wide { max-width: 1440px; }

main { position: relative; z-index: 1; display: block; }

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(64px, 9vw, 140px);
}

.section--tight { padding-block: clamp(44px, 6vw, 88px); }

.section--tide {
  background: linear-gradient(180deg, rgba(10, 42, 69, 0.62), rgba(10, 42, 69, 0.14));
  border-block: 1px solid var(--rule);
}

.section__head {
  max-width: 74ch;
  margin-bottom: clamp(28px, 4vw, 52px);
}

.section__title { font-size: clamp(1.7rem, 3.4vw, 2.65rem); }

.section__lead {
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 64ch;
}

.card-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* --------------------------------------------------------------------------
   05  Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 20px;
  top: -120px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--cyan);
  color: var(--deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   06  Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
}

/* 上层：品牌说明条 */
.brand-bar {
  background: linear-gradient(180deg, rgba(10, 42, 69, 0.94), rgba(4, 18, 31, 0.94));
  border-bottom: 1px solid rgba(47, 243, 214, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  min-height: 68px;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark,
.footer-brand__mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 6px;
  flex: 0 0 auto;
  border: 1px solid rgba(47, 243, 214, 0.34);
  border-radius: 10px;
  background: rgba(47, 243, 214, 0.06);
}

.brand__mark i,
.footer-brand__mark i { display: block; border-radius: 2px; background: rgba(143, 166, 188, 0.22); }

.brand__mark i:nth-child(1),
.footer-brand__mark i:nth-child(1) { background: var(--cyan); }
.brand__mark i:nth-child(2),
.footer-brand__mark i:nth-child(2) { background: var(--orange); }
.brand__mark i:nth-child(3),
.footer-brand__mark i:nth-child(3) { background: var(--amber); opacity: 0.9; }

.brand__text { display: flex; flex-direction: column; line-height: 1.18; }

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand__tagline {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.brand-bar__note {
  flex: 1 1 auto;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 11px;
  border: 1px solid rgba(47, 243, 214, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(47, 243, 214, 0.07);
  font-size: 12.5px;
  color: var(--cyan-soft);
  white-space: nowrap;
}

.sync-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: syncPulse 2.4s ease-in-out infinite;
}

@keyframes syncPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 243, 214, 0.55); opacity: 1; }
  50% { box-shadow: 0 0 0 7px rgba(47, 243, 214, 0); opacity: 0.55; }
}

/* 下层：主栏目导航条 */
.nav-bar {
  position: relative;
  background: rgba(4, 18, 31, 0.88);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-bar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-bar__label {
  flex: 0 0 auto;
  padding-right: 14px;
  border-right: 1px solid rgba(143, 166, 188, 0.24);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--muted);
}

.main-nav { margin-left: auto; }

.main-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 20px);
}

.main-nav__list a {
  position: relative;
  display: block;
  padding: 16px 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.main-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s var(--ease);
}

.main-nav__list a:hover { color: var(--ink); }
.main-nav__list a:hover::after { transform: scaleX(1); }

.main-nav__list a[aria-current="page"] { color: var(--cyan); }
.main-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 16px;
  border: 1px solid rgba(47, 243, 214, 0.32);
  border-radius: var(--radius-pill);
  background: rgba(47, 243, 214, 0.06);
  color: var(--cyan-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav-toggle__bars { display: flex; flex-direction: column; gap: 3px; width: 16px; }

.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.24s var(--ease), opacity 0.24s var(--ease);
}

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

/* 滚动进度（潮位线） */
.scroll-progress {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 140;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  pointer-events: none;
  transition: width 0.12s linear;
}

/* --------------------------------------------------------------------------
   07  Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--cyan);
  color: #03141A;
}

.btn--primary:hover {
  background: #5CF8E2;
  box-shadow: 0 12px 32px -14px rgba(47, 243, 214, 0.8);
}

.btn--ghost {
  border-color: rgba(47, 243, 214, 0.4);
  background: rgba(47, 243, 214, 0.05);
  color: var(--cyan-soft);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  background: rgba(47, 243, 214, 0.13);
  color: var(--ink);
}

.btn--warm {
  border-color: rgba(255, 122, 47, 0.5);
  background: rgba(255, 122, 47, 0.09);
  color: var(--amber);
}

.btn--warm:hover {
  border-color: var(--orange);
  background: rgba(255, 122, 47, 0.18);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   08  Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 9px; }
.breadcrumb__item a { color: var(--muted); transition: color 0.2s var(--ease); }
.breadcrumb__item a:hover { color: var(--cyan); }
.breadcrumb__sep { color: rgba(143, 166, 188, 0.45); }
.breadcrumb [aria-current="page"] { color: var(--cyan); }

/* --------------------------------------------------------------------------
   09  Surfaces / tags
   -------------------------------------------------------------------------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-strong);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.slab {
  background: var(--tide);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.chapter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(47, 243, 214, 0.24);
  border-radius: 6px;
  background: rgba(47, 243, 214, 0.08);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

.chapter-tag--indigo {
  border-color: rgba(148, 138, 255, 0.3);
  background: rgba(46, 42, 107, 0.62);
  color: #CFC9FF;
}

.chapter-tag--wine {
  border-color: rgba(255, 138, 176, 0.3);
  background: rgba(110, 31, 60, 0.62);
  color: #FFC2D6;
}

.chapter-tag--warm {
  border-color: rgba(255, 122, 47, 0.36);
  background: rgba(255, 122, 47, 0.12);
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   10  Index list
   -------------------------------------------------------------------------- */
.index-list {
  display: grid;
  border-top: 1px solid var(--rule);
}

.index-list li { border-bottom: 1px solid var(--rule); }

.index-list a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px clamp(14px, 2vw, 26px);
  padding: 18px 6px;
  color: var(--ink);
  transition: padding-left 0.24s var(--ease), color 0.2s var(--ease);
}

.index-list a:hover { padding-left: 16px; color: var(--cyan); }

.index-list__num {
  flex: 0 0 auto;
  min-width: 2.4ch;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 600;
  color: rgba(143, 166, 188, 0.55);
}

.index-list__desc {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11  Prose
   -------------------------------------------------------------------------- */
.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink);
}

.prose p { margin-bottom: 1.1em; }
.prose h2, .prose h3 {
  margin: 1.6em 0 0.6em;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0;
}

.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.prose h3 { font-size: clamp(1.1rem, 1.8vw, 1.32rem); }

.prose ul {
  display: grid;
  gap: 10px;
  margin-bottom: 1.2em;
}

.prose li { position: relative; padding-left: 20px; }

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

.prose strong { font-weight: 600; color: var(--cyan-soft); }

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

/* --------------------------------------------------------------------------
   12  Media containers
   -------------------------------------------------------------------------- */
.shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(10, 42, 69, 0.95), rgba(4, 18, 31, 0.96));
  aspect-ratio: var(--shot-ratio, 16 / 9);
}

.shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(47, 243, 214, 0.09) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(47, 243, 214, 0.05) 0 1px, transparent 1px 46px),
    radial-gradient(72% 92% at 14% 112%, rgba(47, 243, 214, 0.16), transparent 62%),
    radial-gradient(58% 76% at 100% 0%, rgba(143, 166, 188, 0.12), transparent 60%);
}

.shot::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(47, 243, 214, 0.18);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}

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

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

.shot--guest {
  background: linear-gradient(150deg, rgba(46, 42, 107, 0.9), rgba(4, 18, 31, 0.96));
}

.shot--guest::before {
  background:
    repeating-linear-gradient(90deg, rgba(255, 122, 47, 0.11) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(255, 122, 47, 0.06) 0 1px, transparent 1px 46px),
    radial-gradient(72% 92% at 86% 108%, rgba(255, 122, 47, 0.17), transparent 62%);
}

.shot--guest::after { border-color: rgba(255, 122, 47, 0.22); }

.shot__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--cyan-soft);
  background: linear-gradient(0deg, rgba(4, 18, 31, 0.88), transparent);
}

.shot--guest .shot__caption { color: var(--amber); }

/* --------------------------------------------------------------------------
   13  Rail / spine
   -------------------------------------------------------------------------- */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  width: 96px;
  padding-left: 26px;
  border-right: 1px solid rgba(143, 166, 188, 0.12);
  background: linear-gradient(90deg, rgba(4, 18, 31, 0.92), rgba(4, 18, 31, 0));
  pointer-events: none;
}

.rail__link {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: rgba(143, 166, 188, 0.55);
  transition: color 0.2s var(--ease);
}

.rail__link:hover { color: var(--cyan-soft); }
.rail__link[aria-current="page"] { color: var(--cyan); }

.rail__num {
  font-family: var(--font-serif);
  font-size: 13px;
  color: rgba(143, 166, 188, 0.4);
}

.rail__link[aria-current="page"] .rail__num { color: var(--orange); }

.spine {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 0;
  display: none;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(47, 243, 214, 0.34), rgba(255, 122, 47, 0.26), transparent);
  pointer-events: none;
}

.spine__dot {
  position: absolute;
  left: -3px;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px 3px rgba(47, 243, 214, 0.7);
}

@media (min-width: 1100px) {
  .spine { display: block; }
}

@media (min-width: 1280px) {
  .rail { display: flex; }
  body.has-rail main { padding-left: 96px; }
}

/* --------------------------------------------------------------------------
   14  Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(72px, 10vw, 140px);
  border-top: 1px solid rgba(47, 243, 214, 0.2);
  background: linear-gradient(180deg, rgba(10, 42, 69, 0.55), rgba(4, 18, 31, 0.98));
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 56px);
  padding-block: clamp(44px, 6vw, 80px);
}

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

.footer-brand__line {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 34ch;
}

.footer-brand__sync {
  margin-top: 14px;
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col__title {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(47, 243, 214, 0.2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col__list a {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-col__list a:hover { color: var(--ink); padding-left: 6px; }

.footer-contact__list {
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.footer-contact__row dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.footer-contact__row dd {
  margin-top: 2px;
  color: var(--ink);
  word-break: break-word;
  line-height: 1.6;
}

.footer-contact__note {
  margin-top: 16px;
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding-block: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.footer-legal__sep { color: rgba(143, 166, 188, 0.45); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

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

/* --------------------------------------------------------------------------
   15  Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .site-footer__grid { grid-template-columns: 1.15fr 1.7fr 1.15fr; }
}

@media (max-width: 1100px) {
  .brand-bar__note { display: none; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }

  .brand-bar__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }

  .brand-bar__actions { margin-left: auto; }

  .sync-badge__text { display: none; }
  .sync-badge { padding: 6px 10px; }

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

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 95;
    margin-left: 0;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    background: rgba(4, 18, 31, 0.985);
    border-bottom: 1px solid rgba(47, 243, 214, 0.22);
    transition: max-height 0.32s var(--ease), opacity 0.24s var(--ease), visibility 0.32s;
  }

  .main-nav[data-open] {
    max-height: min(72vh, 560px);
    opacity: 1;
    visibility: visible;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px clamp(18px, 4vw, 40px) 22px;
  }

  .main-nav__list a {
    padding: 15px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(143, 166, 188, 0.14);
  }

  .main-nav__list a::after { display: none; }
}

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

  .brand__tagline { display: none; }

  .brand-bar__actions .btn--ghost { display: none; }

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

  .index-list__desc { margin-left: 0; width: 100%; }

  .footer-links { gap: 12px; }
}

/* --------------------------------------------------------------------------
   16  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;
  }

  .sync-badge__dot { box-shadow: none; opacity: 1; }
  .btn:hover { transform: none; }
}
