/* ==========================================================
   必博体育 · Shared Site CSS  /assets/site.css
   深夜体育场数据终端 · 电光蓝 / 霓虹橙 / 荧光绿
   ========================================================== */

:root {
  --color-bg: #0B0E14;
  --color-bg-elev: #1F2A44;
  --color-accent: #00C2FF;
  --color-accent-alt: #FF6B35;
  --color-data: #39FF88;
  --color-text: #E8ECF1;
  --color-text-muted: #8A94A6;
  --color-border: #2A3B5C;
  --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", -apple-system, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-data: "Roboto Mono", "Fira Code", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --header-h: 64px;
  --content-w: 1160px;
}

/* ---------- reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(0, 194, 255, 0.07), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(255, 107, 53, 0.05), transparent);
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

::selection {
  background: var(--color-accent);
  color: #0B0E14;
}

[hidden] {
  display: none !important;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-alt);
}

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

#main-content {
  display: block;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 5px;
  border: 2px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* ---------- utilities ---------- */
.container {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-muted {
  color: var(--color-text-muted);
}

.data-font {
  font-family: var(--font-data);
  font-weight: 500;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 3000;
  padding: 10px 18px;
  background: var(--color-accent);
  color: #0B0E14;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 20px rgba(0, 194, 255, 0.35);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #0B0E14;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: var(--header-h);
  background: rgba(11, 14, 20, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(42, 59, 92, 0.55);
  isolation: isolate;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg,
    rgba(0, 194, 255, 0.08) 0%,
    transparent 30%,
    transparent 62%,
    rgba(255, 107, 53, 0.06) 100%);
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg,
    var(--color-accent) 0%,
    rgba(0, 194, 255, 0.25) 25%,
    transparent 50%,
    rgba(255, 107, 53, 0.3) 75%,
    var(--color-accent-alt) 100%);
  opacity: 0.75;
  pointer-events: none;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    var(--color-accent) 0%,
    var(--color-accent-alt) 55%,
    var(--color-data) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 5;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 194, 255, 0.45);
}

.header-inner {
  position: relative;
  height: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  width: 24px;
  height: 32px;
  background: linear-gradient(165deg, var(--color-accent) 0%, #0093C8 55%, var(--color-accent-alt) 130%);
  clip-path: polygon(50% 0%, 10% 56%, 40% 56%, 24% 100%, 92% 36%, 58% 36%, 76% 0%);
  filter: drop-shadow(0 0 8px rgba(0, 194, 255, 0.55));
  transition: filter 0.25s ease;
}

.brand-text {
  display: block;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--color-text);
  line-height: 1;
  transition: color 0.2s ease;
}

.brand-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-data);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.brand:hover {
  opacity: 1;
}

.brand:hover .brand-mark {
  filter: drop-shadow(0 0 12px rgba(0, 194, 255, 0.85));
}

.brand:hover .brand-text {
  color: var(--color-accent);
}

/* ---------- nav (desktop) ---------- */
.main-nav {
  min-width: 0;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  border-radius: 3px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-label {
  display: inline-block;
}

.nav-index {
  font-family: var(--font-data);
  font-size: 0.62rem;
  color: var(--color-accent);
  opacity: 0.6;
}

.nav-link:hover {
  color: var(--color-text);
  background: rgba(42, 59, 92, 0.3);
}

.nav-link[aria-current="page"] {
  color: var(--color-accent);
  background: rgba(0, 194, 255, 0.05);
}

.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-alt));
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 5px 100%);
}

/* ---------- nav toggle ---------- */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 1400;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--color-accent);
  background: rgba(0, 194, 255, 0.06);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-accent);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.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);
}

/* ---------- mobile drawer ---------- */
@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  .header-inner {
    position: static;
    padding-inline: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(320px, 86vw);
    height: calc(100vh - var(--header-h));
    padding: 24px 16px 40px;
    background: rgba(7, 10, 16, 0.97);
    border-left: 1px solid var(--color-border);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45);
    transform: translateX(102%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.32s;
    z-index: 1300;
    overflow-y: auto;
  }

  .main-nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
  }

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

  .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(42, 59, 92, 0.3);
    border-radius: 0;
  }

  .nav-link[aria-current="page"]::after {
    left: 0;
    right: auto;
    bottom: auto;
    top: 0;
    width: 3px;
    height: 100%;
    clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
  }

  .nav-index {
    opacity: 1;
  }

  body.nav-lock {
    overflow: hidden;
  }

  .main-nav[data-open="true"] .nav-item {
    animation: nav-item-in 0.3s ease both;
  }
  .main-nav[data-open="true"] .nav-item:nth-child(1) { animation-delay: 0.04s; }
  .main-nav[data-open="true"] .nav-item:nth-child(2) { animation-delay: 0.08s; }
  .main-nav[data-open="true"] .nav-item:nth-child(3) { animation-delay: 0.12s; }
  .main-nav[data-open="true"] .nav-item:nth-child(4) { animation-delay: 0.16s; }
  .main-nav[data-open="true"] .nav-item:nth-child(5) { animation-delay: 0.20s; }
  .main-nav[data-open="true"] .nav-item:nth-child(6) { animation-delay: 0.24s; }
}

