/* ============================================================
   博喜体育 · 共享站点样式 /assets/site.css
   夜训底 + 墨绿主区 + 深场面板 三级背景；荧光黄绿交互；
   暖橙红仅用于在线状态与即时时间戳。
   ============================================================ */

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

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

body {
  margin: 0;
  min-height: 100%;
}

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

h1, h2, h3, h4, h5, p, figure, blockquote {
  margin: 0;
}

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

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

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

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

/* ---------- Tokens ---------- */
:root {
  --night: #07130F;
  --pitch: #0B1F19;
  --panel: #12352B;
  --line: #1E4A3C;
  --acid: #C6FF3D;
  --acid-soft: #E7FFB0;
  --flare: #FF5A2A;
  --frost: #F3F8EE;
  --mist: #A9BDB1;
  --grid-line: #6E8A7C;

  --radius-pill: 999px;
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --display: "Barlow Condensed", "Oswald", "Arial Narrow", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
  --page-max: 1180px;
  --frame-max: 1380px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--frost);
  background-color: var(--night);
  background-image:
    repeating-linear-gradient(90deg, rgba(110, 138, 124, 0.05) 0 1px, transparent 1px 96px),
    radial-gradient(110% 70% at 86% -14%, rgba(198, 255, 61, 0.08), transparent 62%),
    radial-gradient(80% 52% at -6% 108%, rgba(255, 90, 42, 0.055), transparent 66%),
    linear-gradient(180deg, #07130F 0%, #0B1F19 46%, #07130F 100%);
  background-attachment: scroll, fixed, fixed, scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--acid);
  color: #07130F;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.sr-only {
  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;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: -96px;
  left: clamp(12px, 3vw, 28px);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--acid);
  color: #07130F;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: top 0.18s var(--ease);
}

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(7, 19, 15, 0.99) 0%, rgba(9, 26, 21, 0.96) 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 22px 44px -36px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
}

/* --- 状态条 --- */
.status-bar {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
  padding: 7px var(--gutter);
  border-bottom: 1px dashed rgba(30, 74, 60, 0.9);
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: var(--mist);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.status-bar::-webkit-scrollbar {
  display: none;
}

.status-id {
  flex: none;
  color: var(--acid);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.status-live {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--flare);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flare);
  box-shadow: 0 0 0 3px rgba(255, 90, 42, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

.status-clock {
  flex: none;
  color: var(--frost);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.status-hint {
  margin-left: auto;
  color: rgba(169, 189, 177, 0.72);
  letter-spacing: 0.08em;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* --- 主框架 --- */
.header-frame {
  display: grid;
  grid-template-columns: minmax(150px, 216px) minmax(0, 1fr) auto;
  grid-template-areas: "brand nav toggle";
  align-items: center;
  column-gap: clamp(10px, 2vw, 28px);
  row-gap: 0;
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: clamp(8px, 1.4vw, 14px) var(--gutter);
}

.brand-slot {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--frost);
}

.brand-mark {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px 12px 12px 3px;
  background: var(--acid);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
  box-shadow: 0 0 22px -8px rgba(198, 255, 61, 0.85);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 11px 11px 11px 11px;
  background: #07130F;
  clip-path: polygon(0 0, 100% 0, 46% 100%, 0 100%);
}

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

.brand-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.05em;
  font-stretch: condensed;
  color: var(--frost);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--acid);
  line-height: 1.4;
}

/* --- 三步纵向胶囊轨道 --- */
.step-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 11px;
  border-left: 1px solid var(--line);
}

.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  padding: 1px 10px 1px 0;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mist);
  transition: color 0.18s var(--ease);
}

.step-chip b {
  font-weight: 700;
  color: var(--grid-line);
  transition: color 0.18s var(--ease);
}

.step-chip[data-active] {
  color: var(--acid);
}

.step-chip[data-active] b {
  color: var(--acid);
}

.step-chip[data-active]::after {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--acid);
  margin-left: 2px;
}

/* --- 主导航 --- */
.site-nav {
  grid-area: nav;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mist);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--frost);
  background: rgba(18, 53, 43, 0.72);
  border-color: var(--line);
}

.nav-link[aria-current="page"] {
  background: var(--acid);
  border-color: var(--acid);
  color: #07130F;
  font-weight: 700;
}

/* --- 移动菜单按钮 --- */
.nav-toggle {
  grid-area: toggle;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

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

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--acid);
  transition: transform 0.24s var(--ease), opacity 0.2s var(--ease);
}

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

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

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

/* --- 面包屑 --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--mist);
}

.breadcrumb:empty {
  display: none;
}

.crumb-link {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.crumb-link:hover {
  color: var(--acid);
  border-bottom-color: var(--acid);
}

.crumb-sep {
  color: rgba(110, 138, 124, 0.6);
}

.crumb-current {
  color: var(--acid);
  font-weight: 700;
}

.crumb-step {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid rgba(255, 90, 42, 0.42);
  border-radius: var(--radius-pill);
  color: var(--flare);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* --- 滚动进度线 --- */
.scroll-meter {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--acid) 0%, var(--acid) 55%, var(--flare) 100%);
  box-shadow: 0 0 12px -2px rgba(198, 255, 61, 0.7);
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 10vw, 128px);
  background: linear-gradient(180deg, rgba(11, 31, 25, 0.55) 0%, #07130F 72%);
  border-top: 1px solid var(--line);
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 4vw, 56px);
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) 0;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-mark {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  font-stretch: condensed;
  color: var(--frost);
}

