:root {
  --bg: #08080a; --panel: #0f0f12; --panel2: #141418; --line: #222228; --line2: #2e2e36;
  --ink: #ecebe6; --dim: #8b8a93; --dim2: #5d5c66;
  --gold: #f4b728; --gold2: #ffcf5c; --goldbg: rgba(244, 183, 40, .08);
  --ok: #4ade80; --bad: #f87171;
  --r: 14px;
  --sans: 'Inter', system-ui, sans-serif; --head: 'Inter Tight', 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 520px at 78% -8%, rgba(244, 183, 40, .10), transparent 60%), radial-gradient(700px 500px at -10% 40%, rgba(244, 183, 40, .04), transparent 60%);
}
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.gold { color: var(--gold); }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(8, 8, 10, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font: 800 18px/1 var(--head); letter-spacing: .08em; }
.logo img { display: block; }
#nav { display: flex; gap: 4px; flex: 1; }
#nav a { padding: 8px 12px; border-radius: 9px; color: var(--dim); font-weight: 500; font-size: 14px; transition: color .15s, background .15s; }
#nav a:hover { color: var(--ink); }
#nav a.on { color: var(--ink); background: var(--panel2); }
.tr { display: flex; align-items: center; gap: 14px; }
.px { font-size: 12px; color: var(--dim); white-space: nowrap; }
.px b { color: var(--gold); font-weight: 500; }
.xl { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line2); border-radius: 9px; color: var(--dim); }
.xl:hover { color: var(--ink); border-color: var(--dim2); }
.burger { display: none; background: none; border: 1px solid var(--line2); border-radius: 9px; width: 38px; height: 34px; padding: 0 9px; cursor: pointer; }
.burger i { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 80px; }
.foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); font-size: 12px; color: var(--dim2); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--head); letter-spacing: -.02em; margin: 0; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--gold); }
.lede { color: var(--dim); font-size: 17px; max-width: 560px; }
.sec { margin-top: 90px; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-h h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 12px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 84px 0 20px; }
.hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: .98; font-weight: 800; margin: 22px 0 22px; }
/* the word gets blacked out (gold) by a bar sliding over it */
.redact { display: inline-block; padding: 0 .08em; margin: 0 -.02em; letter-spacing: 0; background: linear-gradient(var(--gold), var(--gold)) no-repeat left 60% / 0% 80%; animation: redact 1.1s .5s cubic-bezier(.7, 0, .2, 1) forwards; }
@keyframes redact { 70% { color: var(--ink); } to { background-size: 100% 80%; color: transparent; } }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.facts { display: flex; gap: 30px; margin-top: 44px; flex-wrap: wrap; }
.facts div { font-size: 13px; color: var(--dim); }
.facts b { display: block; font: 600 22px/1.2 var(--head); color: var(--ink); margin-bottom: 2px; }

/* the receipt on the right of the hero */
.receipt { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; font-family: var(--mono); font-size: 12.5px; position: relative; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.receipt::before { content: ''; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; background: linear-gradient(140deg, rgba(244,183,40,.5), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.receipt .rh { display: flex; justify-content: space-between; color: var(--dim2); padding-bottom: 14px; border-bottom: 1px dashed var(--line2); margin-bottom: 14px; }
.receipt .row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; }
.receipt .row span:first-child { color: var(--dim); }
.receipt .bar { display: inline-block; height: 12px; width: 120px; background: var(--ink); vertical-align: middle; border-radius: 2px; }
.receipt .bar.s { width: 70px; }
.receipt .ok { color: var(--ok); }
.receipt .tot { border-top: 1px dashed var(--line2); margin-top: 10px; padding-top: 14px; }
.receipt .ca { color: var(--gold); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 11px; border: 1px solid var(--gold); background: var(--gold); color: #120d00; font: 600 15px/1 var(--sans); cursor: pointer; transition: transform .12s, background .15s, opacity .15s; white-space: nowrap; }
.btn:hover { background: var(--gold2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--dim2); background: var(--panel2); }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.danger { background: transparent; border-color: rgba(248,113,113,.4); color: var(--bad); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; position: relative; overflow: hidden; }
.step .n { font: 500 12px var(--mono); color: var(--gold); letter-spacing: .1em; }
.step h3 { font-size: 20px; margin: 16px 0 8px; }
.step p { color: var(--dim); margin: 0; font-size: 14.5px; }
.step .ic { position: absolute; right: 20px; top: 20px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line2); display: grid; place-items: center; color: var(--gold); }

/* ---------- panels and forms ---------- */
.page-h { padding: 56px 0 30px; }
.page-h h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.06; margin: 14px 0 12px; }
.grid2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.panel h3 { font-size: 17px; margin-bottom: 4px; }
.panel .sub { color: var(--dim); font-size: 13.5px; margin: 0 0 20px; }
.f { display: block; margin-bottom: 16px; }
.f > span { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); margin-bottom: 7px; font-weight: 500; }
.f > span em { font-style: normal; color: var(--dim2); }
input, textarea { width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; color: var(--ink); font: 15px var(--sans); padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--goldbg); }
input.mono { font-family: var(--mono); font-size: 13.5px; }
textarea { resize: vertical; min-height: 84px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.drop { display: flex; align-items: center; gap: 16px; border: 1px dashed var(--line2); border-radius: 12px; padding: 14px; cursor: pointer; transition: border-color .15s, background .15s; margin-bottom: 16px; }
.drop:hover, .drop.over { border-color: var(--gold); background: var(--goldbg); }
.drop .pic { width: 64px; height: 64px; border-radius: 12px; background: var(--panel2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--dim2); }
.drop .pic img { width: 100%; height: 100%; object-fit: cover; }
.drop b { display: block; font-weight: 600; }
.drop small { color: var(--dim); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -6px; margin-bottom: 16px; }
.chip { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line2); font: 12.5px var(--mono); color: var(--dim); cursor: pointer; background: none; }
.chip:hover, .chip.on { border-color: var(--gold); color: var(--gold); }
.note { display: flex; gap: 10px; font-size: 13px; color: var(--dim); background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 4px 0 18px; }
.note b { color: var(--ink); font-weight: 600; }
.note svg { flex: none; color: var(--gold); margin-top: 2px; }
.sum { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 16px; font-size: 14px; }
.sum .l { display: flex; justify-content: space-between; padding: 5px 0; color: var(--dim); }
.sum .l b { color: var(--ink); font-weight: 500; font-family: var(--mono); font-size: 13.5px; }
.sum .l.t { color: var(--ink); font-weight: 600; padding-top: 10px; }
.sum .l.t b { color: var(--gold); font-size: 15px; }
.err { color: var(--bad); font-size: 13.5px; min-height: 20px; margin-top: 10px; }

