:root {
  color-scheme: light dark;
  --ink: #0b1014;
  --surface: #111820;
  --surface-raised: #18222c;
  --paper: #f8faf7;
  --paper-strong: #ffffff;
  --band: #eef3f0;
  --copy: #23323b;
  --muted: #66747a;
  --line: #ccd7d2;
  --line-dark: rgba(220, 230, 226, 0.22);
  --teal: #2eb7a4;
  --green: #2f8b57;
  --amber: #c58b2c;
  --blue: #3765d8;
  --red: #bf4a44;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:where(#top, #coordinate, #purpose, #architecture, #mcp, #benchmarks, #install, #docs) {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: #f8fbfa;
  font-size: clamp(72px, 11vw, 138px);
  line-height: 0.9;
}

h2 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  letter-spacing: 0;
}

code,
pre,
.eyebrow,
.nav-links,
.proof-strip,
.btn,
.benchmark-card-label,
.interface-list {
  font-family: var(--mono);
}

code {
  color: var(--green);
  font-size: 0.92em;
}

pre {
  margin: 0;
  overflow: auto;
  line-height: 1.55;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 14px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(8, 12, 15, 0.96);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: #f8fbfa;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #f8fbfa;
  border-radius: 6px;
  background: #f8fbfa;
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
}

.nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: #9faeaa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #f8fbfa;
}

.nav-links .nav-cta {
  padding: 9px 13px;
  border: 1px solid #f8fbfa;
  border-radius: 6px;
  background: #f8fbfa;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 72px) 52px;
  border-bottom: 1px solid var(--line-dark);
  background:
    linear-gradient(90deg, rgba(220, 230, 226, 0.055) 1px, transparent 1px) 0 0 / 86px 86px,
    linear-gradient(180deg, rgba(220, 230, 226, 0.045) 1px, transparent 1px) 0 0 / 86px 86px,
    var(--ink);
}

.hero-backdrop,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  display: none;
}

.hero-shade {
  pointer-events: none;
  background: transparent;
}

.hero-inner,
.hero-console {
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 1060px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.tagline,
.section-heading p,
.section > p {
  max-width: 850px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero .tagline {
  max-width: 780px;
  color: #d6dfdc;
  font-size: clamp(18px, 2vw, 23px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-decoration: none;
  text-transform: uppercase;
}

.btn-primary {
  border: 1px solid #f3efe3;
  background: #f3efe3;
  color: var(--ink);
}

.btn-secondary {
  border: 1px solid var(--line-dark);
  background: rgba(17, 24, 32, 0.72);
  color: #eef7f4;
}

.hero-console {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1060px;
  margin-top: 64px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.hero-console div {
  min-width: 0;
  padding: 18px;
  background: rgba(12, 17, 22, 0.82);
}

.hero-console span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.hero-console strong {
  color: #f7faf8;
  font-size: 15px;
  font-weight: 650;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--paper-strong);
}

.proof-strip span {
  min-width: 0;
  padding: 17px 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

.section {
  padding: 88px clamp(20px, 5vw, 72px);
}

.section-dark {
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: var(--surface);
  color: #f4f7f5;
}

.section-compact {
  padding-top: 64px;
  padding-bottom: 64px;
  background: var(--band);
}

.section-dark .section-heading p,
.section-dark > p,
.section-dark article p {
  color: #b9c5c1;
}

.section-dark code {
  color: #7ee2d4;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 38px;
}

.rail-list,
.tool-grid,
.install-grid,
.benchmark-metrics,
.docs-grid {
  display: grid;
  gap: 16px;
}

.rail-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

article,
.docs-grid a,
pre {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 20px;
}

article p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.section-dark article,
.section-dark pre,
.section-dark .benchmark-comparison {
  border-color: var(--line-dark);
  background: var(--surface-raised);
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 28px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.flow div {
  min-width: 0;
  padding: 18px;
  background: var(--surface-raised);
}

.flow span {
  display: block;
  margin-top: 8px;
  color: #aebbb6;
}

.interface-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  font-size: 13px;
}

.interface-list span {
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper-strong);
  color: var(--copy);
}

@media (min-width: 1041px) {
  /* Five evidence cards: a top row of three and a bottom row of two that fill
     the full width (each half) instead of leaving an empty third column. */
  .benchmark-metrics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .benchmark-card {
    grid-column: span 2;
  }

  .benchmark-card:nth-last-child(2),
  .benchmark-card:last-child {
    grid-column: span 3;
  }
}

.benchmark-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
}

.benchmark-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--amber);
  content: "";
}

