:root {
  --bg: #0D1117;
  --bg-alt: #10151C;
  --panel: #161B22;
  --panel-2: #1C222B;
  --border: #262C36;
  --text: #E6EDF3;
  --muted: #9AA4B2;
  --accent: #3FB950;
  --accent-ink: #06140A;
  --accent-soft: rgba(63, 185, 80, .14);
  --bad: #F85149;
  --warn: #D29922;
  --info: #58A6FF;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  --display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #FFFFFF;
    --bg-alt: #F6F8FA;
    --panel: #FFFFFF;
    --panel-2: #F6F8FA;
    --border: #D8DEE4;
    --text: #1F2328;
    --muted: #59636E;
    --accent: #1A7F37;
    --accent-ink: #FFFFFF;
    --accent-soft: rgba(26, 127, 55, .10);
    --bad: #CF222E;
    --warn: #9A6700;
    --info: #0969DA;
    --shadow: 0 30px 70px rgba(31, 35, 40, .16);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--display); letter-spacing: -.03em; }
.brand svg { width: 30px; height: 30px; }
.brand.small { font-size: 17px; }
.brand.small svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover, .foot a:hover { color: var(--text); }
.nav-links a, .btn { white-space: nowrap; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 10px; font: 600 15px/1 var(--body); border: 1px solid transparent; transition: transform .12s, background .12s, border-color .12s; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--border); background: var(--panel); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-off { color: var(--muted); cursor: default; }
.btn-off:hover { transform: none; border-color: var(--border); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

/* hero */
.hero { padding: 76px 0 88px; background: radial-gradient(900px 420px at 78% 0%, var(--accent-soft), transparent 70%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 5px 13px; background: var(--panel); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
h1 { font-size: clamp(38px, 5.2vw, 62px); font-weight: 700; margin: 22px 0 20px; }
.lede { font-size: 18px; color: var(--muted); max-width: 33em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta.center { justify-content: center; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 26px 0 0; font-size: 14px; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 7px; }

/* product preview */
.shot { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); overflow: hidden; font-size: 12.5px; }
.shot-bar { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg); overflow: hidden; white-space: nowrap; }
.shot-logo { display: inline-flex; align-items: center; gap: 7px; font: 700 14px/1 var(--display); margin-right: 12px; }
.shot-logo svg { width: 20px; height: 20px; }
.shot-tab { padding: 5px 9px; border-radius: 6px; color: var(--muted); }
.shot-tab.on { background: var(--panel-2); color: var(--text); }
.shot-body { padding: 16px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; background: var(--bg); }
.tile b { display: block; font: 700 24px/1.1 var(--display); }
.tile span { color: var(--muted); }
.ok { color: var(--accent); } .bad { color: var(--bad); } .warn { color: var(--warn); } .info { color: var(--info); }
.rows { margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.row { display: grid; grid-template-columns: 74px minmax(0, 1.25fr) minmax(0, 1fr) 96px; gap: 12px; align-items: center; padding: 9px 13px; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; }
.row.head { background: var(--bg); color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; }
.row b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row > span > i { font-style: normal; color: var(--muted); font-size: 11.5px; }
.row > span:nth-child(3) { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { justify-self: start; padding: 2px 9px; border-radius: 999px; font-weight: 600; font-size: 11.5px; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 12%, transparent); }
.spark { display: flex; gap: 2px; align-items: center; }
.spark i { width: 5px; height: 16px; border-radius: 2px; background: var(--accent); }
.spark i.w { background: var(--warn); } .spark i.b { background: var(--bad); }

/* sections */
.band { padding: 88px 0; border-top: 1px solid var(--border); }
.band.alt { background: var(--bg-alt); }
.kicker { font: 600 13px/1 var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px; }
h2 { font-size: clamp(27px, 3.3vw, 38px); font-weight: 700; max-width: 21em; }
.sub { color: var(--muted); margin-top: 12px; font-size: 17px; }
h3 { font-size: 18px; font-weight: 600; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); padding: 26px; }
.card .num { font: 500 13px/1 var(--mono); color: var(--accent); }
.card h3 { font-size: 22px; margin: 14px 0 10px; }
.card p, .feat p { color: var(--muted); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 28px; margin-top: 40px; }
.feat { border-top: 2px solid var(--accent); padding-top: 16px; }
.feat h3 { margin-bottom: 8px; font-size: 17px; }
.tag { font: 600 11px/1 var(--body); font-style: normal; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-left: 54px; color: var(--muted); }
.steps li b { display: block; color: var(--text); font: 600 18px/1.3 var(--display); margin-bottom: 4px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 700 16px/1 var(--display); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }

.code { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); background: var(--bg); }
.code-head.second { border-top: 1px solid var(--border); }
.code pre { margin: 0; padding: 18px 16px; font: 14px/1.7 var(--mono); overflow-x: auto; }
.code .k { color: var(--accent); }
.code-note { padding: 0 16px 16px; font-size: 13.5px; color: var(--muted); }
.copy { font: 600 12px/1 var(--body); color: var(--text); background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; cursor: pointer; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); padding: 28px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.badge { position: absolute; top: -12px; left: 28px; background: var(--accent); color: var(--accent-ink); font: 600 12px/1 var(--body); padding: 6px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 6px; }
.price b { font: 700 44px/1 var(--display); letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 14px; }
.plan-for { color: var(--muted); font-size: 14.5px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 15px; flex: 1; align-content: start; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan em { font-style: normal; font-size: 11.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }
.roadmap { margin-top: 26px; padding: 16px 20px; border: 1px dashed var(--border); border-radius: 12px; color: var(--muted); font-size: 15px; }
.roadmap b { color: var(--text); }

.closing { text-align: center; }
.closing h2 { margin: 0 auto; }
.closing p { color: var(--muted); max-width: 36em; margin: 16px auto 0; font-size: 17px; }

.foot { border-top: 1px solid var(--border); padding: 28px 0; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.foot nav { display: flex; gap: 20px; margin-left: auto; color: var(--muted); }

/* agent platforms */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.platform { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); padding: 22px; }
.platform p { color: var(--muted); font-size: 14.5px; }
.os-head { display: flex; align-items: center; gap: 10px; }
.os-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); font-size: 18px; }
.platform h3 { font-size: 20px; }
.platform .arch { font: 500 12.5px/1.4 var(--mono); color: var(--accent); }
.os-link { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 14.5px; color: var(--accent); }
.os-link:hover { text-decoration: underline; }
.matrix-wrap { margin-top: 30px; border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; background: var(--panel); }
.matrix { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.matrix caption { text-align: left; padding: 14px 18px; font: 600 15px/1.3 var(--display); border-bottom: 1px solid var(--border); }
.matrix th, .matrix td { padding: 11px 18px; border-top: 1px solid var(--border); text-align: center; }
.matrix thead th { border-top: 0; background: var(--bg); color: var(--muted); font: 600 11.5px/1 var(--body); text-transform: uppercase; letter-spacing: .07em; }
.matrix th[scope="row"] { text-align: left; font-weight: 500; }
.matrix thead th:first-child { text-align: left; }
.matrix td.y { color: var(--accent); font-weight: 700; }
.matrix td.n { color: var(--muted); }
.matrix small { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); }

/* data sources */
.sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.source { position: relative; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 18px 18px 44px; }
.source h3 { font-size: 16.5px; margin-bottom: 6px; }
.source p { color: var(--muted); font-size: 14px; }
.source .ed { position: absolute; left: 18px; bottom: 14px; font: 600 11px/1 var(--body); color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 3px 8px; }
.source .ed.pro { color: var(--info); }
.source-code { margin-top: 26px; max-width: 560px; }
.more { margin-top: 18px; font-weight: 600; color: var(--accent); }
.more a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .nav-in { gap: 18px; }
  .nav-links { gap: 16px; font-size: 14px; }
  .hero-in, .split { grid-template-columns: 1fr; gap: 40px; }
  .pillars, .plans { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .platforms, .sources { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 52px 0 64px; }
  .band { padding: 64px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .grid, .platforms, .sources { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 70px minmax(0, 1fr); }
  .row > span:nth-child(3), .row > span:nth-child(4) { display: none; }
  .shot-tab:not(.on) { display: none; }
  .foot nav { margin-left: 0; }
  .cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
