/* ==========================================================================
   三亿赛场 · 共享外壳样式 /assets/site.css
   1. Reset  2. 变量  3. 中文排版  4. 通用组件  5. 头部  6. 页脚  7. 响应式
   ========================================================================== */

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

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

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

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

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

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid #39F2C8;
  outline-offset: 3px;
}

#main-content { scroll-margin-top: clamp(84px, 11vw, 112px); }

/* 2. 变量 ---------------------------------------------------------------- */
:root {
  --night: #07130F;
  --stand: #0E2A22;
  --line: #1B4D3E;
  --cyan: #39F2C8;
  --orange: #FF7A1A;
  --red: #FF3B4E;
  --paper: #F2F7F4;
  --muted: #9BB3A9;
  --blue: #2C7DA0;
  --gold: #C9A227;

  --cyan-06: rgba(57, 242, 200, 0.06);
  --cyan-08: rgba(57, 242, 200, 0.08);
  --cyan-16: rgba(57, 242, 200, 0.16);
  --cyan-30: rgba(57, 242, 200, 0.30);
  --paper-72: rgba(242, 247, 244, 0.72);
  --paper-56: rgba(242, 247, 244, 0.56);
  --edge: rgba(57, 242, 200, 0.18);
  --edge-soft: rgba(155, 179, 169, 0.20);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --w-rail: 1320px;
  --r-pill: 999px;
  --pad-inline: clamp(16px, 4vw, 44px);
  --shadow-float: 0 22px 48px -26px rgba(0, 0, 0, 0.92);
}

/* 3. 中文排版 ------------------------------------------------------------ */
body {
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    radial-gradient(1100px 620px at 84% -10%, rgba(57, 242, 200, 0.12), transparent 64%),
    radial-gradient(760px 480px at 4% 0%, rgba(44, 125, 160, 0.12), transparent 62%),
    linear-gradient(180deg, #07130F 0%, #06120E 46%, #050E0B 100%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.02vw, 17.5px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

p { max-width: 72ch; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

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

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(57, 242, 200, 0));
}

.display {
  font-size: clamp(2.6rem, 7.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.85;
  color: var(--paper-72);
  max-width: 62ch;
}

.visually-hidden {
  position: absolute;
  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;
}

/* 4. 通用组件 ------------------------------------------------------------ */
.skip-link {
  position: fixed;
  left: 50%;
  top: 10px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--cyan);
  color: #04140F;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transform: translate(-50%, -180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.container {
  width: 100%;
  max-width: var(--w-rail);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.container--narrow { max-width: 820px; }

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

.divider {
  height: 1px;
  border: 0;
  margin-block: clamp(28px, 4vw, 48px);
  background: linear-gradient(90deg, var(--edge), rgba(57, 242, 200, 0));
}

/* 按钮 */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-edge: var(--cyan-30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--btn-edge);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  --btn-bg: var(--cyan-08);
  --btn-fg: var(--paper);
  --btn-edge: var(--cyan);
  transform: translateY(-1px);
}

.btn--signal {
  --btn-bg: var(--orange);
  --btn-fg: #20100A;
  --btn-edge: rgba(255, 122, 26, 0.6);
  box-shadow: 0 12px 28px -16px rgba(255, 122, 26, 0.95);
}

.btn--signal:hover {
  --btn-bg: #FF8F3D;
  --btn-fg: #20100A;
  --btn-edge: #FF8F3D;
  box-shadow: 0 14px 30px -14px rgba(255, 122, 26, 1);
}

.btn--ghost {
  --btn-bg: rgba(242, 247, 244, 0.04);
  --btn-fg: var(--paper-72);
  --btn-edge: var(--edge-soft);
}

.btn--ghost:hover {
  --btn-fg: var(--cyan);
  --btn-edge: var(--cyan);
  --btn-bg: var(--cyan-06);
}

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

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  background: var(--cyan-06);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.6;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(57, 242, 200, 0.45);
  background: var(--cyan-08);
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 26, 0.45);
  background: rgba(255, 122, 26, 0.10);
}