/* the preview card */
.preview { position: sticky; top: 90px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 16px; }
.card .img { width: 96px; height: 96px; border-radius: 12px; background: var(--panel2); flex: none; overflow: hidden; display: grid; place-items: center; color: var(--dim2); }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .nm { font: 700 18px var(--head); }
.card .tk { font: 500 13px var(--mono); color: var(--gold); }
.card .ds { color: var(--dim); font-size: 13px; margin-top: 6px; word-break: break-word; }
.card .ca { font: 12px var(--mono); color: var(--dim2); margin-top: 8px; }
.card .ca b { color: var(--gold); font-weight: 500; }
.trail { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.trail div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--line); }
.trail div:last-child { border-bottom: 0; }
.trail span:first-child { color: var(--dim); }
.trail .x { font-family: var(--mono); color: var(--ok); }
.trail .no { font-family: var(--mono); color: var(--dim2); }

/* ---------- pay screen ---------- */
.pay { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: start; }
.qr { background: #fff; border: 1px solid var(--line2); border-radius: 14px; padding: 18px; box-shadow: 0 0 0 6px var(--goldbg); aspect-ratio: 1; display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; }
.amt { font: 700 clamp(26px, 4vw, 34px) var(--head); color: var(--gold); letter-spacing: -.01em; }
.amt small { font: 500 14px var(--mono); color: var(--dim); margin-left: 6px; }
.addr { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 11px 12px; font: 13px var(--mono); word-break: break-all; margin: 8px 0 16px; }
.addr span { flex: 1; }
.track { margin-top: 18px; }
.track .s { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--dim2); font-size: 14px; }
.track .s i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); flex: none; display: grid; place-items: center; }
.track .s.on { color: var(--ink); }
.track .s.on i { border-color: var(--gold); }
.track .s.on i::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 1.2s infinite; }
.track .s.done { color: var(--dim); }
.track .s.done i { border-color: var(--ok); background: var(--ok); }
.track .s.done i::after { content: ''; width: 8px; height: 5px; border: 2px solid #08080a; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.track .s.bad { color: var(--bad); }
.track .s.bad i { border-color: var(--bad); }
@keyframes pulse { 50% { opacity: .3; } }
.timer { font: 13px var(--mono); color: var(--dim); }

/* ---------- coins + wallets ---------- */
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.coin { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: center; transition: border-color .15s; }
.coin:hover { border-color: var(--line2); }
.coin img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--panel2); flex: none; }
.coin .m { flex: 1; min-width: 0; }
.coin .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coin .tk { font: 12px var(--mono); color: var(--gold); }
.coin .mc { font: 12px var(--mono); color: var(--dim); text-align: right; }
.coin .up { color: var(--ok); } .coin .dn { color: var(--bad); }
.empty { border: 1px dashed var(--line2); border-radius: 14px; padding: 40px; text-align: center; color: var(--dim); }
.wl { display: grid; gap: 14px; }
.w { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.w .wh { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.w .wt { display: flex; align-items: center; gap: 12px; }
.w .tag { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line2); color: var(--dim); }
.w .tag.g { color: var(--gold); border-color: rgba(244,183,40,.35); }
.w .ad { font: 13px var(--mono); color: var(--dim); }
.w .bal { font: 600 16px var(--mono); }
.w .toks { margin-top: 12px; display: grid; gap: 6px; }
.w .tok { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.w .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.w .msg { font-size: 13px; color: var(--dim); margin-top: 10px; min-height: 18px; }

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

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--panel2); border: 1px solid var(--line2); color: var(--ink); padding: 11px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .7s linear infinite; display: inline-block; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero, .grid2, .pay { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .preview { position: static; }
  .pay .qr { max-width: 300px; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  #nav.open { display: flex; }
  .px { display: none; }
  .row3 { grid-template-columns: 1fr; }
  .top { gap: 12px; justify-content: space-between; }
}
@media (max-width: 480px) {
  .row2 { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .facts { gap: 20px; }
}
