:root {
  --bg: #0a0908;
  --bg2: #131110;
  --panel: #161412;
  --edge: #24201c;
  --ink: #e6e2dc;
  --body: #cfcac3;
  --mute: #8b857d;
  --dim: #5a554f;
  --ember: #ff8a3d;
  --ember2: #ffb37a;
  --paper: #e9e5df;
  --paperInk: #1a1714;
  --max: 1312px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 16px/1.5 Geist, Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.mono, code { font-family: "Geist Mono", ui-monospace, monospace; }
.em { color: var(--ember); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(10, 9, 8, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid #1a1715; }
.nav .wrap { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.logo svg { width: 22px; height: 22px; }
.links { display: flex; gap: 40px; font-size: 15px; color: #b9b3ab; }
.links a:hover { color: var(--ink); }
.right { display: flex; justify-content: flex-end; align-items: center; gap: 20px; font-size: 15px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 8px 15px; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, opacity .15s; }
.btn.light { background: var(--paper); color: var(--paperInk); }
.btn.light:hover { background: #fff; }
.btn.dark { background: #171513; color: var(--ink); box-shadow: inset 0 0 0 1px #2c2824; }
.btn.dark:hover { background: #211e1b; }
.btn.ember { background: var(--ember); color: #1d0d02; }
.btn.ember:hover { background: var(--ember2); }
.btn.big { padding: 11px 18px; font-size: 16px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); }

/* hero */
.hero { text-align: center; padding: 104px 0 32px; }
h1, h2 { font-weight: 500; color: var(--ink); margin: 0; }
h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1; letter-spacing: -.01em; }
.sub { font-size: 18px; color: #bdb7af; max-width: 700px; margin: 22px auto 0; line-height: 1.45; }
.ctas { display: flex; gap: 16px; justify-content: center; margin-top: 30px; }
.objects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 64px; }
.objects canvas { width: 100%; aspect-ratio: 1 / 1; display: block; }
.objects figure { margin: 0; }
.objects figcaption { font-size: 14px; color: var(--mute); margin-top: 6px; }
.ticker { display: flex; align-items: center; gap: 0; margin: 56px 0 0; border-top: 1px solid #1d1a17; padding-top: 22px; text-align: left; }
.ticker .lbl { font-size: 14px; color: var(--mute); line-height: 1.35; padding-right: 32px; border-right: 1px solid #2a2622; min-width: 170px; }
.ticker .row { display: flex; gap: 48px; padding-left: 40px; flex-wrap: wrap; }
.q { display: flex; align-items: baseline; gap: 10px; font-size: 22px; color: #9c958c; font-weight: 500; letter-spacing: -.01em; }
.q b { font: 400 17px "Geist Mono", monospace; color: var(--ink); }

/* sections */
.sec { padding-block: 120px; }
h2 { font-size: clamp(30px, 3vw, 38px); line-height: 1.16; letter-spacing: -.01em; }

/* tabs (Modal's product block) */
.tabs { display: grid; grid-template-columns: 170px minmax(0, 420px) minmax(0, 1fr); gap: 46px; margin-top: 72px; align-items: start; }
.tablist { display: grid; gap: 6px; }
.tab { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; border: 0; background: transparent; color: #b9b3ab; font-size: 16px; cursor: pointer; text-align: left; }
.tab svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.tab[aria-selected="true"] { background: #191715; color: var(--ink); box-shadow: inset 0 0 0 1px #2a2622; }
.tab[aria-selected="true"] svg { stroke: var(--ember); }
.tabcopy h3 { font-size: 18px; font-weight: 400; color: var(--ink); margin: 6px 0 6px; }
.tabcopy .lead { font-size: 18px; color: #a9a39a; margin: 0 0 40px; line-height: 1.35; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 38px 30px; margin-bottom: 40px; }
.feat h4 { font-size: 15px; font-weight: 400; color: var(--ink); margin: 0 0 8px; }
.feat p { font-size: 15px; color: #9c958c; margin: 0; line-height: 1.45; }
.stage { background: var(--bg2); border: 1px solid #1f1c19; border-radius: 4px; min-height: 500px; position: relative; overflow: hidden; display: grid; place-items: center; padding: 28px; }
.stage .bggrid { position: absolute; inset: 0; width: 100%; height: 100%; }
.pane { position: relative; z-index: 1; width: 100%; max-width: 520px; }
.pane[hidden] { display: none; }
.chipcode { display: inline-block; background: #1d1a17; border: 1px solid #2c2824; border-radius: 6px; padding: 20px 28px; font: 12px "Geist Mono", monospace; color: var(--ember2); }

/* composer inside the stage */
.composer { background: #1a1715; border: 1px solid #2c2824; border-radius: 10px; padding: 18px; display: grid; gap: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.composer .bar { display: flex; justify-content: space-between; font: 12px "Geist Mono", monospace; color: var(--mute); }
.composer textarea { width: 100%; min-height: 96px; resize: none; overflow: hidden; background: transparent; border: 0; color: var(--ink); font: 15px/1.55 Geist, sans-serif; outline: none; padding: 0; }
.rules { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid #2a2622; display: grid; gap: 7px; counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 26px 1fr; font-size: 14px; color: var(--body); line-height: 1.45; }
.rules li::before { content: counter(r); font: 12px "Geist Mono", monospace; color: var(--ember); padding-top: 2px; }
.rules code { background: #24201c; color: var(--ember2); border-radius: 4px; padding: 0 5px; font-size: 12.5px; word-break: break-word; }
.guess { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.guess li { font-size: 13px; color: var(--mute); }
.guess li::before { content: "~ "; color: var(--dim); font-family: "Geist Mono", monospace; }
.guess li.err { color: #f0a08a; }
.fund { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid #2a2622; padding-top: 14px; }
.fund label { display: flex; align-items: center; gap: 8px; background: #121010; border: 1px solid #2c2824; border-radius: 999px; padding: 0 6px 0 14px; font-size: 13px; color: var(--mute); }
.fund input { width: 90px; background: transparent; border: 0; color: var(--ink); font: 15px "Geist Mono", monospace; padding: 9px 4px; outline: none; }
.status { font-size: 13px; color: #b9b3ab; min-height: 1.2em; }
.status.bad { color: #f0a08a; }
.status a { color: var(--ember2); text-decoration: underline; text-underline-offset: 3px; }
.hash { font: 11px "Geist Mono", monospace; color: var(--dim); word-break: break-all; }
details.raw summary { cursor: pointer; font-size: 13px; color: var(--mute); list-style: none; }
details.raw summary::-webkit-details-marker { display: none; }
details.raw textarea { margin-top: 8px; min-height: 180px; background: #110f0e; border: 1px solid #2a2622; border-radius: 6px; padding: 10px; font: 12px/1.5 "Geist Mono", monospace; color: var(--body); resize: vertical; overflow: auto; }

/* market pane */
.market { display: grid; gap: 8px; }
.mrow { display: grid; grid-template-columns: 110px 1fr 92px; align-items: center; gap: 14px; background: #1a1715; border: 1px solid #2a2622; border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.mrow .barw { height: 6px; background: #24201c; border-radius: 3px; position: relative; }
.mrow .barw i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #7a3a12, var(--ember)); }
.mrow .barw s { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); }
.mrow .mono { text-align: right; color: var(--ink); }
.mnote { font-size: 13px; color: var(--mute); margin-top: 6px; }
.mnote b { color: var(--ink); font-weight: 400; }

/* run + settle panes */
.term { background: #121010; border: 1px solid #2c2824; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.term .top { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #24201c; }
.term .top i { width: 9px; height: 9px; border-radius: 50%; background: #2e2a26; }
.term pre { margin: 0; padding: 16px; font: 12.5px/1.65 "Geist Mono", monospace; color: #c9c3bb; white-space: pre-wrap; word-break: break-word; }
.term .k { color: var(--ember); }
.term .c { color: var(--dim); }

/* numbered line-art trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #1f1c19; border-left: 0; margin-top: 72px; background: #0e0d0c; }
.trio > div { border-left: 1px solid #1f1c19; padding: 18px 26px 40px; min-height: 440px; display: flex; flex-direction: column; }
.trio .n { font: 12px "Geist Mono", monospace; color: var(--mute); }
.trio svg { width: 72%; max-width: 230px; margin: 34px auto 30px; display: block; }
.trio h3 { font-size: 15px; font-weight: 400; color: var(--ink); margin: auto 0 10px; }
.trio p { font-size: 14px; color: #8f897f; margin: 0; line-height: 1.5; }

/* dashboard row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.split p { margin: 0; font-size: 16px; color: #bdb7af; max-width: 470px; justify-self: end; }
.dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.card { background: var(--bg2); border: 1px solid #1f1c19; border-radius: 4px; padding: 22px; min-height: 340px; display: flex; flex-direction: column; }
.card .in { background: #1a1715; border: 1px solid #2a2622; border-radius: 8px; padding: 14px; flex: 1; font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.card .hd { display: flex; justify-content: space-between; color: var(--ink); font-size: 13px; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 12px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.card h3 { font-size: 15px; font-weight: 400; color: var(--ink); margin: 18px 0 6px; }
.card p { font-size: 14px; color: #8f897f; margin: 0; }
.tbl { width: 100%; border-collapse: collapse; font: 12px "Geist Mono", monospace; }
.tbl td { padding: 6px 0; border-top: 1px solid #24201c; color: #b9b3ab; }
.tbl td:last-child { text-align: right; color: var(--ink); }
.tbl tr:first-child td { border-top: 0; }
.big { font: 500 40px Geist, sans-serif; color: var(--ink); letter-spacing: -.02em; margin-top: auto; }
.empty { color: var(--mute); font-size: 13px; }

/* light band */
.paper { background: var(--paper); color: var(--paperInk); }
.paper h2 { color: var(--paperInk); }
.paper .sec { padding-block: 110px; }
.signed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 56px; }
.signed > div { background: #dcd7d0; border-radius: 4px; padding: 26px 24px 30px; min-height: 196px; display: flex; flex-direction: column; }
.signed .n { font: 12px "Geist Mono", monospace; color: #8a8278; }
.signed h3 { font-size: 18px; font-weight: 500; margin: auto 0 8px; letter-spacing: -.01em; }
.signed p { margin: 0; font-size: 14px; color: #4d4740; line-height: 1.5; }

/* final cta */
.final { position: relative; padding: 110px 0 0; overflow: hidden; }
.final .wrap { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 24px; }
.final h2 { font-size: clamp(34px, 3.6vw, 44px); }
.final .ctas { justify-content: flex-start; }
.final .fine { font: 12px "Geist Mono", monospace; color: var(--mute); margin-top: 24px; }
.final canvas { width: 100%; aspect-ratio: 1.45 / 1; display: block; }

/* footer */
.foot { border-top: 1px solid #1a1715; padding: 64px 0 40px; margin-top: 40px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; font-size: 14px; }
.foot .cols div { display: grid; gap: 10px; align-content: start; }
.foot .cols b { font-weight: 400; color: var(--ink); margin-bottom: 4px; }
.foot .cols a, .foot .cols span { color: #8f897f; word-break: break-all; }
.foot .cols a:hover { color: var(--ink); }
.foot .logo { font-size: 24px; align-self: start; }
.foot .base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 22px; border-top: 1px solid #1a1715; font-size: 13px; color: var(--mute); }

/* jobs page */
.jobs { display: grid; gap: 16px; margin-top: 48px; }
.job { background: var(--bg2); border: 1px solid #1f1c19; border-radius: 4px; padding: 22px; display: grid; gap: 16px; }
.job .head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.job .id { color: var(--ink); font-size: 18px; font-weight: 500; }
.state { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: #1d1a17; box-shadow: inset 0 0 0 1px #2c2824; color: #b9b3ab; display: inline-flex; align-items: center; gap: 7px; }
.state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.state.running { color: var(--ember2); }
.state.running::before, .state.waiting::before { background: var(--ember); box-shadow: 0 0 8px var(--ember); animation: pulse 1.6s infinite; }
.state.waiting::before { background: #b9b3ab; box-shadow: none; }
.job .acts { margin-left: auto; }
.figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.fig { background: #1a1715; border: 1px solid #2a2622; border-radius: 8px; padding: 12px 14px; display: grid; gap: 4px; }
.fig span:first-child { font-size: 12px; color: var(--mute); }
.fig .mono { color: var(--ink); font-size: 15px; }
.meter { height: 4px; background: #24201c; border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, #7a3a12, var(--ember)); }
.log { display: grid; gap: 0; font-size: 13.5px; }
.log div { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; padding: 8px 0; border-top: 1px solid #1f1c19; color: #b9b3ab; }
.log time { font: 12px "Geist Mono", monospace; color: var(--mute); padding-top: 1px; }
.log a { font-size: 12.5px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .7); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.sheet { width: min(580px, 100%); max-height: 84vh; overflow: auto; background: #151311; border: 1px solid #2c2824; border-radius: 10px; padding: 22px; display: grid; gap: 14px; }
.sheet h3 { margin: 0; font-size: 19px; font-weight: 500; color: var(--ink); }
.sheet p { margin: 0; color: #b9b3ab; font-size: 14px; }
.sheet pre { margin: 0; white-space: pre-wrap; word-break: break-all; font: 12px/1.55 "Geist Mono", monospace; color: #b9b3ab; background: #0e0d0c; border-radius: 6px; padding: 14px; }
.sheet .pills { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 1080px) {
  .tabs { grid-template-columns: 1fr; gap: 28px; }
  .tablist { display: flex; flex-wrap: wrap; }
  .stage { min-height: 440px; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { grid-template-columns: auto 1fr; }
  .links { display: none; }
  .hero { padding-top: 72px; }
  .objects { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ticker { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ticker .lbl { border: 0; padding: 0; }
  .ticker .row { padding: 0; gap: 18px 32px; }
  .sec { padding-block: 80px; }
  .feat { grid-template-columns: 1fr; gap: 22px; }
  .trio, .dash, .signed { grid-template-columns: 1fr; }
  .trio { border-left: 1px solid #1f1c19; }
  .trio > div { border-left: 0; border-top: 1px solid #1f1c19; min-height: 0; }
  .trio > div:first-child { border-top: 0; }
  .split, .final .wrap { grid-template-columns: 1fr; }
  .split p { justify-self: start; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .mrow { grid-template-columns: 82px 1fr 78px; }
  .log div { grid-template-columns: 1fr auto; }
  .log time { grid-column: 1 / -1; }
  .stage { padding: 14px; min-height: 0; }
}
@media (max-width: 420px) {
  .right .hide-xs { display: none; }
  .ctas { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* app page */
.appwrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 96px; align-items: start; }
.appsub { margin: 12px 0 24px; text-align: left; max-width: none; font-size: 16px; }
.appmain .composer { box-shadow: none; }
.appside { display: grid; gap: 28px; position: sticky; top: 88px; }
.appcard { min-height: 0; }
.appnote { font-size: 13px; color: var(--mute); margin: 10px 0 0; }
.appjobs .hd2 { display: flex; justify-content: space-between; align-items: baseline; }
.appjobs h3 { margin: 0; font-size: 18px; font-weight: 500; color: var(--ink); }
.appjobs .hd2 a { font-size: 13px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.appjobs .jobs { margin-top: 14px; }
.appjobs .figs { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.appjobs .log div { grid-template-columns: 1fr auto; }
.appjobs .log time { grid-column: 1 / -1; }

/* wallet list */
.wlist { display: grid; gap: 8px; }
.wrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #2c2824; background: #1a1715; color: var(--ink); font-size: 15px; cursor: pointer; text-align: left; }
.wrow:hover { background: #221e1b; border-color: #3a3530; }
.wrow img, .wicon { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.wicon { display: grid; place-items: center; color: #140a02; font-weight: 600; }
.wname { flex: 1; }
.wstate { font-size: 12.5px; color: var(--mute); }
.right .btn.ember { margin-right: 2px; }

@media (max-width: 960px) {
  .appwrap { grid-template-columns: 1fr; padding-top: 32px; }
  .appside { position: static; }
}
@media (max-width: 520px) {
  .right .btn.ember { padding: 8px 12px; }
  .right .btn.light { padding: 8px 12px; }
}