.tag--red {
  color: var(--red);
  border-color: rgba(255, 59, 78, 0.45);
  background: rgba(255, 59, 78, 0.10);
}

/* 面板 */
.cut-panel {
  --cut: 24px;
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(158deg, rgba(27, 77, 62, 0.85), rgba(9, 26, 21, 0.96));
  clip-path: polygon(
    0 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut))
  );
}

.cut-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
  height: 3px;
  background: var(--cyan);
}

.cut-panel--signal::before { background: var(--orange); }
.cut-panel--alert::before { background: var(--red); }

.cut-panel--quiet {
  background: linear-gradient(158deg, rgba(14, 42, 34, 0.90), rgba(7, 19, 15, 0.96));
}

.slab {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: rgba(14, 42, 34, 0.62);
}

/* 栅格 */
.grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(20px, 3.4vw, 42px);
  align-items: start;
}

/* 图片容器基座 */
.media-frame {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: linear-gradient(150deg, var(--line), var(--stand) 52%, #061410);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background: repeating-linear-gradient(
    115deg,
    rgba(57, 242, 200, 0.10) 0 1px,
    rgba(57, 242, 200, 0) 1px 46px
  );
}

.media-frame > img,
.media-frame > svg,
.media-frame > picture,
.media-frame > picture > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame__caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 13px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--paper-72);
  background: linear-gradient(180deg, rgba(7, 19, 15, 0), rgba(7, 19, 15, 0.90));
}

/* 面包屑 */
.breadcrumb { margin-top: clamp(20px, 3vw, 34px); }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.breadcrumb-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.breadcrumb-link:hover { color: var(--cyan); }

.breadcrumb-sep { color: rgba(155, 179, 169, 0.5); }

.breadcrumb-current { color: var(--paper); }

/* 滚动显现与进度 */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.44s ease, transform 0.44s ease;
}

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

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange) 62%, var(--red));
  pointer-events: none;
  transition: transform 0.12s linear;
}

