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

* {
  margin: 0;
}

:root {
  --bg: #0A0E27;
  --bg-elev: #121A3A;
  --red: #FF2E63;
  --blue: #00D2FF;
  --green: #39FF14;
  --light: #F5F6FA;
  --muted: #A0A6C0;
  --line: #2A3550;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --container: 1200px;
  --header-h: 4.25rem;
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
  flex: 1 0 auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-weight: 900;
  color: var(--light);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
}

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

button,
input {
  font: inherit;
}

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

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--blue);
  color: #041A2A;
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  background: rgba(10, 14, 39, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 53, 80, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: calc(var(--scroll-progress, 0) * 1%);
  background: linear-gradient(90deg, var(--green), var(--blue), var(--red));
  z-index: 2;
  pointer-events: none;
}

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

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 1.4rem;
}

.brand-bar {
  display: block;
  width: 4px;
  height: 100%;
  background: var(--red);
  transform: skewX(-18deg);
}

.brand-bar:nth-child(1) {
  height: 55%;
  background: var(--green);
}

.brand-bar:nth-child(2) {
  height: 80%;
  background: var(--blue);
}

.brand-bar:nth-child(3) {
  height: 100%;
  background: var(--red);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--light);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link[aria-current="page"] {
  color: var(--light);
  background: rgba(255, 46, 99, 0.12);
  box-shadow: inset 0 -2px 0 var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-field {
  display: flex;
  align-items: center;
  min-width: 0;
  width: min(230px, 24vw);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-field:focus-within {
  border-color: var(--blue);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.12);
}

.search-input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--light);
  font-family: inherit;
  font-size: 0.9rem;
  -webkit-appearance: none;
  appearance: none;
}

.search-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-primary:hover {
  background: #e62258;
  border-color: #e62258;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: rgba(0, 210, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--blue);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: border-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--blue);
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--light);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header[data-open] .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header[data-open] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header[data-open] .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-footer {
  position: relative;
  flex-shrink: 0;
  background: #070A1C;
  color: var(--muted);
}

.site-footer::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--blue) 55%, var(--red) 100%);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.6fr;
  gap: 2rem 2.5rem;
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
}

.footer-brand .brand {
  margin-bottom: 1rem;
}

.footer-about {
  max-width: 34ch;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 1rem;
}

.footer-trust {
  margin-top: 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--green);
  font-size: 0.85rem;
  color: var(--muted);
}

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

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.footer-nav,
.footer-links,
.footer-contact {
  display: grid;
  gap: 0.35rem;
}

.footer-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.15rem 0;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--light);
}

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.contact-value {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.footer-icp,
.footer-address {
  color: var(--muted);
}

.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  max-width: 72ch;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--red);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  margin-top: 0.5rem;
}

.section-lead {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.badge-live {
  background: rgba(57, 255, 20, 0.1);
  color: var(--green);
}

.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: live-pulse 1.4s ease-in-out infinite;
}

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

.data-card {
  position: relative;
  overflow: hidden;
  padding: 1.4rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.data-card::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 72px;
  height: 72px;
  background: var(--red);
  opacity: 0.08;
  transform: rotate(45deg);
}

.data-card:hover {
  border-color: rgba(0, 210, 255, 0.5);
}

.data-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--light);
  line-height: 1.2;
}

.data-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-elev);
  padding: 1.25rem 1.4rem;
}

.stat-item .data-value {
  font-size: 1.5rem;
}

.bg-lines {
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bg-scan {
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0, rgba(255, 255, 255, 0.025) 1px, transparent 1px, transparent 8px);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(10, 14, 39, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1.25rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
  }

  .site-header[data-open] .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

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

  .nav-list li + li {
    border-top: 1px solid rgba(42, 53, 80, 0.45);
  }

  .nav-link {
    display: flex;
    padding: 0.9rem 1rem;
  }

  .nav-toggle {
    display: flex;
  }
}

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

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

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

@media (max-width: 700px) {
  .search-field {
    display: none;
  }
}

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-meta {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header-inner {
    gap: 0.5rem;
  }

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

  .header-cta {
    padding: 0.5rem 0.65rem;
    font-size: 0.8rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .scroll-progress {
    display: none;
  }

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