:root {
  --bg: #031114; --bg2: #04181c; --card: #0a2329; --card2: #0e2d34; --line: #17404a; --line2: #22566299;
  --ink: #eaf6f8; --ink2: #9fc0c7; --ink3: #6a8d95;
  --cyan: #34b7dd; --cyan2: #6fcde8; --teal: #2d7388; --cream: #f8f7f4; --fire: #ff8a3d; --bad: #ff6b6b; --ok: #53d6a4;
  --r: 20px; --mono: 'DM Mono', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, output { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* sky: a cyan portal glow behind the hero + a faint star field */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(1200px 700px at 72% -10%, #0d3a45 0%, transparent 60%), linear-gradient(180deg, #04181c 0%, var(--bg) 70%); }
.glow { position: absolute; width: 760px; height: 760px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, #34b7dd33 0%, #34b7dd10 40%, transparent 70%); filter: blur(10px); animation: breathe 7s ease-in-out infinite; }
.stars { position: absolute; inset: 0; opacity: .5; background-image: radial-gradient(1px 1px at 12% 22%, #cfeff7 50%, transparent 51%), radial-gradient(1px 1px at 33% 68%, #cfeff7 50%, transparent 51%), radial-gradient(1.5px 1.5px at 58% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 81% 44%, #cfeff7 50%, transparent 51%), radial-gradient(1px 1px at 91% 82%, #cfeff7 50%, transparent 51%), radial-gradient(1px 1px at 6% 88%, #cfeff7 50%, transparent 51%), radial-gradient(1.5px 1.5px at 46% 92%, #fff 50%, transparent 51%); }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px max(16px, calc((100vw - 1180px) / 2)); background: #031114cc; backdrop-filter: blur(14px); border-bottom: 1px solid #17404a66; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand b { font-weight: 800; letter-spacing: .06em; font-size: 18px; }
.links { display: flex; gap: 22px; margin-right: auto; }
.links a { text-decoration: none; color: var(--ink2); font-weight: 500; font-size: 15px; }
.links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); }
.icon-btn:hover { color: var(--ink); border-color: var(--teal); }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
#nav-x svg { fill: currentColor; stroke: none; width: 16px; height: 16px; }

.btn { border: 0; border-radius: 14px; padding: 11px 18px; font-weight: 700; }
.btn-glow { background: linear-gradient(135deg, #6fcde8, #34b7dd 55%, #2d7388); color: #02171c; box-shadow: 0 0 0 1px #6fcde855 inset, 0 8px 30px -8px #34b7ddaa; }
.btn-glow:hover:not(:disabled) { filter: brightness(1.08); }
.btn-glow:disabled { background: var(--card2); color: var(--ink3); box-shadow: none; cursor: default; }
.btn-line { background: transparent; border: 1px solid var(--teal); color: var(--cyan2); }
.btn-line:hover { background: #34b7dd14; }
.btn.big { width: 100%; padding: 17px; font-size: 17px; border-radius: 16px; margin-top: 14px; }
#wallet-btn.connected { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; font-family: var(--mono); font-weight: 500; font-size: 14px; }

/* hero */
main { padding: 0 max(16px, calc((100vw - 1180px) / 2)); }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; padding: 64px 0 72px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--cyan2); }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.035em; margin: 18px 0 20px; font-weight: 800; }
h1 em, h2 em { font-style: normal; background: linear-gradient(90deg, #a6e6f5, #34b7dd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--ink2); font-size: 18px; max-width: 520px; margin: 0 0 22px; }
.burnline { display: inline-flex; max-width: 100%; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #ff8a3d12; border: 1px solid #ff8a3d40; color: #ffd9bf; font-size: 15px; }
.burnline b { color: #fff; }
.burnline .tk { color: var(--fire); }
.chainrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 7px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.chip img { width: 18px; height: 18px; border-radius: 50%; }
.chip.dest { border-color: var(--teal); color: var(--cyan2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: #0a232999; overflow: hidden; }
.stats div { padding: 14px 16px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats small { display: block; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink3); }
.stats b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }

/* swap card */
.card { background: linear-gradient(180deg, var(--card), #081e23); border: 1px solid var(--line); border-radius: var(--r); }
.swap { padding: 18px; box-shadow: 0 30px 80px -30px #000, 0 0 0 1px #34b7dd14, 0 0 120px -40px #34b7dd55; position: relative; }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; }
.card-head b { font-size: 17px; }
.leg { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.leg:focus-within { border-color: var(--teal); }
.leg.out { background: #062027; }
.leg-top, .leg-bot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink3); min-height: 20px; }
.bal { font-family: var(--mono); font-size: 12px; }
.leg-row { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
#amount, #out { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 34px; font-weight: 700; letter-spacing: -.02em; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#out { color: var(--ink); }
#out.loading { color: var(--ink3); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.pick { display: flex; align-items: center; gap: 9px; padding: 7px 10px 7px 7px; border-radius: 99px; border: 1px solid var(--line); background: var(--card2); flex-shrink: 0; }
.pick:hover { border-color: var(--teal); }
.pick svg { width: 16px; height: 16px; color: var(--ink3); }
.pick-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.pick-txt b { font-size: 16px; }
.pick-txt small { font-size: 11px; color: var(--ink3); }
.pick-ico, .ico { position: relative; width: 30px; height: 30px; flex-shrink: 0; }
.pick-ico img.t, .ico img.t, .letter { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--line); }
.letter { display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--bg); background: linear-gradient(135deg, #6fcde8, #2d7388); }
.pick-ico img.c, .ico img.c { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--card2); background: var(--card2); }
.maxes { display: flex; gap: 6px; }
.maxes button { border: 1px solid var(--line); background: none; color: var(--ink2); border-radius: 8px; padding: 1px 8px; font: 500 11px var(--mono); }
.maxes button:hover { border-color: var(--teal); color: var(--cyan2); }
.gate-arrow { display: grid; place-items: center; width: 40px; height: 40px; margin: -12px auto; position: relative; z-index: 2; border-radius: 12px; background: var(--card2); border: 4px solid #0a2329; color: var(--cyan2); }
.gate-arrow svg { width: 17px; height: 17px; }
.recv { margin-top: 12px; }
.recv label { display: block; font-size: 13px; color: var(--ink2); margin: 0 0 6px 4px; }
.recv label small { color: var(--ink3); }
.recv-row { display: flex; gap: 8px; }
#recipient { flex: 1; min-width: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 14px var(--mono); outline: 0; }
#recipient:focus { border-color: var(--teal); }
#recipient.bad { border-color: var(--bad); }
.mini { border: 1px solid var(--line); background: var(--card2); border-radius: 12px; padding: 0 12px; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.mini:hover { border-color: var(--teal); color: var(--ink); }
.details { margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line); font-size: 14px; display: grid; gap: 6px; }
.details div { display: flex; justify-content: space-between; gap: 10px; }
.details span { color: var(--ink3); }
.details b { font-weight: 500; font-family: var(--mono); font-size: 13px; text-align: right; }
.burn-tag { font-style: normal; font-size: 11px; color: var(--fire); border: 1px solid #ff8a3d55; border-radius: 6px; padding: 0 5px; margin-left: 4px; }
.qerr { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #ff6b6b14; border: 1px solid #ff6b6b44; color: #ffc4c4; font-size: 14px; }
.fine { font-size: 12px; color: var(--ink3); margin: 12px 4px 0; text-align: center; }

/* bands */
.band { padding: 56px 0; border-top: 1px solid #17404a66; }
.band-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 28px; }
.band-head p { color: var(--ink2); margin: 0; font-size: 17px; }
h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -.03em; margin: 12px 0 0; font-weight: 800; }
.burn-grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr 1.3fr; gap: 14px; }
.big-num { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.big-num small, .feed small { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink3); }
.big-num b { font-size: 40px; letter-spacing: -.03em; line-height: 1.1; font-weight: 800; color: var(--fire); text-shadow: 0 0 30px #ff8a3d55; overflow-wrap: anywhere; }
.big-num:nth-child(2) b { color: var(--cyan2); text-shadow: 0 0 30px #34b7dd44; }
.big-num span { color: var(--ink3); font-size: 13px; }
.feed { padding: 18px 20px; }
.feed ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.feed li { display: flex; justify-content: space-between; gap: 10px; }
.feed li a { color: var(--cyan2); text-decoration: none; font-family: var(--mono); font-size: 12px; }
.feed .muted { color: var(--ink3); }
.token-card { margin-top: 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--r); border: 1px solid #ff8a3d44; background: linear-gradient(90deg, #ff8a3d10, transparent); }
.token-card img { width: 44px; height: 44px; border-radius: 50%; }
.token-card .ca { font: 13px var(--mono); color: var(--ink2); cursor: pointer; overflow-wrap: anywhere; }
.token-card .grow { flex: 1; min-width: 200px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: #0a232966; }
.step span { font: 500 13px var(--mono); color: var(--cyan); }
.step b { display: block; font-size: 20px; margin: 6px 0; }
.step p { margin: 0; color: var(--ink2); }
.guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.g { padding: 22px; }
.g b { font-size: 18px; }
.g p { color: var(--ink2); margin: 8px 0 14px; }
.g strong { color: var(--ink); }
.faq { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--ink2); margin: 10px 0 0; max-width: 820px; }

.foot { padding: 30px max(16px, calc((100vw - 1180px) / 2)) 40px; border-top: 1px solid #17404a66; color: var(--ink3); font-size: 13px; }
.foot b { color: var(--ink2); }
.foot p { max-width: 860px; }

/* sheets: token / chain picker, wallet picker, progress */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: #010a0ccc; backdrop-filter: blur(6px); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet-card { width: min(460px, 100%); max-height: min(680px, calc(100vh - 32px)); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 100px -20px #000; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; }
.sheet-head b { font-size: 17px; }
.sheet-search { margin: 0 18px 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; outline: 0; }
.sheet-search:focus { border-color: var(--teal); }
.chain-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 10px; }
.chain-tabs button { display: flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg2); font-size: 13px; color: var(--ink2); }
.chain-tabs button img { width: 18px; height: 18px; border-radius: 50%; }
.chain-tabs button.on { border-color: var(--cyan); color: var(--ink); background: #34b7dd18; }
.sheet-list { overflow-y: auto; padding: 4px 10px 12px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; border: 0; background: none; text-align: left; }
.row:hover, .row:focus-visible { background: var(--card2); outline: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .grow b { display: block; }
.row .grow small { color: var(--ink3); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .right { text-align: right; font: 12px var(--mono); color: var(--ink3); }
.row.pinned { background: #ff8a3d10; }
.sec { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink3); padding: 10px 10px 4px; }
.wsec { padding: 4px 18px 16px; }
.wsec h4 { margin: 6px 0 8px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink3); }
.wopt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; margin-bottom: 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); text-align: left; text-decoration: none; }
.wopt:hover { border-color: var(--teal); }
.wopt img { width: 30px; height: 30px; border-radius: 8px; }
.wopt .grow { flex: 1; }
.wopt small { display: block; color: var(--ink3); font-size: 12px; }
.wopt .on { font: 12px var(--mono); color: var(--ok); }
.wopt.warn small { color: #ffc98f; }
.hint { color: var(--ink3); font-size: 13px; padding: 0 18px 16px; margin: 0; }
.prog { padding: 6px 18px 18px; display: grid; gap: 10px; }
.pstep { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); }
.pstep i { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--line); margin-top: 1px; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.pstep.run i { border-color: var(--cyan); border-top-color: transparent; animation: spin .8s linear infinite; }
.pstep.ok i { border-color: var(--ok); background: var(--ok); color: var(--bg); }
.pstep.bad i { border-color: var(--bad); background: var(--bad); color: var(--bg); }
.pstep.ok i::after { content: '✓'; } .pstep.bad i::after { content: '!'; }
@keyframes spin { to { transform: rotate(360deg); } }
.pstep b { display: block; font-size: 15px; }
.pstep small { color: var(--ink3); font-size: 13px; overflow-wrap: anywhere; }
.pstep a { color: var(--cyan2); }
.done-burst { text-align: center; padding: 6px 18px 20px; }
.done-burst .big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.done-burst p { color: var(--ink2); margin: 6px 0 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; z-index: 60; padding: 12px 18px; border-radius: 14px; background: var(--cream); color: var(--bg); font-weight: 600; font-size: 14px; transition: .25s; max-width: calc(100vw - 32px); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 36px; }
  .burn-grid { grid-template-columns: 1fr 1fr; }
  .band-head, .steps, .guide { grid-template-columns: 1fr; }
  .band-head { gap: 14px; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav { gap: 10px; justify-content: space-between; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .burn-grid { grid-template-columns: 1fr; }
  #amount, #out { font-size: 28px; }
  .swap { padding: 14px; }
  .recv-row { flex-direction: column; }
  .mini { padding: 9px 12px; }
}
