:root {
  --bg: #0b0f0e;
  --bg-2: #101614;
  --card: #121a18;
  --border: #1f2b28;
  --border-strong: #2d3d39;
  --text: #e8efec;
  --muted: #8a9a94;
  --dim: #5b6b66;
  --accent: #2dd4bf;
  --accent-ink: #042a25;
  --ok: #4ade80;
  --bad: #f97066;
  --warn: #fbbf24;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 0.92em var(--mono); background: var(--bg-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
pre { font: 13.5px/1.6 var(--mono); background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin: 0; white-space: pre-wrap; word-break: break-word; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; max-width: 1120px; margin: 0 auto; padding: 14px 20px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); font-size: 14px; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 18px var(--mono); color: var(--text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.logo { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); position: relative; flex: none; }
.logo::after { content: ""; position: absolute; left: 6px; right: 6px; top: 8px; bottom: 4px; border: 3px solid var(--accent-ink); border-bottom: 0; border-radius: 9px 9px 0 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 9px; padding: 11px 18px; font: 600 15px var(--sans); border: 1px solid transparent; cursor: pointer; color: var(--text); background: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.ghost { border-color: var(--border-strong); background: var(--card); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.link { padding: 11px 4px; color: var(--text); border-bottom: 1px solid var(--border-strong); border-radius: 0; }
.btn i { font-style: normal; transition: transform .18s ease; }
.btn:hover i { transform: translateX(3px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 88px 20px 96px; }
.hero > *:not(.logwall) { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--text); font-size: 13px; padding: 4px 12px 4px 4px; border-radius: 99px; margin-bottom: 22px; }
.pill:hover { text-decoration: none; border-color: var(--accent); }
.pill span { background: var(--accent); color: var(--accent-ink); font: 700 11px var(--mono); padding: 2px 8px; border-radius: 99px; }
.pill i { font-style: normal; color: var(--accent); }
h1 { font: 700 clamp(38px, 6vw, 56px)/1.06 var(--mono); letter-spacing: -0.04em; margin: 0 0 22px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 540px; }
.lead code { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.note { margin: 26px 0 0; font-size: 13px; color: var(--muted); }
.note b { font: 600 12px var(--mono); color: var(--accent); }

.hero-text > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(2) { animation-delay: .06s; }
.hero-text > :nth-child(3) { animation-delay: .12s; }
.hero-text > :nth-child(4) { animation-delay: .18s; }
.hero-text > :nth-child(5) { animation-delay: .24s; }
.builder { animation: rise .8s cubic-bezier(.2,.7,.2,1) .2s both; }

/* the faded request log behind the hero */
.logwall { position: absolute; z-index: 0; top: 0; bottom: 0; right: 0; width: 62%; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,.55), rgba(0,0,0,0) 85%), linear-gradient(to bottom, transparent, #000 15%, #000 80%, transparent);
  mask-image: linear-gradient(to left, rgba(0,0,0,.55), rgba(0,0,0,0) 85%); }
#logwall { font: 12.5px/2 var(--mono); color: var(--dim); white-space: pre; animation: scroll 60s linear infinite; }
#logwall .s2 { color: color-mix(in srgb, var(--ok) 55%, var(--dim)); }
#logwall .s4 { color: color-mix(in srgb, var(--warn) 55%, var(--dim)); }
@keyframes scroll { to { transform: translateY(-50%); } }

/* ---------- command builder ---------- */
.cmd-card { background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--border-strong); border-radius: 14px; overflow: hidden; backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45); }
.cmd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 0 12px; }
.tabs { display: inline-flex; background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 3px; }
.tabs button { font: 500 13px var(--sans); color: var(--muted); background: none; border: 0; border-radius: 6px; padding: 6px 12px; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 0 var(--border-strong) inset, 0 0 0 1px var(--border-strong); }
.cmd-body { margin: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.cmd-line { font: 14.5px/2 var(--mono); color: var(--text); word-break: break-word; }
.cmd-line .prompt { color: var(--dim); }
.cmd-line .kw { color: var(--accent); }
.port { display: inline-block; }
.port input { font: 600 14.5px var(--mono); color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 6px; padding: 1px 7px; min-width: 3ch; text-align: center; box-sizing: border-box; }
.port input:focus { outline: 2px solid var(--text); outline-offset: 1px; }
.cmd-out { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.cmd-out .label { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.cmd-out .url { font: 14.5px var(--mono); color: var(--text); word-break: break-all; }
.cmd-out .url span { transition: opacity .2s ease; }
.cmd-foot { padding: 0 16px 14px; font-size: 13px; color: var(--muted); }
.under-card { font-size: 13px; color: var(--muted); margin: 12px 2px 0; }

/* ---------- sections ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 72px 20px; border-top: 1px solid var(--border); }
.section h2 { font: 700 clamp(26px, 4vw, 38px)/1.15 var(--mono); letter-spacing: -0.035em; margin: 0 0 28px; max-width: 760px; text-wrap: balance; }
.section h3 { font-size: 16px; margin: 0 0 6px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li, .case, .dl { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  transition: transform .2s ease, border-color .2s ease, opacity .6s ease, translate .6s ease; }
.steps li:hover, .case:hover, .dl:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.steps p, .case p { color: var(--muted); font-size: 14.5px; margin: 0; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font: 700 13px var(--mono); margin-bottom: 12px; }
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.case p { margin-bottom: 14px; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.split .muted { margin: 0 0 24px; max-width: 560px; }
.check-demo { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.field { display: flex; font: 16px var(--mono); border: 1px solid var(--border-strong); border-radius: 9px; overflow: hidden; }
.field > span { padding: 10px 12px; }
#demo-name { flex: 1; background: var(--bg); border-right: 1px solid var(--border); }
#demo-name::after { content: ""; display: inline-block; width: 2px; height: 1.05em; background: var(--accent); margin-left: 2px; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
.suffix { color: var(--muted); background: var(--bg-2); }
.result { font: 13.5px var(--mono); margin: 12px 0 0; min-height: 1.5em; }
.result.ok { color: var(--ok); } .result.bad { color: var(--bad); } .result.wait { color: var(--muted); }

.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dl { display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.dl:hover { text-decoration: none; }
.dl span { color: var(--muted); font-size: 13px; }
.dl.recommended { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.section > h3 { margin: 32px 0 10px; }
.install .label { font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row pre { flex: 1; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
td, th { text-align: left; padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: top; }
tr:first-child td, thead th { border-top: 0; }
thead th { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-2); }
td:first-child { color: var(--muted); }
.cmds td:first-child { white-space: nowrap; color: var(--text); }
.cmds td:last-child { color: var(--muted); }
.grid .us { color: var(--accent); font-weight: 600; }
thead .us { color: var(--accent); }

.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0 18px; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 16px; color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: 1120px; margin: 0 auto; padding: 28px 20px 40px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.foot .brand { font-size: 15px; }
.foot .logo { width: 20px; height: 20px; border-radius: 6px; }
.foot .logo::after { left: 5px; right: 5px; top: 6px; bottom: 3px; border-width: 2.5px; }
.foot a { color: var(--text); }

/* ---------- motion ---------- */
.reveal { opacity: 0; translate: 0 18px; }
.reveal.in { opacity: 1; translate: 0 0; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 56px 16px 64px; gap: 36px; }
  .logwall { width: 100%; opacity: .28; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .steps, .cases, .split { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 16px; }
}
@media (max-width: 520px) {
  .dl-grid { grid-template-columns: 1fr; }
  .lead { font-size: 16.5px; }
  .copy-row { flex-direction: column; }
  .cmds td:first-child { white-space: normal; }
  td, th { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
}

/* ---------- pricing, docs, guides ---------- */
.section.first { border-top: 0; padding-top: 64px; }
.eyebrow { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.eyebrow a { color: var(--accent); }
.page-title { font: 700 clamp(32px, 5vw, 48px)/1.08 var(--mono); letter-spacing: -0.04em; margin: 0 0 18px; }
.page-title em { font-style: normal; color: var(--accent); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 26px;
  transition: transform .2s ease, border-color .2s ease, opacity .6s ease, translate .6s ease; }
.price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 24px 60px color-mix(in srgb, var(--accent) 12%, transparent); }
.price-card h2 { font: 700 20px var(--mono); margin: 0 0 8px; }
.price-card .price { margin: 0 0 6px; display: flex; align-items: baseline; gap: 8px; }
.price-card .price b { font: 700 40px var(--mono); letter-spacing: -0.04em; }
.price-card .price span { color: var(--muted); font-size: 14px; }
.price-card > .muted { margin: 0 0 18px; font-size: 14.5px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; font-size: 14.5px; }
.price-card li { padding-left: 24px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-card .btn { justify-content: center; }
.price-card .tag { position: absolute; top: -11px; left: 22px; margin: 0; background: var(--accent); color: var(--accent-ink); font: 700 11px var(--mono); padding: 3px 10px; border-radius: 99px; }

.doc { display: grid; grid-template-columns: 220px 1fr; gap: 48px; max-width: 1120px; margin: 0 auto; padding: 48px 20px 80px; }
.doc.single { grid-template-columns: 1fr; max-width: 780px; }
.doc-nav { position: sticky; top: 76px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 100px); overflow-y: auto; }
.doc-nav-title { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 0 0 8px; }
.doc-nav a { color: var(--muted); font-size: 14px; padding: 5px 10px; border-radius: 7px; border-left: 2px solid transparent; }
.doc-nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.doc-nav a.on { color: var(--accent); border-left-color: var(--accent); background: var(--card); }
.prose { min-width: 0; max-width: 760px; }
.prose h2 { font: 700 22px var(--mono); letter-spacing: -0.03em; margin: 44px 0 12px; scroll-margin-top: 80px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 6px; }
.prose pre { margin: 12px 0 16px; }
.prose .table-wrap { margin: 12px 0 16px; }
.guides .case { display: flex; flex-direction: column; color: var(--text); }
.guides .case:hover { text-decoration: none; }
.guides .more { margin-top: auto; color: var(--accent); font-size: 14px; font-weight: 600; }
kbd { font: 12px var(--mono); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--card); }

@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 20px; padding: 32px 16px 64px; }
  .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; max-height: none; }
  .doc-nav-title { width: 100%; margin: 0; }
  .doc-nav a { border: 1px solid var(--border); padding: 4px 10px; font-size: 13px; }
}