/* 5. 头部 ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px var(--pad-inline) 0;
  pointer-events: none;
}

.header-rail {
  position: relative;
  max-width: var(--w-rail);
  margin-inline: auto;
}

.nav-capsule {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 24px);
  padding: 9px 12px 9px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(15, 44, 36, 0.92), rgba(6, 18, 14, 0.94));
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(242, 247, 244, 0.06);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.site-header[data-scrolled] .nav-capsule {
  border-color: var(--cyan-30);
  box-shadow: 0 18px 46px -24px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(242, 247, 244, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  padding: 3px 8px 3px 3px;
  border-radius: var(--r-pill);
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s ease;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--cyan-30);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 55%, rgba(57, 242, 200, 0.24), rgba(57, 242, 200, 0) 72%);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.brand-mark--lg {
  width: 46px;
  height: 46px;
}

.brand-mark-line {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 -5px 0 rgba(57, 242, 200, 0.5), 0 5px 0 rgba(57, 242, 200, 0.5);
}

.brand-mark--lg .brand-mark-line { width: 20px; }

.brand-mark-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.brand:hover .brand-mark {
  border-color: var(--cyan);
  transform: rotate(-6deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.brand-line {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  line-height: 1.3;
  color: var(--muted);
}

.primary-nav {
  margin-left: auto;
  min-width: 0;
}

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

.nav-item { min-width: 0; }

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--paper-72);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-link:hover {
  color: var(--paper);
  background: var(--cyan-08);
}

.nav-link[aria-current="page"] {
  color: var(--cyan);
  border-color: rgba(57, 242, 200, 0.55);
  background: var(--cyan-08);
}

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

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

.header-signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: var(--r-pill);
  background: rgba(255, 122, 26, 0.08);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1.6;
}

.header-signal::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 59, 78, 0.18);
}

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--cyan-30);
  border-radius: 50%;
  background: rgba(57, 242, 200, 0.10);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(57, 242, 200, 0.20);
  border-color: var(--cyan);
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--paper);
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.site-header[data-open] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }

.site-header[data-open] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 6. 页脚 ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(72px, 10vw, 140px);
  padding: clamp(44px, 6vw, 76px) var(--pad-inline) clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--edge);
  background: linear-gradient(
    180deg,
    rgba(14, 42, 34, 0.72) 0%,
    rgba(9, 25, 20, 0.94) 46%,
    #050E0B 100%
  );
}

.site-footer::before {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -32%;
  height: 52%;
  pointer-events: none;
  transform: rotate(-3.5deg);
  background: linear-gradient(
    90deg,
    rgba(57, 242, 200, 0) 0%,
    rgba(57, 242, 200, 0.10) 42%,
    rgba(44, 125, 160, 0.10) 62%,
    rgba(57, 242, 200, 0) 100%
  );
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  opacity: 0.85;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--cyan) 0%,
    rgba(57, 242, 200, 0.35) 28%,
    var(--orange) 62%,
    var(--red) 88%,
    rgba(255, 59, 78, 0) 100%
  );
}

.footer-rail {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  max-width: var(--w-rail);
  margin-inline: auto;
}

.footer-mast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--edge-soft);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 4px;
  border-radius: var(--r-pill);
  color: var(--paper);
  text-decoration: none;
}

.footer-brand:hover .brand-mark {
  border-color: var(--cyan);
  transform: rotate(-6deg);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-meta-item {
  padding: 5px 12px;
  border: 1px solid var(--edge-soft);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 40px);
}

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

.footer-col-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--paper-72);
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.footer-link::before {
  content: "";
  width: 6px;
  height: 1px;
  background: var(--line);
  transition: width 0.18s ease, background 0.18s ease;
}

.footer-link:hover {
  color: var(--cyan);
  padding-left: 2px;
}

.footer-link:hover::before {
  width: 14px;
  background: var(--cyan);
}

.footer-contact {
  display: grid;
  gap: 10px;
}

.contact-row {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.contact-value {
  font-size: 14.5px;
  color: var(--paper);
  word-break: break-word;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 122, 26, 0.45);
  border-radius: var(--r-pill);
  background: rgba(255, 122, 26, 0.10);
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--orange);
  background: rgba(255, 122, 26, 0.20);
}

.copy-btn[data-copied] {
  border-color: var(--cyan);
  background: var(--cyan-08);
  color: var(--cyan);
}

.copy-status {
  min-height: 1.5em;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.footer-note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: clamp(18px, 3vw, 26px);
  border-top: 1px solid var(--edge-soft);
}

.footer-legal {
  font-size: 12.5px;
  color: var(--muted);
  max-width: none;
}

.footer-year {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  background: var(--cyan-06);
  color: var(--paper-72);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.to-top:hover {
  color: var(--cyan);
  border-color: var(--cyan-30);
  background: var(--cyan-08);
}

/* 7. 响应式 -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .brand-line { display: none; }
  .header-signal { display: none; }
  .nav-link {
    padding: 8px 10px;
    font-size: 13.5px;
  }
}

@media (max-width: 1020px) {
  .nav-capsule { padding: 8px 10px; }
  .header-cta {
    padding: 8px 13px;
    font-size: 13px;
  }
}

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

  .nav-capsule {
    flex-wrap: wrap;
    border-radius: 26px;
    padding: 10px 12px;
  }

  .nav-capsule .brand { margin-right: auto; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    margin-left: 0;
    padding: 12px;
    max-height: min(66vh, 520px);
    overflow: auto;
    border: 1px solid var(--cyan-30);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(12, 38, 31, 0.98), rgba(5, 16, 12, 0.99));
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-float);
  }

  .site-header[data-open] .primary-nav { display: block; }

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

  .nav-link {
    display: block;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 15.5px;
  }

  .nav-link[aria-current="page"] { background: rgba(57, 242, 200, 0.14); }

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

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

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

@media (max-width: 620px) {
  .header-cta {
    padding: 8px 12px;
    font-size: 12.5px;
  }

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

@media (max-width: 520px) {
  .site-header { padding-top: 10px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-mast { align-items: flex-start; }
  .footer-base { justify-content: flex-start; }
  .to-top { order: -1; }
}

@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;
  }

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