:root {
  color-scheme: dark;
  --bg: #020203;
  --panel: rgba(18, 18, 20, 0.82);
  --panel-strong: rgba(24, 24, 27, 0.92);
  --line: rgba(255, 255, 255, 0.105);
  --line-soft: rgba(255, 255, 255, 0.065);
  --ink: #f6f5f2;
  --muted: rgba(246, 245, 242, 0.62);
  --faint: rgba(246, 245, 242, 0.38);
  --accent: #f6f5f2;
  --good: #69f7a2;
  --warn: #ffd27a;
  --radius: 8px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  font-family: "Avenir Next", "SF Pro Display", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 52% -12%, rgba(255, 255, 255, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 380px),
    var(--bg);
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
}

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

p {
  color: var(--muted);
  line-height: 1.7;
}

code,
pre {
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.56);
  color: rgba(246, 245, 242, 0.86);
  line-height: 1.7;
  padding: 18px;
}

code {
  font-size: 0.92em;
}

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.048) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.048) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: radial-gradient(circle at 50% 8%, black 0, rgba(0, 0, 0, 0.75) 36%, transparent 78%);
}

.shell {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(2, 2, 3, 0.78);
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 540;
}

.brand.small {
  font-size: 14px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #f6f5f2;
  color: #050506;
  font-size: 13px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 14px;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 0.78fr);
  gap: clamp(34px, 5vw, 86px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 70px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, 0.34);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 330;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(48px, 5.6vw, 84px);
  line-height: 0.98;
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(58px, 5.4vw, 92px);
  font-weight: 360;
  line-height: 0.96;
}

h2 {
  font-size: clamp(34px, 4vw, 62px);
  line-height: 1.02;
}

h3 {
  font-size: 22px;
}

.hero-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.62;
}

.hero-actions,
.footer-links,
.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

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

.button.primary {
  background: #f6f5f2;
  color: #050506;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.signal-row span {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 13px;
  padding: 8px 11px;
}

.docs-content,
.docs-sidebar,
.deploy-card,
.steps article,
.api-card,
.reference-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), transparent 170px),
    var(--panel);
  box-shadow: var(--shadow);
}

.product-visual {
  display: grid;
  gap: 18px;
  border-left: 1px solid var(--line);
  padding: 18px 0 18px 28px;
}

.visual-topline,
.arch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.visual-topline span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 28px rgba(105, 247, 162, 0.38);
}

.visual-topline strong {
  font-weight: 520;
}

.visual-topline small,
.visual-topline strong,
.architecture-lanes span,
.architecture-lanes li {
  color: var(--muted);
}

.visual-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.visual-metrics div,
.flow-node,
.architecture-lanes li {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.32);
  padding: 14px;
}

.visual-metrics span,
.capability-ledger span,
.endpoint-list p,
.steps span {
  color: var(--faint);
}

.visual-metrics strong {
  display: block;
  margin-top: 14px;
  font-size: 28px;
  font-weight: 390;
}

.flow-map {
  display: grid;
  grid-template-columns: 1fr 54px 1fr 54px 1fr;
  align-items: center;
  margin: 8px 0;
}

.flow-node {
  min-height: 72px;
  display: grid;
  place-items: center;
  color: var(--ink);
  text-align: center;
}

.flow-node.center {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(246, 245, 242, 0.08);
}

.flow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
}

.capability-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  margin-top: 34px;
  padding: 0 0 88px;
}

.capability-ledger div {
  display: grid;
  min-height: 190px;
  align-content: space-between;
  border-right: 1px solid var(--line-soft);
  padding: 24px 24px 20px 0;
}

.capability-ledger div + div {
  padding-left: 24px;
}

.capability-ledger div:last-child {
  border-right: 0;
}

.ai-prompt {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(420px, 0.78fr);
  gap: 34px;
  align-items: start;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 34px;
  padding: 32px 0;
}

.ai-prompt h2 {
  max-width: 520px;
  margin-top: 14px;
  font-size: clamp(28px, 3.8vw, 54px);
}

.prompt-panel {
  display: grid;
  gap: 14px;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.prompt-panel pre {
  margin: 0;
  white-space: pre-wrap;
}

.prompt-actions {
  align-items: center;
  justify-content: space-between;
}

.prompt-actions a {
  color: var(--muted);
  font-weight: 520;
}

.capability-ledger strong {
  display: block;
  font-size: 20px;
  font-weight: 480;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: 28px;
  align-items: center;
  padding: 30px 0 96px;
}

.split-section p,
.section-heading p {
  font-size: 18px;
}

.architecture-lanes {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
}

.architecture-lanes > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
}

.architecture-lanes strong {
  font-weight: 520;
}

.architecture-lanes ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.architecture-lanes li {
  color: var(--ink);
}

