:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #1f2329;
  --muted: #646a73;
  --quiet: #8f959e;
  --blue: #3370ff;
  --blue-soft: #edf2ff;
  --code-bg: #f5f6f7;
  --row-bg: #f7f8fa;
  --max: 1200px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  text-rendering: optimizeLegibility;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(51, 112, 255, 0.3);
  outline-offset: 3px;
}

.site-header {
  align-items: center;
  display: flex;
  height: 64px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 32px;
}

.wordmark {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

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

.site-header nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--blue);
}

.home-shell {
  margin: 0 auto;
  max-width: 1100px;
  padding: 72px 32px 120px;
}

.home-article {
  min-width: 0;
}

.docs-nav {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: sticky;
  top: 32px;
}

.docs-nav strong {
  font-size: 14px;
  margin-bottom: 8px;
}

.docs-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  padding: 7px 10px;
}

.docs-nav a:hover {
  color: var(--ink);
}

.docs-nav a[aria-current="page"] {
  background: var(--blue-soft);
  color: var(--blue);
}

.hero {
  padding: 0 0 84px;
}

.eyebrow {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(54px, 7.4vw, 84px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero h1 .hero-accent {
  color: var(--blue);
}

.lede {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
  margin: 28px 0 0;
  max-width: 650px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
}

.install {
  align-items: center;
  background: var(--code-bg);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--mono);
  font-size: 13px;
  gap: 10px;
  min-height: 44px;
  padding: 0 15px;
}

.install span {
  color: var(--blue);
}

.install b {
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 650;
  margin-left: 6px;
}

.install:hover {
  background: #eef0f2;
}

.primary,
.text-link,
.prose a,
.next a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
}

.primary:hover,
.text-link:hover,
.prose a:hover,
.next a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.code-block {
  background: var(--code-bg);
  border-radius: 12px;
  color: var(--ink);
  margin: 28px 0 0;
  min-width: 0;
  overflow: hidden;
}

.hero-code {
  min-width: 0;
}

.hero-code .code-block {
  border-radius: 18px;
  margin: 0;
}

.hero-code .code-block figcaption {
  padding: 22px 26px 0;
}

.hero-code .code-block pre {
  font-size: 13px;
  line-height: 1.85;
  padding: 18px 26px 28px;
}

.thesis,
.proof,
.composition,
.compare,
.ecosystem,
.closing {
  padding: 72px 0 0;
}

.home-article section:not(.hero) .eyebrow {
  display: none;
}

.thesis h2,
.proof h2,
.composition h2,
.compare h2,
.ecosystem h2,
.closing h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}

.model-lines {
  display: grid;
  gap: 6px;
  margin-top: 24px;
}

.model-lines div {
  align-items: baseline;
  background: var(--row-bg);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 58px 1fr;
  padding: 14px 16px;
}

.model-lines span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.model-lines code {
  font-family: var(--mono);
  font-size: 13px;
}

.facts {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0 0;
}

.facts div {
  min-width: 0;
}

.facts dt {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.facts dd {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 0;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
}

.composition p:not(.eyebrow),
.ecosystem > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  margin: 14px 0 0;
  max-width: 760px;
}

.code-block figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 16px 20px 0;
}

.code-block pre {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
  overflow-x: auto;
  padding: 16px 20px 22px;
}

.code-block .shiki {
  background: transparent !important;
}

.code-block code {
  font-family: inherit;
}

.compare-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-top: 24px;
}

.compare-grid .code-block {
  margin-top: 0;
}

.closing .install {
  margin-top: 20px;
}

footer {
  align-items: center;
  color: var(--quiet);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 28px 32px 44px;
}

footer a:hover {
  color: var(--blue);
}

.home-theme {
  --night: #080b0d;
  --night-ink: #f0f6f8;
  --night-muted: #91a0a7;
  --night-quiet: #5f6a70;
  --night-surface: #0d1317;
  --type-light: #78d7ff;
  background: var(--night);
  color: var(--night-ink);
  color-scheme: dark;
  min-height: 100vh;
  position: relative;
}

