:root {
  --bg: #050608; --s1: #0a0c0f; --s2: #0f1216; --line: #1a1e24; --line2: #262b33;
  --text: #eef1f4; --muted: #8a93a0; --dim: #545c67;
  --ice: #8fe9ff; --ice-d: #3fb8d6; --gold: #ffd27a; --ok: #6ff0a8; --bad: #ff6b6b;
  --sans: 'Geist', system-ui, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--ice); color: var(--bg); }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 32px; background: rgba(5, 6, 8, .72); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .04); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a { text-decoration: none; } .nav-links a:hover, .nav-links a.on { color: var(--text); }
.nav-r { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); background: var(--s2); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; text-decoration: none; transition: border-color .2s, background .2s, transform .15s; white-space: nowrap; }
.btn:hover { border-color: #3a414b; }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { background: #fff; transform: translateY(-1px); }
.btn.big { padding: 15px 26px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.ca-chip { display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 14px; border: 1px solid var(--line2); border-radius: 999px; background: var(--s1); font-size: 13px; max-width: 100%; }
.ca-chip b { font-weight: 700; }
.ca-chip code { font: 12.5px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-chip button { border: 0; background: var(--s2); border-radius: 999px; padding: 5px 10px; font: 500 11px var(--mono); color: var(--muted); }
.ca-chip button:hover { color: var(--text); }

/* landing */
.hero { position: relative; min-height: calc(100vh - 64px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 40px 32px 80px; max-width: 1360px; margin: 0 auto; }
#flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-copy { position: relative; z-index: 1; grid-column: 2; max-width: 600px; }
.eyebrow { font: 500 12.5px var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 12px var(--ice); }
h1 { font-size: clamp(52px, 7vw, 108px); line-height: .9; letter-spacing: -.055em; font-weight: 700; margin: 0 0 26px; }
h1 em { font-style: normal; color: var(--ice); }
.lede { font-size: 19px; color: #b3bbc5; max-width: 500px; margin: 0 0 32px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.ticks { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.ticks span { display: flex; align-items: center; gap: 7px; } .ticks span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ice); }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; font: 12px var(--mono); color: var(--dim); letter-spacing: .08em; }
.route b { color: var(--muted); font-weight: 500; } .route i { width: 22px; height: 1px; background: var(--line2); }

.sec { max-width: 1200px; margin: 0 auto; padding: 110px 32px; }
.sec-h { max-width: 720px; margin-bottom: 56px; }
.sec-h h2 { font-size: clamp(36px, 4.6vw, 62px); letter-spacing: -.045em; line-height: .98; font-weight: 700; margin: 0 0 18px; }
.sec-h p { color: #a6aeb8; font-size: 18px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: linear-gradient(180deg, var(--s1), rgba(10, 12, 15, .6)); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--s2); border: 1px solid var(--line2); margin-bottom: 22px; color: var(--ice); }
.card .ic svg { width: 20px; height: 20px; }
.card h3 { font-size: 21px; letter-spacing: -.02em; margin: 0 0 8px; }
.card p { color: #9aa3ae; margin: 0; font-size: 15.5px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 30px 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--s1); }
.step .n { font: 500 13px var(--mono); color: var(--ice); }
.step h3 { font-size: 24px; letter-spacing: -.025em; margin: 12px 0 10px; }
.step p { color: #9aa3ae; margin: 0; }
.step .tag { display: inline-block; margin-top: 18px; font: 11.5px var(--mono); color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 10px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.vs { display: grid; gap: 14px; }
.vs-row { border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; background: var(--s1); }
.vs-row span { font: 500 11.5px var(--mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.vs-row .bars { display: flex; gap: 6px; align-items: flex-end; height: 64px; margin-top: 14px; }
.vs-row .bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--line2); }
.vs-row.good .bars i { background: linear-gradient(180deg, var(--ice), var(--ice-d)); }
.vs-row p { margin: 12px 0 0; font-size: 14px; color: #9aa3ae; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.token { text-align: center; padding: 70px 32px; border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 50% 0, rgba(143, 233, 255, .08), transparent 60%), var(--s1); }
.token h2 { font-size: clamp(34px, 4vw, 54px); letter-spacing: -.045em; margin: 0 0 12px; }
.token p { color: #a6aeb8; max-width: 560px; margin: 0 auto 26px; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 600; letter-spacing: -.015em; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: #a0a9b4; margin: 12px 0 0; max-width: 700px; }
.foot { border-top: 1px solid var(--line); max-width: 1200px; margin: 0 auto; padding: 40px 32px 60px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; color: var(--dim); font-size: 13px; }
.foot p { margin: 0 0 10px; }
.foot .brand { color: var(--text); margin-bottom: 12px; font-size: 17px; }

/* app */
.app { max-width: 1180px; margin: 0 auto; padding: 36px 32px 80px; display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.app > *, .grid2 > *, .dep > * { min-width: 0; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--s1); margin-bottom: 18px; }
.tabs button { border: 0; background: none; border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 14px; color: var(--muted); }
.tabs button.on { background: var(--s2); color: var(--text); box-shadow: 0 0 0 1px var(--line2) inset; }
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }
.panel h2 { font-size: 24px; letter-spacing: -.03em; margin: 0 0 4px; }
.panel .sub { color: var(--muted); margin: 0 0 22px; font-size: 14.5px; }
.lbl { display: flex; justify-content: space-between; gap: 10px; font: 500 11.5px var(--mono); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin: 0 0 8px; }
.lbl a, .lbl button { text-transform: none; letter-spacing: 0; background: none; border: 0; color: var(--ice); padding: 0; font: 12px var(--mono); text-decoration: none; }
.box { background: var(--bg); border: 1px solid var(--line2); border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; transition: border-color .2s; }
.box:focus-within { border-color: #4a525d; }
.row { display: flex; align-items: center; gap: 12px; }
.amt { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 30px; font-weight: 600; letter-spacing: -.02em; padding: 0; }
.amt::-webkit-inner-spin-button { -webkit-appearance: none; }
.txt { width: 100%; background: none; border: 0; outline: 0; font: 14px var(--mono); padding: 2px 0; }
.tokbtn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); background: var(--s2); border-radius: 999px; padding: 6px 12px 6px 6px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.tokbtn img, .tokbtn .ph { width: 26px; height: 26px; border-radius: 50%; background: var(--line2); object-fit: cover; }
.tokbtn::after { content: '▾'; color: var(--muted); font-size: 11px; margin-left: 2px; }
.tokbtn.static::after { content: none; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.hint button { background: none; border: 0; padding: 0; color: var(--ice); font-size: 12.5px; }
.note { font-size: 13px; color: var(--muted); background: var(--bg); border: 1px dashed var(--line2); border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; }
.note b { color: var(--text); font-weight: 600; }
.note.warn { border-color: #5a4a24; color: #d9c08a; }
.quote { display: grid; gap: 8px; font-size: 14px; margin: 4px 0 18px; }
.quote div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.quote b { color: var(--text); font-weight: 600; text-align: right; }
.go { width: 100%; padding: 16px; border-radius: 16px; border: 0; background: var(--text); color: var(--bg); font-weight: 700; font-size: 16px; transition: background .2s, opacity .2s; }
.go:hover { background: #fff; } .go:disabled { opacity: .4; cursor: not-allowed; }
.err { color: var(--bad); font-size: 13.5px; margin: 10px 0 0; min-height: 1em; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1; border: 1px solid var(--line2); background: var(--bg); border-radius: 12px; padding: 10px 0; font-weight: 600; font-size: 14px; color: var(--muted); min-width: 56px; }
.seg button.on { color: var(--text); border-color: var(--ice-d); box-shadow: 0 0 0 1px var(--ice-d) inset; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.side { display: grid; gap: 16px; position: sticky; top: 90px; }
.side .panel { padding: 22px; }
.side h3 { font-size: 15px; margin: 0 0 12px; letter-spacing: -.01em; }
.side ol { margin: 0; padding-left: 18px; color: #a0a9b4; font-size: 13.5px; display: grid; gap: 8px; }
.side p { color: #a0a9b4; font-size: 13.5px; margin: 0; }

.chunks { display: grid; gap: 12px; margin-top: 8px; }
.chunk { border: 1px solid var(--line2); border-radius: 18px; padding: 16px 18px; background: var(--bg); }
.chunk-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.chunk-h b { font-size: 18px; letter-spacing: -.02em; }
.pill { font: 500 11.5px var(--mono); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.pill.due { color: var(--gold); border-color: #5a4a24; } .pill.ok { color: var(--ok); border-color: #1f5a3b; } .pill.bad { color: var(--bad); border-color: #5a2424; } .pill.live { color: var(--ice); border-color: #24505a; }
.chunk-m { font: 12.5px var(--mono); color: var(--muted); margin-top: 6px; word-break: break-all; }
.dep { display: grid; grid-template-columns: 132px 1fr; gap: 16px; margin-top: 14px; align-items: center; }
.dep .qr { background: #fff; border-radius: 12px; padding: 8px; width: 132px; height: 132px; }
.dep .qr img, .dep .qr svg { width: 100%; height: 100%; display: block; }
.copyline { display: flex; align-items: center; gap: 8px; background: var(--s2); border: 1px solid var(--line2); border-radius: 10px; padding: 8px 10px; font: 12.5px var(--mono); margin-top: 6px; }
.copyline code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copyline button { border: 0; background: none; color: var(--ice); font: 12px var(--mono); padding: 0; }
.chunk .actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chunk .actions .btn { padding: 8px 14px; font-size: 13px; }
.orders { display: grid; gap: 10px; }
.empty { color: var(--muted); font-size: 14px; padding: 30px 0; text-align: center; }
.progress { display: flex; gap: 6px; margin-top: 12px; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line2); }
.progress i.on { background: var(--ice); }

/* modal + menus */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-c { width: min(560px, 100%); max-height: 86vh; overflow: auto; background: var(--s1); border: 1px solid var(--line2); border-radius: 22px; padding: 24px; }
.modal-c h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.02em; }
.modal-c > p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.toklist { display: grid; gap: 4px; margin-top: 12px; }
.toklist button { display: flex; align-items: center; gap: 12px; border: 0; background: none; border-radius: 12px; padding: 10px; text-align: left; }
.toklist button:hover { background: var(--s2); }
.toklist img, .toklist .ph { width: 32px; height: 32px; border-radius: 50%; background: var(--line2); object-fit: cover; }
.toklist .t { flex: 1; min-width: 0; } .toklist .t b { display: block; } .toklist .t span { font-size: 12.5px; color: var(--muted); }
.toklist .v { text-align: right; font-size: 13.5px; } .toklist .v span { display: block; color: var(--muted); font-size: 12px; }
.keyrow { border: 1px solid var(--line2); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.keyrow b { font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #c4cbd3; margin: 14px 0; }
.check input { margin-top: 3px; accent-color: var(--ice); }
.wallets { display: grid; gap: 8px; }
.wallets button { display: flex; justify-content: space-between; border: 1px solid var(--line2); background: var(--s2); border-radius: 14px; padding: 14px 16px; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(16px); background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 999px; opacity: 0; transition: .25s; z-index: 60; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 340px; min-height: 0; }
  .hero-copy { grid-column: 1; }
  .cards, .steps, .trust { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .app { grid-template-columns: 1fr; }
  .side { position: static; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .nav { padding: 12px 16px; }
  .hero, .sec, .app { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 280px; }
  .sec { padding-top: 76px; padding-bottom: 76px; }
  .lede { font-size: 17px; }
  .foot { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .panel { padding: 20px; }
  .grid2 { grid-template-columns: 1fr; }
  .dep { grid-template-columns: 1fr; } .dep .qr { margin: 0 auto; }
  .nav-r .hide-s { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body:not(.landing) { background: radial-gradient(1100px 600px at 75% -10%, rgba(143, 233, 255, .07), transparent 60%), radial-gradient(900px 500px at 0% 0%, rgba(255, 210, 122, .05), transparent 55%), var(--bg); background-attachment: fixed; }
