:root {
  --bg: #090b16; --bg-soft: #0f1221; --panel-solid: #121629; --panel-raised: #181c31;
  --line: rgba(154, 166, 220, .15); --line-bright: rgba(154, 166, 220, .28);
  --text: #f5f7ff; --muted: #9ca5bf; --muted-strong: #c4cbe0; --faint: #6d7691;
  --violet: #9b7cff; --violet-bright: #b8a5ff; --cyan: #6fe5ea; --mint: #a3f1c6; --orange: #ffbf7a; --danger: #ff8585;
  --shadow: 0 24px 80px rgba(0, 0, 0, .32); --radius: 20px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-width: 320px; color: var(--text);
  background:
    radial-gradient(900px 520px at 74% -10%, rgba(123, 93, 255, .20), transparent 66%),
    radial-gradient(700px 500px at -8% 34%, rgba(50, 157, 190, .10), transparent 64%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5;
}
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.mono { font-family: var(--mono); }
header { position: relative; z-index: 2; padding: 24px 0; }
nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: -.025em; }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 0 18px rgba(155, 124, 255, .34)); }
.brand-name { font-size: 16px; }
.brand-name span { color: var(--violet-bright); }
.nav-links { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 13px; }
.nav-links a { text-decoration: none; transition: color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-cta { color: var(--text) !important; border: 1px solid var(--line-bright); padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.03); }
.nav-cta:hover { border-color: var(--violet) !important; background: rgba(155,124,255,.10); }