.footer-domain {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--acid);
}

.footer-note {
  max-width: 26ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
  text-wrap: pretty;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--grid-line);
}

.footer-title::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--acid);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--mist);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--acid);
  transform: translateX(3px);
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--frost);
  word-break: break-word;
  text-wrap: pretty;
}

.footer-label {
  flex: none;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--grid-line);
  padding-top: 4px;
}

.footer-service {
  max-width: var(--frame-max);
  margin: clamp(26px, 3.6vw, 44px) auto 0;
  padding: 14px var(--gutter);
  border-top: 1px solid rgba(30, 74, 60, 0.62);
  border-bottom: 1px solid rgba(30, 74, 60, 0.62);
  background: rgba(18, 53, 43, 0.26);
  font-size: 13px;
  line-height: 1.65;
  color: var(--mist);
  text-wrap: pretty;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 18px var(--gutter) 30px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.footer-copy {
  color: rgba(169, 189, 177, 0.86);
}

.footer-icp {
  color: var(--grid-line);
}

/* ============================================================
   SHARED LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--wide {
  max-width: var(--frame-max);
}

.section {
  padding: clamp(40px, 7vw, 88px) 0;
}

.section + .section {
  border-top: 1px solid rgba(30, 74, 60, 0.5);
}

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

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--acid);
}

.display {
  font-family: var(--display);
  font-size: clamp(38px, 6.6vw, 84px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.005em;
  font-stretch: condensed;
  color: var(--frost);
  text-wrap: balance;
}

.metric {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(243, 248, 238, 0.86);
  text-wrap: pretty;
}

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

.prose h2,
.prose h3 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--frost);
}

.prose h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-top: 1.9em;
}

.prose h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-top: 1.6em;
}

.prose a {
  color: var(--acid);
  border-bottom: 1px solid rgba(198, 255, 61, 0.45);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

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

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

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

.btn--primary {
  background: var(--acid);
  color: #07130F;
}

.btn--primary:hover {
  background: var(--acid-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--frost);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.btn--flare {
  background: var(--flare);
  color: #07130F;
}

.btn--flare:hover {
  background: #FF7549;
}

/* ---------- Panels ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(18, 53, 43, 0.95) 0%, rgba(11, 31, 25, 0.9) 100%);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 255, 61, 0.55);
  box-shadow: 0 0 0 1px rgba(198, 255, 61, 0.16), 0 26px 48px -38px rgba(0, 0, 0, 0.95);
}

.panel--cut {
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
}

.panel--cut::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 46px;
  height: 46px;
  background: var(--acid);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
  opacity: 0.9;
  pointer-events: none;
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border: 1px solid rgba(198, 255, 61, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(198, 255, 61, 0.08);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: var(--acid);
}

.tag--flare {
  border-color: rgba(255, 90, 42, 0.42);
  background: rgba(255, 90, 42, 0.1);
  color: var(--flare);
}

/* ---------- Meter ---------- */
.meter {
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(30, 74, 60, 0.9);
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--acid) 0%, #8FE31F 100%);
}

/* ---------- Media ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(30, 74, 60, 0.85), transparent 60%),
    linear-gradient(160deg, #12352B 0%, #0B1F19 58%, #07130F 100%);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(rgba(198, 255, 61, 0.18) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.34;
  mix-blend-mode: screen;
}

.media > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.88) contrast(1.06);
}

.media--21x9 { aspect-ratio: 21 / 9; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }

.media__frame {
  position: absolute;
  inset: 10px;
  z-index: 3;
  border: 1px solid rgba(198, 255, 61, 0.45);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
}

.media__cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(7, 19, 15, 0.82);
  border: 1px solid rgba(198, 255, 61, 0.35);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--acid);
}

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

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

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(198, 255, 61, 0.45);
  border-radius: 18px;
  background: rgba(11, 31, 25, 0.92);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--acid);
  color: #07130F;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .footer-inner {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

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

  .footer-note {
    max-width: 46ch;
  }
}

@media (max-width: 900px) {
  .header-frame {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "nav nav";
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .step-rail {
    display: none;
  }

  .site-nav {
    display: none;
    justify-content: flex-start;
    width: 100%;
    padding: 12px 0 14px;
    margin-top: 8px;
    border-top: 1px solid rgba(30, 74, 60, 0.8);
  }

  .site-nav[data-open] {
    display: flex;
    animation: navDrop 0.24s var(--ease);
  }

  .nav-list {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    min-height: 44px;
    padding: 0 16px;
  }

  .status-hint {
    margin-left: 0;
  }

  .breadcrumb {
    padding-bottom: 9px;
  }

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

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

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

  .footer-bottom {
    justify-content: flex-start;
    gap: 6px 18px;
  }
}

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

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

  .display {
    font-size: clamp(34px, 10vw, 52px);
  }
}

@media (max-width: 480px) {
  .status-bar {
    font-size: 10px;
    gap: 10px;
  }

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

  .footer-mark {
    font-size: 26px;
  }

  .btn {
    width: 100%;
  }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@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 !important;
    transform: none !important;
  }

  .to-top {
    transition: none !important;
  }
}
