:root {
  --ink: #101522;
  --muted: #626b7b;
  --line: #dfe3ea;
  --paper: #f7f8fa;
  --white: #fff;
  --lime: #c7ff5e;
  --violet: #7257ff;
  --violet-deep: #4937b8;
  --night: #111225;
  --cyan: #72e6d1;
  --red: #e95063;
  --amber: #f5b943;
  --radius: 16px;
  --shadow: 0 18px 60px rgba(25, 28, 45, .10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  color: var(--violet-deep);
  font: 700 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(199,255,94,.24); content: ""; }
.kicker { max-width: 720px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.small { font-size: 13px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  color: #4a5261;
  font-size: 12px;
  font-weight: 650;
}
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #26bf76; }

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(223,227,234,.86);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
}
.nav { display: flex; min-height: 68px; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { position: relative; width: 29px; height: 29px; border-radius: 9px 13px 9px 13px; background: var(--ink); transform: rotate(-7deg); }
.brand-mark::before, .brand-mark::after { position: absolute; content: ""; border-radius: 50%; background: var(--lime); }
.brand-mark::before { width: 8px; height: 8px; top: 6px; left: 6px; }
.brand-mark::after { width: 4px; height: 4px; right: 6px; bottom: 6px; }
.brand em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 650; letter-spacing: .07em; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links a { padding: 8px 10px; border-radius: 8px; color: #485064; font-size: 13px; font-weight: 620; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.nav-more { position: relative; }
.nav-more summary { list-style: none; padding: 8px 10px; cursor: pointer; color: #485064; font-size: 13px; font-weight: 620; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-menu { position: absolute; right: 0; top: 42px; display: grid; min-width: 188px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.nav-menu a { padding: 9px 10px; }
.menu-toggle { display: none; margin-left: auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }

.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 10px; background: var(--ink); color: #fff; font-weight: 750; transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(16,21,34,.17); }
.btn.secondary { border-color: var(--line); background: #fff; color: var(--ink); box-shadow: none; }
.btn.lime { border-color: var(--lime); background: var(--lime); color: var(--night); }
.btn.small-btn { min-height: 36px; padding-inline: 13px; font-size: 13px; }

.hero { position: relative; overflow: hidden; min-height: 690px; padding: 98px 0 78px; background: var(--night); color: #fff; }
.hero::before { position: absolute; inset: 0; background: radial-gradient(circle at 78% 36%, rgba(114,87,255,.38), transparent 29%), radial-gradient(circle at 18% 8%, rgba(114,230,209,.12), transparent 24%), linear-gradient(135deg, rgba(255,255,255,.025) 25%, transparent 25%) 0 0/32px 32px; content: ""; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 54px; }
.hero h1 { max-width: 690px; margin: 0 0 24px; font-size: clamp(52px, 7vw, 88px); line-height: .96; letter-spacing: -.07em; }
.hero h1 span { color: var(--lime); }
.hero-copy { max-width: 610px; color: #bfc5d5; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn.secondary { border-color: #3b4057; background: rgba(255,255,255,.05); color: #fff; }
.hero-note { margin-top: 15px; color: #7f879e; font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }

.agent-visual { position: relative; min-height: 450px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); box-shadow: 0 40px 100px rgba(0,0,0,.35); }
.visual-head { display: flex; align-items: center; gap: 7px; padding: 15px 17px; border-bottom: 1px solid rgba(255,255,255,.1); color: #9098af; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.window-dot { width: 8px; height: 8px; border-radius: 50%; background: #3c4258; }
.visual-status { margin-left: auto; color: var(--lime); }
#consensusGraph { display: block; width: 100%; height: 320px; }
.graph-node circle { fill: #1b1d32; stroke: #6c7390; stroke-width: 1.5; }
.graph-node text { fill: #dce0ed; font: 600 10px ui-monospace, SFMono-Regular, Menlo, monospace; text-anchor: middle; }
.graph-node.active circle { stroke: var(--lime); filter: drop-shadow(0 0 9px rgba(199,255,94,.58)); }
.graph-edge { stroke: #535a73; stroke-width: 1.3; stroke-dasharray: 4 5; }
.graph-edge.active { stroke: var(--lime); }
.graph-log { height: 92px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.1); color: #9ba3b9; font: 11px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; }
.graph-log strong { color: var(--lime); font-weight: 500; }

.trust-strip { padding: 24px 0; border-bottom: 1px solid var(--line); background: #fff; }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.trust-label { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.logos { display: flex; flex: 1; justify-content: space-between; gap: 24px; color: #4b5260; font-weight: 800; letter-spacing: -.02em; }

.section { padding: 100px 0; }
.section.soft { background: var(--paper); }
.section.dark { background: var(--night); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-bottom: 46px; }
.section-head h2, .page-hero h1 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.04; letter-spacing: -.055em; }
.section-head p { max-width: 540px; margin: 0; color: var(--muted); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--muted); }
.card .number { display: block; margin-bottom: 40px; color: var(--violet); font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.feature-link { display: inline-flex; margin-top: 20px; color: var(--violet-deep); font-size: 13px; font-weight: 750; }
.stat { padding: 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-value { display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 850; letter-spacing: -.06em; }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.quote { padding: 34px; border-radius: var(--radius); background: var(--night); color: #fff; }
.quote blockquote { margin: 0 0 24px; font-size: 23px; line-height: 1.4; letter-spacing: -.02em; }
.quote cite { color: #9da5ba; font-size: 13px; font-style: normal; }
.callout { padding: 22px 24px; border-left: 4px solid var(--violet); border-radius: 0 12px 12px 0; background: #f1efff; }
.callout.warning { border-color: var(--amber); background: #fff8e8; }
.callout.danger { border-color: var(--red); background: #fff0f2; }
.callout.success { border-color: #23b873; background: #edfbf5; }
.callout h4 { margin: 0 0 5px; }
.callout p { margin: 0; color: #555f70; }

.page-hero { padding: 92px 0 70px; border-bottom: 1px solid var(--line); background: linear-gradient(155deg, #fff 30%, #f3f1ff); }
.page-hero p { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 20px; }
.breadcrumbs { margin-bottom: 22px; color: var(--muted); font-size: 12px; }
.breadcrumbs a:hover { color: var(--violet); }
.content-wrap { max-width: 880px; }
.prose h2 { margin: 58px 0 18px; font-size: 34px; letter-spacing: -.04em; }
.prose h3 { margin: 32px 0 10px; }
.prose p, .prose li { color: #50596a; }
.prose strong { color: var(--ink); }

.principle { position: relative; min-height: 260px; padding: 30px; overflow: hidden; }
.principle::after { position: absolute; right: -18px; bottom: -48px; color: #f0f1f5; font-size: 150px; font-weight: 900; line-height: 1; content: attr(data-number); }
.principle > * { position: relative; z-index: 1; }
.tension { margin-top: 34px; padding: 26px; border: 1px dashed #a9afbc; border-radius: var(--radius); background: #fbfbfc; }
.tension-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.tension .vs { color: var(--muted); font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; }

.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.capability { padding: 0; overflow: hidden; }
.cap-demo { min-height: 160px; padding: 23px; border-bottom: 1px solid var(--line); background: #121426; color: #ccd1e0; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.cap-demo .prompt { color: var(--cyan); }
.cap-demo .answer { color: #fff; }
.capability-copy { padding: 26px; }
.guidance { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.guidance > div { padding: 14px; border-radius: 10px; background: var(--paper); color: #596171; font-size: 12px; }
.guidance b { display: block; margin-bottom: 5px; color: var(--ink); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.guidance .dont b { color: var(--red); }

.price-toggle { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.price-toggle button { padding: 7px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.price-toggle button.active { background: var(--ink); color: #fff; }
.price-card { position: relative; padding: 30px; }
.price-card.featured { border-color: var(--violet); box-shadow: 0 15px 55px rgba(114,87,255,.12); }
.price-card .price { margin: 26px 0 7px; font-size: 46px; font-weight: 850; letter-spacing: -.06em; }
.price-card ul { min-height: 190px; padding: 0; list-style: none; }
.price-card li { padding: 8px 0; border-bottom: 1px solid #edf0f3; color: #596171; font-size: 14px; }
.price-card li::before { margin-right: 9px; color: var(--violet); content: "✓"; }
.calculator { display: grid; grid-template-columns: 1fr .85fr; gap: 34px; padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.field { margin-bottom: 22px; }
.field label { display: flex; justify-content: space-between; margin-bottom: 10px; font-weight: 700; }
.field input[type="range"] { width: 100%; accent-color: var(--violet); }
.calc-result { padding: 28px; border-radius: 16px; background: var(--night); color: #fff; }
.calc-result .total { display: block; margin: 12px 0; color: var(--lime); font-size: 52px; font-weight: 850; letter-spacing: -.05em; }
.calc-result hr { margin: 20px 0; border: 0; border-top: 1px solid #34384c; }

.docs-shell { display: grid; grid-template-columns: 250px 1fr; gap: 54px; }
.docs-sidebar { position: sticky; top: 98px; align-self: start; }
.docs-sidebar a { display: block; padding: 7px 0; color: var(--muted); font-size: 13px; }
.docs-sidebar a:hover { color: var(--violet); }
.steps { counter-reset: step; }
.step { position: relative; margin: 0 0 20px; padding: 28px 28px 28px 78px; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { position: absolute; left: 24px; top: 26px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace; counter-increment: step; content: counter(step); }
.step h3 { margin-top: 0; }
.progress-track { height: 7px; border-radius: 8px; background: #e9ebef; overflow: hidden; }
.progress-bar { width: 20%; height: 100%; background: var(--violet); transition: width .4s ease; }
.code { position: relative; overflow-x: auto; padding: 20px; border-radius: 12px; background: #101220; color: #cdd3e5; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.code .green { color: var(--lime); }
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(10,12,22,.72); }
.modal-backdrop.open { display: grid; }
.modal { width: min(100%, 510px); padding: 30px; border-radius: 18px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.38); }
.modal h2 { margin-top: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.chart-card { padding: 30px; }
.bar-chart { display: flex; height: 280px; align-items: end; gap: 18px; padding: 20px 10px 0; border-bottom: 1px solid var(--line); }
.bar-item { display: flex; flex: 1; height: 100%; flex-direction: column; justify-content: end; align-items: center; gap: 8px; }
.bar { width: min(70px, 100%); height: 0; border-radius: 8px 8px 0 0; background: var(--violet); transition: height 1.1s cubic-bezier(.2,.8,.2,1); }
.bar.lime { background: var(--lime); }
.bar-label { color: var(--muted); font-size: 11px; }
.chart-axis { color: var(--muted); font-size: 11px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: 14px; }
.winner { padding: 3px 8px; border-radius: 6px; background: var(--lime); font-weight: 800; }
.footnotes { color: var(--muted); font-size: 11px; }

.status-banner { display: flex; align-items: center; gap: 16px; padding: 25px 28px; border-radius: 14px; background: #e9fbf3; color: #11764a; font-size: 21px; font-weight: 800; }
.status-pulse { width: 13px; height: 13px; border-radius: 50%; background: #20b970; box-shadow: 0 0 0 0 rgba(32,185,112,.4); animation: statusPulse 2s infinite; }
@keyframes statusPulse { 50% { box-shadow: 0 0 0 10px rgba(32,185,112,0); } }
.uptime { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; margin: 12px 0; }
.uptime span { height: 28px; border-radius: 3px; background: #2bc078; }
.uptime .warn { background: var(--amber); }
.uptime .down { background: var(--red); }
.incident { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.incident h3 { margin: 0 0 8px; }
.incident time { color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.severity { display: inline-block; margin-top: 8px; padding: 3px 7px; border-radius: 5px; background: #fff0f2; color: var(--red); font-size: 10px; font-weight: 800; text-transform: uppercase; }

.timeline { position: relative; padding-left: 34px; }
.timeline::before { position: absolute; left: 7px; top: 8px; bottom: 0; width: 1px; background: var(--line); content: ""; }
.release { position: relative; padding: 0 0 54px; }
.release::before { position: absolute; left: -33px; top: 7px; width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 1px var(--violet); content: ""; }
.release h2 { margin: 0; }
.release-date { color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.release ul { padding-left: 20px; color: #50596a; }
.team-card .avatar { display: grid; width: 60px; height: 60px; margin-bottom: 24px; place-items: center; border-radius: 20px; background: var(--night); color: var(--lime); font-size: 20px; font-weight: 850; transform: rotate(-4deg); }
.team-card .role { display: block; margin: 6px 0 18px; color: var(--violet); font-size: 12px; font-weight: 750; }

.not-found { display: grid; min-height: calc(100vh - 69px); place-items: center; padding: 60px 20px; background: var(--night); color: #fff; text-align: center; }
.not-found-inner { max-width: 760px; }
.not-found .code404 { display: block; color: var(--lime); font-size: clamp(100px, 20vw, 230px); font-weight: 900; line-height: .82; letter-spacing: -.1em; }
.not-found h1 { font-size: clamp(32px, 5vw, 58px); letter-spacing: -.05em; }
.confidence { display: inline-block; margin: 15px 0 30px; padding: 8px 12px; border: 1px solid #3b4057; border-radius: 999px; color: #9ca4ba; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }

.site-footer { padding: 58px 0 35px; border-top: 1px solid var(--line); background: #fafafb; }
.footer-top { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); gap: 44px; }
.footer-col h4 { margin: 0 0 13px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer-col a { display: block; margin: 8px 0; color: var(--muted); font-size: 13px; }
.disclosure { margin-top: 45px; padding-top: 22px; border-top: 1px solid var(--line); color: #737b89; font-size: 11px; }
.disclosure strong { color: #4e5665; }

@media (max-width: 900px) {
  .hero { padding-top: 72px; }
  .hero-grid, .calculator, .docs-shell { grid-template-columns: 1fr; }
  .agent-visual { min-height: 410px; }
  .nav-links { position: absolute; top: 68px; right: 20px; left: 20px; display: none; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .nav-more summary { display: none; }
  .nav-menu { position: static; display: grid; padding: 0; border: 0; box-shadow: none; }
  .menu-toggle { display: block; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .trust-inner, .logos { flex-wrap: wrap; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .docs-sidebar { position: static; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 70px 0; }
  .hero { min-height: auto; padding: 64px 0; }
  .hero h1 { font-size: 54px; }
  .agent-visual { min-height: 380px; }
  #consensusGraph { height: 270px; }
  .grid-2, .grid-4, .capability-grid, .guidance { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 18px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-top: 1px solid var(--line); border-left: 0; }
  .stat:first-child { border-top: 0; }
  .logos { display: grid; grid-template-columns: 1fr 1fr; }
  .tension-grid { grid-template-columns: 1fr; }
  .tension .vs { text-align: center; }
  .footer-top { grid-template-columns: 1fr; }
  .incident { grid-template-columns: 1fr; }
  .bar-chart { gap: 8px; }
  .step { padding-left: 25px; padding-top: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .bar { transition: none; }
}