@keyframes nav-item-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- tablet compressions ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-index {
    display: none;
  }

  .nav-link {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .brand {
    gap: 8px;
  }

  .header-inner {
    padding-inline: 16px;
  }

  .nav-list {
    gap: 0;
  }
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 10;
  background:
    radial-gradient(ellipse 70% 60% at 10% 0%, rgba(0, 194, 255, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 0%, rgba(255, 107, 53, 0.04), transparent 55%),
    #070A10;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--color-accent) 0%,
    rgba(0, 194, 255, 0.3) 22%,
    transparent 48%,
    transparent 52%,
    rgba(255, 107, 53, 0.3) 78%,
    var(--color-accent-alt) 100%);
  opacity: 0.8;
  pointer-events: none;
}

.footer-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 68px;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0,
      transparent 14px,
      rgba(0, 194, 255, 0.06) 14px,
      rgba(0, 194, 255, 0.06) 16px
    ),
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 22px,
      rgba(255, 107, 53, 0.045) 22px,
      rgba(255, 107, 53, 0.045) 24px
    );
  opacity: 0.75;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  max-width: var(--content-w);
  margin-inline: auto;
  padding: 56px 24px 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.brand-footer .brand-mark {
  width: 22px;
  height: 30px;
}

.brand-footer .brand-text {
  font-size: 1.15rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 40ch;
}

.footer-trust {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--color-data);
  padding-left: 10px;
  border-left: 2px solid var(--color-data);
}

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

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a::before {
  content: '';
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 5px solid var(--color-accent);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--color-accent);
  transform: translateX(3px);
}

.footer-links a:hover::before,
.footer-links a:focus::before {
  opacity: 1;
}

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

.footer-contact li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.footer-contact li::before {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  opacity: 0.7;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(42, 59, 92, 0.45);
  padding: 18px 0;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.footer-bottom p {
  font-family: var(--font-data);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.footer-bottom .icp {
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 48px 24px 40px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 36px;
  }

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

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 42, 68, 0.92);
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  color: var(--color-accent);
  font-family: var(--font-data);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.back-to-top:hover {
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.35);
  color: var(--color-data);
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #0093C8);
  color: #0B0E14;
  border-color: transparent;
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 194, 255, 0.3);
  color: #0B0E14;
}

.btn-warm {
  background: linear-gradient(135deg, var(--color-accent-alt), #E54E1B);
  color: #fff;
  border-color: transparent;
}

.btn-warm:hover {
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border-color: rgba(0, 194, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(0, 194, 255, 0.07);
  color: var(--color-accent);
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-family: var(--font-data);
  font-size: 0.76rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--color-border);
  font-weight: 700;
}

.breadcrumb [aria-current="page"] {
  color: var(--color-text);
}

/* ---------- sections & narrative chapters ---------- */
.section {
  position: relative;
  padding-block: 72px;
}

.section-index {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-data);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.section-index::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--color-accent);
  vertical-align: middle;
  margin-right: 10px;
}

.section-title {
  margin: 0 0 16px;
  color: var(--color-text);
}

.section-desc {
  max-width: 640px;
  margin: 0 0 36px;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.chapter-divider {
  position: relative;
  height: 56px;
  pointer-events: none;
}

.chapter-divider::before {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  top: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    transparent 0%,
    transparent 46%,
    rgba(0, 194, 255, 0.12) 46%,
    rgba(255, 107, 53, 0.10) 52%,
    transparent 52%,
    transparent 100%);
  clip-path: polygon(0 24%, 100% 76%, 100% 100%, 0 100%);
}

/* ---------- prose (legal / text pages) ---------- */
.prose {
  max-width: 780px;
  margin-inline: auto;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.prose h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.2rem;
  color: var(--color-text);
}

