:root {
  --bg: #0d1117; --bg2: #0a0e13; --panel: #161b22; --line: #30363d; --text: #e6edf3; --muted: #8b949e;
  --accent: #00ec97; --accent-ink: #04120c; --red: #f85149; --green: #3fb950;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
a { color: var(--accent); }
code, .mono { font-family: var(--mono); }
code { font-size: .9em; background: #1f2630; padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
pre code { overflow-wrap: normal; }
pre code { background: none; padding: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* nav */
.nav { display: flex; align-items: center; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.3px; }
.brand b { color: var(--accent); }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.links a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 650; text-decoration: none; border: 1px solid var(--accent); transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0, 236, 151, .25); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn.small { padding: 8px 16px; font-size: 14px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 64px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font: 600 13px var(--mono); letter-spacing: 1px; text-transform: uppercase; }
h1 { margin: 0 0 20px; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -1.5px; }
h1 span { color: var(--accent); }
.lead { font-size: 19px; color: #c9d1d9; margin: 0 0 28px; max-width: 560px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ctas.center { justify-content: center; }
.note { margin-top: 22px; color: var(--muted); font-size: 13px; max-width: 520px; }

.result { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 236, 151, .06); }
.result-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.acct { font-weight: 700; font-size: 15px; word-break: break-all; }
.verdict { flex: none; padding: 5px 12px; border-radius: 8px; font: 800 13px var(--mono); letter-spacing: .5px; }
.verdict.bad { background: var(--red); color: #fff; }
.checks { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks .more { padding-left: 2px; }
.st { flex: none; font: 700 11px var(--mono); padding: 2px 7px; border-radius: 5px; letter-spacing: .4px; }
.st.broken { background: #3d1418; color: var(--red); border: 1px solid #6e2228; }
.st.held { background: #10301a; color: var(--green); border: 1px solid #1f5a2f; }
.plus { color: var(--red); }
.held-t { color: var(--green); }
.broken-t { color: var(--red); }
.trail { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.result figcaption { margin-top: 12px; }
.hero-attack { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-weight: 600; font-size: 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(248, 81, 73, .6); animation: live 1.6s infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(248, 81, 73, .6); } 70% { box-shadow: 0 0 0 8px rgba(248, 81, 73, 0); } 100% { box-shadow: 0 0 0 0 rgba(248, 81, 73, 0); } }
.hero-replay { min-height: 250px; }
.hero-replay .replay { background: var(--bg2); padding: 6px 12px 12px; }
.hero-replay .replay-stage { padding: 22px 0 14px; }
.hero-replay .replay-lanes { justify-content: space-between; flex-wrap: nowrap; gap: 0; }
.hero-replay .replay-node { flex: 0 1 34%; padding: 10px 8px; }
.hero-replay .rn-id { font-size: 11px; }
.hero-replay .rn-bal { font-size: 14px; }
.hero-replay .rn-bal { white-space: nowrap; }
@media (max-width: 640px) { .hero-replay .replay-node { flex-basis: 40%; padding: 8px 4px; } .hero-replay .rn-id { font-size: 9.5px; } .hero-replay .rn-bal { font-size: 12px; } .hero-replay .replay-log { font-size: 11px; } }
.hero-replay .replay-log { font-size: 12px; min-height: 44px; }
.hero-replay .replay-end { font-size: 13px; min-height: 38px; }
.hero-replay .replay-end .st { margin-right: 4px; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; background: var(--panel); width: calc(100% - 48px); max-width: 1072px; padding: 0; }
.stats div { padding: 22px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { font-size: 30px; letter-spacing: -.5px; }
.stats span { color: var(--muted); font-size: 14px; }

/* sections */
.section { padding-top: 88px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.8px; line-height: 1.15; margin: 0 0 18px; }
h3 { margin: 0 0 8px; font-size: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.steps article { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.steps p { color: #c9d1d9; margin: 0; font-size: 15px; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(0, 236, 151, .12); color: var(--accent); font: 700 14px var(--mono); margin-bottom: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split > *, .hero > *, .steps > *, .tools > * { min-width: 0; }
.split > div > p { color: #c9d1d9; }
.t2t { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 14px; }
.say p { margin: 4px 0 0; font-size: 18px; }
.json { margin: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 14px; font-size: 12.5px; overflow-x: auto; color: #c9d1d9; }
.out { font-size: 15px; display: flex; gap: 10px; align-items: baseline; }

/* mcp */
.mcp { position: relative; }
.mcp::before { content: ""; position: absolute; inset: 40px 0 auto; height: 420px; background: radial-gradient(closest-side, rgba(0, 236, 151, .08), transparent); pointer-events: none; z-index: -1; }
.small-lead { font-size: 17px; max-width: 760px; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 40px; }
.tools div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.tools code { background: none; padding: 0; color: var(--accent); font-weight: 700; font-size: 13.5px; }
.tools p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tools .tool-key { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(0, 236, 151, .25), 0 0 24px rgba(0, 236, 151, .08); }
.tools .tool-key p { color: #c9d1d9; }
.msg.tool-answer { background: #1a1112; border: 1px solid #6e2228; font-size: 13.5px; }
.msg.tool-answer .st { margin-right: 6px; }
.replay-link { justify-self: start; font-weight: 600; text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.replay-link:hover { border-color: var(--accent); }
.mcp-split { gap: 32px; }
.code { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.copy { cursor: pointer; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; font: 12px system-ui, sans-serif; }
.copy:hover { border-color: var(--accent); }
.code pre { margin: 0; padding: 14px; overflow-x: auto; font: 12.5px/1.55 var(--mono); color: #c9d1d9; }
.chat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 12px; }
.msg { border-radius: 10px; padding: 12px 14px; font-size: 15px; }
.msg .who { display: block; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 4px; }
.msg.user { background: #1f2630; }
.msg.tool { background: transparent; border: 1px dashed var(--line); color: var(--accent); font-size: 13px; padding: 8px 12px; }
.msg.agent { background: rgba(0, 236, 151, .06); border: 1px solid rgba(0, 236, 151, .2); }
.chat p { margin: 0; }

/* final + footer */
.final { text-align: center; padding-bottom: 72px; }
.final img { margin-bottom: 12px; }
.final p { margin: 0 0 24px; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* responsive */
@media (max-width: 960px) {
  .hero, .split { grid-template-columns: 1fr; gap: 36px; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .links { display: none; }
  .nav .btn.small { margin-left: auto; }
  .hero { padding-top: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); width: calc(100% - 32px); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tools { grid-template-columns: 1fr; }
  .section { padding-top: 64px; }
}
