:root {
  --bg: #0d0e11;
  --panel: rgba(22, 23, 28, 0.78);
  --panel-2: rgba(30, 31, 37, 0.9);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f4f5;
  --dim: #9a9ba3;
  --accent: #ff6a13;
  --accent-soft: rgba(255, 106, 19, 0.14);
  --good: #3fd68a;
  --bad: #ff5d5d;
  --r: 18px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 50% at 78% 18%, rgba(255, 106, 19, 0.16), transparent 70%),
              radial-gradient(50% 40% at 10% 90%, rgba(255, 106, 19, 0.07), transparent 70%);
}
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0.55; pointer-events: none; }
a { color: inherit; }
img { max-width: 100%; }
.mono { font-family: var(--mono); }
.small { font-size: 13px; }
.dim { color: var(--dim); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.02; }
h3 { font-size: 24px; margin-bottom: 6px; }
.label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; display: block; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font: 600 15px/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s, background .18s, border-color .18s, box-shadow .18s, opacity .18s; color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #140700; box-shadow: 0 8px 30px rgba(255, 106, 19, .28); }
.btn-primary:hover { box-shadow: 0 10px 40px rgba(255, 106, 19, .45); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-danger { background: transparent; border-color: rgba(255, 93, 93, .4); color: var(--bad); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-xs { padding: 7px 12px; font-size: 12px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(13, 14, 17, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px var(--display); letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; color: var(--dim); font-size: 14px; font-weight: 500; transition: color .15s; }
.links a:hover { color: var(--text); }

/* hero */
main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; padding: 28px 0 10px; }
.hero-copy { min-width: 0; container-type: inline-size; }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.wordmark { font-size: clamp(38px, 15cqi, 120px); line-height: .92; font-weight: 800; letter-spacing: -0.045em; white-space: nowrap; }
.section, #top { scroll-margin-top: 70px; }
.wordmark span { color: var(--accent); }
.lede { font: 700 clamp(22px, 2.6vw, 32px)/1.15 var(--display); margin: 18px 0 8px; letter-spacing: -0.01em; }
.sub { color: #c9cad0; max-width: 520px; margin: 0 0 26px; font-size: 17px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: flex; justify-content: center; min-width: 0; }
.hero-art img { width: min(470px, 100%); }
.paybanner {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; margin-bottom: 18px;
  background: var(--accent-soft); border: 1px solid rgba(255, 106, 19, .4); font-size: 14px;
}
.paybanner a { color: var(--accent); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 106, 19, .6); animation: ping 1.6s infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(255, 106, 19, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 19, 0); } }

.switchrow { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.mmswitch {
  position: relative; width: 64px; height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: #2a2b31;
  cursor: pointer; flex: none; transition: background .25s;
}
.mmswitch .knob { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.mmswitch[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.mmswitch[aria-checked="true"] .knob { transform: translateX(28px); }
.switchlabel { font-size: 14px; color: var(--dim); }
.switchlabel b { color: var(--text); }

/* live strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 0; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.tile .k { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.tile .v { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.v.ok { color: var(--good); }
.v.warn { color: var(--bad); }

/* sections */
.section { padding: 88px 0 0; }
.sechead { margin-bottom: 26px; max-width: 760px; }
.secsub { color: var(--dim); font-size: 17px; margin: 12px 0 0; }

/* demo console */
.console { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.console-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); flex-wrap: wrap; }
.console-top .btn { margin-left: auto; }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: #3a3b42; }
.lights i:first-child { background: var(--accent); }
.steps { list-style: none; margin: 0; padding: 8px 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.steps li { display: flex; gap: 12px; padding: 16px; border-right: 1px solid var(--line); opacity: .35; transition: opacity .4s; min-width: 0; }
.steps li:last-child { border-right: 0; }
.steps li.done, .steps li.now { opacity: 1; }
.steps li.now .n { background: var(--accent); color: #140700; }
.steps .n { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .06); transition: background .3s; }
.steps div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.steps b { font-size: 14.5px; line-height: 1.25; }
.steps .val { font-size: 11.5px; color: var(--accent); overflow-wrap: anywhere; line-height: 1.45; white-space: pre-line; min-height: 3em; }
.steps em { font-style: normal; font-size: 12.5px; color: var(--dim); line-height: 1.45; }
.progress { height: 3px; background: rgba(255, 255, 255, .05); }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s; }

.explorer { padding: 20px; border-top: 1px solid var(--line); }
.explorer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.explorer-head p { margin: 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.segbtn { border: 0; background: transparent; color: var(--dim); padding: 8px 14px; border-radius: 999px; font: 600 13px var(--body); cursor: pointer; transition: background .2s, color .2s; }
.segbtn.on { background: var(--text); color: #111; }
.segbtn[data-mode="on"].on { background: var(--accent); color: #140700; }
.table { display: grid; gap: 8px; }
.trow { display: grid; grid-template-columns: 110px 1fr 120px; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); font-size: 13px; animation: rise .45s both; }
.trow.head { background: none; border: 0; padding: 0 14px; color: var(--dim); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; animation: none; }
.trow .to { overflow-wrap: anywhere; }
.trow .amt { text-align: right; }
.same { color: var(--bad); }
.fresh { color: var(--good); }
.tally { margin: 14px 2px 0; font-size: 13px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* app shell */
.appshell { display: grid; grid-template-columns: 220px 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-height: 460px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; background: rgba(0, 0, 0, .18); }
.tab { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; border: 0; background: none; color: var(--dim); font: 600 14px var(--body); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.tab:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.tab.on { background: var(--accent-soft); color: var(--text); }
.tab.on .ic { color: var(--accent); }
.ic { width: 18px; text-align: center; }
.pill { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.side-foot { margin-top: auto; padding: 12px; line-height: 1.7; }
.panes { padding: clamp(18px, 3vw, 30px); min-width: 0; }
.pane { display: none; animation: rise .35s both; }
.pane.on { display: block; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.card-btn { position: relative; text-align: left; padding: 20px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 8px; font: 14px/1.5 var(--body); transition: border-color .2s, background .2s, transform .2s; }
.card-btn:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.card-btn b { font: 700 18px var(--display); }
.card-btn span { color: var(--dim); }
.card-btn .tagline { position: absolute; top: 16px; right: 16px; color: var(--accent); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.linkgrid { display: grid; grid-template-columns: 1fr 220px; gap: 26px; align-items: start; }
.linkgrid > div { min-width: 0; }
.linkbox { padding: 14px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px dashed rgba(255, 106, 19, .5); font-size: 13px; overflow-wrap: anywhere; color: #ffd6bd; }
.facts { padding-left: 18px; color: var(--dim); margin: 14px 0 0; }
.facts li { margin: 6px 0; }
.qrwrap { text-align: center; }
.qr { background: #fff; padding: 12px; border-radius: 14px; display: inline-block; line-height: 0; }
.qr img, .qr canvas { width: 180px !important; height: 180px !important; }
.input { width: 100%; flex: 1 1 220px; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .35); color: var(--text); font-size: 14px; outline: none; transition: border-color .15s; resize: vertical; }
.input:focus { border-color: var(--accent); }
textarea.input { display: block; margin-bottom: 14px; }
.panehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.panehead p { margin: 0; }
.scanbar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .05); margin: 14px 0; overflow: hidden; }
.scanbar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.inbox { display: grid; gap: 8px; }
.pay { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); font-size: 13.5px; }
.pay input { accent-color: var(--accent); width: 18px; height: 18px; }
.pay .meta { min-width: 0; }
.pay .meta a { color: var(--dim); overflow-wrap: anywhere; }
.pay .amt { font-weight: 700; text-align: right; }
.pay.swept { opacity: .55; }
.badge { display: inline-block; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: rgba(63, 214, 138, .14); color: var(--good); margin-left: 6px; letter-spacing: .04em; }
.badge.gray { background: rgba(255, 255, 255, .07); color: var(--dim); }
.empty { padding: 18px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--dim); font-size: 14px; display: flex; gap: 16px; align-items: center; }
.empty .ghost { font: 700 30px var(--display); color: var(--accent); opacity: .7; }
.sweep { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 14px; }
.paygrid > div { min-width: 0; }
.preview { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-size: 13.5px; }
.preview dl { margin: 0; display: grid; gap: 10px; }
.preview dt { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); }
.preview dd { margin: 2px 0 0; font-family: var(--mono); overflow-wrap: anywhere; }
.preview .hl { color: var(--accent); }
.keyrow { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.keyrow p { margin: 2px 0 0; }
.keyrow .row { margin: 6px 0 0; }
.secret { padding: 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); font-size: 12.5px; overflow-wrap: anywhere; color: var(--dim); }
.restore { margin-top: 22px; }
.rpc { margin-top: 18px; }
.rpc summary { cursor: pointer; color: var(--dim); }
#forget { margin-top: 16px; }

/* honest */
.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.col li { padding-left: 28px; position: relative; color: #d6d7dc; }
.col li::before { position: absolute; left: 0; top: 0; font-family: var(--mono); font-weight: 700; }
.good li::before { content: "✓"; color: var(--good); }
.bad li::before { content: "○"; color: var(--dim); }
.bad .label { color: var(--dim); }

/* token */
.token { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; }
.token-art { display: flex; justify-content: center; }
.token-art img { width: min(380px, 100%); }
.token-copy { min-width: 0; }
.token h2 { font-size: clamp(40px, 7vw, 76px); }
.cabox { margin: 22px 0 6px; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.cabox .label { color: var(--dim); }
.carow { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.carow code { font-size: 14px; overflow-wrap: anywhere; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; color: var(--dim); }

.foot { max-width: 1240px; margin: 90px auto 0; padding: 26px clamp(16px, 4vw, 40px) 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 560px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100; background: #1d1e24; border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; font-size: 14px; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* entrance: content shows anyway after 1.5 s */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
.reveal-fallback .reveal { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps li:last-child { border-bottom: 0; }
  .links { display: none; }
  .nav #navConnect { margin-left: auto; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 18px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(260px, 70vw); }
  .strip { grid-template-columns: 1fr 1fr; }
  .appshell { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .tab { white-space: nowrap; flex: none; }
  .side-foot { display: none; }
  .choice, .linkgrid, .paygrid, .honest, .token { grid-template-columns: 1fr; }
  .token-art img { width: min(260px, 70vw); }
  .trow { grid-template-columns: 70px 1fr 80px; gap: 8px; font-size: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