/* How it works: visitor -> server -> your computer */
.section .eyebrow { font: 500 13px var(--mono); color: var(--accent); margin: 0 0 12px; text-transform: none; letter-spacing: 0; }
.flow-lead { max-width: 680px; }
.flow { display: grid; grid-template-columns: 1fr 120px 1fr 150px 1fr; align-items: center; margin: 12px 0 28px; }
.flow-node { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-height: 160px; }
.flow-node svg { width: 24px; height: 24px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.flow-node .logo { display: block; margin-bottom: 10px; }
.flow-node h3 { margin: 0 0 8px; }
.flow-node code { font: 12.5px var(--mono); color: var(--muted); word-break: break-all; }
.flow-node p { margin: 0; color: var(--muted); font-size: 14px; }
.flow-node.edge { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 12%, transparent); }
.flow-link { position: relative; height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.flow-link::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; border-top: 2px solid var(--accent); }
.flow-link::after { content: ""; position: absolute; right: 6px; top: calc(50% - 5px); border: 5px solid transparent; border-left: 8px solid var(--accent); border-right: 0; }
.flow-link.dashed::before { border-top: 2px dashed var(--border-strong); }
.flow-link.dashed::after { border-left-color: var(--border-strong); }
.flow-link i { position: absolute; top: calc(50% - 4px); left: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: flow-dot 2.4s linear infinite; }
.flow-label { position: absolute; bottom: calc(50% + 8px); font: 11.5px var(--mono); color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; }
.flow-note { position: absolute; top: calc(50% + 10px); font-size: 12px; color: var(--dim); white-space: nowrap; }
.flow-foot { color: var(--muted); font-size: 14.5px; max-width: 680px; margin: 0; }
.flow-foot code { color: var(--text); font: 13px var(--mono); white-space: nowrap; }
@keyframes flow-dot { from { left: 10px; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 22px); opacity: 0; } }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .flow-node { min-height: 0; }
  .flow-link { height: 64px; }
  .flow-link::before { left: 50%; right: auto; top: 8px; bottom: 8px; border-top: 0; border-left: 2px solid var(--accent); }
  .flow-link.dashed::before { border-top: 0; border-left: 2px dashed var(--border-strong); }
  .flow-link::after { right: auto; left: calc(50% - 4px); top: auto; bottom: 4px; border: 5px solid transparent; border-top: 8px solid var(--accent); border-bottom: 0; }
  .flow-link.dashed::after { border-left-color: transparent; border-top-color: var(--border-strong); }
  .flow-link i { left: calc(50% - 3px); top: 8px; animation-name: flow-dot-v; }
  .flow-label { bottom: auto; top: 50%; transform: translateY(-50%); left: calc(50% + 14px); }
  .flow-note { top: calc(50% + 10px); left: calc(50% + 14px); }
}
@keyframes flow-dot-v { from { top: 8px; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .flow-link i { animation: none; display: none; } }

/* Built for: use-case cards */
.case { display: flex; flex-direction: column; padding: 24px; }
.case h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 8px; }
.case h3 svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.case p { flex: 1; }
.case p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.case p a:hover { text-decoration-color: var(--accent); }
.cmd-copy { position: relative; }
.cmd-copy pre { padding-right: 72px; font-size: 13px; color: var(--accent); }
.cmd-copy .dollar { color: var(--dim); }
.icon-copy { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); font: 500 12px var(--sans); color: var(--muted); background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.icon-copy:hover { color: var(--text); border-color: var(--border-strong); }
.cmd-head .tabs button { white-space: nowrap; }
@media (max-width: 480px) { .cmd-head .tabs button { padding-left: 9px; padding-right: 9px; font-size: 12.5px; } }
.price-card .yearly { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.price-card .yearly b { color: var(--accent); }
.foot .contact a { color: var(--muted); }
.foot .contact a:hover { color: var(--text); }
