:root {
  --brand: #0b5fff;
  --brand-2: #4d8bff;
  --brand-deep: #0734b0;
  --navy: #07111f;
  --navy-2: #0c1a2e;
  --navy-3: #13233d;
  --ink: #0f1728;
  --muted: #5b6578;
  --faint: #8b93a7;
  --line: #e2e6ee;
  --paper: #f4f6f9;
  --white: #ffffff;
  --ok: #0f9d6e;
  --warn: #c4841d;
  --font: "IBM Plex Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --shadow: 0 16px 40px rgba(15, 23, 40, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }

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

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 17, 31, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.brand-name { font-weight: 700; letter-spacing: -0.02em; }
.brand-name span { color: var(--brand-2); font-weight: 500; margin-left: 6px; font-size: 12px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: #c5cedd; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font: 600 14px/1 var(--font);
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-lg { padding: 14px 20px; font-size: 15px; }
.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* ---- hero ---- */
.hero {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(11, 95, 255, 0.28), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, #091526 100%);
  color: #fff;
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.kicker {
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 14ch;
}
.hero p.lead {
  margin-top: 18px;
  color: #c5cedd;
  font-size: 18px;
  max-width: 46ch;
}
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  gap: 22px;
  margin-top: 28px;
  color: #8a96ab;
  font-size: 13px;
}
.hero-meta strong { color: #fff; display: block; font-size: 15px; }

.board {
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.board-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #8a96ab;
  margin-bottom: 12px;
  font-family: var(--mono);
}
.pill {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
}
.pill-ok { background: rgba(15, 157, 110, 0.18); color: #4ade80; }
.pill-live { background: rgba(11, 95, 255, 0.2); color: var(--brand-2); }
.lane {
  display: grid;
  gap: 8px;
}
.mid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--navy-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: pulse 4.2s ease-in-out infinite;
}
.mid.picked {
  border-color: rgba(11, 95, 255, 0.7);
  background: rgba(11, 95, 255, 0.12);
}
.mid.dim { opacity: 0.45; }
.mid b { font-size: 13px; }
.mid span { color: #8a96ab; font-size: 12px; font-family: var(--mono); }
.mid:nth-child(2) { animation-delay: 0.6s; }
.mid:nth-child(3) { animation-delay: 1.2s; }
@keyframes pulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(2px); }
}
.arrow {
  color: var(--brand-2);
  text-align: center;
  font-size: 12px;
  padding: 6px 0;
  font-family: var(--mono);
}

/* ---- sections ---- */
section { padding: 80px 0; }
.sec-h {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.sub {
  margin-top: 10px;
  color: var(--muted);
  max-width: 58ch;
  font-size: 16px;
}

.grid-3, .grid-4 {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: var(--white);
}
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(11, 95, 255, 0.1);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.steps { list-style: none; display: grid; gap: 18px; margin-top: 28px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.steps p { color: var(--muted); font-size: 14px; }

.code {
  background: var(--navy);
  color: #d7deea;
  border-radius: 14px;
  padding: 18px 18px 8px;
  overflow: auto;
  box-shadow: var(--shadow);
}
.code .bar {
  display: flex;
  justify-content: space-between;
  color: #8a96ab;
  font-size: 12px;
  margin-bottom: 12px;
  font-family: var(--mono);
}
.code pre {
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre;
  overflow-x: auto;
}
.tok-key { color: #8ab4ff; }
.tok-str { color: #7dd3a0; }
.tok-cmt { color: #64748b; }

.hosts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.host {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--paper);
}
.host label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 6px;
}
.host a, .host code {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  font-family: var(--mono);
  word-break: break-all;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { color: var(--faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
td strong { font-weight: 600; }

.band {
  background: var(--navy);
  color: #fff;
  padding: 72px 0;
}
.band h2 { max-width: 16ch; }
.band p { color: #c5cedd; margin-top: 12px; max-width: 50ch; }
.band .hero-cta { margin-top: 24px; }

footer {
  background: #050b14;
  color: #8a96ab;
  padding: 36px 0;
  font-size: 13px;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot a:hover { color: #fff; }

/* docs page */
.docs-shell { background: var(--paper); min-height: 100vh; }
.docs-body {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}
.docs-body h1 { font-size: 36px; letter-spacing: -0.03em; margin-bottom: 12px; }
.docs-body h2 { font-size: 22px; margin: 36px 0 12px; }
.docs-body h3 { font-size: 16px; margin: 24px 0 8px; }
.docs-body p, .docs-body li { color: var(--muted); }
.docs-body ul, .docs-body ol { margin: 10px 0 10px 20px; }
.docs-body .card, .docs-body .code { margin: 16px 0; }
.docs-body .code pre { color: #d7deea; }
.note {
  background: rgba(11, 95, 255, 0.08);
  border: 1px solid rgba(11, 95, 255, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 14px;
  margin: 16px 0;
}

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-4, .split, .hosts { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 20px 20px;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .menu-btn { display: block; }
  .hero { padding: 48px 0 56px; }
  section { padding: 56px 0; }
}
