:root {
  --bg-base: #0A0E1A;
  --bg-elevated: #111827;
  --surface-border: #1E2A3A;
  --neon: #00FFC2;
  --flame: #FF5A3C;
  --text-primary: #F2F7F2;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --success: #4ADE80;
  --warning: #FBBF24;
  --font-heading: 'Space Grotesk', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  --header-h: 72px;
  --max-w: 1280px;
  --gutter: clamp(16px, 3vw, 48px);
}

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

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

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

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

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

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

::selection {
  background: rgba(0, 255, 194, 0.22);
  color: var(--text-primary);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-main {
  padding-top: var(--header-h);
}

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

.section-block {
  padding: clamp(56px, 10vh, 120px) 0;
  position: relative;
}

.mono-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
}

.mono-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--neon);
  flex-shrink: 0;
}

.lead {
  margin: 0;
  max-width: 680px;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.prose {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.prose h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--text-primary);
}

.prose p {
  margin: 0 0 16px;
}

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

.prose ul {
  list-style: square;
  padding-left: 1.4em;
  margin-bottom: 16px;
}

.prose li {
  margin-bottom: 8px;
  list-style: square;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--surface-border);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--neon);
  border-color: var(--neon);
  color: #06120D;
}

.btn-primary:hover {
  background: #00E8B5;
  border-color: #00E8B5;
  box-shadow: 0 0 24px rgba(0, 255, 194, 0.35);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 24px 0 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 8px;
  color: var(--surface-border);
}

.breadcrumb-item a {
  color: var(--text-secondary);
}

.breadcrumb-item a:hover {
  color: var(--neon);
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.col-span-8 {
  grid-column: span 8;
}

.col-span-4 {
  grid-column: span 4;
}

.data-panel {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  padding: 24px;
}

.data-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 36px;
  height: 3px;
  background: var(--neon);
}

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  overflow: hidden;
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.site-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 12px 16px;
  background: var(--neon);
  color: #06120D;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.site-skip:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 14, 26, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--surface-border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 14, 26, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, var(--neon), transparent);
  z-index: 2;
  pointer-events: none;
}

.site-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--neon), var(--flame));
  z-index: 5;
  pointer-events: none;
}

.header-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.brand-mark {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-mark::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(0, 255, 194, 0.7);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border-left: 1px solid var(--surface-border);
  padding-left: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--surface-border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--success);
  white-space: nowrap;
  flex-shrink: 0;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: live-pulse 1.8s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.6);
  }
}

.live-text {
  letter-spacing: 0.12em;
}

.header-nav {
  margin-left: auto;
}

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

.nav-link {
  display: inline-block;
  padding: 10px 13px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link[aria-current="page"] {
  color: var(--text-primary);
  border-bottom-color: var(--neon);
}

.header-cta {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
}

@media (max-width: 1240px) {
  .brand-tagline {
    display: none;
  }
}

@media (max-width: 1040px) {
  .header-inner {
    gap: 12px;
  }

  .live-indicator {
    display: none;
  }

  .header-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 10;
    margin: 0;
    padding: 28px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--surface-border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, visibility 0s linear 0.28s;
  }

  .header-nav[data-open] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, visibility 0s linear 0s;
  }

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

  .nav-link {
    display: block;
    padding: 14px 16px;
    border: 1px solid transparent;
    font-size: 1rem;
  }

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

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid var(--surface-border);
    background: var(--bg-elevated);
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    transition: transform 0.25s ease, opacity 0.25s 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);
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
  }

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

  .brand-mark {
    font-size: 1.2rem;
  }

  .btn-primary {
    min-height: 40px;
    padding: 10px 16px;
  }

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

  .layout-split,
  .grid-12 {
    grid-template-columns: 1fr;
  }

  .col-span-8,
  .col-span-4 {
    grid-column: 1;
  }
}

@media (max-width: 960px) {
  .layout-split {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg-elevated), #070B14);
  border-top: 1px solid var(--surface-border);
  padding: 72px 0 32px;
  margin-top: clamp(48px, 10vh, 120px);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon) 0%, var(--flame) 60%, transparent 100%);
  pointer-events: none;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 64px);
}

.footer-brand-block {
  min-width: 0;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.footer-brand::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  background: var(--neon);
  box-shadow: 0 0 16px rgba(0, 255, 194, 0.6);
}

.footer-tagline {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.footer-trust {
  margin-top: 20px;
  max-width: 420px;
  padding-left: 16px;
  border-left: 2px solid var(--neon);
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

.footer-heading {
  margin: 0 0 20px;
}

.footer-links-list,
.footer-contact-list {
  display: grid;
  gap: 12px;
}

.footer-links-list a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-links-list a::before {
  content: "→";
  font-family: var(--font-mono);
  color: var(--flame);
  margin-right: 8px;
}

.footer-links-list a:hover {
  color: var(--neon);
}

.footer-contact-list li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  padding-left: 6px;
}

.footer-support-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-copyright,
.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 720px) {
  .site-footer {
    padding-top: 56px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

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

@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .live-dot {
    animation: none;
  }
}
