:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070707;
    --surface: #111214;
    --text: #fafafa;
    --muted: #a1a1aa;
    --line: #27272a;
    --accent: #7cc4ff;
    --accent-soft: #0c2a44;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--line); background: var(--surface); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
main { padding: 40px 0 64px; }
.hero { text-align: center; padding: 32px 0 16px; }
.hero img { width: 112px; height: 112px; border-radius: 24px; }
.hero h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; margin: 20px 0 12px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 auto; max-width: 560px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h2, .card h3 { font-size: 17px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.cta { display: inline-block; margin-top: 28px; background: var(--accent); color: var(--bg); padding: 12px 22px; border-radius: 10px; text-decoration: none; font-weight: 600; }
article h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; margin: 0 0 6px; }
article .meta { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
article h2 { font-size: 20px; margin: 36px 0 10px; }
article ul { padding-left: 22px; }
article li { margin: 4px 0; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.note { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 24px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* ── Landing ─────────────────────────────────────────────────────── */
.landing { --radius: 16px; }
.landing header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.landing .wide { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.landing nav .btn { margin-left: 16px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
nav .btn-primary { color: var(--bg); padding: 8px 14px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.l-hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.l-hero::before { content: ""; position: absolute; inset: -40% -10% auto -10%; height: 640px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); pointer-events: none; }
.l-hero .wide { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.l-hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -.02em; margin: 18px 0 18px; }
.l-hero h1 span { color: var(--accent); }
.l-hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 540px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.45); }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; font-weight: 600; }
.chat-head img { width: 28px; height: 28px; border-radius: 7px; }
.chat-head small { color: var(--muted); font-weight: 400; margin-left: auto; font-size: 13px; }
.msg { border-radius: 14px; padding: 12px 14px; font-size: 15px; margin-bottom: 10px; max-width: 92%; }
.msg.user { background: var(--accent); color: var(--bg); margin-left: auto; border-bottom-right-radius: 4px; }
.msg.bot { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.route { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 6px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--text); }
.chip.ok::before { content: "✓ "; color: #22c55e; }
.chip.run::before { content: "● "; color: #f59e0b; }
.sig { color: var(--muted); font-size: 13px; margin-top: 6px; }
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats .wide { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 16px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 30px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }
.section { padding: 88px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.section.alt .step, .section.alt .agent, .section.alt .team { background: var(--bg); }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.step h3, .agent h3 { font-size: 18px; margin: 0 0 8px; }
.step p, .agent p { color: var(--muted); margin: 0; font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.agent { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.agent .tag { align-self: flex-start; font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--accent); background: var(--accent-soft); padding: 6px 8px; border-radius: 6px; }
.agent ul { margin: 4px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.agent .leads { color: var(--text); font-size: 14px; font-weight: 600; }
.callout { margin-top: 20px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; color: var(--muted); font-size: 15px; }
.callout strong { color: var(--text); }
.teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.team { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; }
.team b { color: var(--accent); font-size: 18px; }
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 30px; position: relative; color: var(--muted); }
.checks li strong { color: var(--text); display: block; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 13px; display: grid; place-items: center; font-weight: 700; }
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.platform { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.platform h3 { margin: 0 0 6px; font-size: 17px; }
.platform p { margin: 0; color: var(--muted); font-size: 14px; }
.platform .soon { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.final { text-align: center; }
.final .section-head { margin: 0 auto 28px; }
.final .actions { justify-content: center; }
@media (max-width: 900px) {
  .l-hero .wide, .split { grid-template-columns: 1fr; }
  .l-hero { padding-top: 48px; }
  .steps, .platforms { grid-template-columns: 1fr 1fr; }
  .teams { grid-template-columns: repeat(2, 1fr); }
  .stats .wide { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .landing nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .steps, .platforms, .checks { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.landing main { padding: 0; }
@media (max-width: 560px) { .stat b { font-size: 22px; } .stat { padding: 20px 10px; } }
