/* =========================================
   开心赛场 · HS — Site Kit
   文件：/assets/site.css
   职责：reset、变量、中文排版、头部、页脚、
         通用按钮、面包屑、正文容器、网格、基础组件
   ========================================= */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-height: 100vh;
  background-color: var(--c-paper);
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

a {
  color: var(--c-blue);
  text-decoration: none;
}

p {
  margin-bottom: 1em;
}

h1,
h2,
h3,
h4 {
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

em {
  font-style: italic;
}

strong {
  font-weight: 700;
}

/* ---------- Design Tokens ---------- */
:root {
  --c-orange: #F97316;
  --c-blue: #3B82F6;
  --c-green: #22C55E;
  --c-ink: #0F172A;
  --c-slate: #1E293B;
  --c-paper: #F8FAFC;
  --c-white: #FFFFFF;
  --c-graphite: #64748B;
  --c-yellow: #FACC15;

  --font-display: "Helvetica Now Display", "Arial Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --fs-display: clamp(2.5rem, 6vw, 4rem);
  --fs-h1: clamp(2rem, 4vw, 2.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 1.75rem);
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --leading-tight: 1.15;
  --leading-body: 1.6;

  --container: 1280px;

  --radius: 16px;
  --radius-sm: 8px;

  --border-w: 2px;
  --shadow-1: 4px 4px 0 var(--c-ink);
  --shadow-2: 6px 6px 0 var(--c-ink);

  --bp-nav: 960px;
  --bp-tablet: 900px;
  --bp-mobile: 640px;
}

/* ---------- Focus & Selection ---------- */
:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--c-orange);
  color: var(--c-white);
}

/* ---------- Container ---------- */
.container {
  position: relative;
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

@media (min-width: 641px) {
  .container {
    width: min(100% - 64px, var(--container));
  }
}

/* ---------- Skip Link ---------- */
.site-skip {
  position: fixed;
  top: 12px;
  left: -9999px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--c-ink);
  color: var(--c-white);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  border: 2px solid var(--c-orange);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.site-skip:focus-visible {
  left: 12px;
  color: var(--c-white);
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 300;
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-blue) 60%, var(--c-green) 100%);
  pointer-events: none;
}

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

.site-header__top {
  position: relative;
  background: var(--c-ink);
  border-bottom: 1px solid rgba(248, 250, 252, 0.08);
}

.site-header__top::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c-orange);
}

.site-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.site-header__tagline {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-paper);
  opacity: 0.72;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__tagline::before {
  content: "// ";
  color: var(--c-orange);
  opacity: 1;
  font-weight: 800;
}

.site-header__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--c-paper);
  margin: 0;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  flex-shrink: 0;
}

.status-dot--live {
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: status-pulse 2s ease-out infinite;
}

@keyframes status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.site-header__main {
  position: relative;
  background: var(--c-white);
  border-bottom: 4px solid var(--c-ink);
}

.site-header__main::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-blue) 25%, var(--c-yellow) 50%, var(--c-green) 75%, var(--c-blue) 100%);
  background-size: 200% 100%;
  animation: lights-sweep 12s linear infinite;
  pointer-events: none;
}

@keyframes lights-sweep {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}

.site-header__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--c-orange);
  color: var(--c-white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.02em;
  border: 2px solid var(--c-ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--c-ink);
  transform: rotate(-6deg);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--c-ink);
  white-space: nowrap;
}

.brand__suffix {
  color: var(--c-blue);
  font-style: italic;
}

/* ---------- Main Nav (Desktop) ---------- */
.site-nav {
  position: static;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__item {
  list-style: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: var(--c-ink);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.site-nav__link:hover {
  color: var(--c-orange);
  background: rgba(249, 115, 22, 0.08);
  border-color: var(--c-orange);
}

.site-nav__link[aria-current="page"] {
  background: var(--c-ink);
  color: var(--c-white);
  border-color: var(--c-ink);
  box-shadow: 3px 3px 0 var(--c-orange);
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--c-blue);
  transition: color 0.2s;
}

.site-nav__link:hover .site-nav__index {
  color: var(--c-orange);
}

.site-nav__link[aria-current="page"] .site-nav__index {
  color: var(--c-orange);
}

.site-nav__text {
  display: inline-block;
}

/* ---------- Nav Toggle ---------- */
.site-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  box-shadow: 3px 3px 0 var(--c-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: var(--c-ink);
}

.site-nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  flex-shrink: 0;
}

