/* web/style.css — fizz: warm cream ground, lemon-yellow actions, green for buys and red-orange for sells. */
:root {
  --bg: #fffcf4;
  --bg-2: #fff7e3;
  --surface: #ffffff;
  --surface-2: #fdf6e1;
  --line: #efe7d3;
  --line-strong: #e1d5b6;
  --text: #1d1a14;
  --soft: #3b372e;
  --muted: #6a6356;
  --placeholder: #786f5f;
  --dim: #c9bfa5;
  /* Yellow is a fill colour only: as text on cream it is unreadable, so text accents use --link. */
  --accent: #ffd21f;
  --accent-hover: #ffc400;
  --accent-strong: #e7b000;
  --accent-soft: #fff5cc;
  --accent-ink: #1d1a14;
  --link: #8a5a00;
  --up: #15803d;
  --down: #c2410c;
  --warn: #a15c00;
  --violet: #6d4ae8;
  --shadow: 0 1px 0 rgb(60 45 10 / 0.04), 0 10px 30px -14px rgb(120 90 10 / 0.22);
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background:
    radial-gradient(1100px 620px at 6% -12%, rgb(255 210 31 / 0.22), transparent 62%),
    radial-gradient(900px 520px at 100% -6%, rgb(255 232 150 / 0.32), transparent 60%),
    var(--bg); font-family: var(--display); font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--link); }
a:hover { color: var(--text); }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.logo span { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 12px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a[aria-current='page'] { color: var(--text); background: var(--surface); }
.search { flex: 1 1 280px; max-width: 520px; margin-left: auto; position: relative; }
.search svg { position: absolute; left: 14px; top: 13px; }
.search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; }

