:root {
  --c-base: #080D1F;
  --c-primary: #0E1735;
  --c-nebula: #1B2B5E;
  --c-data: #2E4B9E;
  --c-green: #00F0A8;
  --c-purple: #9B5CFF;
  --c-red: #FF4D6D;
  --c-cloud: #F2F5FF;
  --c-slate: #A7B4E0;
  --grad-fresh: linear-gradient(135deg, rgba(0,240,168,0.15), rgba(155,92,255,0.15));
  --font-head: Impact, 'Arial Black', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-data: 'JetBrains Mono', 'Roboto Mono', monospace;
  --rail-width: 300px;
  --header-h-mobile: 64px;
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-cloud);
  background-color: var(--c-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

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

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

button {
  cursor: pointer;
}

a {
  color: var(--c-purple);
  text-decoration: none;
  transition: color 200ms;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  color: var(--c-cloud);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 0;
}

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

::selection {
  background: rgba(0, 240, 168, 0.25);
  color: var(--c-cloud);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

#main-content {
  min-height: 65vh;
  outline: none;
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-index {
  font-family: var(--font-data);
  font-size: 0.9rem;
  color: var(--c-green);
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.section-title {
  flex: 1;
}

/* ===== Skip Link ===== */
.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 3000;
  background: var(--c-green);
  color: var(--c-base);
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 200ms var(--ease);
}

.skip-link:focus {
  top: 0;
  color: var(--c-base);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  z-index: 2000;
  background: var(--c-primary);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--c-green) 0 2px, transparent 2px 7px, var(--c-purple) 7px 9px, transparent 9px 16px, rgba(0,240,168,0.4) 16px 18px, transparent 18px 24px);
  z-index: 1;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-glyph {
  width: 44px;
  height: 44px;
  background: var(--c-green);
  color: var(--c-base);
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  line-height: 1;
  flex-shrink: 0;
}

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

.brand-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-cloud);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-data);
  font-size: 0.68rem;
  color: var(--c-green);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-nebula);
  border-left: 3px solid var(--c-green);
  padding: 8px 14px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  overflow: hidden;
}

.ticker-label {
  font-family: var(--font-data);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-green);
  background: rgba(0, 240, 168, 0.1);
  padding: 2px 6px;
  line-height: 1.4;
}

.ticker-text {
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--c-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(155, 92, 255, 0.4);
  border-radius: 6px;
  background: rgba(14, 23, 53, 0.9);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-cloud);
  border-radius: 2px;
  transition: background 200ms, transform 200ms var(--ease);
}

.nav-toggle-label {
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--c-slate);
}

.nav-toggle:hover .nav-toggle-bar {
  background: var(--c-green);
}

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

.site-nav {
  display: flex;
  flex-direction: column;
}

.nav-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding: 0 16px;
}

.nav-title-index {
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--c-purple);
  letter-spacing: 0.12em;
}

.nav-title-text {
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--c-slate);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-list {
  list-style: none;
}

.nav-item {
  margin-bottom: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  color: var(--c-cloud);
  font-weight: 600;
  font-size: 0.95rem;
  border-left: 2px solid transparent;
  transition: background 200ms, border-color 200ms, color 200ms;
  position: relative;
}

.nav-link:hover {
  color: var(--c-green);
  background: rgba(0, 240, 168, 0.05);
}

.nav-link[aria-current="page"] {
  color: var(--c-purple);
  border-left-color: var(--c-purple);
  background: linear-gradient(90deg, rgba(155, 92, 255, 0.14), transparent 80%);
}

.nav-link-num {
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--c-slate);
  font-variant-numeric: tabular-nums;
  min-width: 22px;
}

.nav-link[aria-current="page"] .nav-link-num {
  color: var(--c-green);
}

.nav-link-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-purple);
  box-shadow: 0 0 6px rgba(155, 92, 255, 0.6);
  opacity: 0;
  margin-left: auto;
  transition: opacity 200ms;
  flex-shrink: 0;
}

.nav-link[aria-current="page"] .nav-link-mark {
  opacity: 1;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-base);
  border: 1px solid rgba(46, 75, 158, 0.4);
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color 200ms, box-shadow 200ms;
}

.header-search:focus-within {
  border-color: var(--c-purple);
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.15);
}

.search-icon {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}

.search-icon::before {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid var(--c-slate);
  border-radius: 50%;
  top: 0;
  left: 0;
}

.search-icon::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 2px;
  background: var(--c-slate);
  bottom: 1px;
  right: 0;
  transform: rotate(45deg);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--c-cloud);
  font-size: 0.85rem;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--c-slate);
  opacity: 0.7;
}