.site-nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-ink);
  transition: transform 0.2s, opacity 0.2s;
}

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

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

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

.site-nav-toggle__label {
  display: inline-block;
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-sm);
  background: var(--c-ink);
  color: var(--c-white);
  box-shadow: 4px 4px 0 var(--c-orange);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.back-to-top::before {
  content: "↑";
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  color: var(--c-orange);
}

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

.back-to-top__label {
  display: inline-block;
}

/* ---------- Page Main ---------- */
.page-main {
  min-height: 65vh;
  padding-bottom: 80px;
}

.page-main:focus {
  outline: none;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  color: var(--c-ink);
  box-shadow: var(--shadow-1);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.2s, color 0.2s;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-2);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--c-ink);
}

.btn--primary {
  background: var(--c-orange);
  color: var(--c-white);
}

.btn--primary:hover {
  background: var(--c-orange);
  color: var(--c-white);
}

.btn--blue {
  background: var(--c-blue);
  color: var(--c-white);
}

.btn--blue:hover {
  background: var(--c-blue);
  color: var(--c-white);
}

.btn--outline {
  background: transparent;
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(15, 23, 42, 0.05);
  box-shadow: none;
}

.btn--sm {
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: 3px 3px 0 var(--c-ink);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section--dark {
  background: var(--c-ink);
  color: var(--c-paper);
}

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

.section--dark .eyebrow {
  color: var(--c-green);
}

.section--tint {
  background: rgba(59, 130, 246, 0.08);
  border-top: 2px solid var(--c-blue);
  border-bottom: 2px solid var(--c-blue);
}

.section--orange {
  background: var(--c-orange);
  color: var(--c-white);
}

.section--orange .section-title {
  color: var(--c-white);
}

.section--orange .eyebrow {
  color: var(--c-ink);
}

.section--orange .eyebrow::before {
  background: var(--c-yellow);
  border-color: var(--c-ink);
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

.grid--four {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 959px) {
  .grid--three,
  .grid--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .grid--two,
  .grid--three,
  .grid--four {
    grid-template-columns: 1fr;
  }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-graphite);
}

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

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--c-blue);
}

.breadcrumbs__link {
  color: var(--c-graphite);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--c-orange);
}

.breadcrumbs__item[aria-current="page"] {
  color: var(--c-ink);
  font-weight: 700;
}

/* ---------- Typography Components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--c-orange);
  border: 2px solid var(--c-ink);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-display);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.display-title em {
  font-style: italic;
  color: var(--c-orange);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-graphite);
  letter-spacing: 0.03em;
}

/* ---------- Panels ---------- */
.panel {
  background: var(--c-white);
  border: 2px solid var(--c-ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 24px;
}

.panel--blue {
  background: var(--c-blue);
  color: var(--c-white);
  border-color: var(--c-ink);
}

.panel--blue .section-title,
.panel--blue .data-value {
  color: var(--c-white);
}

.panel--ink {
  background: var(--c-ink);
  color: var(--c-paper);
  border-color: var(--c-ink);
}

.panel--ink .section-title,
.panel--ink .data-value {
  color: var(--c-white);
}

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  padding: 5px 12px;
  border: 2px solid var(--c-ink);
  border-radius: 999px;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.tag--orange { background: var(--c-orange); color: var(--c-white); }
.tag--blue   { background: var(--c-blue); color: var(--c-white); }
.tag--green  { background: var(--c-green); color: var(--c-white); }
.tag--yellow { background: var(--c-yellow); color: var(--c-ink); }

/* ---------- Data Indicators ---------- */
.data-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-graphite);
  margin-bottom: 4px;
}

.data-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-ink);
}

.status-light {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
  vertical-align: middle;
}

.status-light--orange { background: var(--c-orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25); }
.status-light--blue   { background: var(--c-blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); }
.status-light--yellow { background: var(--c-yellow); box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25); }

