:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-soft: #07111f;
  --panel: rgba(9, 16, 31, 0.74);
  --panel-strong: rgba(13, 23, 42, 0.88);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(34, 211, 238, 0.34);
  --text: #eef6ff;
  --muted: #98a7bd;
  --soft: #66758c;
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --violet: #8b5cf6;
  --green: #34d399;
  --amber: #fbbf24;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(96, 165, 250, 0.16), transparent 38%),
    radial-gradient(circle at 8% 18%, rgba(34, 211, 238, 0.14), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(139, 92, 246, 0.16), transparent 30%),
    linear-gradient(135deg, #020617 0%, #07111f 48%, #030712 100%);
}

.mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 84%);
}

.orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.55;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-a {
  left: -170px;
  top: -160px;
  background: rgba(34, 211, 238, 0.36);
}

.orb-b {
  right: -180px;
  top: 120px;
  background: rgba(139, 92, 246, 0.30);
  animation-delay: -6s;
}

.orb-c {
  left: 28%;
  bottom: -260px;
  background: rgba(16, 185, 129, 0.18);
  animation-delay: -10s;
}

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.08) 50%, transparent 100%);
  height: 28vh;
  animation: scan 8s linear infinite;
}

.cursor-light {
  position: fixed;
  width: 460px;
  height: 460px;
  pointer-events: none;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 64%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 24px 32px 42px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(3, 7, 18, 0.68);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
}

.brand,
.button,
.topbar-action,
.route-grid a,
.footer a {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 226px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 15px;
  color: #05131f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.28);
  font-size: 13px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(34, 211, 238, 0.10);
}

.topbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #04101f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.20);
  font-size: 13px;
  font-weight: 850;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.86fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 78px 0 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.12), 0 0 20px rgba(52, 211, 153, 0.54);
}

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

h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 950;
}

.lead {
  max-width: 740px;
  margin-bottom: 0;
  color: #b7c6dc;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin: 34px 0 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 850;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.button:hover,
.capability-grid article:hover,
.route-grid a:hover {
  transform: translateY(-4px);
}

.button.primary {
  color: #04101f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 46px rgba(34, 211, 238, 0.24);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  color: #dff8ff;
  background: rgba(9, 16, 31, 0.64);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0;
}

.status-strip div,
.hero-panel,
.capability-grid article,
.route-grid a,
.endpoint-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.status-strip div {
  padding: 17px;
  border-radius: 18px;
}

.status-strip dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-strip dd {
  margin: 0;
  font-size: 20px;
  font-weight: 950;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(34, 211, 238, 0.10), transparent);
  transform: translateX(-110%);
  animation: panelSweep 7s ease-in-out infinite;
}

.panel-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.panel-top span,
.runtime-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-top strong {
  display: block;
  margin-top: 8px;
  font-size: 19px;
}

.health-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(52, 211, 153, 0.36);
  border-radius: 999px;
  color: #d8fff0 !important;
  background: rgba(52, 211, 153, 0.10);
  font-size: 12px !important;
  font-weight: 850;
}

.health-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.75);
}

.health-pill.degraded {
  border-color: rgba(251, 191, 36, 0.38);
  color: #fff2c7 !important;
  background: rgba(251, 191, 36, 0.10);
}

.health-pill.degraded::before {
  background: var(--amber);
}

.route-visual {
  position: relative;
  height: 250px;
  margin: 22px 24px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(2, 6, 23, 0.45);
  background-size: 42px 42px;
  overflow: hidden;
}

.route-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 82px;
  height: 54px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 16px;
  color: #dffaff;
  background: rgba(3, 7, 18, 0.76);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.12);
  font-weight: 900;
}

.node-user {
  left: 32px;
  top: 98px;
}

.node-gateway {
  left: 50%;
  top: 44px;
  transform: translateX(-50%);
  border-color: rgba(52, 211, 153, 0.42);
}

.node-model {
  right: 32px;
  top: 98px;
}

.beam {
  position: absolute;
  left: 72px;
  right: 72px;
  top: 123px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.95), transparent);
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.72));
  transform-origin: center;
  animation: beamPulse 3.8s linear infinite;
}

.beam-a {
  transform: rotate(-18deg);
}

.beam-b {
  transform: rotate(18deg);
  animation-delay: 1.8s;
}

.runtime-list {
  display: grid;
  gap: 0;
  padding: 0 24px 24px;
}

.runtime-list div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.runtime-list strong {
  font-size: 14px;
  line-height: 1.65;
  text-align: right;
}

.section {
  padding: 56px 0;
}

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

.section-head.compact {
  margin-bottom: 22px;
}

h2 {
  margin-bottom: 15px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.052em;
}

.section-head p:not(.eyebrow),
.integration .section-head p {
  color: #b7c6dc;
  font-size: 17px;
  line-height: 1.85;
}

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

.capability-grid article {
  min-height: 240px;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.capability-grid article:hover,
.route-grid a:hover {
  border-color: var(--line-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.30), 0 0 34px rgba(34, 211, 238, 0.07);
}

.card-index,
.route-grid span {
  display: inline-flex;
  margin-bottom: 46px;
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 900;
}

.capability-grid h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.capability-grid p,
.route-grid small {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

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

.route-grid a {
  min-height: 192px;
  padding: 22px;
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.route-grid strong,
.route-grid small {
  display: block;
}

.route-grid strong {
  margin-bottom: 10px;
  font-size: 18px;
}

.integration {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-bottom: 70px;
}

.endpoint-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.endpoint-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.endpoint-title button {
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--text);
  background: rgba(34, 211, 238, 0.08);
  cursor: pointer;
  font-family: inherit;
}

pre {
  position: relative;
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  background: rgba(2, 6, 23, 0.62);
}

pre::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.65), transparent);
}

code {
  color: #dffaff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  line-height: 1.9;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer div {
  display: grid;
  gap: 5px;
}

.footer strong {
  color: var(--text);
}

.footer a {
  color: var(--cyan);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(54px, 38px, 0) scale(1.12);
  }
}

@keyframes scan {
  from {
    transform: translateY(-35vh);
  }
  to {
    transform: translateY(120vh);
  }
}

@keyframes panelSweep {
  0%, 55% {
    transform: translateX(-110%);
  }
  80%, 100% {
    transform: translateX(110%);
  }
}

@keyframes beamPulse {
  from {
    opacity: 0.18;
    clip-path: inset(0 100% 0 0);
  }
  45% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  to {
    opacity: 0.18;
    clip-path: inset(0 0 0 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  .page {
    padding-inline: 22px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .integration {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .page {
    padding: 16px 14px 32px;
  }

  .topbar {
    top: 8px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .topbar-action {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 16px;
  }

  .status-strip,
  .capability-grid,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .route-visual {
    height: 220px;
    margin-inline: 16px;
  }

  .runtime-list {
    padding-inline: 16px;
  }

  .runtime-list div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .runtime-list strong {
    text-align: left;
  }

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