.prose p {
  margin-bottom: 16px;
}

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

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

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

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

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

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

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

/* ---------- cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background:
    linear-gradient(165deg, rgba(31, 42, 68, 0.7) 0%, rgba(22, 32, 58, 0.9) 60%, rgba(11, 14, 20, 0.4) 100%);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  transition: width 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 194, 255, 0.35);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 194, 255, 0.12);
}

.card:hover::before {
  width: 72px;
}

.card-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-text);
}

.card-body {
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1 1 auto;
}

.card-footer {
  position: relative;
  padding-top: 14px;
  border-top: 1px solid rgba(42, 59, 92, 0.5);
  font-family: var(--font-data);
  font-size: 0.76rem;
  color: var(--color-text-muted);
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  color: var(--color-text-muted);
  background: transparent;
  white-space: nowrap;
}

.tag-blue {
  color: var(--color-accent);
  border-color: rgba(0, 194, 255, 0.35);
  background: rgba(0, 194, 255, 0.06);
}

.tag-orange {
  color: var(--color-accent-alt);
  border-color: rgba(255, 107, 53, 0.35);
  background: rgba(255, 107, 53, 0.06);
}

.tag-green {
  color: var(--color-data);
  border-color: rgba(57, 255, 136, 0.35);
  background: rgba(57, 255, 136, 0.06);
}

/* ---------- data & stats ---------- */
.data-value {
  font-family: var(--font-data);
  font-weight: 500;
  color: var(--color-data);
  font-size: 1.15rem;
  line-height: 1.3;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(31, 42, 68, 0.55), rgba(31, 42, 68, 0.2));
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  right: -18px;
  top: -18px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(0, 194, 255, 0.12);
  transform: rotate(45deg);
}

.stat-card .data-value {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

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

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

/* ---------- image placeholders ---------- */
.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background:
    radial-gradient(ellipse 70% 45% at 68% 22%, rgba(0, 194, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 40% at 22% 82%, rgba(255, 107, 53, 0.12), transparent 55%),
    linear-gradient(145deg, #16203A, #0B0E14);
}

.image-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 6px,
      rgba(0, 194, 255, 0.025) 6px,
      rgba(0, 194, 255, 0.025) 7px
    );
}

.image-frame::after {
  content: 'IMAGE';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-data);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: rgba(232, 236, 241, 0.4);
  text-indent: 0.32em;
}

.image-frame-16-9 {
  aspect-ratio: 16 / 9;
}

.image-frame-4-3 {
  aspect-ratio: 4 / 3;
}

.image-frame-1-1 {
  aspect-ratio: 1 / 1;
}

/* ---------- data stream decoration ---------- */
.data-stream {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.data-stream::before,
.data-stream::after {
  content: '';
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  opacity: 0.22;
}

.data-stream::before {
  left: 18%;
  background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
  animation: data-stream-move 4s ease-in-out infinite alternate;
}

.data-stream::after {
  right: 24%;
  background: linear-gradient(to bottom, transparent, var(--color-accent-alt), transparent);
  opacity: 0.16;
  animation: data-stream-move 5s ease-in-out infinite alternate-reverse;
}

@keyframes data-stream-move {
  from {
    transform: translateY(-4%);
  }
  to {
    transform: translateY(4%);
  }
}

/* ---------- filter bar ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: var(--font-data);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.filter-btn:hover {
  color: var(--color-accent);
  border-color: rgba(0, 194, 255, 0.5);
}

.filter-btn.is-active {
  color: #0B0E14;
  background: linear-gradient(135deg, var(--color-accent), #00A3D9);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 194, 255, 0.3);
}

/* ---------- accordion ---------- */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(31, 42, 68, 0.5), rgba(31, 42, 68, 0.25));
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.accordion-item[data-open="true"] {
  border-color: rgba(0, 194, 255, 0.35);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.accordion-trigger:hover {
  color: var(--color-accent);
  background: rgba(0, 194, 255, 0.04);
}

.accordion-icon {
  flex: 0 0 auto;
  position: relative;
  width: 20px;
  height: 20px;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-item[data-open="true"] .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.accordion-panel-inner {
  padding: 0 20px 18px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.accordion-item[data-open="true"] .accordion-panel-inner {
  border-top: 1px solid rgba(42, 59, 92, 0.45);
  padding-top: 14px;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .scroll-progress {
    transition: none;
  }

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