/* ---------- Media (Responsive Image Containers) ---------- */
.media {
  position: relative;
  overflow: hidden;
  background-color: var(--c-slate);
  background-image:
    linear-gradient(rgba(248, 250, 252, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 250, 252, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-sm);
}

.media::before {
  content: "";
  display: block;
}

.media--16x9::before { padding-top: 56.25%; }
.media--4x3::before  { padding-top: 75%; }
.media--1x1::before  { padding-top: 100%; }

.media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 16px 10px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.82), transparent);
  color: var(--c-white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- Prose ---------- */
.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.prose h3 {
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}

.prose p {
  margin-bottom: 1.1em;
}

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

.prose li {
  margin-bottom: 0.5em;
}

.prose ul li::marker {
  color: var(--c-orange);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

/* ---------- Divider ---------- */
.divider {
  border: 0;
  border-top: 2px dashed var(--c-graphite);
  margin: 32px 0;
}

.divider--solid {
  border-top-style: solid;
}

/* ---------- Link More ---------- */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--c-blue);
  text-decoration: none;
}

.link-more::after {
  content: "→";
  transition: transform 0.2s;
}

.link-more:hover {
  color: var(--c-orange);
}

.link-more:hover::after {
  transform: translateX(4px);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background-color: var(--c-ink);
  background-image:
    linear-gradient(rgba(248, 250, 252, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 250, 252, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--c-paper);
  border-top: 4px solid var(--c-ink);
}

.site-footer::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-blue) 20%, var(--c-yellow) 40%, var(--c-green) 60%, var(--c-blue) 80%, var(--c-orange) 100%);
}

.site-footer__main {
  position: relative;
  overflow: hidden;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding: 56px 0 48px;
}

.site-footer__brand {
  display: grid;
  align-content: start;
  gap: 16px;
}

.brand--footer .brand__name {
  color: var(--c-white);
}

.site-footer__trust {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-graphite);
  max-width: 36ch;
  margin: 0;
  border-left: 3px solid var(--c-blue);
  padding-left: 12px;
}

.site-footer__col {
  display: grid;
  align-content: start;
  gap: 12px;
}

.site-footer__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-graphite);
  margin-bottom: 8px;
}

.site-footer__heading::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--c-orange);
  flex-shrink: 0;
}

.site-footer__links {
  display: grid;
  gap: 10px;
}

.site-footer__links a {
  color: var(--c-paper);
  font-size: 14px;
  transition: color 0.2s, padding-left 0.2s;
}

.site-footer__links a:hover {
  color: var(--c-orange);
  padding-left: 4px;
}

.site-footer__contact-list {
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: var(--c-paper);
}

.site-footer__contact-list li {
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.site-footer__contact-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-orange);
  font-family: var(--font-mono);
  font-weight: 700;
}

.site-footer__service-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(248, 250, 252, 0.12);
  font-size: 12px;
  line-height: 1.6;
  color: var(--c-graphite);
}

.site-footer__bottom {
  border-top: 1px solid rgba(248, 250, 252, 0.12);
  padding: 20px 0 28px;
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__copyright,
.site-footer__icp {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--c-graphite);
  margin: 0;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive: Nav Drawer ---------- */
@media (max-width: 959px) {
  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    display: block;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    background: var(--c-ink);
    border-bottom: 4px solid var(--c-orange);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
  }

  .site-nav__item {
    border-bottom: 1px solid rgba(248, 250, 252, 0.1);
  }

  .site-nav__item:last-child {
    border-bottom: 0;
  }

  .site-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 8px;
    border: 0;
    border-radius: 0;
    color: var(--c-paper);
    font-size: 16px;
    background: transparent;
  }

  .site-nav__link:hover {
    color: var(--c-orange);
    background: transparent;
    border-color: transparent;
  }

  .site-nav__index {
    color: var(--c-orange);
  }

  .site-nav__link[aria-current="page"] {
    background: transparent;
    border-color: transparent;
    color: var(--c-orange);
    box-shadow: none;
  }

  .site-nav__link[aria-current="page"] .site-nav__index {
    color: var(--c-yellow);
  }
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width: 900px) {
  .section {
    padding: 48px 0;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 0 40px;
  }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width: 640px) {
  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .brand__name {
    font-size: 18px;
  }

  .site-header__main-inner {
    min-height: 62px;
  }

  .site-header__status-text {
    display: none;
  }

  .site-header__tagline {
    max-width: 60vw;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    padding: 40px 0 32px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    padding: 0;
    justify-content: center;
  }

  .back-to-top__label {
    display: none;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .status-dot--live {
    animation: none;
  }

  .site-header__main::after {
    animation: none;
    background: linear-gradient(90deg, var(--c-orange), var(--c-blue));
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

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