:root {
  --bg-deep: #0A0E14;
  --bg-surface: #141A26;
  --bg-elevated: #1B2333;
  --primary: #39FF14;
  --secondary: #00E5FF;
  --accent: #FF6B00;
  --text: #F2F6FC;
  --text-muted: #A6B3CC;
  --border: #2A3550;
  --font-display: "Rajdhani", "Oxanium", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-body: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --skew: -8deg;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(0, 229, 255, 0.07), transparent 34rem),
    var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--secondary);
}

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

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

[hidden] {
  display: none !important;
}

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

:focus {
  outline: none;
}

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

.main-content {
  display: block;
  min-height: 70vh;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--primary);
  color: var(--bg-deep);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}

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

.container {
  width: min(1440px, 100% - 48px);
  margin-inline: auto;
}

.container--narrow {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 108px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(28px, 4.5vw, 56px);
  margin: 0;
}

.section-note {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 8px 0 0;
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(10, 14, 20, 0.94);
  border-bottom-color: rgba(57, 255, 20, 0.22);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1440px;
  min-height: var(--header-height);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 14px;
  color: #0A1420;
  transform: skew(var(--skew));
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
}

.brand-icon {
  fill: currentColor;
  display: block;
}

.brand-mark-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-lockup {
  display: grid;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.brand-company {
  font-size: 0.64rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}

.nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: 4px;
  padding: 6px;
  margin: 0;
  background: rgba(20, 26, 38, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
}

.nav-link {
  display: block;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(57, 255, 20, 0.08);
}

.nav-link[aria-current="page"] {
  color: var(--bg-deep);
  background: var(--primary);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.35);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-surface);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--primary);
  background: rgba(57, 255, 20, 0.08);
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
}

.header-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  background: var(--bg-surface);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--primary);
  color: var(--bg-deep);
  box-shadow: 0 4px 24px rgba(57, 255, 20, 0.25);
}

.btn--primary:hover {
  background: #55ff36;
  box-shadow: 0 8px 32px rgba(57, 255, 20, 0.35);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn--accent {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 4px 24px rgba(255, 107, 0, 0.25);
}

.btn--accent:hover {
  background: #ff8126;
  box-shadow: 0 8px 32px rgba(255, 107, 0, 0.35);
}

.section {
  position: relative;
  padding: clamp(72px, 10vw, 130px) 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 24px;
  align-items: start;
  margin-bottom: 40px;
}

.section-index {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: clamp(64px, 10vw, 160px);
  line-height: 0.8;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--primary);
  opacity: 0.35;
  user-select: none;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

.split-side {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.split-main {
  min-width: 0;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.data-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.data-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 68px;
  height: 68px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.data-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.data-card:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 20, 0.4);
}

.data-card:hover::after {
  transform: scaleX(1);
}

.data-value {
  font-family: var(--font-mono);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.data-card--blue .data-value {
  color: var(--secondary);
}

.data-card--orange .data-value {
  color: var(--accent);
}

.data-label {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(57, 255, 20, 0.08), rgba(0, 229, 255, 0.06)),
    repeating-linear-gradient(-8deg, transparent 0 14px, rgba(255, 255, 255, 0.02) 14px 15px),
    var(--bg-surface);
  border: 1px solid var(--border);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(0, 229, 255, 0.22);
  border-radius: var(--radius-md);
  pointer-events: none;
}

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

.media-caption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--secondary);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.22);
}

.tag--live {
  color: var(--primary);
  background: rgba(57, 255, 20, 0.1);
  border-color: rgba(57, 255, 20, 0.25);
}

.tag--hot {
  color: var(--accent);
  background: rgba(255, 107, 0, 0.12);
  border-color: rgba(255, 107, 0, 0.28);
}

.tabs,
[data-tab-list] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 6px;
  margin: 0 0 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.tab-btn,
[data-tab-trigger] {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.tab-btn:hover,
[data-tab-trigger]:hover {
  color: var(--text);
  background: rgba(57, 255, 20, 0.08);
}

.tab-btn[aria-selected="true"],
[data-tab-trigger][aria-selected="true"] {
  color: var(--bg-deep);
  background: var(--secondary);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
}

.tab-panel,
[data-tab-panel] {
  display: none;
}

.tab-panel[data-active],
[data-tab-panel][data-active] {
  display: block;
  animation: fade-slide 0.35s var(--ease);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  font-size: 0.88rem;
}

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

.breadcrumb li + li::before {
  content: "/";
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

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

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

.page-hero {
  padding: clamp(48px, 9vw, 100px) 0 40px;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.95;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 65ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 20, 0.4);
}

.step-index {
  font-family: var(--font-mono);
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--secondary);
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42, 53, 80, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 53, 80, 0.25) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 20% 30%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 20% 30%, #000, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.skew-band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10%;
  width: 55%;
  background: linear-gradient(100deg, rgba(57, 255, 20, 0.06), rgba(0, 229, 255, 0.04));
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  pointer-events: none;
}

.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0B1220 100%);
  border-top: 1px solid var(--border);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(360px, 40%);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1440px;
  margin-inline: auto;
  padding: 64px 24px 40px;
}

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

.footer-col--brand {
  display: grid;
  gap: 4px;
  justify-content: start;
}

.footer-col--nav {
  padding-left: 8px;
}

.footer-col--contact {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

.site-footer .brand {
  margin-bottom: 6px;
}

.footer-trust {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--primary);
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 42ch;
}

.footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-link {
  width: fit-content;
  padding: 4px 0;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 8px;
}

.footer-contact-item {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1440px;
  margin-inline: auto;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-copy,
.footer-icp {
  margin: 0;
}

.footer-copy {
  font-family: var(--font-mono);
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .nav-link {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
  }

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

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    z-index: 120;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s var(--ease);
  }

  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
  }

  .nav-link {
    width: 100%;
  }

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

  .split-side {
    position: static;
  }

  .data-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

@media (max-width: 640px) {
  .header-inner {
    gap: 12px;
    padding-inline: 16px;
  }

  .brand-tagline,
  .brand-company {
    display: none;
  }

  .nav {
    left: 12px;
    right: 12px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }

  .footer-col--contact {
    border-left: 0;
    padding-left: 0;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: flex-start;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .tabs,
  [data-tab-list] {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar,
  [data-tab-list]::-webkit-scrollbar {
    display: none;
  }

  .tab-btn,
  [data-tab-trigger] {
    flex: 0 0 auto;
  }
}

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

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