.features {
  padding: 10px 0 96px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.feature-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.feature-ledger div {
  display: grid;
  min-height: 190px;
  align-content: start;
  gap: 14px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 24px 26px 24px 0;
}

.feature-ledger div:nth-child(3n + 2),
.feature-ledger div:nth-child(3n + 3) {
  padding-left: 26px;
}

.feature-ledger div:nth-child(3n) {
  border-right: 0;
}

.feature-ledger h3 {
  font-weight: 450;
}

.feature-ledger p {
  margin-bottom: 0;
}

.deploy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 86px;
  padding: 36px 0;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-soft);
  padding: 32px max(22px, calc((100vw - 1180px) / 2));
}

.site-footer p {
  max-width: 460px;
  margin: 12px 0 0;
}

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

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 72px 0 96px;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.docs-sidebar a {
  border-radius: 8px;
  color: var(--muted);
  padding: 11px 12px;
}

.docs-sidebar a:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
}

.docs-content {
  padding: 34px;
}

.docs-content h1,
.page-heading h1 {
  font-size: clamp(54px, 7vw, 96px);
}

.lead {
  max-width: 840px;
  font-size: 19px;
}

.doc-section,
.endpoint-section,
.api-card {
  margin-top: 42px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.doc-section.visible,
.endpoint-section.visible,
.api-card.visible,
.capability-ledger div.visible,
.feature-ledger div.visible,
.steps article.visible {
  opacity: 1;
  transform: translateY(0);
}

.doc-section h2,
.endpoint-section h2,
.steps h2 {
  font-size: 34px;
}

.callout {
  border: 1px solid rgba(255, 210, 122, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 210, 122, 0.07);
  padding: 18px;
}

.endpoint-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.endpoint-list article {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  padding: 16px;
}

.endpoint-list p {
  margin: 0;
}

.api-reference-layout .docs-content {
  display: grid;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.reference-grid article {
  box-shadow: none;
  padding: 18px;
}

.reference-grid span,
.fine-print {
  color: var(--faint);
}

.reference-grid strong {
  display: block;
  margin-top: 24px;
  font-size: 20px;
}

.api-card {
  display: grid;
  gap: 16px;
  box-shadow: none;
  padding: 22px;
}

.endpoint-section .api-card {
  margin-top: 16px;
}

.api-card h3,
.api-card h4 {
  margin: 0;
}

.api-card h4 {
  color: var(--ink);
  font-size: 14px;
  font-weight: 560;
}

.api-card p {
  margin: 0;
}

.api-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.api-card-head h2,
.api-card-head h3 {
  font-size: clamp(20px, 2.4vw, 30px);
}

.method {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
  font-size: 12px;
  font-weight: 560;
  padding: 0 10px;
}

.method.get {
  background: rgba(105, 247, 162, 0.11);
  color: var(--good);
}

.method.post {
  background: rgba(255, 210, 122, 0.12);
  color: var(--warn);
}

.schema-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.field-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.field-list li {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.24);
  padding: 12px;
}

.field-list span {
  color: var(--muted);
  line-height: 1.55;
}

.quickstart {
  padding: 72px 0 96px;
}

.page-heading {
  max-width: 920px;
  margin-bottom: 32px;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.steps article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.steps pre,
.steps p {
  grid-column: 2;
}

.deploy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 28px;
}

.capability-ledger div,
.feature-ledger div {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

  .capability-ledger,
  .feature-ledger,
  .reference-grid,
  .schema-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-ledger div:nth-child(2n),
  .feature-ledger div:nth-child(2n) {
    border-right: 0;
  }

  .feature-ledger div:nth-child(3n) {
    border-right: 1px solid var(--line-soft);
  }

  .docs-sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
  }

  .nav-toggle span {
    width: 18px;
    height: 1px;
    background: var(--ink);
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 14px;
    left: 14px;
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(14, 14, 16, 0.96);
    padding: 8px;
  }

  .site-nav.open {
    display: grid;
  }

  h1,
  .docs-content h1,
  .page-heading h1 {
    font-size: clamp(46px, 15vw, 72px);
  }

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

  .product-visual {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 22px 0 0;
  }

  .visual-metrics,
  .capability-ledger,
  .feature-ledger,
  .architecture-lanes ul,
  .docs-sidebar,
  .reference-grid,
  .schema-grid {
    grid-template-columns: 1fr;
  }

  .capability-ledger div,
  .capability-ledger div + div,
  .feature-ledger div,
  .feature-ledger div:nth-child(3n + 2),
  .feature-ledger div:nth-child(3n + 3) {
    min-height: auto;
    border-right: 0;
    padding: 20px 0;
  }

  .flow-map {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .flow-line {
    width: 1px;
    height: 26px;
    justify-self: center;
  }

  .deploy-row,
  .site-footer,
  .deploy-card {
    align-items: stretch;
    flex-direction: column;
  }

  .docs-content {
    padding: 22px;
  }

  .steps article {
    grid-template-columns: 1fr;
  }

  .steps pre,
  .steps p {
    grid-column: 1;
  }
}