.home-theme::before {
  background:
    radial-gradient(circle at 77% 14%, rgba(58, 166, 224, 0.12), transparent 28%),
    radial-gradient(circle at 18% 48%, rgba(61, 133, 168, 0.05), transparent 24%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.home-theme .site-header,
.home-theme main,
.home-theme footer {
  position: relative;
}

.home-theme .site-header {
  max-width: 1200px;
}

.home-theme .wordmark {
  color: var(--night-ink);
  font-weight: 650;
}

.home-theme .site-header nav a {
  color: var(--night-muted);
  font-weight: 500;
}

.home-theme .site-header nav a:hover {
  color: var(--night-ink);
}

.home-theme .home-shell {
  max-width: 1200px;
  padding-top: 28px;
}

.home-theme .hero {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  min-height: calc(100vh - 92px);
  padding-bottom: 96px;
}

.home-theme .hero-copy {
  padding-bottom: 20px;
}

.home-theme .eyebrow {
  color: #89b9ce;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.015em;
}

.home-theme .hero h1 {
  color: var(--night-ink);
  font-size: clamp(50px, 4.4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.home-theme .hero h1 .hero-accent {
  color: var(--type-light);
}

.home-theme .lede {
  color: var(--night-muted);
  font-size: 17px;
  line-height: 1.65;
  margin-top: 30px;
  max-width: 460px;
}

.home-theme .hero-actions {
  gap: 12px;
  margin-top: 30px;
}

.home-theme .install {
  background: var(--night-ink);
  border-radius: 999px;
  color: var(--night);
  min-height: 42px;
  padding: 0 18px;
}

.home-theme .install span {
  color: #2f92be;
}

.home-theme .install b {
  color: #77737f;
}

.home-theme .install:hover {
  background: #ffffff;
}

.home-theme .primary {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11);
  color: var(--night-ink);
  display: inline-flex;
  min-height: 42px;
  padding: 0 20px;
}

.home-theme .primary:hover {
  background: rgba(255, 255, 255, 0.075);
  text-decoration: none;
}

.home-theme .hero-code {
  min-width: 0;
  transform: perspective(1200px) rotateY(-2.4deg) rotateX(0.8deg);
}

.home-theme .hero-code .code-block {
  background: rgba(13, 19, 23, 0.84);
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(139, 216, 250, 0.13),
    0 36px 100px rgba(0, 0, 0, 0.38);
  margin: 0;
  position: relative;
}

.home-theme .hero-code .code-block::before {
  background: radial-gradient(circle, rgba(72, 180, 232, 0.14), transparent 65%);
  content: "";
  height: 340px;
  pointer-events: none;
  position: absolute;
  right: -130px;
  top: -160px;
  width: 340px;
}

.home-theme .hero-code figcaption,
.home-theme .hero-code pre {
  position: relative;
}

.home-theme .hero-code figcaption {
  color: #81949c;
}

.home-theme .thesis,
.home-theme .proof,
.home-theme .composition,
.home-theme .compare,
.home-theme .ecosystem,
.home-theme .closing {
  padding-top: 104px;
}

.home-theme .thesis h2,
.home-theme .proof h2,
.home-theme .composition h2,
.home-theme .compare h2,
.home-theme .ecosystem h2,
.home-theme .closing h2 {
  color: var(--night-ink);
  font-weight: 540;
}

.home-theme .model-lines div {
  background: var(--night-surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.home-theme .model-lines span,
.home-theme .facts dd,
.home-theme .composition p:not(.eyebrow),
.home-theme .ecosystem > p:not(.eyebrow) {
  color: var(--night-muted);
}

.home-theme .model-lines code,
.home-theme .facts dt {
  color: var(--night-ink);
}

.home-theme .text-link {
  color: var(--type-light);
}

.home-theme .code-block {
  background: var(--night-surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

.home-theme .code-block figcaption {
  color: #797683;
}

.home-theme .closing .install {
  margin-top: 20px;
}

.home-theme footer {
  color: var(--night-quiet);
  max-width: 1200px;
}

.home-theme footer a:hover {
  color: var(--type-light);
}

.docs-shell {
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 860px) 180px;
  margin: 0 auto;
  max-width: 1176px;
  min-height: calc(100vh - 136px);
  padding: 52px 32px 120px;
}

.docs-nav {
  grid-column: 2;
  grid-row: 1;
}

.prose {
  grid-column: 1;
  min-width: 0;
}

.prose h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 22px;
}

.prose .intro {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 36px;
  max-width: 780px;
}

.prose h2 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.008em;
  line-height: 1.3;
  margin: 64px 0 18px;
}

.prose p {
  color: var(--muted);
  line-height: 1.75;
}

.prose > code,
.prose p code,
.prose td code,
.prose li code {
  background: var(--code-bg);
  border-radius: 5px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 5px;
}

.prose .code-block {
  margin: 22px 0 28px;
}

.prose table {
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 14px;
  line-height: 1.5;
  margin: 20px 0 30px;
  width: 100%;
}

.prose th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  padding: 8px 14px;
  text-align: left;
}

.prose td {
  background: var(--row-bg);
  padding: 13px 14px;
  vertical-align: top;
}

.prose tbody td:first-child {
  border-radius: 8px 0 0 8px;
}

.prose tbody td:last-child {
  border-radius: 0 8px 8px 0;
}

.prose td:first-child {
  color: var(--ink);
  font-weight: 600;
}

.api-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.api-list code {
  background: var(--code-bg);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 10px;
}

.doc-compare {
  margin-bottom: 48px;
  margin-top: 32px;
}

.benchmark-callout {
  align-items: baseline;
  background: var(--blue-soft);
  border-radius: 10px;
  display: flex;
  gap: 20px;
  margin: 28px 0 0;
  padding: 20px 22px;
}

.benchmark-callout strong {
  font-family: var(--mono);
  font-size: 25px;
}

.benchmark-callout span {
  color: var(--muted);
  font-size: 14px;
}

.numbers td:not(:first-child) {
  font-family: var(--mono);
  text-align: right;
  white-space: nowrap;
}

.numbers th:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.numbers strong {
  color: var(--blue);
}

.table-scroll {
  overflow-x: auto;
}

.next {
  margin-top: 60px;
  text-align: right;
}

@media (max-width: 900px) {
  .docs-shell {
    display: block;
    max-width: 860px;
  }

  .docs-nav {
    flex-direction: row;
    gap: 6px;
    margin-bottom: 44px;
    overflow-x: auto;
    position: static;
    white-space: nowrap;
  }

  .docs-nav strong {
    display: none;
  }

  .docs-nav a {
    flex: none;
  }

  .home-theme .hero {
    display: block;
    min-height: 0;
    padding-top: 60px;
  }

  .home-theme .hero-code {
    margin-top: 64px;
    transform: none;
  }
}

@media (max-width: 580px) {
  .site-header {
    height: 58px;
    padding: 0 18px;
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header nav a {
    font-size: 12px;
  }

  .site-header nav a:nth-child(2) {
    display: none;
  }

  .home-shell,
  .docs-shell {
    padding: 42px 20px 88px;
  }

  .hero {
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: clamp(38px, 11.2vw, 44px);
  }

  .home-theme .hero {
    padding-top: 30px;
  }

  .home-theme .hero h1 {
    font-size: clamp(38px, 11.2vw, 44px);
  }

  .home-theme .hero-code {
    margin-top: 48px;
  }

  .lede,
  .prose .intro {
    font-size: 17px;
  }

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

  .hero-code .code-block {
    border-radius: 14px;
  }

  .hero-code .code-block figcaption {
    padding: 18px 18px 0;
  }

  .hero-code .code-block pre {
    font-size: 11px;
    padding: 14px 18px 22px;
  }

  .thesis,
  .proof,
  .composition,
  .compare,
  .ecosystem,
  .closing {
    padding-top: 58px;
  }

  .thesis h2,
  .proof h2,
  .composition h2,
  .compare h2,
  .ecosystem h2,
  .closing h2,
  .prose h2 {
    font-size: 24px;
  }

  .model-lines div {
    gap: 10px;
    grid-template-columns: 48px 1fr;
    padding: 12px;
  }

  .model-lines code {
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  .facts {
    gap: 24px 18px;
    grid-template-columns: 1fr 1fr;
  }

  .facts dt {
    font-size: 24px;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .code-block pre {
    font-size: 11px;
    padding: 14px 16px 18px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 24px 20px 34px;
  }

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

  .benchmark-callout {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
