/* =====================================================================
   v3: fixed-centre solutions, stacked system layers, escrow coin
   Loaded after site.css.
   ===================================================================== */
[data-sc] { white-space: pre-wrap; }
.numbox { position: relative; display: inline-grid; place-items: center; width: 44px; height: 40px; font: 500 14px var(--mono); color: var(--ink); }
.numbox::before, .numbox::after { content: ""; position: absolute; width: 16px; height: 12px; border: 1.5px solid; pointer-events: none; }
.numbox::before { top: 0; left: 0; border-color: var(--cyan); border-right: 0; border-bottom: 0; border-top-left-radius: 7px; }
.numbox::after { bottom: 0; right: 0; border-color: var(--amber); border-left: 0; border-top: 0; border-bottom-right-radius: 7px; }

/* hero automation */
.quote-main, .quote-dim { min-height: 5.2em; }
.flow li { transition: color .3s, background .3s; color: var(--faint); }
.flow li.on { color: var(--ink); background: linear-gradient(90deg, transparent, rgba(99, 240, 255, .1)); }
.flow li.on::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ---------- solutions ---------- */
.sol { padding-top: 130px; }
.sol-body { position: relative; }
.sol-stage { position: sticky; top: var(--bar); height: calc(100vh - var(--bar)); margin-bottom: calc(-100vh + var(--bar)); pointer-events: none; z-index: 1; }
.robot { position: absolute; left: 50%; top: 0; bottom: 0; width: min(46vw, 800px); transform: translateX(-50%); }
.robot canvas { width: 100%; height: 100%; display: block; }
.robot { isolation: isolate; background: radial-gradient(ellipse at 46% 43%, #4ae5ff38, transparent 39%), radial-gradient(ellipse at 60% 54%, #ae6dff4d, transparent 55%); }
.robot::after { content: ""; position: absolute; left: 50%; bottom: 6%; width: 70%; height: 34%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(63, 169, 255, .52), transparent); z-index: -1; }
.sol-stage .robot-label { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); font-size: 11px; letter-spacing: .08em; color: var(--dim); border: 1px solid var(--line-2); padding: 7px 10px; background: rgba(7, 7, 13, .75); white-space: nowrap; }
.sol-row { position: relative; z-index: 2; min-height: 76vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; border-top: 1px solid var(--line); opacity: .28; transition: opacity .45s; }
.sol-row.active { opacity: 1; }
.sol-left { padding: 40px 32px; max-width: 500px; }
.sol-left h3 { margin: 22px 0 0; font: 500 clamp(34px, 3.3vw, 54px)/1.08 var(--sans); letter-spacing: -.03em; }
.sol-link { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 90px; padding: 16px; border-top: 1px solid var(--line-2); font: 600 13px var(--mono); letter-spacing: .06em; }
.sol-link b { font-size: 22px; font-weight: 400; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform .2s; }
.sol-link:hover b { transform: translate(3px, -3px); }

