/* ========== Reset / Tokens ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--lb-bg);
  color: var(--lb-text);
  font-family: var(--lb-font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
main { display: block; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .4em;
  font-family: var(--lb-font-headline);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
}
p { margin: 0 0 1em; }
button { font: inherit; background: transparent; border: 0; cursor: pointer; color: inherit; }
:root {
  --lb-bg: #0B1E36;
  --lb-bg-card: #152A45;
  --lb-bg-footer: #1A2C40;
  --lb-accent: #39FF88;
  --lb-accent-orange: #FF6B35;
  --lb-accent-yellow: #FFD166;
  --lb-purple: #7B61FF;
  --lb-text: #F7FAFC;
  --lb-text-muted: #A0C4E8;
  --lb-border: rgba(160, 196, 232, .18);
  --lb-border-strong: #7B61FF;
  --lb-font-headline: "Noto Sans SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lb-font-body: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --lb-font-data: "JetBrains Mono", "Roboto Mono", "Courier New", monospace;
  --lb-header-w: 96px;
  --lb-header-w-open: 264px;
  --lb-z-header: 100;
  --lb-z-backdrop: 118;
  --lb-z-drawer: 120;
  --lb-z-progress: 140;
}
#main-content { scroll-margin-top: 72px; }
:focus-visible { outline: 2px solid var(--lb-accent); outline-offset: 3px; }
::selection { background: var(--lb-accent); color: #062014; }
@media (min-width: 1024px) {
  body { padding-left: var(--lb-header-w); }
}

/* ========== Skip / Progress ========== */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 999;
  background: var(--lb-accent);
  color: #062014;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid var(--lb-text);
  transition: top .2s;
}
.skip-link:focus-visible { top: 8px; }
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: var(--lb-z-progress);
  background: transparent;
  pointer-events: none;
}
.read-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(to right, var(--lb-accent), var(--lb-purple) 72%, var(--lb-accent-orange));
}

/* ========== Header – Desktop Rail ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--lb-header-w);
  z-index: var(--lb-z-header);
  background: var(--lb-bg);
  border-right: 1px solid var(--lb-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width .3s cubic-bezier(.65, .05, .3, 1), border-color .3s;
}
.site-header:hover,
.site-header:focus-within {
  width: var(--lb-header-w-open);
  border-right-color: var(--lb-border-strong);
}
.track-inner {
  display: flex;
  flex-direction: column;
  width: var(--lb-header-w-open);
  height: 100%;
  padding: 28px 16px 24px;
  gap: 28px;
}
.brand { flex: 0 0 auto; }
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--lb-bg-card);
  border: 1px solid var(--lb-border);
  color: var(--lb-text);
  transition: border-color .2s, background .2s;
}
.brand-link:hover { border-color: var(--lb-accent); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  background: var(--lb-accent);
  color: #062014;
  font-family: var(--lb-font-data);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.04em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.brand-field { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 21px; font-weight: 900; letter-spacing: .02em; white-space: nowrap; }
.brand-tag {
  font-family: var(--lb-font-data);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--lb-text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.nav-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 8px;
  border: 1px solid transparent;
  color: var(--lb-text-muted);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.nav-list a::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  background: var(--lb-border);
  transform: rotate(45deg);
  transition: background .2s, box-shadow .2s;
}
.nav-list a:hover { color: var(--lb-accent); background: var(--lb-bg-card); border-color: var(--lb-border); }
.nav-list a:hover::before { background: var(--lb-accent); }
.nav-list a[aria-current="page"] { color: var(--lb-text); background: var(--lb-bg-card); border-color: var(--lb-border); }
.nav-list a[aria-current="page"]::before { background: var(--lb-accent); box-shadow: 0 0 10px var(--lb-accent); }
.track-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--lb-border);
}
.track-ver {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  align-self: flex-start;
  padding: 4px 0 4px 10px;
  border-left: 1px solid var(--lb-border);
  font-family: var(--lb-font-headline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--lb-text-muted);
  white-space: nowrap;
}
.track-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--lb-font-data);
  font-size: 12px;
  color: var(--lb-text-muted);
  white-space: nowrap;
}
.dot-live {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--lb-accent);
  animation: live-pulse 1.6s ease infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57, 255, 136, .45); opacity: 1; }
  50% { box-shadow: 0 0 0 8px rgba(57, 255, 136, 0); opacity: .7; }
}
.nav-toggle { display: none; }
.nav-backdrop { display: none; }

/* ========== Header – Mobile Drawer ========== */
@media (max-width: 1023.98px) {
  body { padding-top: 64px; }
  body.nav-lock { overflow: hidden; }
  .site-header {
    right: 0;
    bottom: auto;
    width: auto;
    height: 64px;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--lb-border);
    overflow: visible;
    transition: none;
  }
  .site-header:hover,
  .site-header:focus-within { width: auto; border-right-color: var(--lb-border); }
  .track-inner {
    width: auto;
    height: auto;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 16px;
  }
  .brand-link { padding: 6px 10px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 16px; }
  .brand-name { font-size: 18px; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 10px;
    border: 1px solid var(--lb-border);
    background: var(--lb-bg-card);
    transition: border-color .2s;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--lb-text);
    transition: background .2s, transform .2s, opacity .2s;
  }
  .nav-toggle[aria-expanded="true"] { border-color: var(--lb-accent); }
  .nav-toggle[aria-expanded="true"] span { background: var(--lb-accent); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    height: 100%;
    z-index: var(--lb-z-drawer);
    flex-direction: column;
    justify-content: flex-start;
    padding: 96px 24px 32px;
    background: var(--lb-bg);
    border-right: 1px solid var(--lb-border);
    transform: translateX(-100%);
    transition: transform .28s ease, box-shadow .28s ease;
    overflow-y: auto;
  }
  .site-nav[data-open] { transform: translateX(0); box-shadow: 18px 0 54px rgba(0, 0, 0, .45); }
  .site-nav .nav-list { flex: 0 0 auto; gap: 8px; }
  .site-nav .nav-list a { font-size: 16px; }
  .site-nav .track-foot { display: flex; margin-top: auto; }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: var(--lb-z-backdrop);
    background: rgba(4, 12, 22, .55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  .nav-backdrop[data-open] { opacity: 1; pointer-events: auto; }
}

