:root {
  --bg-deep: #0B0F19;
  --bg-elev: #2A2F3A;
  --accent: #00D4FF;
  --acid: #39FF14;
  --heat: #FF3E3E;
  --moss: #7A8450;
  --clay: #C67B5C;
  --text: #F5F0E6;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Arial Narrow", system-ui, sans-serif;
  --font-data: "SFMono-Regular", "Cascadia Mono", "Consolas", monospace;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --container-width: 1200px;
  --header-height: 72px;
  --radius: 6px;
  --transition: 160ms ease;
}

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

html {
  background-color: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 212, 255, 0.14), transparent 38%),
    radial-gradient(circle at 85% 75%, rgba(57, 255, 20, 0.08), transparent 30%),
    linear-gradient(rgba(245, 240, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 230, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 36px 36px, 36px 36px;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); transform: skewX(-4deg); }
h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); transform: skewX(-4deg); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1rem; }

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

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

button { font: inherit; }

ul, ol { margin: 0; }

::selection { background: var(--acid); color: var(--bg-deep); }

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

#main-content { scroll-margin-top: calc(var(--header-height) + .5rem); }
#main-content:focus { outline: none; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--accent);
  color: var(--bg-deep);
  padding: .5rem 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  left: 0;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1200;
  pointer-events: none;
}

.progress-bar-inner {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--acid) 45%, var(--heat));
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.35);
}

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--container-width);
  height: var(--header-height);
  margin-inline: auto;
  padding-inline: 1rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  text-decoration: none;
}

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

.logo-mark {
  display: inline-block;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent) 0 40%, var(--acid) 100%);
  clip-path: polygon(0 0, 100% 15%, 82% 100%, 0 82%);
  transition: transform 160ms ease;
}

.site-brand:hover .logo-mark { transform: rotate(15deg); }

.brand-name {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  transform: skewX(-6deg);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
  transition: color 160ms ease, text-shadow 160ms ease;
}

.site-brand:hover .brand-name {
  color: var(--acid);
  text-shadow: 0 0 16px rgba(57, 255, 20, 0.5);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(0, 212, 255, 0.6);
  border-radius: 50%;
  background: rgba(11, 15, 25, 0.6);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.nav-toggle:hover {
  border-color: var(--acid);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.25);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  transition: transform 160ms ease, opacity 160ms ease;
}

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

.nav-capsule {
  background: rgba(42, 47, 58, 0.65);
  border: 1px solid rgba(245, 240, 230, 0.12);
  border-radius: 40px;
  padding: .25rem .5rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.nav-list {
  display: flex;
  gap: .25rem;
  list-style: none;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 40px;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.nav-link:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2), 0 0 16px rgba(0, 212, 255, 0.2);
  color: var(--accent);
}

.nav-link[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-deep);
  font-weight: 700;
}

.section-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 8vw, 5rem);
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  transform: skewX(-8deg);
  text-shadow: 0 0 24px rgba(0, 212, 255, 0.25);
}

.kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .15em;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(245, 240, 230, 0.88);
}

.divider {
  border: 0;
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  margin: 2rem 0;
}

.panel {
  position: relative;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(42, 47, 58, 0.55);
  border: 1px solid rgba(245, 240, 230, 0.08);
  border-radius: var(--radius);
}

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

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 769px) {
  .grid { grid-template-columns: repeat(12, 1fr); }
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; }
  .col-8 { grid-column: span 8; }
}

.card {
  padding: clamp(1rem, 3vw, 1.75rem);
  background: rgba(42, 47, 58, 0.75);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.card:hover {
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.25), 0 0 24px rgba(0, 212, 255, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg-deep);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  background: var(--acid);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
  color: var(--bg-deep);
}

.btn:active { transform: scale(0.97); }

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--accent);
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--acid);
  box-shadow: none;
  color: var(--acid);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--clay); }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { color: var(--acid); }
.breadcrumb [aria-current="page"] { color: var(--text); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .15em .6em;
  background: var(--bg-elev);
  border: 1px solid rgba(245, 240, 230, 0.2);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-cyan { color: var(--accent); border-color: var(--accent); }
.badge-green { color: var(--acid); border-color: var(--acid); }
.badge-red { color: var(--heat); border-color: var(--heat); }
.badge-moss { color: var(--moss); border-color: var(--moss); }
.badge-clay { color: var(--clay); border-color: var(--clay); }

.data-number {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--acid);
  line-height: 1;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--acid);
  font-weight: 600;
}

.live-indicator::before {
  content: "";
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 8px var(--acid);
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-elev);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color 160ms ease;
}

.image-frame:hover::after { border-color: var(--accent); }

.site-footer {
  background: #060A12;
  border-top: 1px solid rgba(0, 212, 255, 0.4);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

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

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

.footer-brand { max-width: 42ch; }

.footer-brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  transform: skewX(-6deg);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

.footer-trust {
  margin-top: .75rem;
  color: rgba(245, 240, 230, 0.75);
  font-size: .9rem;
}

.footer-heading {
  margin-bottom: .75rem;
  padding-left: .5rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  transform: none;
}

.footer-nav ul { padding-left: 0; }

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li + li { margin-top: .35rem; }

.footer-links a {
  color: rgba(245, 240, 230, 0.78);
  text-decoration: none;
  font-size: .9rem;
  transition: color 160ms ease;
}

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

.footer-contact p {
  margin: .35rem 0;
  font-size: .88rem;
  color: rgba(245, 240, 230, 0.75);
}

.footer-legal {
  border-top: 1px solid rgba(245, 240, 230, 0.1);
  padding: 1.25rem 0 2rem;
}

.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem 2rem;
  color: rgba(245, 240, 230, 0.6);
  font-size: .8rem;
}

.footer-legal-inner p { margin: 0; }

.footer-note { flex-basis: 100%; }

@media (max-width: 768px) {
  .nav-shell { height: 60px; }

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

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

  .nav-capsule {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1000;
    padding: .5rem;
    border-radius: 12px;
    background: rgba(11, 15, 25, 0.96);
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  }

  .nav-capsule[data-open] { display: block; }

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

  .nav-link {
    display: block;
    border-radius: 8px;
    width: 100%;
    text-align: left;
  }
}

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

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .progress-bar,
  .progress-bar-inner { display: none; }
}