.search-input::-webkit-search-cancel-button {
  filter: invert(0.7);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 6px rgba(0, 240, 168, 0.6);
  flex-shrink: 0;
  animation: statusPulse 2.4s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.status-text {
  font-size: 0.72rem;
  color: var(--c-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-time {
  font-family: var(--font-data);
  font-size: 0.72rem;
  color: var(--c-green);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

/* ===== Header Desktop Rail ===== */
@media (min-width: 1024px) {
  body {
    margin-left: var(--rail-width);
  }

  .site-header {
    top: 0;
    left: 0;
    width: var(--rail-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 22px 22px;
    border-right: 1px solid rgba(155, 92, 255, 0.22);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .header-top {
    margin-bottom: 26px;
  }

  .header-ticker {
    margin-bottom: 36px;
  }

  .site-nav {
    flex: 1;
  }

  .header-bottom {
    margin-top: 20px;
  }
}

/* ===== Header Mobile Drawer ===== */
@media (max-width: 1023px) {
  body {
    padding-top: var(--header-h-mobile);
  }

  .site-header {
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h-mobile);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(155, 92, 255, 0.3);
  }

  .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .brand-glyph {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .brand-name {
    font-size: 0.92rem;
  }

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

  .header-ticker {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 86vw);
    height: 100vh;
    padding: 88px 26px 30px;
    background: var(--c-primary);
    border-left: 1px solid rgba(155, 92, 255, 0.35);
    transform: translateX(102%);
    transition: transform 320ms var(--ease);
    z-index: 2001;
    overflow-y: auto;
  }

  .site-nav[data-open] {
    transform: translateX(0);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.4);
  }

  .site-nav[data-open] + *,
  .site-nav[data-open] * {
    /* keep children interactive when open */
  }

  .header-bottom {
    margin-top: 32px;
  }
}

/* ===== Nav Backdrop via body lock ===== */
body.nav-lock {
  overflow: hidden;
}

body.nav-lock::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 31, 0.65);
  backdrop-filter: blur(2px);
  z-index: 2000;
  transition: opacity 320ms var(--ease);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--c-primary);
  border-top: 1px solid rgba(155, 92, 255, 0.2);
  position: relative;
  margin-top: 0;
}

.footer-rail {
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--c-green) 0 3px, transparent 3px 9px, var(--c-purple) 9px 12px, transparent 12px 20px, rgba(0, 240, 168, 0.35) 20px 24px, transparent 24px 32px);
}

.site-footer .container {
  padding-top: 52px;
  padding-bottom: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 44px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.footer-brand {
  margin-bottom: 4px;
}

.footer-about {
  font-size: 0.85rem;
  color: var(--c-slate);
  line-height: 1.8;
  max-width: 360px;
}

.footer-heading {
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-green);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(46, 75, 158, 0.4);
  margin-bottom: 4px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  color: var(--c-cloud);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 200ms, padding-left 200ms var(--ease);
}

.footer-link:hover {
  color: var(--c-green);
  padding-left: 4px;
}

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