/* ========== Footer ========== */
.site-footer {
  position: relative;
  background: var(--lb-bg-footer);
  border-top: 3px solid var(--lb-border-strong);
  padding: 64px clamp(20px, 5vw, 56px) 36px;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 260px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--lb-accent-orange), var(--lb-accent));
}
.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.footer-brand .brand-link {
  display: inline-flex;
  width: auto;
  margin-bottom: 16px;
}
.footer-slogan { margin: 0; color: var(--lb-text-muted); font-size: 14px; letter-spacing: .04em; }
.footer-title {
  display: block;
  font-family: var(--lb-font-headline);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--lb-text);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links a {
  display: block;
  width: 100%;
  padding: 10px 0;
  color: var(--lb-text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--lb-border);
  transition: color .2s, border-color .2s;
}
.footer-links a:hover { color: var(--lb-accent); border-color: var(--lb-accent); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--lb-text-muted);
  font-size: 14px;
}
.footer-line { display: block; }
.footer-meta {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--lb-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--lb-text-muted);
  font-family: var(--lb-font-data);
  font-size: 13px;
}

/* ========== Shared Components ========== */
.container {
  width: min(100%, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(18px, 4vw, 48px);
  padding-right: clamp(18px, 4vw, 48px);
}
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 32px;
}
.section-title { font-size: clamp(30px, 5vw, 56px); }
.section-note { max-width: 560px; color: var(--lb-text-muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.grid-cols-2 > * { grid-column: span 6; }
.grid-cols-3 > * { grid-column: span 4; }
.grid-cols-4 > * { grid-column: span 3; }
.card {
  background: var(--lb-bg-card);
  border: 1px solid var(--lb-border);
  box-shadow: 8px 8px 0 rgba(123, 97, 255, .07);
  padding: 28px;
}
.card-accent { position: relative; }
.card-accent::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 22px solid var(--lb-accent);
  border-left: 22px solid transparent;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--lb-accent);
  color: var(--lb-accent);
  background: transparent;
  font-family: var(--lb-font-headline);
  font-weight: 800;
  line-height: 1.4;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn-primary {
  background: var(--lb-accent);
  border-color: var(--lb-accent);
  color: #062014;
  box-shadow: 5px 5px 0 var(--lb-purple);
}
.btn-primary:hover {
  background: var(--lb-text);
  border-color: var(--lb-text);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--lb-purple);
}
.btn-ghost { border-color: var(--lb-accent); color: var(--lb-accent); }
.btn-ghost:hover { background: var(--lb-accent); color: #062014; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 0;
  font-size: 14px;
  color: var(--lb-text-muted);
  list-style: none;
}
.breadcrumbs li { display: flex; align-items: center; gap: 14px; }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  font-family: var(--lb-font-data);
  color: var(--lb-border);
}
.breadcrumbs a { color: var(--lb-text-muted); }
.breadcrumbs a:hover { color: var(--lb-accent); }
.breadcrumbs [aria-current="page"] { color: var(--lb-text); font-weight: 700; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--lb-font-data);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--lb-accent);
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--lb-accent); }
.tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--lb-border);
  background: var(--lb-bg-card);
  color: var(--lb-text-muted);
  font-family: var(--lb-font-data);
  font-size: 13px;
}
.tag-accent { border-color: var(--lb-accent); color: var(--lb-accent); }
.tag-orange { border-color: var(--lb-accent-orange); color: var(--lb-accent-orange); }
.tag-warning { border-color: var(--lb-accent-yellow); color: var(--lb-accent-yellow); }
.data-number {
  font-family: var(--lb-font-data);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--lb-text);
}
.data-number-lg { font-size: clamp(36px, 6vw, 68px); }
.data-number-sm { font-size: 20px; }
.media-frame {
  position: relative;
  min-height: 220px;
  border: 1px solid var(--lb-border);
  background: linear-gradient(135deg, rgba(21, 42, 69, .8), rgba(11, 30, 54, .95));
  overflow: hidden;
}
.media-frame::before {
  content: "IMAGE ASSET";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lb-font-data);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--lb-text-muted);
  opacity: .5;
}
.section-rule {
  height: 48px;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--lb-border);
  position: relative;
}
.section-rule::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  width: 240px;
  background: linear-gradient(90deg, var(--lb-accent), transparent);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Responsive Grid / Footer ========== */
@media (max-width: 900px) {
  .grid { gap: 16px; }
  .grid-cols-3 > *, .grid-cols-4 > * { grid-column: span 6; }
}
@media (max-width: 680px) {
  .grid-cols-2 > *, .grid-cols-3 > *, .grid-cols-4 > * { grid-column: span 12; }
}
@media (max-width: 760px) {
  .footer-layout { grid-template-columns: 1fr; gap: 32px; }
  .footer-meta { flex-direction: column; gap: 8px; }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto !important; }
}