/* ---------- system layers ---------- */
.sys { padding-top: 130px; }
.eco-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; margin: 0 var(--col) 50px 0; }
.eco-head .title-wrap { margin: 0; }
.eco-lead { margin: 0; padding: 0 32px 8px; color: var(--ink); font-size: 19px; max-width: 30em; }
.eco-lead b { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--dim); font: 400 15px var(--mono); }
.eco-stack { position: relative; }
.stack-tail { height: 74vh; }
.layer { position: sticky; top: calc(var(--bar) + 24px + var(--i) * var(--step, 132px)); display: grid; grid-template-columns: var(--col) minmax(0, 1fr); margin: 0 var(--col) 36vh 32px; background: var(--bg); border-top: 1px solid var(--line-2); box-shadow: 0 -30px 40px -10px var(--bg); z-index: calc(2 + var(--i)); }
.layer.last { margin-bottom: 0; }
@media (min-width: 1101px) {
  .eco-stack { display: grid; row-gap: 36vh; padding-bottom: 24vh; }
  .eco-stack .layer { margin-bottom: 0; }
}
.layer-tag { display: flex; align-items: center; gap: 22px; height: 118px; padding: 0 30px; border: 1px solid var(--line-2); border-top: 0; font-size: 15px; letter-spacing: .06em; align-self: start; }
.layer-main { padding: 26px 0 30px 34px; min-width: 0; }
.layer-main h3 { margin: 0; font: 500 clamp(30px, 2.9vw, 46px)/1.1 var(--sans); letter-spacing: -.025em; }
.layer-sub { margin: 8px 0 0; color: var(--dim); font-size: 16px; }
.diagram-wrap { margin-top: 18px; overflow: visible; }
.diagram { position: relative; width: 1200px; height: 520px; transform: scale(var(--s, 1)); transform-origin: 0 0; }
.wires { position: absolute; inset: 0; width: 1200px; height: 520px; overflow: visible; }
.wire { fill: none; stroke: #4b4b5e; stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.layer.live .wire { animation: draw .9s cubic-bezier(.3, .6, .2, 1) var(--d, 0ms) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pulse { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: .09 .91; stroke-dashoffset: 1; opacity: 0; }
.layer.live .pulse { opacity: .95; animation: travel 3.6s linear infinite; }
@keyframes travel { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.node { position: absolute; opacity: 0; transform: scale(.82); transition: opacity .5s var(--d, 0ms), transform .6s cubic-bezier(.2, 1.3, .4, 1) var(--d, 0ms); }
.layer.live .node { opacity: 1; transform: none; }
.node.tile { width: 104px; margin: -52px 0 0 -52px; }
.node.tile.big { width: 150px; margin: -75px 0 0 -75px; }
.icon { width: 104px; height: 104px; border-radius: 22px; background: linear-gradient(160deg, #1b1b27, #0d0d15); border: 1.5px solid #32323f; display: grid; place-items: center; color: #ecebf3; box-shadow: inset 0 1px 0 #ffffff14, 0 12px 26px -12px #000; position: relative; transition: border-color .25s, transform .25s; }
.icon::before { content: ""; position: absolute; top: -9px; left: -9px; width: 14px; height: 14px; border: 1px solid #5a5a6c; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.node:hover .icon, .node.open .icon { border-color: var(--cyan); transform: translateY(-3px); }
.icon svg { width: 54px; height: 54px; }
.icon .acc { stroke: var(--cyan); }
.node:nth-child(3n) .icon .acc { stroke: var(--violet); }
.node:nth-child(3n+1) .icon .acc { stroke: var(--pink); }
.big .icon { width: 150px; height: 150px; border-radius: 30px; border-color: #4a4a5c; background: linear-gradient(160deg, #20202e, #0c0c14); }
.big .icon::after { content: ""; position: absolute; left: 22%; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--grad); }
.big .icon svg { width: 82px; height: 82px; }
.big .icon .acc { stroke: var(--cyan); }
.label { position: absolute; left: 50%; transform: translateX(-50%); width: 220px; text-align: center; font: 500 14px/1.2 var(--mono); letter-spacing: .06em; color: var(--ink); }
.node.tile .label { top: 114px; }
.node.tile.big .label { top: 160px; }
.plus { position: absolute; left: 50%; top: 140px; transform: translateX(-50%); width: 46px; height: 28px; border: 1px solid #45455a; background: #0d0d15; color: var(--ink); font: 300 20px/1 var(--mono); cursor: pointer; padding: 0; transition: border-color .2s, color .2s; }
.big .plus { top: 186px; }
.plus:hover, .plus[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan); }
.detail { position: absolute; left: 50%; top: 176px; transform: translateX(-50%); width: 270px; padding: 14px 16px; background: #10101a; border: 1px solid var(--cyan); font: 14px/1.5 var(--sans); color: var(--ink); z-index: 9; box-shadow: 0 20px 40px -10px #000; }
.big .detail { top: 222px; }
.detail[hidden] { display: none; }
.node.open { z-index: 8; }
.chips { position: absolute; left: 118px; top: 1px; display: grid; gap: 6px; }
.big .chips { left: 164px; }
.chips span, .node.chip { font: 500 12px/1 var(--mono); letter-spacing: .06em; white-space: nowrap; border: 1px solid #3c3c4d; border-radius: 4px; background: #0d0d15; color: var(--ink); }
.chips span { padding: 9px 11px; min-height: 30px; }
.node.chip { transform: translate(-50%, -50%) scale(.82); padding: 12px 16px; }
.layer.live .node.chip { transform: translate(-50%, -50%); }
.node.chip.linkout { border: 0; background: none; font-size: 15px; padding: 0; color: var(--dim); }
.node.chip.linkout a { display: flex; gap: 10px; align-items: center; padding: 10px 6px; }
.node.chip.linkout a:hover { color: var(--cyan); }
.node.chip.linkout b { color: var(--ink); letter-spacing: -3px; }

/* ---------- escrow coin ---------- */
.token { padding-top: 150px; }
.token-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; margin-right: var(--col); min-height: 78vh; }
.token-left { padding: 0 32px; }
.token-left h2 { margin: 0; font: 500 clamp(48px, 6vw, 96px)/1 var(--sans); letter-spacing: -.03em; }
.token-desc { margin: 60px 0 0; font-size: 19px; line-height: 1.5; max-width: 22em; }
.token-cap { margin: 70px 0 14px; font-size: 14px; letter-spacing: .06em; }
.audit { display: inline-flex; border: 1px solid var(--line-2); font: 600 13px var(--mono); letter-spacing: .1em; max-width: 100%; flex-wrap: wrap; }
.audit > * { padding: 20px 22px; border-right: 1px solid var(--line-2); color: var(--dim); }
.addr { background: none; border: 0; color: var(--ink); font: 500 17px var(--mono); letter-spacing: 0; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.addr:hover { color: var(--cyan); }
.coin { position: relative; height: min(70vh, 640px); cursor: pointer; }
.coin canvas { width: 100%; height: 100%; display: block; position: relative; }
.coin::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(110, 90, 255, .3), transparent); }
.token-right { align-self: start; padding-top: 12vh; }
.token-right p { text-align: right; padding: 0 16px 26px; margin: 0; font-size: 15px; letter-spacing: .06em; }
.token-right ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line-2); }
.token-right li { padding: 13px 16px; border-top: 1px solid var(--line-2); text-align: right; font: 500 15px/1.3 var(--mono); letter-spacing: .05em; min-height: 46px; }
.token-links { display: grid; grid-template-columns: var(--col) repeat(3, minmax(0, 1fr)); margin: 60px var(--col) 0 32px; border: 1px solid var(--line-2); }
.token-links > span { padding: 44px 30px; font-size: 15px; letter-spacing: .06em; }
.token-links a { display: flex; align-items: center; gap: 16px; padding: 44px 30px; border-left: 1px solid var(--line-2); transition: background .2s; }
.token-links a:hover { background: var(--bg-2); }
.token-links b { font: 600 24px var(--sans); letter-spacing: -.01em; }
.pill { font: 500 10px var(--mono); letter-spacing: .08em; padding: 5px 7px; border: 1px solid var(--cyan); color: var(--ink); white-space: nowrap; }
.token-links i { margin-left: auto; font: 300 30px var(--sans); font-style: normal; transition: transform .2s; }
.token-links a:hover i { transform: translate(3px, -3px); color: var(--cyan); }

@media (max-width: 1100px) {
  .sol { padding-top: 90px; }
  .sol-stage { height: 44vh; margin-bottom: 0; top: var(--bar); background: linear-gradient(var(--bg) 82%, transparent); z-index: 3; }
  .robot { width: 100%; }
  .sol-row { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 26px 0 40px; }
  .sol-left { padding: 0 20px; }
  .sol-link { margin-top: 0; }
  .eco-head { grid-template-columns: 1fr; margin-right: 0; gap: 20px; }
  .eco-lead { padding: 0 20px; }
  .stack-tail { display: none; }
  .layer { position: relative; top: auto; grid-template-columns: 1fr; margin: 0 20px 40px; box-shadow: none; }
  .layer-tag { height: 64px; border-left: 0; border-right: 0; padding: 0 4px; }
  .layer-main { padding: 20px 0; }
  .diagram { width: auto; height: auto; transform: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .wires { display: none; }
  .node, .node.tile, .node.tile.big, .node.chip, .layer.live .node.chip { position: relative; left: auto !important; top: auto !important; margin: 0; width: auto; transform: none; }
  .node.tile { display: grid; justify-items: center; gap: 10px; padding: 14px 8px; border: 1px solid var(--line-2); }
  .icon, .big .icon { width: 72px; height: 72px; border-radius: 16px; }
  .icon svg, .big .icon svg { width: 40px; height: 40px; }
  .label, .node.tile .label, .node.tile.big .label { position: static; transform: none; width: auto; font-size: 12px; }
  .chips, .big .chips { position: static; justify-items: center; }
  .tile-row { display: grid; justify-items: center; gap: 10px; }
  .plus, .big .plus { position: static; transform: none; }
  .detail, .big .detail { position: static; transform: none; width: auto; }
  .node.chip { grid-column: 1 / -1; text-align: center; }
  .token { padding-top: 90px; }
  .token-grid { grid-template-columns: 1fr; margin-right: 0; }
  .token-left { padding: 0 20px; }
  .token-desc { margin-top: 28px; }
  .token-cap { margin-top: 34px; }
  .coin { height: 46vh; order: -1; }
  .token-right { padding: 20px 20px 0; }
  .token-links { grid-template-columns: 1fr; margin: 40px 20px 0; }
  .token-links a { border-left: 0; border-top: 1px solid var(--line-2); padding: 24px 20px; }
  .token-links > span { padding: 20px; }
}

.node.chip [data-sc], .chips [data-sc], .label[data-sc] { white-space: nowrap; }

.token-links b { font-size: 21px; white-space: nowrap; }
.token-links a { gap: 12px; padding-left: 24px; padding-right: 24px; }
@media (max-width: 1500px) { .token-links .pill { display: none; } }

/* short screens: slim pinned layer headers */
.eco-stack.slim .layer-tag { height: 58px; }
.eco-stack.slim .layer-main { padding-top: 10px; }
.eco-stack.slim .layer-main h3 { font-size: 30px; }
.eco-stack.slim .layer-sub { margin-top: 12px; }
.brand span { white-space: nowrap; }
@media (max-width: 1400px) { .brand { font-size: 18px; gap: 8px; padding-left: 24px; } .brand img { width: 28px; height: 28px; } }
.sol-body { isolation: isolate; overflow: clip; }
@media (min-width: 1101px) {
  .sol-stage .robot, .sol-stage .robot-label { left: 65%; }
}
#layers { isolation: isolate; background: var(--bg); }

/* Demo landing: keep the main story short, with supporting detail on demand. */
.hero-copy { z-index: 2; bottom: 64px; max-width: calc(100% - 64px); }
.hero-copy h1 { font-size: clamp(2.5rem, 6.3vw, 6.5rem); }
.hero-description { max-width: 33ch; margin: 20px 0; font-size: clamp(1rem, 2vw, 1.3rem); }
.hero .quote, .hero .flow { z-index: 2; }
.hero .quote a { display: inline-block; }
.hero .flow-head { justify-content: space-between; }
.lab, .cases, .faq { padding-top: 76px; }
.lab .title-wrap, .cases .title-wrap { margin-bottom: 28px; }
.demo-preset-controls, .demo-followup { margin: 0 var(--col) 24px 32px; }
.demo-preset-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demo-preset-controls button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--ink);
  font: 500 0.94rem var(--sans);
  cursor: pointer;
}
.demo-preset-controls button[aria-pressed="true"] { border-color: var(--cyan); background: var(--cyan); color: var(--bg); }
.demo-preset-controls .tag { margin-left: auto; }
.lab-grid[hidden] { display: none; }
.lab-panel h3 { margin: 0 0 8px; }
.demo-link { text-decoration: underline; text-underline-offset: .18em; }
.demo-followup { margin-top: 24px; color: var(--dim); font-size: .92rem; }
.demo-more-runs { margin-top: 22px; border-block-start: 1px solid var(--line-2); }
.demo-more-runs > summary { padding: 20px 32px; cursor: pointer; }
.statement { padding-block: clamp(3rem, 8vw, 7rem); }
.demo-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font: 500 .7rem/1.5 var(--mono);
  letter-spacing: .075em;
}
.lab .gtitle { font-size: clamp(2.1rem, 5.2vw, 5rem); }
.lab .lead { max-width: 56ch; }
.lab-grid { gap: clamp(14px, 2vw, 28px); }
.lab-panel { padding: clamp(16px, 2vw, 26px); }
.lab-panel h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.15; }
.lab-controls { margin-block: 18px; }
.checks { margin-top: 12px; }
.checks li { padding-block: 9px; }
.demo-verdict h3 { margin-top: 8px; }
.demo-verdict #outcome-copy { margin: 0 0 12px; min-height: 0; }
.demo-verdict .status { margin: 0; padding-top: 10px; color: var(--dim); }
body[data-lab="failed"] .demo-verdict h3 { color: var(--bad); }
body[data-lab="released"] .demo-verdict h3 { color: var(--ok); }
.proof-playback { border-top: 1px solid var(--line-2); margin-top: 16px; padding-top: 16px; }
.proof-stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; gap: 6px; list-style: none; }
.proof-stages li {
  border: 1px solid var(--line-2);
  padding: 7px 9px;
  color: var(--dim);
  font-size: .8rem;
}
.proof-stages li.complete { color: var(--ok); border-color: #426a67; }
.proof-stages li[aria-current] { border-color: var(--cyan); background: #63f0ff15; color: var(--ink); }
#proof-detail { font-size: .9rem; margin-block: 10px; }
#proof-receipt { font-size: .85rem; }
#proof-next { display: block; margin-top: 12px; min-height: 44px; padding: 11px 17px; }
#proof-files { margin-top: 10px; }
#proof-files summary { cursor: pointer; font: .82rem/1.7 var(--mono); }
#proof-files pre { margin: 4px 0 12px; padding: 8px; overflow-wrap: anywhere; white-space: pre-wrap; background: var(--bg); font-size: .78rem; }
@media (min-width: 1101px) {
  .sol-stage { --stage-height: min(72vh, 720px); height: var(--stage-height); margin-bottom: calc(-1 * var(--stage-height)); }
  .sol-row { min-height: max(330px, 49vh); }
}
@media (max-width: 760px) {
  .hero-copy { max-width: calc(100% - 40px); }
  .hero-copy h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
  .lab, .cases, .faq { padding-top: 48px; }
  .demo-preset-controls, .demo-followup { margin-inline: 20px; }
  .demo-preset-controls .tag { margin-left: 0; }
  .demo-more-runs > summary { padding-inline: 20px; }
  .proof-stages li { font-size: .75rem; }
}

/* Colour directs attention to the next action and the result. */
:root {
  --ink: #f4f8ff;
  --dim: #c4c4d5;
  --faint: #a3a3b9;
  --line-2: #45445a;
  --hook-gradient: linear-gradient(105deg, #a5f7ff 0%, #9fd8ff 55%, #b8f3ff 100%);
}
.hero-copy h1 { font-weight: 600; }
.hero-description { max-width: 39ch; text-wrap: pretty; }
.hero .quote a { min-height: 0; padding-block: 12px; color: var(--dim); }
.hero .flow li { color: var(--dim); }
.hero-copy .cta, #proof-next { background: var(--hook-gradient); font-size: .82rem; }
.hero-copy .cta:hover, #proof-next:hover { background: #d3fbff; }
.lab, .cases, .use-scope { position: relative; }
.lab { background: radial-gradient(ellipse at 70% 22%, #17213b 0%, transparent 65%); }
.cases { background: radial-gradient(ellipse at 35% 18%, #171329 0%, transparent 65%); }
.lab-panel { background: linear-gradient(150deg, #151528, #0c0c15 62%); }
.case { border-top: 2px solid #67e3c2; }
.case.bad { border-top-color: #ff8a7a; }
.demo-link { color: #a9f4ff; }
.lab .lead, .cases .lead, .scope-examples span, .sol-left p { color: var(--dim); }
.cases .gtitle, .lab .gtitle, .use-scope h2 { font-weight: 600; }
.scope-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.scope-examples > * {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line-2);
  background: linear-gradient(145deg, #19172b, #0e0d18);
}
.scope-examples a:hover { border-color: var(--cyan); }
.scope-examples strong { font-size: 1.07rem; }
.scope-examples small { color: #9fd8ff; font: .7rem/1.5 var(--mono); }
.use-scope em, .sol-left h3 span { color: #b4eaff; }
@supports (background-clip: text) {
  .use-scope em, .sol-left h3 span {
    background: var(--hook-gradient);
    background-clip: text;
    color: transparent;
  }
}
.sol-row { opacity: 1; }
.sol-row.active { background: linear-gradient(90deg, #a68cff0b, transparent 38%, transparent 70%, #63f0ff08); }
.sol-left h3 { margin-top: 12px; }
.escrow-inspector {
  padding: clamp(14px, 2vw, 26px);
  border: 1px solid var(--line-2);
  background: linear-gradient(125deg, #1c1c31, #0c111d);
}
#escrow-value { display: block; margin-block: 8px; font: 600 clamp(1.1rem, 1.8vw, 1.65rem)/1.18 var(--sans); }
.escrow-inspector [role="group"] { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.escrow-inspector button {
  background: #111321; border: 1px solid #65647e; color: var(--ink); font: 500 .83rem var(--sans);
  padding: 10px 12px; min-height: 42px; cursor: pointer;
}
.escrow-inspector button[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); }
.escrow-inspector h3 { margin: 8px 0; font: 600 clamp(1.4rem, 2vw, 2rem)/1.15 var(--sans); }
.escrow-route { display: flex; align-items: center; gap: 6px; margin: 22px 0 16px; }
.escrow-route span { font: .8rem var(--mono); }
.escrow-route i { flex: 1; height: 2px; background: linear-gradient(90deg, #526784, var(--ok)); }
#escrow-value { color: var(--ok); }
.escrow-inspector[data-outcome="refund"] #escrow-value { color: var(--amber); }
.escrow-inspector[data-outcome="refund"] .escrow-route i { background: linear-gradient(90deg, #635578, var(--amber)); }
#escrow-history { color: var(--dim); font: 1rem/1.55 var(--sans); margin-block: 10px; }
@media (max-width: 760px) {
  .scope-examples { grid-template-columns: 1fr; }
  .scope-examples > * { padding: 12px 14px; }
}

/* Shared content edges leave space for the section rail on wide screens. */
:root {
  --page-inset: max(clamp(64px, 5vw, 96px), calc((100% - 1584px) / 2));
  --panel-gap: clamp(16px, 1.6vw, 28px);
}
.lab-grid, .cases .case-grid, .statement, .closing, .footer,
.title-wrap, .sol-left, .demo-more-runs > summary { padding-inline: var(--page-inset); }
.stack, .layer, .eco-head, .token-grid, .token-links, .mat-list, .faq-list,
.demo-preset-controls, .demo-followup { margin-inline: var(--page-inset); }
.eco-head .title-wrap, .token-left, .token-right { padding-inline: 0; }
.hero-copy { left: var(--page-inset); }
.hero .quote { left: var(--page-inset); }
.hero .flow { right: var(--page-inset); }
.topbar { padding-inline: var(--page-inset); }
.topbar .brand { padding-left: 0; }
.eco-head, .lab-grid, .cases .case-grid, .scope-examples { column-gap: var(--panel-gap); }
.eco-lead { padding-inline: 0; }
.guides i:first-child { left: var(--page-inset); }
.guides i:last-child { right: var(--page-inset); }
.lab .gtitle, .cases .gtitle { font-size: clamp(2rem, 4vw, 4.25rem); text-wrap: balance; }
.hero-description, .lead { line-height: 1.5; text-wrap: pretty; }
.nav > a { font-family: var(--sans); font-weight: 500; font-size: .95rem; }
.nav > a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--cyan); }
@media (min-width: 1101px) {
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .topbar .nav { justify-content: center; padding-inline: 0; }
  .topbar .launch { justify-self: end; white-space: nowrap; }
}
.ledger, .metrics, #escrow-value { font-variant-numeric: tabular-nums; }
.mat-list .mat { grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr) auto; }
.mat-list .mat > :last-child { color: var(--cyan); }
@media (max-width: 760px) {
  .mat-list .mat { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .mat-list .mat .d { display: block; grid-column: 1; }
  .mat-list .mat > :last-child { grid-column: 2; grid-row: 1 / 3; }
}
.demo-link { text-decoration-thickness: 1px; }
.sol-left { max-width: none; padding-right: var(--panel-gap); }
@media (max-width: 1100px) {
  :root { --page-inset: clamp(20px, 4vw, 40px); }
  .hero-copy { max-width: calc(100% - 2 * var(--page-inset)); }
}


/* Each chapter shares a text column and a sticky solver viewport. */
.sol-row { --accent: #a4ddff; scroll-margin-top: var(--bar); }
#solver-funding { --accent: #ffbf77; }
#solver-proof { --accent: #9fd8ff; }
#solver-release { --accent: #81ecd0; }
#solver-delivery { --accent: #b8f3ff; }
.sol-row .sol-left h3 span { background: none; color: var(--accent); }
.sol-left h3 { margin: 0; font-size: clamp(2.6rem, 5.6vw, 6rem); line-height: 1.02; }
@media (min-width: 761px) {
  .sol-stage { --stage-height: calc(100svh - var(--bar)); height: var(--stage-height); margin-bottom: calc(-1 * var(--stage-height)); background: none; }
  .sol-stage .robot { left: 50%; width: 50%; transform: none; border-left: 1px solid var(--line-2); }
  .sol-stage .robot-label { left: 75%; }
  .sol-row { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: max(420px, 75svh); padding: 0; }
  .sol-left { padding: 48px clamp(24px, 4vw, 72px) 48px var(--page-inset); }
}
@media (max-width: 760px) {
  .sol-stage { height: min(37svh, 320px); border-bottom: 1px solid var(--line-2); }
  .sol-row { scroll-margin-top: calc(var(--bar) + min(37svh, 320px)); }
  .sol-left { padding-inline: var(--page-inset); }
}

.token-grid { row-gap: clamp(20px, 3vw, 48px); }
.token-grid .coin { border-left: 1px solid var(--line-2); }
.token-grid .token-left { padding-right: var(--panel-gap); }
.token-grid .escrow-inspector { grid-column: 1 / -1; }
#chain-check { font: .85rem/1.5 var(--mono); color: var(--dim); margin-block: 12px; }
@media (min-width: 761px) {
  .token-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .escrow-inspector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px var(--panel-gap); align-items: center; }
  .escrow-inspector > :is(.demo-kicker, h3, [role="group"], .escrow-route) { grid-column: 1; }
  .escrow-inspector > [aria-live] { grid-area: 1 / 2 / 3; }
  #chain-check { grid-area: 3 / 2; }
  #escrow-receipt { grid-area: 4 / 2; justify-self: start; }
  .escrow-route { max-width: 32rem; }
}
@media (max-width: 760px) {
  .token-grid .coin { border-left: 0; border-block: 1px solid var(--line-2); }
}

/* ---------- demo: replay real Arc jobs with the solver robot and a live feed ---------- */
.lab .howto { margin: 0 var(--col) 28px 32px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 22px 26px; }
.lab .howto h3 { margin: 0 0 16px; font-size: 12px; letter-spacing: .08em; font-weight: 500; color: var(--dim); }
.lab .howto ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lab .howto li { display: flex; gap: 14px; align-items: flex-start; }
.lab .howto b { font: 500 17px var(--sans); }
.lab .howto li p { margin: 4px 0 0; color: var(--dim); font-size: 15px; line-height: 1.5; }
.lab > .demo-preset-controls { margin: 0 var(--col) 24px 32px; }
.demo-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) 340px; gap: 24px; margin: 0 var(--col) 24px 32px; align-items: stretch; }
.demo-job h3, .demo-verify h3 { margin: 6px 0 8px; }
.demo-job > p.dim { margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.demo-job .checks { margin: 16px 0 20px; }
.demo-job .cta { width: 100%; }
.demo-solver { display: grid; grid-template-rows: auto minmax(260px, 1fr) auto auto auto; gap: 12px; }
.solver-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.solver-head p { margin: 0; }
#solver-state { color: var(--cyan); letter-spacing: .06em; font-size: 12px; }
.demo-robot { position: relative; min-height: 260px; }
.demo-robot canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.demo-robot.no-webgl { background: radial-gradient(closest-side, rgba(63, 169, 255, .25), transparent); }
.progress { height: 6px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .45s ease-out; }
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: st; }
.stage-list li { counter-increment: st; display: flex; gap: 10px; align-items: center; padding: 6px 0; color: var(--faint); font-size: 14px; transition: color .25s; }
.stage-list li::before { content: counter(st, decimal-leading-zero); font: 500 11px var(--mono); width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-2); flex: none; }
.stage-list li.active { color: var(--ink); }
.stage-list li.active::before { border-color: var(--amber); color: var(--amber); animation: blink .9s infinite; }
.stage-list li.done { color: var(--ink); }
.stage-list li.done::before { content: "\2713"; border-color: var(--ok); color: var(--ok); }
.stage-list li.fail { color: var(--ink); }
.stage-list li.fail::before { content: "\2715"; border-color: var(--bad); color: var(--bad); }
.replay-note { margin: 0; font-size: 12px; color: var(--faint); }
.demo-feed { border: 1px solid var(--line-2); background: var(--bg-2); padding: 18px 18px 14px; display: grid; gap: 12px; grid-template-rows: auto minmax(0, 1fr) auto; max-height: 640px; }
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.feed-head .demo-kicker { margin: 0; }
.arc-live { margin: 0; font-size: 11px; letter-spacing: .06em; color: var(--dim); display: flex; align-items: center; gap: 7px; }
.arc-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.arc-live[data-state="live"] i { background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 1.6s infinite; }
.arc-live[data-state="down"] i { background: var(--bad); }
.arc-live b { color: var(--ink); font-weight: 500; }
.arc-live b.bump { animation: bump .6s ease-out; }
@keyframes bump { from { color: var(--cyan); } }
#demo-feed { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 220px; display: grid; align-content: start; }
#demo-feed li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.4; animation: feedin .35s ease-out; }
#demo-feed li:first-child { border-top: 0; }
#demo-feed time { font: 11px var(--mono); color: var(--faint); }
#demo-feed .msg { color: var(--ink); }
#demo-feed li.pass .msg { color: var(--ok); }
#demo-feed li.fail .msg { color: var(--bad); }
#demo-feed li.warn .msg { color: var(--amber); }
.src { font: 500 9px var(--mono); letter-spacing: .08em; padding: 2px 5px; border: 1px solid var(--line-2); color: var(--dim); }
.src.arc { color: var(--cyan); border-color: #2a5a6a; }
.feed-legend { margin: 0; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 11px; color: var(--faint); line-height: 1.8; }
@keyframes feedin { from { opacity: 0; transform: translateY(-4px); } }
.demo-verify { margin: 0 var(--col) 0 32px; }
.verify-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.verify-head p.dim { margin: 0; font-size: 15px; max-width: 52em; }
.demo-verify h4 { margin: 24px 0 6px; font-size: 12px; letter-spacing: .08em; font-weight: 500; color: var(--dim); }
.demo-verify .small { font-size: 14px; margin: 0 0 12px; }
.verify-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.verify-table th { text-align: left; font: 500 11px var(--mono); letter-spacing: .08em; color: var(--dim); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); }
.verify-table td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.verify-table .arc-says { color: var(--dim); font-size: 13px; }
.verify-table .arc-says[data-ok="true"] { color: var(--ok); }
.delivery-check { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); display: grid; gap: 12px; justify-items: start; }
.delivery-check p { margin: 0; font-size: 15px; }
.chain-check { font-size: 13px; color: var(--dim); }
.chain-check[data-ok] { color: var(--ok); }
#proof-files { width: 100%; display: grid; gap: 8px; }
#proof-files pre { margin: 8px 0 0; padding: 12px; background: var(--bg); border: 1px solid var(--line-2); font: 12px/1.6 var(--mono); overflow-x: auto; }
@media (max-width: 1300px) {
  .demo-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .demo-feed { grid-column: 1 / -1; max-height: 360px; }
}
@media (max-width: 1100px) {
  .lab .howto, .lab > .demo-preset-controls, .demo-stage, .demo-verify { margin-left: 20px; margin-right: 20px; }
  .lab .howto ol { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .demo-stage { grid-template-columns: minmax(0, 1fr); }
  .verify-table thead { display: none; }
  .verify-table tr { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .verify-table td { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #demo-feed li, .arc-live b.bump, .arc-live[data-state="live"] i, .stage-list li.active::before { animation: none; }
  .progress i { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-enter { animation: scroll-enter 650ms cubic-bezier(.2, .7, .2, 1); }
  .scroll-enter:focus-within { animation: none; }
  @keyframes scroll-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.sol-left p { max-width: 32ch; margin: clamp(14px, 1.6vw, 24px) 0 0; font-size: clamp(1.1rem, 1.5vw, 1.375rem); line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .sol-left h3 { opacity: var(--heading-opacity, 1); }
  .sol-left p { opacity: var(--description-opacity, 1); }
}

/* ---------- demo motion: running shimmer, verdict pulse, staggered results ---------- */
.demo-solver { position: relative; transition: border-color .4s; }
.demo-solver[data-state="running"] .progress i { background-size: 200% 100%; background-image: linear-gradient(90deg, var(--cyan), #3fa9ff, #2fe0a8, var(--cyan)); animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.demo-solver[data-state="paid"] { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok), 0 0 40px -10px var(--ok); }
.demo-solver[data-state="refused"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad), 0 0 40px -10px var(--bad); }
.demo-solver[data-state="paid"] #solver-state { color: var(--ok); }
.demo-solver[data-state="refused"] #solver-state { color: var(--bad); }
.stage-list li { border-radius: 2px; padding-left: 6px; margin-left: -6px; transition: color .25s, background-color .25s; }
.stage-list li.active { background: rgba(255, 190, 80, .07); }
.stage-list li.done::before, .stage-list li.fail::before { animation: tick-in .35s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes tick-in { from { transform: scale(.4); opacity: 0; } }
.lab-panel.demo-job.swap > * { animation: swap-in .4s cubic-bezier(.2, .7, .2, 1) both; }
.lab-panel.demo-job.swap > *:nth-child(2) { animation-delay: 40ms; } .lab-panel.demo-job.swap > *:nth-child(3) { animation-delay: 80ms; } .lab-panel.demo-job.swap > *:nth-child(n+4) { animation-delay: 120ms; }
@keyframes swap-in { from { opacity: 0; transform: translateY(6px); } }
.demo-verify.enter { animation: swap-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.demo-verify.enter .verify-table tbody tr { animation: swap-in .4s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(200ms + var(--i, 0) * 90ms); }
.demo-verify.enter #verdict-badge { animation: tick-in .5s cubic-bezier(.2, .9, .3, 1.4) .15s both; }
.demo-preset-controls button { transition: background-color .2s, color .2s, border-color .2s, transform .15s; }
.demo-preset-controls button:active, #run:active { transform: translateY(1px) scale(.99); }
@media (prefers-reduced-motion: reduce) {
  .demo-solver[data-state="running"] .progress i, .stage-list li::before, .lab-panel.demo-job.swap > *, .demo-verify.enter, .demo-verify.enter * { animation: none !important; }
}

.lab [hidden] { display: none !important; }
#verdict-badge { white-space: nowrap; flex: none; }

/* ---------- BUILT WITH: tool network ---------- */
.token-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tools { padding: 40px 0 120px; position: relative; }
.tools-head { margin: 0 var(--col) 48px 32px; max-width: 880px; }
.tools-head h2 { margin: 8px 0 12px; }
.tools-head p.dim { margin: 0; font-size: 17px; line-height: 1.55; max-width: 60ch; }
.tool-net { position: relative; margin: 0 var(--col) 0 32px; }
.tool-traces { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.tool-traces .trace { fill: none; stroke: rgba(150, 160, 210, .16); stroke-width: 1.5; transition: stroke .3s, stroke-width .3s; }
.tool-traces .trace.lit { stroke-width: 2; filter: drop-shadow(0 0 4px currentColor); }
.tool-traces .pulse { fill: none; stroke-width: 3; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 6px #fff); }
.tool-grid { position: relative; z-index: 1; display: grid; aspect-ratio: 1; grid-template: repeat(3, minmax(0, 1fr)) / repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px); }
.tool { position: relative; aspect-ratio: 1; border-radius: 22%; border: 1px solid rgba(255, 255, 255, .05); background: linear-gradient(160deg, #1c2033, #141726); display: grid; place-items: center; cursor: default; padding: 0; color: inherit;
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.35), border-color .3s, box-shadow .35s; }
.tool::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, var(--g), transparent); opacity: 0; filter: blur(18px); transition: opacity .35s; z-index: -1; pointer-events: none; }
.tool .disc { width: min(54%, 112px); aspect-ratio: 1; border-radius: 50%; background: var(--c); display: grid; place-items: center; box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .25), inset 0 2px 6px rgba(255, 255, 255, .25); transition: transform .4s cubic-bezier(.2, .9, .3, 1.35); }
.tool .disc svg { width: 56%; height: 56%; fill: #fff; }
.tool .disc b { font: 700 clamp(11px, 1.15vw, 19px) var(--mono); color: #fff; letter-spacing: -.02em; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.tool .disc b[data-len="4"] { font-size: clamp(8px, .8vw, 13px); }
.tool .disc b[data-len="3"] { font-size: clamp(9px, .95vw, 15px); }
.tool.dark .disc { background: radial-gradient(circle at 35% 30%, #3a3f57, #1e2133); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.tool .tool-name { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); white-space: nowrap; font: 500 clamp(10px, 1.35vw, 15px) var(--mono); color: #c6c9d8; pointer-events: none; }
.tool:hover, .tool:focus-visible, .tool.ping { transform: scale(1.16); z-index: 3; border-color: var(--g); outline: none;
  box-shadow: 0 0 0 1px var(--g), 0 0 22px -2px var(--g), 0 10px 30px -10px var(--g), inset 0 0 20px -8px var(--g); }
.tool:hover::before, .tool:focus-visible::before, .tool.ping::before { opacity: .45; }
.tool:hover .disc, .tool:focus-visible .disc { transform: rotate(-8deg) scale(1.04); }
.tool:hover .tool-name, .tool:focus-visible .tool-name { color: var(--ink); }
.tool.ping { transform: scale(1.08); }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tool-hub { position: relative; align-self: center; height: 66%; min-height: 54px; border-radius: 999px; display: grid; place-items: center; padding: 0 12px; text-align: center;
  border: 3px solid transparent; background: linear-gradient(#11131f, #11131f) padding-box, conic-gradient(from var(--spin), #ffd166, #3fa9ff, #5eead4, #2fe0a8, #ffd166) border-box;
  box-shadow: 0 0 40px -6px rgba(63, 169, 255, .55), 0 0 90px -20px rgba(255, 209, 102, .4); animation: hub-spin 6s linear infinite; }
.tool-hub span { font: 700 clamp(10px, .95vw, 16px) var(--sans); letter-spacing: .05em; white-space: nowrap; background: linear-gradient(90deg, #ffe08a, #ffc04d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tool-hub.hit { animation: hub-spin 6s linear infinite, hub-hit .9s ease-out; }
@keyframes hub-spin { to { --spin: 360deg; } }
@keyframes hub-hit { 0% { box-shadow: 0 0 40px -6px rgba(63, 169, 255, .55); } 30% { box-shadow: 0 0 0 2px var(--hc), 0 0 60px 0 var(--hc); } 100% { box-shadow: 0 0 40px -6px rgba(63, 169, 255, .55), 0 0 90px -20px rgba(255, 209, 102, .4); } }
.tool-caption { margin: 56px var(--col) 0 32px; min-height: 1.6em; font-size: 14px; color: var(--dim); text-align: center; letter-spacing: .02em; }
.tool-caption b { color: var(--g, var(--ink)); font-weight: 600; }
@media (max-width: 1100px) {
  .tools-head, .tool-net, .tool-caption { margin-left: 20px; margin-right: 20px; }
  .tool-traces { display: none; }
  .tool-hub span { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool, .tool .disc, .tool .tool-name { transition: none; }
  .tool-hub, .tool-hub.hit { animation: none; }
}

/* ---------- tools panel: centred on the midline, logo hub ---------- */
.tools-head { margin: 0 auto 32px; text-align: center; max-width: 900px; padding: 0 20px; }
.tools-head p.dim { margin: 0 auto; }
.tool-net { margin: 0 auto; width: min(780px, calc(100% - 2 * var(--page-inset))); }
.tool-caption { margin: 24px auto 0; padding: 0 20px; }
.tool-hub { height: auto; aspect-ratio: 1; width: 92%; justify-self: center; border-radius: 50%; padding: 0; display: grid; place-items: center; }
.tool-hub .hub-disc { width: min(66%, 112px); aspect-ratio: 1; display: grid; place-items: center; }
.tool-hub .hub-disc img { width: 100%; height: 100%; filter: drop-shadow(0 0 14px rgba(63, 140, 255, .65)); animation: hub-float 5s ease-in-out infinite; }
.tool-hub .hub-label { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 11px var(--mono); letter-spacing: .14em; color: #ffd98a; }
@keyframes hub-float { 50% { transform: translateY(-4px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .tool-hub .hub-disc img { animation: none; } }

/* ---------- scope map ---------- */
.scope { padding: 140px 0 120px; position: relative; }
.scope .title-wrap { text-align: center; max-width: 1000px; margin: 0 auto 64px; }
.scope-lead { margin: 18px auto 0; max-width: 62ch; color: var(--dim); font-size: 18px; line-height: 1.55; }
.scope-map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr) minmax(0, 1fr); gap: 0 clamp(40px, 7vw, 120px); align-items: center; width: min(1280px, calc(100vw - 240px)); margin: 0 auto; }
.scope-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.scope-wires .wire { fill: none; stroke-width: 1.6; }
.scope-wires .wire.in { stroke: rgba(99, 240, 255, .45); }
.scope-wires .wire.out { stroke: rgba(47, 224, 168, .45); }
.scope-wires .spark { opacity: 0; }
.scope-map[data-stage="done"] .spark { opacity: 1; transition: opacity .6s; }
.scope-wires .spark.in { fill: #9ff6ff; filter: drop-shadow(0 0 6px #63f0ff); }
.scope-wires .spark.out { fill: #b8f3ff; filter: drop-shadow(0 0 6px #2fe0a8); }
.scope-col { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.snode { position: relative; padding: 16px 18px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(28, 32, 51, .92), rgba(16, 18, 30, .92)); border-radius: 14px; display: grid; gap: 4px;
  opacity: 0; transition: opacity .55s ease-out, transform .6s cubic-bezier(.2, .9, .3, 1.25), border-color .3s, box-shadow .3s; }
.scope-in .snode { transform: translateX(-24px) scale(.97); }
.scope-out .snode { transform: translateX(24px) scale(.97); }
.snode.on { opacity: 1; transform: none; }
.snode b { font: 600 17px var(--sans); }
.snode span { color: var(--dim); font-size: 14px; line-height: 1.45; }
.scope-in .snode::after, .scope-out .snode::before { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; }
.scope-in .snode::after { right: -4px; background: #63f0ff; box-shadow: 0 0 10px #63f0ff; }
.scope-out .snode::before { left: -4px; background: #2fe0a8; box-shadow: 0 0 10px #2fe0a8; }
.scope-in .snode:hover { border-color: rgba(99, 240, 255, .6); box-shadow: 0 0 24px -6px rgba(99, 240, 255, .6); }
.scope-out .snode:hover { border-color: rgba(47, 224, 168, .6); box-shadow: 0 0 24px -6px rgba(47, 224, 168, .6); }
.scope-hub { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 8px; opacity: 0; transform: scale(.6); transition: opacity .5s, transform .8s cubic-bezier(.2, .9, .3, 1.4); }
.scope-hub.on { opacity: 1; transform: none; }
.hub-ring { width: clamp(150px, 14vw, 210px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 3px solid transparent;
  background: radial-gradient(circle, #171a2e, #0c0d18) padding-box, conic-gradient(from var(--spin), #63f0ff, #3f8cff, #2fe0a8, #ffd166, #63f0ff) border-box;
  box-shadow: 0 0 60px -10px rgba(63, 140, 255, .7), 0 0 120px -30px rgba(47, 224, 168, .5); animation: hub-spin 7s linear infinite; }
.hub-ring img { width: 58%; height: 58%; filter: drop-shadow(0 0 16px rgba(63, 140, 255, .6)); animation: hub-float 5s ease-in-out infinite; }
.scope-hub b { font: 600 20px var(--sans); margin-top: 8px; }
.scope-hub .mono { font-size: 11px; letter-spacing: .16em; color: var(--cyan); }
.scope-hub small { font-size: 13px; color: #ffd98a; border: 1px solid rgba(255, 209, 102, .35); border-radius: 999px; padding: 4px 12px; margin-top: 4px; }
@media (max-width: 1100px) {
  .scope { padding: 90px 0 70px; }
  .scope .title-wrap { padding: 0 20px; }
  .scope-map { grid-template-columns: minmax(0, 1fr); width: auto; margin: 0 20px; gap: 28px; }
  .scope-wires { display: none; }
  .scope-hub { order: -1; }
  .scope-in .snode::after, .scope-out .snode::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { .snode, .scope-hub { transition: none; } .hub-ring, .hub-ring img { animation: none; } }

/* ---------- demo teaser on home, demo page ---------- */
.demo-teaser { padding: 60px 0 120px; }
.demo-teaser .title-wrap { text-align: center; max-width: 1000px; margin: 0 auto 48px; }
.teaser-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; width: min(1180px, calc(100vw - 240px)); margin: 0 auto; }
.teaser { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px 24px 54px; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(160deg, #1a1d30, #10121e); transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), border-color .3s, box-shadow .3s; }
.teaser .mono { font-size: 11px; letter-spacing: .1em; color: var(--cyan); }
.teaser b { font: 600 24px var(--sans); }
.teaser p { margin: 0; color: var(--dim); line-height: 1.5; }
.teaser i { position: absolute; left: 24px; bottom: 20px; font: 500 12px var(--mono); font-style: normal; letter-spacing: .08em; color: var(--ok); }
.teaser.bad i, .teaser.bad .mono { color: var(--bad); }
.teaser:hover { transform: translateY(-6px); border-color: var(--ok); box-shadow: 0 18px 40px -20px var(--ok); }
.teaser.bad:hover { border-color: var(--bad); box-shadow: 0 18px 40px -20px var(--bad); }
.teaser-cta { display: table; margin: 36px auto 0; }
.demo-page { padding-top: 110px; }
.lab-page { padding-top: 20px; }
@media (max-width: 1100px) { .teaser-cards { grid-template-columns: minmax(0, 1fr); width: auto; margin: 0 20px; } .demo-page { padding-top: 80px; } }
.scope .gtitle, .demo-teaser .gtitle { font-size: clamp(34px, 4vw, 60px); }
.tool-hub .hub-label { display: none; }

/* ---------- hero emphasis ---------- */
.hero-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points li { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(12, 14, 24, .7); backdrop-filter: blur(6px); font-size: 14px; }
.hero-points i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.hero-ctas .cta { margin: 0; }
.cta-ghost { font: 500 14px var(--mono); letter-spacing: .04em; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.cta-ghost:hover { color: var(--cyan); border-color: var(--cyan); }
@media (prefers-reduced-motion: no-preference) {
  .hero-points li { animation: swap-in .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-points li:nth-child(1) { animation-delay: .5s; } .hero-points li:nth-child(2) { animation-delay: .65s; } .hero-points li:nth-child(3) { animation-delay: .8s; }
}
@media (min-width: 1101px) { .hero-copy h1 { font-size: clamp(2.5rem, 5vw, 5.2rem); } }

/* ---------- show-details toggles ---------- */
.has-more:not(.show-more) .more { display: none !important; }
.show-more .more { animation: swap-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.more-toggle { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 7px 14px 7px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(14, 16, 28, .7); color: var(--dim); font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color .2s, border-color .2s; }
.more-toggle:hover, .more-toggle:focus-visible { color: var(--ink); border-color: var(--cyan); outline: none; }
.more-toggle i { font-style: normal; font-size: 15px; line-height: 1; transition: transform .3s cubic-bezier(.2, .9, .3, 1.3); }
.more-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
.scope .title-wrap .more-toggle, .demo-teaser .title-wrap .more-toggle, .tools-head .more-toggle { margin-left: auto; margin-right: auto; }
.title-wrap:has(> .more-toggle) { display: block; }
.title-wrap > .more-toggle { display: flex; width: max-content; }
.scope .title-wrap > .more-toggle, .demo-teaser .title-wrap > .more-toggle { margin: 22px auto 0; }
.tools-head > .more-toggle { margin: 18px auto 0; }
@media (prefers-reduced-motion: reduce) { .show-more .more { animation: none; } }

/* ---------- demo marketplace ---------- */
.market { padding: 20px 0 80px; }
.market .title-wrap { text-align: center; max-width: 1000px; margin: 0 auto 28px; }
.market .gtitle { font-size: clamp(34px, 4vw, 60px); }
.market-status { margin: 16px 0 0; font-size: 13px; color: var(--dim); }
.market-status b { color: var(--ink); }
.market-status .ok { color: var(--ok); }
.market-status code { font: inherit; color: var(--cyan); }
.market-filters { display: grid; gap: 10px; justify-items: center; margin: 0 auto 28px; padding: 0 20px; }
.market-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.market-filter button { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--dim); font: 500 13px var(--sans); cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.market-filter button:hover { color: var(--ink); border-color: var(--cyan); }
.market-filter button[aria-pressed="true"] { color: #07070d; background: var(--cyan); border-color: var(--cyan); }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; width: min(1320px, calc(100vw - 240px)); margin: 0 auto; }
.m-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 18px 18px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: linear-gradient(160deg, #191c2e, #10121e);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.3), border-color .25s, box-shadow .25s; }
.m-card:hover { transform: translateY(-4px); border-color: rgba(99, 240, 255, .45); box-shadow: 0 16px 40px -22px rgba(99, 240, 255, .6); }
.m-card.runnable { border-color: rgba(82, 255, 217, .35); }
.m-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.m-market { font: 500 11px var(--mono); letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }
.src-tag { font: 600 9px var(--mono); letter-spacing: .1em; padding: 3px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--faint); }
.src-tag.arc { color: var(--ok); border-color: var(--ok); }
.src-tag.live { color: #07070d; background: var(--cyan); border-color: var(--cyan); }
.m-card h3 { margin: 0; font: 600 18px/1.3 var(--sans); }
.m-brief { margin: 0; font-size: 14px; color: var(--dim); line-height: 1.5; }
.m-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.m-budget { color: var(--dim); font-size: 13px; }
.m-budget b { font: 600 22px var(--sans); color: var(--ink); }
.m-pill { font: 600 10px var(--mono); letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; border: 1px solid currentColor; }
.m-pill.open { color: var(--cyan); } .m-pill.proving { color: var(--amber); } .m-pill.paid { color: var(--ok); } .m-pill.refunded { color: var(--bad); }
.m-pill.open::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; animation: blink 1.6s infinite; }
.m-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--faint); }
.m-card footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.m-act { font: 600 12px var(--mono); letter-spacing: .04em; color: var(--ok); background: none; border: 0; padding: 0; cursor: pointer; }
.m-act:hover { text-decoration: underline; }
.m-act.muted { color: var(--faint); font-weight: 500; cursor: default; }
.m-act.muted:hover { text-decoration: none; }
.m-tx { font-size: 11px; color: var(--dim); }
.market-grid.enter .m-card { animation: swap-in .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 45ms); }
.market .more-toggle { margin: 18px auto 0; }
@media (max-width: 1100px) { .market-grid { width: auto; margin: 0 20px; } }
@media (prefers-reduced-motion: reduce) { .market-grid.enter .m-card, .m-pill.open::before { animation: none; } }

/* ---------- cleanup: fewer small labels ---------- */
.hero-copy { padding-top: 0; }

/* ---------- demo page: sample cards ---------- */
.lab > .sample-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sample-cards button { display: grid; gap: 6px; text-align: left; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: linear-gradient(160deg, #191c2e, #10121e); color: var(--ink); cursor: pointer;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.3), border-color .25s, box-shadow .25s; }
.sample-cards button .mono { font-size: 11px; letter-spacing: .1em; color: var(--ok); }
.sample-cards button.bad .mono { color: var(--bad); }
.sample-cards button b { font: 600 19px var(--sans); }
.sample-cards button small { color: var(--dim); font-size: 13px; line-height: 1.4; }
.sample-cards button:hover { transform: translateY(-3px); border-color: var(--cyan); }
.sample-cards button[aria-pressed="true"] { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok), 0 14px 34px -20px var(--ok); background: linear-gradient(160deg, #1b2a2e, #10121e); color: var(--ink); }
.sample-cards button.bad[aria-pressed="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad), 0 14px 34px -20px var(--bad); background: linear-gradient(160deg, #2e1b1b, #10121e); }
@media (max-width: 1100px) { .lab > .sample-cards { grid-template-columns: minmax(0, 1fr); } }
.m-card .m-brief { display: none; }

/* ---------- marketplace app ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.market-status { display: inline-flex; align-items: center; gap: 8px; }
.market-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.market-status .dot.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.mk-app { display: grid; grid-template-columns: 230px minmax(0, 1fr) minmax(300px, 380px); gap: 0; margin: 0 32px; min-height: 560px; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: rgba(14, 16, 26, .85); }
.mk-side { padding: 18px 14px; border-right: 1px solid var(--line-2); display: grid; align-content: start; gap: 20px; }
.mk-search input { width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--ink); font: 14px var(--sans); }
.mk-search input:focus { outline: none; border-color: var(--cyan); }
.mk-group { display: grid; gap: 2px; }
.mk-group p { margin: 0 0 6px 8px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.mk-group button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: var(--dim); font: 14px var(--sans); text-align: left; cursor: pointer; transition: background-color .15s, color .15s; }
.mk-group button span { flex: 1; }
.mk-group button em { font: 12px var(--mono); font-style: normal; color: var(--faint); }
.mk-group button i { width: 8px; height: 8px; border-radius: 2px; background: var(--h); }
.mk-group button:hover { background: rgba(255, 255, 255, .04); color: var(--ink); }
.mk-group button[aria-pressed="true"] { background: rgba(99, 240, 255, .1); color: var(--ink); }
.mk-group button[aria-pressed="true"] em { color: var(--cyan); }
.mk-main { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.mk-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.mk-count { font-size: 12px; color: var(--dim); letter-spacing: .06em; }
.mk-sortl { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.mk-sort { background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 8px; font: 13px var(--sans); }
.mk-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; max-height: 620px; }
.mk-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 112px; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--ink); text-align: left; cursor: pointer; transition: background-color .15s, border-color .15s; }
.mk-row:hover { background: rgba(255, 255, 255, .035); }
.mk-row.sel { background: rgba(99, 240, 255, .07); border-color: rgba(99, 240, 255, .4); }
.mk-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font: 600 12px var(--mono); color: var(--h); background: color-mix(in srgb, var(--h) 14%, transparent); border: 1px solid color-mix(in srgb, var(--h) 40%, transparent); }
.mk-ico.big { width: 44px; height: 44px; font-size: 14px; }
.mk-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mk-title b { font: 500 15px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-budget { font: 600 15px var(--mono); }
.mk-budget::after { content: " USDC"; font: 400 11px var(--mono); color: var(--faint); }
.mk-row .m-pill { justify-self: end; }
.mk-empty { padding: 30px; color: var(--dim); text-align: center; }
.mk-list.enter li { animation: swap-in .35s cubic-bezier(.2, .7, .2, 1) both; }
.mk-list.enter li:nth-child(n+2) { animation-delay: 30ms; } .mk-list.enter li:nth-child(n+4) { animation-delay: 60ms; } .mk-list.enter li:nth-child(n+7) { animation-delay: 90ms; }
.mk-detail { padding: 22px; border-left: 1px solid var(--line-2); display: grid; align-content: start; gap: 14px; background: linear-gradient(180deg, rgba(25, 28, 46, .7), transparent); }
.mk-detail.enter { animation: swap-in .35s cubic-bezier(.2, .7, .2, 1) both; }
.mk-d-head { display: flex; justify-content: space-between; align-items: center; }
.mk-detail h3 { margin: 0; font: 600 22px/1.25 var(--sans); }
.mk-brief { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.55; }
.mk-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mk-facts dt { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.mk-facts dd { margin: 3px 0 0; font-size: 14px; }
.mk-tx { font-size: 12px; }
.mk-go { justify-self: start; }
@media (max-width: 1300px) { .mk-app { grid-template-columns: 210px minmax(0, 1fr); } .mk-detail { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-2); } }
@media (max-width: 760px) {
  .mk-app { grid-template-columns: minmax(0, 1fr); margin: 0 12px; }
  .mk-side { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .mk-group { display: flex; flex-wrap: wrap; gap: 6px; } .mk-group p { width: 100%; }
  .mk-group button { width: auto; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; }
  .mk-row { grid-template-columns: 32px minmax(0, 1fr) auto; } .mk-row .m-pill { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mk-list.enter li, .mk-detail.enter { animation: none; } }

/* ---------- demo page: full-width panels ---------- */
.demo-page .lab .howto, .demo-page .lab > .demo-preset-controls, .demo-page .demo-stage, .demo-page .demo-verify, .demo-page .demo-followup { margin-left: 32px; margin-right: 32px; }
.demo-page .demo-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(320px, .9fr); }
.demo-page .title-wrap { padding-left: 32px; padding-right: 32px; }
@media (max-width: 1300px) { .demo-page .demo-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 1100px) {
  .demo-page .lab .howto, .demo-page .lab > .demo-preset-controls, .demo-page .demo-stage, .demo-page .demo-verify, .demo-page .demo-followup { margin-left: 12px; margin-right: 12px; }
  .demo-page .demo-stage { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- even section spacing (~140px between sections) ---------- */
.scope { padding-bottom: 0; }
.cases { padding-top: 140px; }
.token { padding-top: 0; }
.tools { padding-top: 140px; padding-bottom: 0; }
.materials { padding-top: 140px; }
.faq { padding-top: 140px; }
.faq-page .faq { display: grid; grid-template-columns: minmax(220px, .77fr) minmax(0, 2fr); align-items: start; gap: clamp(24px, 5vw, 76px); width: min(1180px, calc(100% - 2 * var(--page-inset))); margin-inline: auto; padding-top: clamp(48px, 8vw, 96px); }
.faq-page .title-wrap { position: sticky; top: calc(var(--bar) + 30px); margin: 0; padding: 0; text-align: left; }
.faq-page .title-wrap p { margin: 16px 0; padding: 0; }
.faq-page .faq-list { display: grid; gap: 10px; margin: 0; border: 0; }
.faq-page .faq details { border: 1px solid var(--line-2); border-radius: 12px; background: #10121d; transition: background-color 180ms ease-out, border-color 180ms ease-out; }
.faq-page .faq details[open] { background-color: #102028; border-color: #44727a; }
.faq-page .faq summary { padding: 16px 20px; font-size: clamp(1rem, 1.7vw, 1.24rem); }
.faq-page .faq details p { max-width: 66ch; padding: 0 20px 20px; font-size: .98rem; line-height: 1.65; }
.faq-page .faq summary:hover { color: var(--cyan); }
.faq-page .faq summary::after { content: "+"; transition: transform 220ms cubic-bezier(.22, 1, .36, 1), color 180ms ease-out; }
.faq-page .faq details[open] summary::after { transform: rotate(45deg); }
@media (max-width: 760px) { .faq-page .faq { grid-template-columns: minmax(0, 1fr); } .faq-page .title-wrap { position: static; } }
@media (prefers-reduced-motion: no-preference) {
  .faq-page .faq details[open] p { animation: faq-answer-in 240ms cubic-bezier(.22, 1, .36, 1) both; }
  @keyframes faq-answer-in { from { opacity: 0; transform: translateY(-6px); } }
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .faq-page details { interpolate-size: allow-keywords; }
    .faq-page details::details-content { block-size: 0; overflow: clip; transition: block-size 240ms cubic-bezier(.22, 1, .36, 1), content-visibility 240ms allow-discrete; }
    .faq-page details[open]::details-content { block-size: auto; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq-page .faq details, .faq-page .faq summary::after { transition: none; }
}
.market .title-wrap { display: block; }
.market-status { display: flex; justify-content: center; }
.demo-page .market { padding-bottom: clamp(48px, 6vw, 80px); }
@media (max-width: 1100px) { .cases, .tools, .materials, .faq { padding-top: 90px; } }

/* ---------- section titles: a plain underline instead of the frame ---------- */
.gtitle { padding: 0 0 .2em; }
.gtitle::before { display: none; }
.gtitle::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #63f0ff, #3f8cff 50%, #2fe0a8); transform-origin: left; }
#scope-title { padding-bottom: 0; }
#scope-title::after { content: none; }
@media (prefers-reduced-motion: no-preference) {
  #scope > .title-wrap.scroll-enter { animation: none; }
  #scope > .title-wrap.scroll-enter #scope-title { animation: scope-title-jump 540ms cubic-bezier(.22, 1, .36, 1) both; }
  @keyframes scope-title-jump {
    0% { opacity: .2; transform: translateY(30px) scale(.97); }
    68% { opacity: 1; transform: translateY(-5px) scale(1.015); }
    100% { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .title-wrap.scroll-enter .gtitle::after { animation: underline-in .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
}
@keyframes underline-in { from { transform: scaleX(0); } }

/* ---------- real results ---------- */
.results { width: min(1180px, calc(100vw - 240px)); margin: 0 auto; display: grid; gap: 28px; }
.cases .title-wrap { text-align: center; margin: 0 auto 48px; }
.result-stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.result-stats div { padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 14px; background: linear-gradient(160deg, #191c2e, #10121e); }
.result-stats dt { font: 600 clamp(36px, 3.4vw, 52px)/1 var(--sans); background: linear-gradient(90deg, #63f0ff, #2fe0a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result-stats dd { margin: 8px 0 0; color: var(--dim); font-size: 15px; }
.result-table { width: 100%; border-collapse: collapse; font-size: 15px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.result-table th { text-align: left; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 16px; background: rgba(255, 255, 255, .02); border-bottom: 1px solid var(--line-2); }
.result-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.result-table tr:last-child td { border-bottom: 0; }
.result-table tbody tr { transition: background-color .15s; }
.result-table tbody tr:hover { background: rgba(99, 240, 255, .04); }
@media (max-width: 1100px) {
  .results { width: auto; margin: 0 20px; }
  .result-stats { grid-template-columns: minmax(0, 1fr); }
  .result-table thead { display: none; }
  .result-table tr { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .result-table td { padding: 0; border: 0; }
  .result-table td:nth-child(2) { grid-column: 2 / -1; }
  .result-table td:nth-child(4), .result-table td:nth-child(5) { font-size: 13px; color: var(--dim); }
}

/* ---------- proof engine (replaces the robot) ---------- */
.robot, .demo-robot { display: grid; place-items: center; }
.engine { width: min(100%, 560px); height: auto; max-height: 100%; aspect-ratio: 1; overflow: visible; }
.demo-robot .engine { width: min(100%, 300px); }
.engine .grid { fill: none; stroke: rgba(99, 240, 255, .08); stroke-width: 1; }
.engine .spin { fill: none; stroke: rgba(99, 240, 255, .35); stroke-width: 1.5; stroke-dasharray: 2 12; transform-origin: 300px 300px; animation: eng-spin 40s linear infinite; }
.engine[data-step="3"] .spin { stroke: rgba(255, 182, 92, .7); animation-duration: 4s; }
.engine .seg { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 10; stroke-linecap: round; transition: stroke .5s, filter .5s; }
.engine .seg.done { stroke: #63f0ff; filter: drop-shadow(0 0 6px rgba(99, 240, 255, .55)); }
.engine .seg.active { stroke: #ffb65c; filter: drop-shadow(0 0 10px rgba(255, 182, 92, .8)); animation: eng-pulse 1.6s ease-in-out infinite; }
.engine .num { font: 500 15px var(--mono); fill: rgba(255, 255, 255, .25); text-anchor: middle; dominant-baseline: middle; transition: fill .4s; }
.engine .num.done { fill: #63f0ff; } .engine .num.active { fill: #ffb65c; }
.engine .gl { fill: none; stroke: #63f0ff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.88); transform-origin: 300px 300px; transition: opacity .45s, transform .6s cubic-bezier(.2, .9, .3, 1.2); }
.engine .gl.on { opacity: 1; transform: none; filter: drop-shadow(0 0 12px rgba(99, 240, 255, .35)); }
.engine .scan { fill: rgba(99, 240, 255, .35); stroke: none; animation: eng-scan 1.8s ease-in-out infinite alternate; }
.engine .rule { stroke: rgba(99, 240, 255, .35); }
.engine .tick { stroke: #6bffd8; stroke-dasharray: 60; stroke-dashoffset: 60; }
.engine .gl-check.on .t1 { animation: eng-draw .5s .2s forwards; } .engine .gl-check.on .t2 { animation: eng-draw .5s .8s forwards; } .engine .gl-check.on .t3 { animation: eng-draw .5s 1.4s forwards; }
.engine .gl-escrow .coin { stroke: #ffb65c; }
.engine .gl-escrow.on .coin { animation: eng-drop 1.6s cubic-bezier(.5, 0, .5, 1) infinite; }
.engine .keyhole { stroke: rgba(99, 240, 255, .6); }
.engine .gl-prove .hex { transform-origin: 300px 300px; animation: eng-spin 9s linear infinite; }
.engine .gl-prove .hex2 { stroke: #ffb65c; transform-origin: 300px 300px; animation: eng-spin 5s linear infinite reverse; }
.engine .gl-prove .orbit { fill: #63f0ff; stroke: none; transform-origin: 300px 300px; animation: eng-spin 3s linear infinite; }
.engine .gl-paid { stroke: #6bffd8; }
.engine .gl-paid .shackle { transform-origin: 345px 270px; }
.engine .gl-paid.on .shackle { animation: eng-open .6s .1s cubic-bezier(.2, .9, .3, 1.3) forwards; }
.engine .gl-paid .coin { stroke: #ffb65c; }
.engine .gl-paid.on .coin { animation: eng-leave 1.8s .5s cubic-bezier(.5, 0, .5, 1) infinite; }
.engine .gl-files .ok { stroke: #6bffd8; stroke-dasharray: 120; stroke-dashoffset: 120; }
.engine .gl-files.on .ok { animation: eng-draw .7s 1.1s forwards; }
.engine .gl-files .key { stroke: #ffb65c; }
.engine .gl-files.on .key { animation: eng-key 1s .1s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes eng-spin { to { transform: rotate(360deg); } }
@keyframes eng-pulse { 50% { stroke-opacity: .55; } }
@keyframes eng-scan { from { transform: translateY(0); } to { transform: translateY(170px); } }
@keyframes eng-draw { to { stroke-dashoffset: 0; } }
@keyframes eng-drop { 0% { transform: translateY(-30px); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(80px); opacity: 1; } 85%, 100% { transform: translateY(95px); opacity: 0; } }
@keyframes eng-open { to { transform: translateY(-18px) rotate(-28deg); } }
@keyframes eng-leave { 0% { transform: translate(0, 0); opacity: 1; } 70% { transform: translate(150px, -110px); opacity: 0; } 100% { transform: translate(150px, -110px); opacity: 0; } }
@keyframes eng-key { from { transform: translate(-40px, 30px); opacity: 0; } to { transform: translate(70px, -50px); opacity: 1; } }
.engine.still *, .engine.still .gl { animation: none !important; }
.engine.still .tick, .engine.still .ok { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .engine * { animation: none !important; } .engine .tick, .engine .ok { stroke-dashoffset: 0; } }

/* ---------- intro statement ---------- */
.statement { padding: 140px var(--col) 0 32px; }
.statement .big { max-width: 24em; }
.statement em .w.lit { color: var(--cyan); }
@media (max-width: 1100px) { .statement { padding: 90px 20px 0; } }

/* ---------- layers keep their original colours ---------- */
.sys { --blue: #7d8cff; --violet: #a86bff; --pink: #ff5fd2; --grad: linear-gradient(100deg, var(--cyan), #7d8cff 35%, #a86bff 65%, #ff5fd2); }

/* ---------- marketplace: live flash and funding box ---------- */
.mk-row.flash { animation: mk-flash 1.6s ease-out; }
@keyframes mk-flash { 0% { background: rgba(255, 182, 92, .25); } 100% { background: transparent; } }
.m-pill.draft { color: var(--faint); }
.mk-fund { display: grid; gap: 8px; padding: 14px 10px 4px; border-top: 1px solid var(--line-2); }
.mk-fund p { margin: 0; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.mk-fund .cta { justify-self: start; padding: 10px 14px; font-size: 12px; }
.mk-fund span { font-size: 12px; color: var(--dim); line-height: 1.45; }
.mk-copy { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: none; color: var(--dim); font: 13px var(--sans); cursor: pointer; text-align: left; }
.mk-copy code { font: 12px var(--mono); color: var(--cyan); }
.mk-copy:hover { border-color: var(--cyan); color: var(--ink); }
.mk-copy.copied::after { content: "copied"; font: 11px var(--mono); color: var(--ok); }
.mk-copy.copied code { display: none; }

/* ---------- marketplace: totals, tabs, timeline, posting, watch, claim ---------- */
.market-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 310px); grid-template-areas: "title prompt" "totals prompt"; gap: 12px 20px; align-items: start; margin: 0 32px 16px; }
.mk-stats { grid-area: totals; align-self: end; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.mk-agent { grid-area: prompt; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); font-size: .86rem; }
.mk-agent h3 { margin: 0; font-size: 1rem; }
.mk-agent p { margin: 4px 0 0; color: var(--dim); overflow-wrap: anywhere; }
.mk-agent p.mk-agent-target { font-size: .78rem; }
.mk-agent details { margin-top: 5px; }
.mk-agent summary { width: fit-content; cursor: pointer; color: var(--dim); }
.mk-agent textarea { display: block; box-sizing: border-box; width: 100%; margin-top: 10px; padding: 12px; resize: vertical; border: 1px solid var(--line-2); border-radius: 8px; background: #07070d; color: inherit; font: inherit; overflow-wrap: anywhere; }
.mk-agent-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.mk-agent-actions button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.mk-agent [role="status"]:empty { position: absolute; }
.mk-agent [role="status"] { display: block; color: var(--dim); }
.mk-stats div { display: grid; align-content: space-between; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: linear-gradient(160deg, #161a2a, #0f111c); overflow-wrap: anywhere; }
.mk-stats dt { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.mk-stats dd { margin: 6px 0 0; }
.mk-stats dd b { font: 600 22px var(--sans); }
.mk-stats dd small { font: 11px var(--mono); color: var(--faint); }
.mk-bar { gap: 14px; flex-wrap: wrap; }
.mk-tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; }
.mk-tabs button { padding: 6px 12px; border: 0; border-radius: 7px; background: none; color: var(--dim); font: 500 13px var(--sans); cursor: pointer; }
.mk-tabs button[aria-selected="true"] { background: rgba(99, 240, 255, .12); color: var(--ink); }
.mk-bar .mk-count { margin-right: auto; }
.mk-post-btn { padding: 9px 14px; font-size: 12px; }
.mk-board { padding: 16px 18px; overflow-x: auto; }
.mk-board-note { margin: 0 0 14px; color: var(--dim); font-size: 13px; line-height: 1.5; }
.mk-star { color: var(--amber); font-size: 13px; }
.mk-watch { margin-left: auto; margin-right: 10px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--dim); font: 500 12px var(--sans); cursor: pointer; }
.mk-watch[aria-pressed="true"] { color: var(--amber); border-color: var(--amber); }
.mk-watchlist { display: flex; justify-content: space-between; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: none; color: var(--amber); font: 14px var(--sans); cursor: pointer; }
.mk-watchlist[aria-pressed="true"] { background: rgba(255, 182, 92, .1); }
.mk-watchlist em { font: 12px var(--mono); font-style: normal; }
.mk-sub { margin: 4px 0 0; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.mk-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line-2); display: grid; gap: 10px; }
.mk-timeline li { position: relative; }
.mk-timeline li::before { content: ""; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.mk-timeline li.ok::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.mk-timeline li.bad::before { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.mk-timeline a { display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.mk-timeline a:hover b { color: var(--cyan); }
.mk-timeline b { font: 500 14px var(--sans); }
.mk-timeline span { font-size: 11px; color: var(--faint); }
.mk-checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.mk-checks li { font-size: 13px; color: var(--dim); } .mk-checks li::before { content: "✓ "; color: var(--ok); }
.mk-claim { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(99, 240, 255, .3); border-radius: 10px; background: rgba(99, 240, 255, .04); }
.mk-claim pre { margin: 0; padding: 10px; background: var(--bg); border-radius: 8px; font: 12px/1.6 var(--mono); overflow-x: auto; }
.mk-post-title { font: 600 20px var(--sans); }
.mk-close { margin-left: auto; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 8px; background: none; color: var(--dim); cursor: pointer; }
.mk-form { display: grid; gap: 12px; }
.mk-form label { display: grid; gap: 5px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.mk-form input, .mk-form select { padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); color: var(--ink); font: 14px var(--sans); text-transform: none; letter-spacing: 0; }
.mk-form input:focus, .mk-form select:focus { outline: none; border-color: var(--cyan); }
.mk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-form .cta { justify-self: start; }
.mk-wallet { margin: 0; font-size: 12px; color: var(--dim); }
.mk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: s; }
.mk-steps li { counter-increment: s; display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 13px; color: var(--faint); }
.mk-steps li::before { content: counter(s) ". "; }
.mk-steps li span { font: 12px var(--mono); }
.mk-steps li.active { color: var(--ink); border-color: var(--amber); }
.mk-steps li.done { color: var(--ink); border-color: var(--ok); }
.mk-steps li.fail { color: var(--bad); border-color: var(--bad); }
.mk-toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border: 1px solid var(--line-2); border-radius: 12px; background: #11141f; color: var(--ink); font-size: 14px; box-shadow: 0 18px 40px -16px #000; transition: opacity .25s, transform .3s cubic-bezier(.2, .9, .3, 1.2); }
.mk-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1300px) { .mk-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .market-overview { margin: 0 12px 12px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "totals" "prompt"; }
  .mk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- escrow title keeps its purple frame ---------- */
.token .gbox-a::before { background: linear-gradient(100deg, #7d8cff, #a86bff 55%, #ff5fd2); }

/* ---------- demo page: marketplace title at the top, queue fills its panel ---------- */
.demo-page { padding-top: 0; }
.demo-page .market { padding-top: 22px; }
.demo-page .market .title-wrap { grid-area: title; margin: 0; padding: 0; text-align: left; }
.demo-page .market .gtitle { font-size: clamp(30px, 3vw, 46px); }
.demo-page .market-status { margin-top: 10px; text-align: left; justify-content: flex-start; }
.mk-app { height: clamp(560px, calc(100vh - 250px), 900px); min-height: 0; }
.mk-side, .mk-detail { overflow-y: auto; min-height: 0; }
.mk-main { min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
.mk-list, .mk-board { max-height: none; min-height: 0; overflow-y: auto; }
.mk-list { display: grid; align-content: start; gap: 2px; }
.mk-empty { align-self: center; }
@media (max-width: 1300px) { .mk-app { height: auto; } .mk-list { max-height: 520px; } }

.brand img { width: 34px; height: 34px; }
