:root {
  --ink: #f4f8ff;
  --ink-soft: #b6c4d8;
  --ink-dim: #7f8fa7;
  --space: #05070d;
  --panel: rgba(12, 19, 31, 0.78);
  --panel-strong: rgba(16, 26, 42, 0.92);
  --line: rgba(130, 187, 255, 0.2);
  --line-strong: rgba(111, 221, 255, 0.42);
  --cyan: #5ee7ff;
  --green: #a8ff78;
  --coral: #ff6d7a;
  --violet: #a88cff;
  --blue: #2e6bff;
  --radius-card: 8px;
  --radius-button: 8px;
  --shadow-cyan: 0 0 42px rgba(94, 231, 255, 0.2);
  --font:
    Inter, "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI",
    system-ui, sans-serif;
  --mono: "SF Mono", "Fira Code", "JetBrains Mono", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(rgba(94, 231, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 231, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #05070d 0%, #0b1322 52%, #05070d 100%);
  background-size:
    52px 52px,
    52px 52px,
    auto;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(46, 107, 255, 0.16), transparent 34%),
    linear-gradient(245deg, rgba(168, 255, 120, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 109, 122, 0.08), transparent 28%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(94, 231, 255, 0.12) 50%, transparent 51%),
    linear-gradient(0deg, transparent 0 49%, rgba(94, 231, 255, 0.08) 50%, transparent 51%);
  background-size: 420px 420px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  pointer-events: none;
}

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

svg {
  display: block;
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 5px);
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.usp-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--space);
  background:
    linear-gradient(90deg, transparent 0 17%, rgba(5, 7, 13, 0.22) 17% 19%, transparent 19%),
    linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: var(--shadow-cyan), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(130, 187, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.nav-links a {
  padding: 7px 11px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: rgba(94, 231, 255, 0.12);
}

.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 15px;
  border-radius: var(--radius-button);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-action {
  border: 1px solid rgba(168, 255, 120, 0.34);
  color: var(--green);
  background: rgba(168, 255, 120, 0.08);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.button-primary {
  min-height: 48px;
  padding: 0 20px;
  color: #031018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 12px 34px rgba(94, 231, 255, 0.18);
}

.button-secondary {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.button:hover,
.nav-action:hover {
  transform: translateY(-2px);
}

.button-secondary:hover {
  border-color: var(--line-strong);
  background: rgba(94, 231, 255, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 72px);
  padding: 76px 0 92px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-lede,
.section-lede,
.section p,
.guide-hero p {
  color: var(--ink-soft);
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: 18px;
}

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

.control-deck {
  position: relative;
  min-height: 560px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(94, 231, 255, 0.08), transparent 36%),
    linear-gradient(145deg, rgba(12, 19, 31, 0.96), rgba(5, 7, 13, 0.92));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.control-deck::before,
.control-deck::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}

.control-deck::before {
  top: 116px;
}

.control-deck::after {
  bottom: 132px;
}

.deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
}

.deck-status {
  padding: 5px 8px;
  border: 1px solid rgba(168, 255, 120, 0.35);
  border-radius: 6px;
  color: var(--green);
  background: rgba(168, 255, 120, 0.08);
}

.radar {
  position: relative;
  display: grid;
  place-items: center;
  height: 318px;
  margin-top: 20px;
}

.radar::before {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(94, 231, 255, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(94, 231, 255, 0.18) 50%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(94, 231, 255, 0.18) 50%, transparent 50.5%);
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(94, 231, 255, 0.2);
  border-radius: 50%;
}

.ring-a {
  width: 210px;
  height: 210px;
}

.ring-b {
  width: 140px;
  height: 140px;
}

.radar-sweep {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: conic-gradient(from 280deg, rgba(94, 231, 255, 0.34), transparent 24%);
  animation: radarSweep 6s linear infinite;
}

.radar-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--space);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow:
    0 0 44px rgba(94, 231, 255, 0.35),
    inset 0 0 0 8px rgba(5, 7, 13, 0.12);
  font-family: var(--mono);
  font-weight: 900;
}

.radar-core span {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.radar-core small {
  margin-top: -30px;
  color: rgba(5, 7, 13, 0.72);
  font-size: 10px;
  text-transform: uppercase;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.signal-grid div,
.scan-list {
  border: 1px solid rgba(130, 187, 255, 0.14);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.04);
}

.signal-grid div {
  padding: 14px;
}

.signal-grid strong {
  display: block;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 26px;
  line-height: 1.1;
}

.signal-grid span {
  color: var(--ink-dim);
  font-size: 12px;
}

.scan-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  margin-top: 10px;
  padding: 14px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
}

.ok {
  color: var(--green);
}

.warn {
  color: var(--coral);
}

.section {
  padding: 96px 0;
}

.band {
  border-block: 1px solid rgba(130, 187, 255, 0.13);
  background: rgba(255, 255, 255, 0.025);
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: 42px;
  line-height: 1.14;
  letter-spacing: 0;
}