.footer-contact-label {
  font-family: var(--font-data);
  font-size: 0.68rem;
  color: var(--c-purple);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-contact-value {
  font-size: 0.85rem;
  color: var(--c-cloud);
  word-break: break-all;
}

.footer-trust {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 44px;
  padding: 16px 20px;
  background: var(--c-base);
  border-radius: 10px;
  border: 1px solid rgba(46, 75, 158, 0.3);
}

.trust-badge {
  font-family: var(--font-data);
  font-size: 0.8rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(155, 92, 255, 0.2);
  color: var(--c-purple);
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-text {
  font-size: 0.78rem;
  color: var(--c-slate);
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(46, 75, 158, 0.3);
  font-size: 0.78rem;
  color: var(--c-slate);
}

.footer-copy {
  font-family: var(--font-data);
}

.footer-icp {
  font-family: var(--font-data);
  color: var(--c-slate);
  letter-spacing: 0.04em;
}

@media (max-width: 1023px) {
  .site-footer .container {
    padding-top: 40px;
  }

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

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

  .footer-about {
    max-width: none;
  }
}

@media (max-width: 639px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 200ms, color 200ms, border-color 200ms, transform 200ms var(--ease), box-shadow 200ms;
  line-height: 1.4;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-peak {
  background: var(--c-green);
  color: var(--c-base);
  border-color: var(--c-green);
  box-shadow: 0 4px 18px rgba(0, 240, 168, 0.25);
}

.btn-peak:hover {
  background: transparent;
  color: var(--c-green);
  border-color: var(--c-green);
  box-shadow: 0 4px 24px rgba(0, 240, 168, 0.18);
}

.btn-ghost {
  background: transparent;
  color: var(--c-purple);
  border-color: rgba(155, 92, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(155, 92, 255, 0.12);
  border-color: var(--c-purple);
  color: var(--c-purple);
}

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

/* ===== Cards ===== */
.card {
  background: var(--c-primary);
  border: 1px solid rgba(46, 75, 158, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 200ms, transform 200ms var(--ease);
}

.card:hover {
  border-color: rgba(155, 92, 255, 0.4);
  transform: translateY(-2px);
}

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-slate);
  font-family: var(--font-body);
  margin-bottom: 8px;
  letter-spacing: 0;
}

.data-card {
  position: relative;
  overflow: hidden;
}

.data-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  background: var(--grad-fresh);
  clip-path: polygon(100% 0, 30% 0, 100% 70%);
  pointer-events: none;
}

.card-value {
  font-family: var(--font-data);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--c-green);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.card-value small {
  font-size: 0.5em;
  color: var(--c-slate);
  font-weight: 400;
}

/* ===== Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-data);
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--c-primary);
  color: var(--c-slate);
  border: 1px solid rgba(167, 180, 224, 0.3);
  line-height: 1.5;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-live {
  background: rgba(0, 240, 168, 0.1);
  color: var(--c-green);
  border-color: rgba(0, 240, 168, 0.35);
}

.badge-live::before {
  animation: statusPulse 1.6s ease-in-out infinite;
}

.badge-done {
  background: rgba(46, 75, 158, 0.18);
  color: var(--c-slate);
  border-color: rgba(46, 75, 158, 0.4);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 0.8rem;
  color: var(--c-slate);
  margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
}

.breadcrumb a {
  color: var(--c-purple);
  text-decoration: none;
  transition: color 200ms;
}

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

.breadcrumb .breadcrumb-current {
  color: var(--c-cloud);
  font-weight: 600;
}

/* ===== Image Frame ===== */
.img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-primary);
  border: 1px solid rgba(46, 75, 158, 0.4);
  aspect-ratio: 16 / 9;
  min-height: 200px;
}

.img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(155, 92, 255, 0.12), transparent 40%),
    var(--grad-fresh);
  pointer-events: none;
  z-index: 1;
}

.img-frame::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 40%;
  background: repeating-linear-gradient(135deg, rgba(0, 240, 168, 0.12) 0 2px, transparent 2px 8px, rgba(155, 92, 255, 0.12) 8px 11px, transparent 11px 18px);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  pointer-events: none;
  z-index: 1;
}

.img-frame-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 0;
}

/* ===== Tabs ===== */
[data-tabs] {
  position: relative;
}

[data-tab-list] {
  display: flex;
  gap: 2px;
  border-bottom: 2px solid rgba(46, 75, 158, 0.35);
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--c-data) transparent;
}

[data-tab-button] {
  padding: 11px 22px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--c-slate);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -2px;
  transition: color 200ms, border-color 200ms, background 200ms;
  border-radius: 6px 6px 0 0;
}

[data-tab-button]:hover {
  color: var(--c-cloud);
  background: rgba(155, 92, 255, 0.05);
}

[data-tab-button][aria-selected="true"] {
  color: var(--c-purple);
  border-bottom-color: var(--c-purple);
  background: rgba(155, 92, 255, 0.08);
}

[data-tab-panel] {
  display: none;
  padding: 6px 0 12px;
  animation: tabIn 300ms var(--ease);
}

[data-tab-panel][data-active] {
  display: block;
}

@keyframes tabIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Scroll Progress ===== */
[data-scroll-progress] {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 2500;
  pointer-events: none;
  background: transparent;
}

[data-scroll-progress]::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--c-green), var(--c-purple));
  box-shadow: 0 0 10px rgba(155, 92, 255, 0.5);
  border-radius: 0 2px 2px 0;
}

/* ===== Grid Helpers ===== */
.data-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

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

  .site-nav {
    transition: none !important;
  }

  .status-dot,
  .badge-live::before {
    animation: none !important;
  }

  [data-tab-panel][data-active] {
    animation: none !important;
  }

  .btn:hover,
  .card:hover {
    transform: none !important;
  }

  .footer-link:hover {
    padding-left: 0 !important;
  }

  .skip-link {
    transition: none !important;
  }
}

/* ===== MQ: tablet/mobile adjustments ===== */
@media (max-width: 1023px) {
  .data-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 639px) {
  .container {
    padding: 0 20px;
  }

  .data-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  [data-tab-button] {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}