.btn { height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 800; box-shadow: 0 1px 0 rgb(120 90 10 / 0.25), 0 6px 16px -8px rgb(200 150 0 / 0.55); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-lg { height: 52px; padding: 0 24px; border-radius: 14px; font-size: 17px; }
.btn-block { width: 100%; height: 56px; border-radius: 14px; font-size: 17px; }

.wallet { position: relative; }
.wallet-menu { position: absolute; right: 0; top: 52px; z-index: 20; min-width: 240px; padding: 8px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); display: flex; flex-direction: column; gap: 4px; box-shadow: 0 18px 40px -12px rgb(80 60 10 / 0.25); }
.wallet-menu button, .wallet-menu a { height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border-radius: 10px; border: 0; background: transparent; color: var(--text); text-align: left; font-weight: 600; text-decoration: none; }
.wallet-menu button:hover, .wallet-menu a:hover { background: var(--surface-2); color: var(--text); }
.wallet-menu .hint { padding: 8px 12px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* Trade tape and cluster banner */
.tape { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.tape .wrap { display: flex; gap: 10px; overflow: hidden; padding-top: 8px; padding-bottom: 8px; min-height: 48px; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); white-space: nowrap; text-decoration: none; }
.chip:hover { color: var(--muted); border-color: var(--line-strong); }
.chip.fresh { border-color: var(--accent-strong); background: var(--accent-soft); }
.chip b { color: var(--text); font-weight: 600; }
.chip img, .chip .dot { width: 18px; height: 18px; border-radius: 5px; object-fit: cover; }
.banner { background: var(--surface-2); color: var(--soft); font-size: 13px; text-align: center; padding: 8px 16px; }
.banner a { font-weight: 600; }

main { flex-grow: 1; width: 100%; }
.page { max-width: 1280px; margin: 0 auto; padding: 32px 24px 56px; display: flex; flex-direction: column; gap: 40px; }
.page-tight { gap: 20px; padding-top: 20px; }

/* Board */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.hero h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 0.98; font-weight: 800; letter-spacing: -0.035em; }
.hero p { margin: 0; max-width: 480px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.steps li { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.steps li span { font-family: var(--mono); font-size: 12px; color: var(--link); font-weight: 400; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: var(--shadow); }
.card h2 { margin: 0; font-size: 18px; font-weight: 800; }
.card-link { color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.card-link:hover { color: var(--text); border-color: var(--accent-strong); transform: translateY(-2px); }

.king { border-radius: 24px; padding: 24px; gap: 20px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 800; }
.badge-outline { background: transparent; border: 1px solid currentColor; font-size: 12px; font-weight: 600; padding: 2px 8px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat span:first-child { font-size: 12px; color: var(--muted); }
.stat span:last-child { font-family: var(--mono); font-size: 20px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

.avatar { flex-shrink: 0; border-radius: 14px; object-fit: cover; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--text); font-weight: 800; overflow: hidden; }
.coin-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.coin-title strong { font-weight: 800; }
.coin-title .mono { color: var(--muted); }

.bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar > div { height: 100%; border-radius: 99px; background: var(--accent-strong); }
.bar-lg { height: 12px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; }
.tab:hover { color: var(--text); border-color: var(--line-strong); }
.tab[aria-current='true'] { background: var(--accent); border-color: var(--accent-strong); color: var(--accent-ink); font-weight: 800; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.coin-card { border-radius: 18px; padding: 16px; }
.coin-card p { margin: 2px 0 0; font-size: 14px; line-height: 1.4; color: var(--soft); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.coin-card .meta { font-size: 13px; color: var(--muted); }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Coin page */
.back { align-self: flex-start; height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--text); }
.coin-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.coin-head h1 { margin: 0; font-size: 36px; font-weight: 800; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text); text-decoration: none; }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.ca-btn { height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-family: var(--mono); font-size: 13px; }
.mcap { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mcap strong { font-family: var(--mono); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.columns { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.col-main { flex: 2 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.col-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg); }
.seg button { height: 40px; min-width: 48px; padding: 0 10px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.seg button[aria-pressed='true'] { background: var(--line); color: var(--text); font-weight: 600; }
.chart { position: relative; height: 380px; }
.chart canvas { width: 100%; height: 100%; display: block; }
.chart .empty-chart { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }

.table { overflow-x: auto; }
.table-inner { min-width: 560px; display: flex; flex-direction: column; }
.trow { display: grid; grid-template-columns: 1.6fr 0.8fr 0.9fr 1fr 0.8fr 44px; gap: 8px; align-items: center; padding: 0 8px; border-top: 1px solid var(--line); font-size: 14px; min-height: 48px; }
.trow.head { border-top: 0; min-height: 36px; font-size: 13px; font-weight: 600; color: var(--muted); }
.trow a.icon-btn { border: 0; color: var(--muted); }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who .dot { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }

.comment { display: flex; gap: 12px; padding: 14px 0 6px; border-top: 1px solid var(--line); }
.comment .dot { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.comment p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.reply { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
textarea, .field input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 15px; line-height: 1.5; resize: vertical; }
.field input { height: 48px; padding: 0 14px; font-size: 16px; }

.trade .switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 4px; border-radius: 14px; background: var(--bg); }
.trade .switch button { height: 44px; border-radius: 10px; border: 0; background: transparent; font-size: 16px; font-weight: 600; }
.trade .switch button[aria-pressed='true'].buy { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.trade .switch button[aria-pressed='true'].sell { background: var(--down); color: #fff; font-weight: 800; }
.amount { position: relative; }
.amount input { width: 100%; height: 60px; padding: 0 90px 0 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg); font-family: var(--mono); font-size: 24px; }
.amount span { position: absolute; right: 16px; top: 19px; font-weight: 800; color: var(--muted); }
.presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.presets button { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-family: var(--mono); font-size: 13px; }
.presets button:hover { border-color: var(--accent-strong); }
.quote { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.slip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.slip select { height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); padding: 0 8px; }
.balances { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

.holders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.holders li { display: flex; flex-direction: column; gap: 6px; }
.holders .bar { height: 4px; }
dl.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }

/* Create */
.create { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; max-width: 1120px; width: 100%; margin: 0 auto; }
.create form { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.create h1 { margin: 0; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.create aside { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-size: 15px; font-weight: 600; }
.field .help { font-size: 13px; line-height: 1.45; color: var(--muted); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.trio input { height: 44px; font-size: 15px; }
.prefix { position: relative; }
.prefix span { position: absolute; left: 14px; top: 13px; font-family: var(--mono); color: var(--muted); }
.prefix input { padding-left: 32px; font-family: var(--mono); text-transform: uppercase; }
.suffix { position: relative; }
.suffix span { position: absolute; right: 14px; top: 14px; font-weight: 800; color: var(--muted); }
.suffix input { padding-right: 64px; font-family: var(--mono); }
.drop { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 16px; border: 2px dashed var(--line-strong); background: var(--bg); cursor: pointer; text-align: center; padding: 16px; }
.drop:hover, .drop.over { border-color: var(--accent-strong); }
.drop img { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; }
.error { color: var(--down); font-size: 14px; font-weight: 600; }
.next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.next li { display: flex; gap: 12px; font-size: 15px; line-height: 1.45; }
.next li span { font-family: var(--mono); font-size: 13px; color: var(--link); padding-top: 2px; }

/* How it works */
.prose { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; font-size: 17px; line-height: 1.6; color: var(--soft); }
.prose h1 { margin: 0; font-size: 44px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.prose h2 { margin: 12px 0 0; font-size: 22px; color: var(--text); }
.prose p { margin: 0; }

/* Swap */
.swap-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 24px; align-items: start; }
.swap-card { border-radius: 24px; padding: 22px; gap: 16px; }
.swap-field { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.swap-field:focus-within { border-color: var(--line-strong); }
.swap-amount { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-family: var(--mono); font-size: 30px; font-weight: 600; padding: 0; outline: none; overflow: hidden; text-overflow: ellipsis; }
.token-btn { flex-shrink: 0; height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 800; font-size: 16px; }
.token-btn:hover { border-color: var(--accent-strong); }
.chip-btn { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; }
.chip-btn:hover { border-color: var(--accent-strong); color: var(--text); }
.flip { background: var(--surface); font-size: 20px; border-color: var(--line-strong); z-index: 1; }
.flip:hover { border-color: var(--accent-strong); }
.routes { display: flex; flex-direction: column; gap: 8px; }
.route { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px; border-radius: 14px; border: 1px solid var(--line); background: transparent; text-align: left; }
.route:hover { border-color: var(--line-strong); }
.route.chosen { border-color: var(--accent-strong); background: var(--accent-soft); }
.check { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; line-height: 1.45; }
.check-row { display: flex; gap: 10px; align-items: flex-start; }
.dot-danger, .dot-warn, .dot-info, .dot-ok { width: 10px; height: 10px; border-radius: 99px; margin-top: 5px; flex-shrink: 0; }
.dot-danger { background: var(--down); }
.dot-warn { background: var(--accent-strong); }
.dot-info { background: var(--muted); }
.dot-ok { background: var(--up); }
.token-dialog { width: min(440px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 64px)); padding: 20px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); flex-direction: column; gap: 12px; }
.token-dialog[open] { display: flex; }
.token-dialog::backdrop { background: rgb(40 32 10 / 0.35); backdrop-filter: blur(2px); }
.token-dialog input { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 15px; }
.token-list { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.token-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px; border: 0; border-radius: 12px; background: transparent; }
.token-row:hover, .token-row:focus-visible { background: var(--surface-2); }

/* Reclaim */
.reclaim { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.dust { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dust-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.dust-row:first-child { border-top: 0; }
.dust-row:hover { background: var(--surface-2); }

@media (max-width: 900px) {
  .swap-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Home */
.home { display: flex; flex-direction: column; gap: 72px; padding-bottom: 72px; }
.home .wrap { max-width: 1120px; }
.section-title { margin: 0; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.lead-sm { margin: 10px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 640px; }

.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 0.55); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: 13px; color: var(--text); text-decoration: none; white-space: nowrap; border-right: 1px solid var(--line); }
.tick:hover { color: var(--text); background: var(--accent-soft); }
.tick img { border-radius: 99px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.hero-home { position: relative; isolation: isolate; text-align: center; padding: 64px 24px 8px; display: flex; flex-direction: column; align-items: center; gap: 18px; overflow: hidden; }
.hero-home h1 { isolation: isolate; margin: 0; font-size: clamp(46px, 7.4vw, 92px); line-height: 0.95; font-weight: 800; letter-spacing: -0.045em; position: relative; }
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: 0.06em; height: 0.32em; background: var(--accent); border-radius: 0.12em; z-index: -1; transform: rotate(-1deg); }
.eyebrow { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); background: var(--accent-soft); border: 1px solid var(--line-strong); padding: 6px 12px; border-radius: 99px; }
.lead { margin: 0; max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--muted); }
.trust { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; color: var(--soft); }
.trust li::before { content: '✓'; color: var(--up); font-weight: 800; margin-right: 8px; }
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.bubbles i { position: absolute; bottom: -40px; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--line-strong); background: rgb(255 255 255 / 0.5); animation: rise linear infinite; }
.bubbles i:nth-child(3n) { border-color: var(--accent-strong); background: var(--accent-soft); }
@keyframes rise { from { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } to { transform: translateY(-560px); opacity: 0; } }

.showcase { border-radius: 28px; padding: 16px; gap: 0; }
.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--up); }
.live-dot { width: 8px; height: 8px; border-radius: 99px; background: var(--up); box-shadow: 0 0 0 0 rgb(21 128 61 / 0.5); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgb(21 128 61 / 0); } }
.flow { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr) 170px; align-items: center; gap: 24px; padding: 28px 18px; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow-path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 5; }
.flow-path.best { stroke: var(--accent-strong); stroke-width: 3; stroke-dasharray: 10 8; animation: flowdash 1.4s linear infinite; }
@keyframes flowdash { to { stroke-dashoffset: -36; } }
.flow-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.flow-node img { border-radius: 99px; box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px var(--line); }
.flow-cap { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.flow-venues { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.flow-pill { width: min(360px, 100%); display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.flow-pill.best { width: min(420px, 100%); padding: 14px 16px; border: 1.5px solid var(--accent-strong); background: var(--accent-soft); font-size: 15px; box-shadow: 0 8px 24px -14px rgb(200 150 0 / 0.6); }
.flow-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.flow-gap { font-size: 12px; color: var(--down); min-width: 64px; text-align: right; }
.flow-pill.best .flow-gap { grid-column: 1 / -1; text-align: left; color: var(--muted); }
.how3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.how3 li { display: flex; gap: 12px; padding: 18px; border-left: 1px solid var(--line); }
.how3 li:first-child { border-left: 0; }
.how3 b { width: 26px; height: 26px; flex-shrink: 0; border-radius: 99px; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.how3 div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.how3 span { color: var(--muted); line-height: 1.45; }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-chip { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat-chip b { font-size: 28px; letter-spacing: -0.02em; }
.stat-chip span { font-size: 13px; color: var(--muted); line-height: 1.35; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: start; }
.checklist { list-style: none; margin: 22px 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; flex-direction: column; gap: 2px; padding-left: 26px; position: relative; font-size: 15px; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); border: 1.5px solid var(--accent-ink); }
.checklist span { color: var(--muted); line-height: 1.45; }
.check-form { display: flex; gap: 8px; }
.check-form input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-family: var(--mono); font-size: 13px; }
.check-form .btn { height: 48px; }
.term { border-radius: 20px; background: #1d1a14; color: #efe7d3; box-shadow: 0 24px 50px -24px rgb(60 45 10 / 0.55); overflow: hidden; }
.term-head { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #3b362a; }
.term-head > span { width: 11px; height: 11px; border-radius: 99px; background: #4a4334; }
.term-head > span:first-child { background: #ff7a59; }
.term-head > span:nth-child(2) { background: #ffd21f; }
.term-tabs { margin-left: auto; display: flex; gap: 4px; }
.term-tabs button { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #3b362a; background: transparent; color: #b8ad93; font-family: var(--mono); font-size: 12px; }
.term-tabs button[aria-selected='true'] { background: #ffd21f; border-color: #ffd21f; color: #1d1a14; font-weight: 600; }
.term-body { padding: 16px 18px 20px; min-height: 340px; font-family: var(--mono); font-size: 13px; line-height: 1.55; }
.term-line { margin: 0 0 8px; overflow-wrap: anywhere; animation: typein 0.35s ease-out both; animation-delay: calc(var(--i, 0) * 0.12s); }
.term-dim { color: #9c927a; }
.term-fail { color: #ff8a65; font-weight: 600; }
.term-warn { color: #ffd21f; font-weight: 600; }
.term-info { color: #b8ad93; font-weight: 600; }
.term-ok { color: #4ade80; font-weight: 600; }
@keyframes typein { from { opacity: 0; transform: translateX(-6px); } }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.duo-card { padding: 28px; gap: 18px; border-radius: 24px; }
.duo-card .lead-sm { margin: 0; }
.rent { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.rent-boxes { display: flex; gap: 6px; }
.rent-boxes i { width: 22px; height: 28px; border-radius: 6px; border: 1.5px dashed var(--line-strong); background: var(--surface); }
.rent-num { font-size: 26px; font-weight: 600; color: var(--up); }
.mini-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.mini-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.mini-steps span { font-family: var(--mono); font-size: 12px; color: var(--link); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tile strong { font-size: 17px; }
.tile strong::before { content: ''; display: block; width: 28px; height: 4px; border-radius: 99px; background: var(--accent); margin-bottom: 12px; }
.tile span { font-size: 14px; line-height: 1.5; color: var(--muted); }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq .section-title { margin-bottom: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-size: 22px; color: var(--link); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; max-width: 760px; }

.final-cta { text-align: center; padding: 56px 24px; border-radius: 32px; background: var(--accent); border: 1.5px solid var(--accent-strong); display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; overflow: hidden; }
.final-cta h2 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -0.035em; color: var(--accent-ink); }
.final-cta p { margin: 0; font-size: 17px; color: #4a3d0c; max-width: 520px; }
.cta-dark { background: var(--accent-ink); color: #fffcf4; }
.cta-dark:hover { background: #000; color: #fff; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

.statusbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 0 16px; height: 32px; font-family: var(--mono); font-size: 12px; color: var(--muted); background: rgb(255 252 244 / 0.92); border-top: 1px solid var(--line); backdrop-filter: blur(6px); overflow: hidden; white-space: nowrap; }
.statusbar b { color: var(--text); font-weight: 600; }
.statusbar .push { margin-left: auto; }
body.has-status { padding-bottom: 32px; }
body.has-status .toast { bottom: 48px; }

@media (max-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .flow-lines { display: none; }
  .how3, .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how3 li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); grid-column: 1 / -1; }
  .feature, .duo { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-title { font-size: 32px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  /* Phones: logo, wallet and a one-line scrollable nav. Search and Create live on their own pages. */
  .top .wrap { gap: 10px 12px; }
  .top .search, .top > .wrap > .btn-primary { display: none; }
  .wallet { margin-left: auto; }
  .nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin: 0 -6px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 10px 10px; }
  .hero-home { padding-top: 28px; }
  .home { gap: 48px; }
}
@media (max-width: 560px) {
  .how3, .tiles { grid-template-columns: minmax(0, 1fr); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-chip { padding: 14px 16px; }
  .stat-chip b { font-size: 22px; }
  .how3 li { border-left: 0; border-top: 1px solid var(--line); }
  .how3 li:first-child { border-top: 0; }
  .statusbar .hide-sm { display: none; }
  .check-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .bubbles i, .flow-path.best, .live-dot, .term-line { animation: none; }
  .bubbles { display: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

footer { border-top: 1px solid var(--line); background: rgb(255 255 255 / 0.5); }
.foot { display: grid !important; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr); gap: 32px; padding-top: 40px !important; padding-bottom: 40px !important; }
.foot-brand p { margin: 12px 0 0; max-width: 320px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.foot-cols div { display: flex; flex-direction: column; gap: 4px; }
.foot-cols h2 { margin: 0 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.foot-cols a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; }
.foot-cols a:hover { color: var(--link); }
.foot-note { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.5; }
.mini-coin { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px dashed var(--line-strong); background: var(--surface-2); }
.mini-coin i { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); border: 1.5px solid var(--accent-ink); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 800; }
.mini-coin .bar { margin-top: 6px; }
footer .wrap:not(.foot) { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; max-width: min(560px, calc(100vw - 32px)); padding: 14px 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -12px rgb(80 60 10 / 0.3); font-size: 15px; line-height: 1.45; display: none; }
.toast.show { display: block; }
.toast.bad { border-color: var(--down); }
.toast.good { border-color: var(--up); }

@media (max-width: 640px) {
  .wrap, .page { padding-left: 16px; padding-right: 16px; }
  .steps { grid-template-columns: 1fr; }
  .mcap { margin-left: 0; align-items: flex-start; }
  .chart { height: 300px; }
  .create form { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-link { transition: none; }
  .card-link:hover { transform: none; }
}