.section-lede {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 16px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.metric-row,
.feature-grid,
.pipeline {
  display: grid;
  gap: 14px;
}

.metric-row {
  grid-template-columns: repeat(3, 1fr);
}

.metric-row article,
.feature-card,
.pipeline article,
.aside-card,
.prose {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
}

.metric-row article {
  padding: 20px;
}

.metric-row b {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
}

.metric-row h3,
.feature-card h3,
.pipeline h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.metric-row p,
.feature-card p,
.pipeline p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
}

.feature-card {
  position: relative;
  min-height: 242px;
  padding: 22px;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
}

.feature-card span,
.pipeline span,
.aside-label {
  color: var(--accent, var(--cyan));
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.accent-cyan {
  --accent: var(--cyan);
}

.accent-green {
  --accent: var(--green);
}

.accent-coral {
  --accent: var(--coral);
}

.accent-violet {
  --accent: var(--violet);
}

.pipeline {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 34px;
  counter-reset: step;
}

.pipeline article {
  position: relative;
  min-height: 214px;
  padding: 22px;
}

.pipeline article::after {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: rgba(244, 248, 255, 0.08);
  font-family: var(--mono);
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.start-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
}

.code-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: #07101a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.code-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.code-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.code-top span:nth-child(2) {
  background: var(--cyan);
}

.code-top span:nth-child(3) {
  background: var(--green);
}

.code-top b {
  margin-left: 6px;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 12px;
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #d8e7ff;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
}

.code-comment {
  color: var(--green);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--ink-dim);
  background: rgba(5, 7, 13, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.guide-page {
  background-attachment: fixed;
}

.guide-hero {
  padding: 72px 0 34px;
}

.guide-hero h1 {
  max-width: 860px;
  font-size: 52px;
}

.guide-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: 17px;
}

.guide-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 28px 0 86px;
  min-width: 0;
}

.guide-aside {
  position: sticky;
  top: 96px;
  min-width: 0;
}

.aside-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  min-width: 0;
}

.aside-label {
  margin-bottom: 6px;
  color: var(--cyan);
}

.aside-card a {
  display: block;
  padding: 8px 9px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

.aside-card a:hover {
  color: var(--ink);
  background: rgba(94, 231, 255, 0.1);
}

.prose {
  padding: 38px 44px;
  color: var(--ink-soft);
  min-width: 0;
  max-width: 100%;
}

.prose h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.18;
}

.prose h2 {
  margin: 46px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 25px;
}

.prose h3 {
  margin: 32px 0 10px;
  color: var(--cyan);
  font-size: 18px;
}

.prose h4 {
  margin: 24px 0 8px;
  color: var(--ink);
  font-size: 16px;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(94, 231, 255, 0.38);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose code {
  padding: 0.16em 0.42em;
  border: 1px solid rgba(94, 231, 255, 0.16);
  border-radius: 6px;
  color: #c7f5ff;
  background: rgba(94, 231, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.88em;
}

.prose pre {
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #07101a;
  max-width: 100%;
}

.prose pre code {
  padding: 0;
  border: 0;
  color: #d8e7ff;
  background: transparent;
}

.prose table {
  display: block;
  width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--ink);
  background: rgba(94, 231, 255, 0.1);
}

.prose hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose strong {
  color: var(--ink);
}

.prose input[type="checkbox"] {
  accent-color: var(--cyan);
}

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

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

@media (max-width: 980px) {
  .hero,
  .split-section,
  .start-layout,
  .guide-shell {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }

  .control-deck {
    min-height: 520px;
  }

  .feature-grid,
  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .guide-aside {
    position: static;
  }

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

  .aside-label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, 1160px);
  }

  .nav-inner {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .brand {
    font-size: 14px;
  }

  .usp-mark {
    width: 42px;
    height: 32px;
  }

  .hero {
    gap: 34px;
    padding: 44px 0 64px;
  }

  h1,
  .guide-hero h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 29px;
  }

  .hero-lede,
  .guide-hero p {
    font-size: 16px;
  }

  .section {
    padding: 70px 0;
  }

  .control-deck {
    min-height: 500px;
    padding: 16px;
  }

  .radar {
    height: 286px;
  }

  .radar::before,
  .radar-sweep {
    width: 230px;
    height: 230px;
  }

  .ring-a {
    width: 174px;
    height: 174px;
  }

  .ring-b {
    width: 116px;
    height: 116px;
  }

  .radar-core {
    width: 112px;
    height: 112px;
  }

  .radar-core span {
    font-size: 29px;
  }

  .signal-grid,
  .feature-grid,
  .pipeline,
  .aside-card {
    grid-template-columns: 1fr;
  }

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

  .prose {
    padding: 26px 20px;
  }

  .prose h1 {
    font-size: 27px;
  }
}
