:root {
  --ink: #111111;
  --muted: #5c5c5c;
  --faint: #8c8c8c;
  --edge: #e8e8e8;
  --panel: #fafafa;
  --cream: #efe6d3;
  --red: #c93030;
  --red-tint: #fff5f5;
  --green: #1f9d5c;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--edge);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img { width: 20px; height: auto; display: block; }

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { background: var(--red); border-color: var(--red); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #d8d8d8;
}

.btn-ghost:hover { background: var(--panel); border-color: #c4c4c4; color: var(--ink); }

/* Type */

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

h1, h2, h3, h4 { font-weight: 600; }

.lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.fine {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.6;
}

/* Hero */

.hero {
  padding: 96px 0 84px;
  border-bottom: 1px solid var(--edge);
}

.hero h1 {
  font-size: clamp(40px, 5.7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 18px 0 26px;
}

.hero h1 span { display: block; }
.hero h1 .hot { color: var(--red); }

.hero .lede { max-width: 640px; }

.hero-split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.hero-split h1 { font-size: clamp(38px, 4.8vw, 64px); }
.hero-vis .vis { background: #fff; }

@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-notes {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--edge);
}

.hero-notes span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Sections */

section { padding: 88px 0; border-bottom: 1px solid var(--edge); }

.section-head { max-width: 720px; margin-bottom: 42px; }

h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 14px 0 12px;
}

.section-head .lede { max-width: 640px; }

/* Grids and cards */

.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.card:hover { border-color: #cfcfcf; transform: translateY(-2px); }

.card .ico { width: 26px; height: 26px; display: block; }
.card h3 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-head h3 { margin: 0; }

.status {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.status.live { color: #1f9d5c; background: #e6f5ec; }
.status.dev { color: #b7791f; background: #fdf4e3; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.card .go { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--faint); }

/* Runtime band */

.band {
  background: var(--ink);
  color: #fff;
  border-radius: 26px;
  padding: 46px;
}

.band .eyebrow { color: #ff9a9a; }
.band h2 { color: #fff; }
.band .lede { color: #a9a9a9; }

.band .grid { margin-top: 34px; }

.band .card {
  background: #191919;
  border-color: #2a2a2a;
  color: #fff;
}

.band .card p { color: #a9a9a9; }
.band .card .go { color: #777; }
.band .card .ico { color: #fff; }

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step .n { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--red); letter-spacing: 0.1em; }
.step h3 { margin: 10px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Diagram */

.diagram {
  border: 1px solid var(--edge);
  border-radius: 20px;
  padding: 26px;
  background: var(--panel);
}

.diagram img { width: 100%; height: auto; display: block; }
.caption { margin: 14px 0 0; color: var(--faint); font-size: 12px; }

/* Product pages */

.page-hero { padding: 84px 0 60px; border-bottom: 1px solid var(--edge); }

.page-hero h1 {
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
}

.page-hero .lede { max-width: 640px; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.big-lines p {
  font-size: clamp(22px, 2.5vw, 33px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.big-lines .hot { color: var(--red); }

.bullets { margin: 0; padding: 0; list-style: none; }
.bullets li { padding: 17px 0; border-top: 1px solid var(--edge); }
.bullets strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.bullets span { color: var(--muted); font-size: 14px; line-height: 1.6; }

.vis {
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: var(--panel);
  padding: 22px;
}

.vis svg { width: 100%; height: auto; display: block; }
.vis-cap { margin: 12px 0 0; color: var(--faint); font-size: 11.5px; }

.pairs { display: flex; gap: 12px; flex-wrap: wrap; }

.pair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
}

.pair:hover { border-color: #cfcfcf; color: var(--ink); }

/* CTA */

.cta { text-align: center; padding: 96px 0; }
.cta h2 { margin-bottom: 12px; }
.cta .lede { margin: 0 auto 30px; max-width: 560px; }
.cta .hero-ctas { justify-content: center; margin-top: 0; }

/* Footer */

footer {
  padding: 56px 0 44px;
  color: var(--muted);
  font-size: 13px;
}

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

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

.eq {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Terminal */

.term {
  background: #0f0f0f;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid #1e1e1e;
}

.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2d2d2d; }

.term-bar span {
  margin-left: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f6f6f;
}

.term-body {
  margin: 0;
  padding: 20px 22px 24px;
  overflow-x: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  line-height: 1.8;
  color: #cfcfcf;
  white-space: pre;
}

.term-body .p { color: #ff7a7a; }
.term-body .dim { color: #757575; }
.term-body .k { color: #ffffff; }
.term-body .s { color: #a9c9a4; }
.term-body .n { color: #c99a5b; }
.term.mini .term-body { font-size: 11px; line-height: 1.7; padding: 16px 18px 18px; }

/* Legal */

.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 820px; }

.toc {
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 36px;
}

.toc h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  margin: 0 0 10px;
}

.toc ol { margin: 0; padding-left: 18px; columns: 2; column-gap: 34px; }
.toc li { font-size: 13px; margin-bottom: 6px; }
.toc a { color: var(--muted); text-decoration: none; }

.lsec { padding: 26px 0; border-top: 1px solid var(--edge); }
.lsec:first-child { border-top: none; padding-top: 0; }
.lsec h2 { font-size: 20px; margin: 0 0 12px; letter-spacing: -0.01em; }
.lsec p, .lsec li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.lsec p { margin: 0 0 12px; }
.lsec ul { margin: 10px 0 12px 20px; padding: 0; }
.lsec li { margin-bottom: 6px; }
.lsec b { color: var(--ink); font-weight: 600; }

@media (max-width: 700px) {
  .toc ol { columns: 1; }
}

/* Responsive */

@media (max-width: 960px) {
  .g3, .g2, .steps, .split { grid-template-columns: 1fr; }
  .split { gap: 34px; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav { height: 64px; gap: 16px; }
  .nav-links { display: none; }
  .hero { padding: 64px 0 56px; }
  section { padding: 64px 0; }
  .band { padding: 30px; border-radius: 20px; }
  .hero-notes { gap: 16px; }
}