.intro { padding: 56px 0 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--muted-strong); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(111,229,234,.10), 0 0 24px rgba(111,229,234,.65); }
h1 { margin: 18px 0 16px; max-width: 760px; font-size: clamp(34px, 5vw, 58px); line-height: 1.02; letter-spacing: -.055em; font-weight: 750; }
h1 .gradient { background: linear-gradient(110deg, #c5b7ff 5%, #9b7cff 47%, #6fe5ea 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { max-width: 640px; color: var(--muted-strong); font-size: 17px; line-height: 1.55; margin: 0; }
.net-strip { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin-top: 24px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15,18,33,.6); font-size: 13px; color: var(--muted); }
.net-strip b { color: var(--text); font-weight: 600; }
.net-strip a { color: var(--violet-bright); text-decoration: none; }
.net-strip .pending { color: var(--orange); }

.layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 26px; align-items: start; padding: 26px 0 70px; }
.steps { display: grid; gap: 14px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(24,28,49,.78), rgba(14,17,30,.65)); overflow: hidden; }
.step[data-state="locked"] { opacity: .55; }
.step[data-state="done"] { border-color: rgba(163,241,198,.28); }
.step[data-state="active"] { border-color: rgba(155,124,255,.45); box-shadow: 0 0 60px rgba(116, 83, 255, .10); }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; }
.step-head h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.step-num { color: var(--violet-bright); font-size: 12px; font-weight: 750; font-family: var(--mono); }
.step-state { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.step[data-state="done"] .step-state { color: var(--mint); }
.step[data-state="active"] .step-state { color: var(--cyan); }
.step-body { padding: 0 22px 22px; border-top: 1px solid var(--line); }
.step[data-state="locked"] .step-body, .step[data-collapsed="1"] .step-body { display: none; }
.step-body p { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin: 16px 0 14px; max-width: 560px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field { display: grid; gap: 5px; font-size: 12px; color: var(--muted); }
.field input, .field select { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-bright); border-radius: 10px; background: var(--bg-soft); color: var(--text); font: 13px var(--mono); }
.field input[type=range] { padding: 0; min-height: 28px; accent-color: var(--violet); }
.field input:focus-visible, .field select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(111,229,234,.55); outline-offset: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 10px 16px; border-radius: 11px; border: 0; cursor: pointer; font: 650 13.5px Inter, system-ui, sans-serif; color: var(--text); background: rgba(255,255,255,.035); border: 1px solid var(--line-bright); transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--violet); background: rgba(155,124,255,.09); }
.button-primary { color: #0b0c18; background: linear-gradient(135deg, #c5b7ff, #8f71ff); box-shadow: 0 10px 30px rgba(139, 106, 255, .24); border: 0; }
.button-primary:hover:not(:disabled) { box-shadow: 0 14px 36px rgba(139,106,255,.36); background: linear-gradient(135deg, #c5b7ff, #8f71ff); }
.button-danger { border-color: rgba(255,133,133,.35); }
.button-danger:hover:not(:disabled) { border-color: var(--danger); background: rgba(255,133,133,.08); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.result { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--muted-strong); font: 12.5px/1.65 var(--mono); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.result:empty { display: none; }
.result .ok { color: var(--mint); }
.result .warn { color: var(--orange); }
.result .bad { color: var(--danger); }
.result .k { color: var(--faint); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; }

.side { position: sticky; top: 20px; display: grid; gap: 14px; }
.agent-card { padding: 18px; border: 1px solid rgba(174, 166, 255, .26); border-radius: 22px; background: linear-gradient(145deg, rgba(28, 31, 57, .92), rgba(14, 17, 31, .90)); box-shadow: var(--shadow), 0 0 60px rgba(116, 83, 255, .12); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.card-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mini-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #8d72f9, #5d4cb8); display: grid; place-items: center; flex: none; }
.mini-mark svg { width: 22px; height: 22px; }
.agent-label { font-size: 13px; font-weight: 700; }
.agent-did { color: #7e88a5; font-size: 10px; margin-top: 2px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.status i { width: 7px; height: 7px; display: block; border-radius: 50%; }
.status[data-s="Active"] { color: var(--mint); } .status[data-s="Active"] i { background: var(--mint); box-shadow: 0 0 12px rgba(163,241,198,.8); }
.status[data-s="Suspended"] { color: var(--orange); } .status[data-s="Suspended"] i { background: var(--orange); box-shadow: 0 0 12px rgba(255,191,122,.7); }
.status[data-s="Slashed"] { color: var(--danger); } .status[data-s="Slashed"] i { background: var(--danger); }
.status[data-s="None"] { color: var(--faint); } .status[data-s="None"] i { background: var(--faint); }
.score-row { display: flex; align-items: end; justify-content: space-between; padding: 18px 0 16px; }
.score { font-size: 48px; line-height: .9; letter-spacing: -.07em; font-weight: 750; }
.score small { font-size: 13px; color: #7f88a3; font-weight: 500; letter-spacing: 0; }
.score-copy { color: #8d96af; font-size: 11px; text-align: right; line-height: 1.4; }
.score-copy strong { color: var(--violet-bright); font-size: 12px; display: block; }
.bars { display: grid; gap: 9px; }
.bar-line { display: grid; grid-template-columns: 104px 1fr 40px; align-items: center; gap: 10px; color: #8d96af; font-size: 10.5px; }
.bar-track { height: 5px; overflow: hidden; border-radius: 99px; background: #242841; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8f71ff, #6fe5ea); transition: width .4s ease; }
.bar-line b { color: #cfd5e8; font-size: 10.5px; text-align: right; font-weight: 600; font-family: var(--mono); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0 0; padding-top: 13px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; color: var(--muted-strong); font-family: var(--mono); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15,18,33,.6); font-size: 12px; color: var(--muted); }
.clock b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.log { border: 1px solid var(--line); border-radius: 14px; background: rgba(15,18,33,.6); overflow: hidden; }
.log-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.log-head button { font-size: 11px; min-height: 28px; padding: 4px 10px; }
.log-list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; font-family: var(--mono); font-size: 11.5px; }
.log-list li { padding: 9px 16px; border-bottom: 1px solid var(--line); color: var(--muted-strong); }
.log-list li:last-child { border-bottom: 0; }
.log-list .ev { color: var(--violet-bright); font-weight: 700; }
.log-list .meta { color: var(--faint); display: block; margin-top: 2px; font-size: 10.5px; }
.log-list .args { color: var(--muted); word-break: break-all; }
.log-list .err { color: var(--danger); }
.log-empty { padding: 16px; color: var(--faint); font-size: 12px; }

.params { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 8px; }
.param { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(15,18,33,.6); }
.param .k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.param .v { margin-top: 4px; font-family: var(--mono); font-size: 13px; color: var(--text); }
.param .n { margin-top: 2px; font-size: 11px; color: var(--muted); }

footer { padding: 26px 0 34px; border-top: 1px solid var(--line); color: #6d7691; font-size: 12px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 19px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } .side { position: static; } }
@media (max-width: 650px) {
  .wrap { width: min(100% - 30px, 560px); }
  .nav-links a:not(.nav-cta) { display: none; }
  .intro { padding-top: 34px; }
  .footer-row { display: block; } .footer-links { margin-top: 13px; }
  .bar-line { grid-template-columns: 84px 1fr 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

/* Former inline styles. */
.u-mt-12 { margin-top: 12px; } .u-minw-0 { min-width: 0; }

/* On-ramp variant. The demo collapses locked steps because it is a sequential
   walkthrough and showing step 5 before step 1 would be noise. The on-ramp page is the
   opposite: the explanation of each step is the reason to read it, so locked steps stay
   open and dimmed, and the heads are not clickable. */
.steps-open .step[data-state="locked"] .step-body { display: block; }
.steps-open .step-head { cursor: default; }
.steps-open .step-live { margin-top: 14px; }
.note-fine { color: #7e88a5; font-size: 11px; line-height: 1.5; margin: 0; }
