:root {
  color-scheme: dark;
  --sidebar-width: 280px;
  --bg: #06080d;
  --bg-2: #0b1017;
  --panel: rgba(14, 20, 29, 0.76);
  --panel-strong: rgba(21, 30, 42, 0.94);
  --text: #f5f8fb;
  --muted: #99a7b7;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(115, 255, 216, 0.34);
  --mint: #73ffd8;
  --cyan: #75c7ff;
  --amber: #ffd36e;
  --rose: #ff6f91;
  --lime: #c5ff72;
  --font-hero: clamp(3rem, 6vw, 5.625rem);
  --font-section: clamp(2rem, 4vw, 3.5rem);
  --font-body: clamp(1rem, 1.4vw, 1.125rem);
  --font-caption: 0.8125rem;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 14% 10%, rgba(115, 255, 216, 0.16), transparent 28%),
    radial-gradient(circle at 80% 6%, rgba(255, 211, 110, 0.13), transparent 24%),
    radial-gradient(circle at 55% 72%, rgba(255, 111, 145, 0.1), transparent 28%),
    linear-gradient(145deg, var(--bg) 0%, var(--bg-2) 52%, #070a0f 100%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto, auto;
  color: var(--text);
  font-family:
    "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(110deg, transparent 0%, rgba(115, 255, 216, 0.08) 48%, transparent 62%),
    linear-gradient(180deg, rgba(6, 8, 13, 0) 0%, #06080d 92%);
  animation: scan 8s ease-in-out infinite alternate;
  pointer-events: none;
}

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

button,
input {
  font: inherit;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  gap: 22px;
  padding: 26px 20px;
  border-right: 1px solid var(--line);
  background: rgba(6, 8, 13, 0.78);
  backdrop-filter: blur(24px);
}

.sidebar-head {
  display: grid;
  gap: 6px;
}

.sidebar-head span {
  color: var(--muted);
  font-size: var(--font-caption);
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 1.125rem;
  font-weight: 900;
}

.search-shell {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.search-shell input,
.model-search {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-shell span {
  margin-right: 10px;
  color: var(--mint);
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.side-nav a:hover,
.side-nav a.active {
  border-color: rgba(115, 255, 216, 0.28);
  background: rgba(115, 255, 216, 0.08);
  color: var(--text);
}

.sidebar-bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.language-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.language-toggle button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.language-toggle button.active {
  background: var(--text);
  color: #080b10;
  font-weight: 800;
}

.console-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.console-link {
  border-color: rgba(115, 255, 216, 0.54);
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  color: #061018;
}

.menu-toggle,
.sidebar-overlay {
  display: none;
}

.app-shell {
  min-height: 100vh;
  padding-left: var(--sidebar-width);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(26px, 4vw, 56px);
  min-height: min(720px, 100vh);
  padding: 58px clamp(20px, 5vw, 72px) 32px;
}

.eyebrow,
.section-head span,
.status-band > div > span,
.code-header span {
  color: var(--mint);
  font-size: var(--font-caption);
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: var(--font-hero);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  max-width: 800px;
  font-size: var(--font-section);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-copy p,
.section-head p {
  max-width: 760px;
  color: var(--muted);
  font-size: var(--font-body);
  line-height: 1.75;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary {
  border-color: rgba(115, 255, 216, 0.54);
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  color: #061018;
  box-shadow: 0 18px 50px rgba(115, 255, 216, 0.18);
}

.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.router-visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(115, 255, 216, 0.1), transparent 34%),
    linear-gradient(315deg, rgba(255, 111, 145, 0.1), transparent 36%),
    var(--panel);
  box-shadow: var(--shadow);
}

.router-visual::before,
.router-visual::after {
  position: absolute;
  inset: 42px;
  content: "";
  border: 1px solid rgba(115, 255, 216, 0.23);
  border-radius: 50%;
  animation: rotate-ring 16s linear infinite;
}

.router-visual::after {
  inset: 110px;
  border-color: rgba(255, 211, 110, 0.28);
  animation-duration: 10s;
  animation-direction: reverse;
}

.core,
.node,
.spark {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.core {
  inset: 50%;
  z-index: 2;
  width: 116px;
  height: 116px;
  transform: translate(-50%, -50%);
  background: var(--text);
  color: #080b10;
  font-size: 1.75rem;
  font-weight: 950;
  box-shadow: 0 0 60px rgba(245, 248, 251, 0.22);
}

.node {
  z-index: 2;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 900;
}

.n1 { top: 46px; left: 52px; }
.n2 { top: 74px; right: 44px; }
.n3 { bottom: 64px; left: 48px; }
.n4 { right: 62px; bottom: 50px; }

.spark {
  z-index: 3;
  width: 10px;
  height: 10px;
  background: var(--mint);
  box-shadow: 0 0 28px var(--mint);
  animation: orbit 4.8s linear infinite;
}

.s2 {
  background: var(--amber);
  box-shadow: 0 0 28px var(--amber);
  animation-delay: -2.4s;
}

.metrics,
.section,
.status-band,
.site-footer {
  margin: 0 clamp(20px, 5vw, 72px) 34px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metrics article,
.model-card,
.price-card,
.code-panel,
.status-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.18);
}

.metrics article {
  min-height: 112px;
  padding: 22px;
}

.metrics strong {
  display: block;
  margin-bottom: 7px;
  color: var(--amber);
  font-size: 2rem;
}

.metrics span,
.model-card p,
.price-card p,
.steps p,
.site-footer {
  color: var(--muted);
}

.section {
  padding: 70px 0;
}

.section-head {
  margin-bottom: 28px;
}

.model-search {
  max-width: 440px;
  min-height: 46px;
  margin-bottom: 20px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

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

.model-card,
.price-card {
  padding: 24px;
}

.model-card {
  min-height: 246px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.model-card:hover {
  transform: translateY(-4px);
  border-color: rgba(115, 255, 216, 0.38);
  background: rgba(20, 29, 41, 0.86);
}

.model-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.model-card strong,
.price-card strong {
  display: block;
  font-size: 1.75rem;
  overflow-wrap: anywhere;
}

.status {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(197, 255, 114, 0.12);
  color: var(--lime);
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status.soon {
  background: rgba(255, 211, 110, 0.12);
  color: var(--amber);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
}

.model-card footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 0;
}

.price-card {
  min-height: 210px;
}

.price-card span {
  color: var(--mint);
  font-weight: 900;
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 26px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 18px;
  padding: 20px;
  border-left: 2px solid var(--mint);
  background: rgba(255, 255, 255, 0.055);
}

.steps span {
  color: var(--amber);
  font-weight: 950;
}

.steps strong {
  display: block;
  margin-bottom: 7px;
}

.code-panel {
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.copy-code {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
}

code {
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.8;
  white-space: pre;
}

.status-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 30px;
}

.status-band ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-band li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

@keyframes rotate-ring {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit {
  0% { top: 50%; left: 50%; }
  24% { top: 22%; left: 77%; }
  50% { top: 52%; left: 86%; }
  74% { top: 77%; left: 28%; }
  100% { top: 50%; left: 50%; }
}

@keyframes scan {
  from {
    transform: translateX(-16%);
  }

  to {
    transform: translateX(14%);
  }
}

@media (max-width: 1180px) {
  .hero,
  .docs-layout,
  .status-band {
    grid-template-columns: 1fr;
  }

  .router-visual {
    min-height: 390px;
  }

  .model-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --font-hero: clamp(2.625rem, 12vw, 4.25rem);
    --font-section: clamp(1.875rem, 8vw, 3rem);
  }

  .menu-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 45;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(6, 8, 13, 0.76);
    backdrop-filter: blur(20px);
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .app-shell {
    padding-left: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 74px;
  }

  .metrics,
  .model-grid,
  .pricing-grid,
  .status-band ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-inline: 18px;
  }

  .router-visual {
    min-height: 340px;
  }

  .core {
    width: 98px;
    height: 98px;
    font-size: 1.375rem;
  }

  .node {
    width: 66px;
    height: 66px;
    font-size: 0.75rem;
  }

  .n1 { left: 26px; }
  .n2 { right: 24px; }
  .n3 { left: 24px; }
  .n4 { right: 34px; }

  .metrics,
  .section,
  .status-band,
  .site-footer {
    margin-inline: 18px;
  }

  .site-footer {
    flex-direction: column;
  }
}