.benchmark-card-primary::before {
  background: var(--teal);
}

.benchmark-card h3 {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.02;
}

.benchmark-card-label {
  display: block;
  margin-bottom: 30px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.benchmark-comparison {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}

.benchmark-comparison-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
}

.benchmark-comparison-heading h3,
.benchmark-comparison-heading p {
  margin: 0;
}

.benchmark-comparison-heading p {
  max-width: 560px;
  color: #b9c5c1;
  line-height: 1.55;
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line-dark);
  text-align: left;
  vertical-align: top;
}

th {
  color: #dde8e5;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

td {
  color: #c6d1cd;
}

.benchmark-result {
  color: #f5f8f6;
  font-family: var(--mono);
  font-weight: 700;
}

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

.benchmark-links a {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: #f4f7f5;
  background: var(--surface-raised);
  text-decoration: none;
}

.benchmark-links small {
  color: #aebbb6;
}

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

.install pre {
  background: #0e151b;
  color: #edf4f1;
}

.install pre code {
  color: #edf4f1;
}

.install-notes {
  margin-top: 16px;
}

.docs-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.docs-grid a {
  color: var(--copy);
  font-weight: 750;
  text-decoration: none;
}

.docs-grid a:hover,
.docs-grid a:focus-visible {
  border-color: var(--teal);
  color: var(--ink);
}

.docs-grid-featured {
  margin-bottom: 16px;
}

.docs-more {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 18px;
}

.docs-more summary {
  cursor: pointer;
  font-weight: 800;
}

.docs-more .docs-grid {
  margin-top: 16px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 36px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

footer a {
  margin-left: 14px;
}

.doc-page {
  background: var(--paper);
}

.doc-layout {
  padding: 54px clamp(20px, 6vw, 96px) 88px;
}

.doc-content {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: clamp(24px, 5vw, 56px);
}

.doc-content h1 {
  color: var(--ink);
  font-size: clamp(44px, 7vw, 76px);
}

.doc-content h2 {
  margin-top: 46px;
  font-size: clamp(30px, 4vw, 46px);
}

.doc-content h3 {
  margin-top: 30px;
}

.doc-content p,
.doc-content li,
.doc-content blockquote {
  color: var(--copy);
  font-size: 16px;
  line-height: 1.72;
}

.doc-content a {
  color: var(--blue);
}

.doc-content pre {
  margin: 22px 0;
  border-color: #1a242d;
  background: #0e151b;
}

.doc-content pre code {
  color: #eef6f3;
}

.doc-content table {
  min-width: 0;
  margin: 22px 0;
  border: 1px solid var(--line);
}

.doc-content th,
.doc-content td {
  border-color: var(--line);
  color: var(--copy);
}

.doc-content th {
  color: var(--ink);
}

.doc-content blockquote {
  margin: 22px 0;
  border-left: 4px solid var(--amber);
  padding: 4px 0 4px 18px;
}

.doc-content .math-block {
  margin: 24px 0;
  overflow-x: auto;
  padding: 8px 0;
  color: var(--ink);
  font-size: 1.02rem;
}

@media (max-width: 1040px) {
  .proof-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rail-list,
  .tool-grid,
  .benchmark-metrics,
  .benchmark-links,
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benchmark-card:last-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px;
  }

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

  .hero-console,
  .install-grid,
  .rail-list,
  .tool-grid,
  .benchmark-metrics,
  .benchmark-links,
  .docs-grid {
    grid-template-columns: 1fr;
  }

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

  .benchmark-comparison-heading {
    display: block;
  }

  .benchmark-comparison-heading p {
    margin-top: 12px;
  }

  .doc-layout {
    padding-top: 28px;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 64px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  footer {
    display: block;
  }

  footer a {
    display: inline-block;
    margin: 12px 14px 0 0;
  }
}
