/* ==========================================================================
   Rake — design tokens
   ========================================================================== */
:root {
  --bg: #0b0b0c;
  --bg-2: #0f0f11;
  --surface: #141416;
  --surface-2: #1b1b1e;
  --surface-3: #232327;
  --line: #26262b;
  --line-2: #33333a;
  --text: #f4f4f5;
  --text-2: #c9c9cf;
  --muted: #8a8a93;
  --accent: #d4ff3f;        /* Rake Lime */
  --accent-ink: #0b0b0c;
  --accent-soft: rgba(212, 255, 63, 0.12);
  --ok: #5ee08a;
  --warn: #ffb547;
  --verified: #6aa8ff;
  --pump: #5ee08a;
  --pons: #ff7ad9;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --sidebar: 264px;
  --sidebar-min: 76px;
  --topbar: 64px;
  --gutter: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
code, kbd { font-family: var(--font-mono); }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.xsmall { font-size: 11.5px; }
.label-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

svg { width: 20px; height: 20px; flex: none; }

/* ==========================================================================
   Buttons, chips, segmented controls
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s var(--ease), background .15s, border-color .15s;
}
.btn:active { transform: scale(.97); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #e2ff75; }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--block { width: 100%; }

.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .9em; color: var(--text); background: var(--surface);
}
.chip__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.chip__dot--pump { background: var(--pump); box-shadow: 0 0 8px rgba(94, 224, 138, .6); }
.chip__dot--pons { background: var(--pons); box-shadow: 0 0 8px rgba(255, 122, 217, .6); }

.seg { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.seg button, .seg label span {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; color: var(--muted); transition: background .15s, color .15s;
}
.seg button:hover { color: var(--text); }
.seg button.is-on, .seg input:checked + span { background: var(--surface-3); color: var(--text); }
.seg--xs button { height: 22px; padding: 0 8px; font-size: 11px; font-family: var(--font-mono); }
.seg--full { display: flex; width: 100%; }
.seg--full label { flex: 1; }
.seg--full label span { width: 100%; justify-content: center; height: 38px; cursor: pointer; font-size: 14px; }
.seg label { position: relative; }
.seg input, .field .seg input { position: absolute; inset: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }

/* ==========================================================================
   App shell
   ========================================================================== */
.app { display: flex; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; width: var(--sidebar); flex: none;
  display: flex; flex-direction: column; padding: 18px 16px 20px;
  border-right: 1px solid var(--line); background: var(--bg);
  transition: width .25s var(--ease); z-index: 40;
}
.sidebar__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; padding-left: 6px; }
.sidebar__close { display: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { border-radius: 10px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__item {
  display: flex; align-items: center; gap: 16px;
  height: 48px; padding: 0 12px; border-radius: 12px;
  font-size: 18px; color: var(--text-2); transition: background .15s, color .15s;
}
.nav__item svg { width: 24px; height: 24px; }
.nav__item:hover { background: var(--surface); color: var(--text); }
.nav__item.is-active { color: var(--text); font-weight: 600; }
.nav__item.is-active svg { color: var(--accent); }

.sidebar__account {
  margin-top: auto; display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 14px; transition: background .15s;
}
.sidebar__account:hover { background: var(--surface); }
.sidebar__account img { border-radius: 50%; }
.sidebar__account-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sidebar__account-text small { color: var(--muted); }
.sidebar__x { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }

/* Collapsed sidebar (desktop) */
.app.is-collapsed .sidebar { width: var(--sidebar-min); padding-inline: 12px; }
.app.is-collapsed .brand__name,
.app.is-collapsed .nav__item span,
.app.is-collapsed .sidebar__account-text,
.app.is-collapsed .sidebar__x { display: none; }
.app.is-collapsed .sidebar__top { flex-direction: column; gap: 12px; padding-left: 0; }
.app.is-collapsed .sidebar__collapse svg { transform: rotate(180deg); }
.app.is-collapsed .nav__item { justify-content: center; padding: 0; }
.app.is-collapsed .sidebar__account { justify-content: center; padding: 6px; }

.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar);
  display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter);
  background: rgba(11, 11, 12, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__menu, .brand--mobile { display: none; }
.search {
  flex: 1; max-width: 560px; margin: 0 auto; height: 42px;
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); color: var(--muted);
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 17px; height: 17px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.search kbd { font-size: 11px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 6px; }
.topbar__actions { display: flex; gap: 8px; }

.main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) 40px; }
.scrim { position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .6); }
.tabbar { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; text-align: center; padding: 64px 0 44px; }
.hero::before {
  content: ""; position: absolute; inset: -40px 0 auto; height: 420px; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 30%, rgba(212, 255, 63, .10), transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(212, 255, 63, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(212, 255, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 255, 63, 0); } }

.hero__title { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.hl { color: var(--accent); }
.hero__lead { max-width: 600px; margin: 22px auto 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero__lead b { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero__stats { display: flex; justify-content: center; gap: 48px; margin: 44px 0 0; flex-wrap: wrap; }
.hero__stats div { text-align: center; }
.hero__stats dt { font-size: 12px; color: var(--muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.hero__stats dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Bento
   ========================================================================== */
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(6, 1fr);
  grid-template-areas:
    "exp exp exp pay pay pay"
    "fee fee rte rte doc doc";
}
.card {
  position: relative; overflow: hidden; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 20px 52px;
  transition: border-color .2s;
}
.card:hover { border-color: var(--line-2); }
.card__head { display: flex; justify-content: space-between; align-items: center; }
.card__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; font-size: 14px; color: var(--text-2);
  background: linear-gradient(to top, var(--surface) 55%, transparent);
}
.card__foot .open { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); transition: color .15s; }
.card__foot .open svg { width: 14px; height: 14px; transition: transform .15s; }
.card:hover .card__foot .open { color: var(--text); }
.card:hover .card__foot .open svg { transform: translateX(3px); }

.card--explore { grid-area: exp; height: 290px; padding: 0; }
.card--payments { grid-area: pay; height: 290px; padding: 12px 16px 52px; }
.card--fees { grid-area: fee; height: 250px; }
.card--route { grid-area: rte; height: 250px; display: flex; flex-direction: column; gap: 6px; }
.card--docs { grid-area: doc; height: 250px; }

/* Explore marquee */
.marquee { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 12px; }
.marquee::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--surface), transparent 18%, transparent 70%, var(--surface)); pointer-events: none; }
.marquee__col { display: flex; flex-direction: column; gap: 10px; animation: scrollUp 38s linear infinite; }
.marquee__col:nth-child(2) { animation-duration: 46s; animation-direction: reverse; }
.marquee__col:nth-child(3) { animation-duration: 42s; }
@keyframes scrollUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.mini { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.mini .art { aspect-ratio: 1 / .8; border-radius: 10px; }
.mini__meta { padding: 8px 4px 4px; font-size: 12px; }
.mini__meta b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__meta span { color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; }

/* Payments ticker */
.ticker { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ticker li { animation: slideIn .5s var(--ease) both; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* Fees */
.bignum { margin-top: 12px; font-family: var(--font-display); font-weight: 600; font-size: 40px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bignum--sm { margin: 0; font-size: 32px; }
.spark { position: absolute; left: 0; right: 0; bottom: 40px; width: 100%; height: 80px; }

/* Route card */
.handle-input {
  display: flex; align-items: center; height: 48px; margin-bottom: 12px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2);
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
}
.handle-input .at { color: var(--accent); margin-right: 2px; }
.caret { width: 2px; height: 22px; margin-left: 2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Docs byte table */
.bytes { width: 100%; margin-top: 10px; border-collapse: collapse; font-family: var(--font-mono); font-size: 12px; }
.bytes th { text-align: left; font-weight: 400; color: var(--muted); padding: 4px 0; font-size: 11px; }
.bytes td { padding: 3px 0; color: var(--text-2); }
.bytes td:first-child, .bytes th:first-child { width: 44px; color: var(--muted); }
.bytes td:nth-child(2), .bytes th:nth-child(2) { width: 56px; color: var(--muted); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-top: 72px; }
.section__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; min-height: 38px; }
.section__head h2 { font-size: 28px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }

.pager { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.pager button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--text); }
.pager button:hover:not(:disabled) { background: var(--surface-2); }
.pager button:disabled { color: var(--line-2); cursor: default; }
.pager svg { width: 16px; height: 16px; }

.badge-demo { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 999px; padding: 2px 8px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.step__n { display: inline-block; margin-bottom: 36px; font-family: var(--font-mono); font-size: 12px; color: var(--accent-ink); background: var(--accent); padding: 2px 8px; border-radius: 6px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Token grid */
.tokens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.token { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px; transition: transform .2s var(--ease), border-color .2s; }
.token:hover { transform: translateY(-3px); border-color: var(--line-2); }
.art { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.art > svg { width: 100%; height: 100%; }
.art__age { position: absolute; top: 8px; right: 8px; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); }
.art__plat { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); }
.art__owner {
  position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px;
  border-radius: 999px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 600;
}
.art__owner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token__meta { padding: 10px 6px 6px; }
.token__name { display: flex; align-items: baseline; gap: 6px; font-size: 14px; }
.token__name b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token__name span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; }
.token__mc { margin-top: 4px; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.token__mc small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 4px; }

.avatar { flex: none; display: grid; place-items: center; border-radius: 50%; font-weight: 700; color: #0b0b0c; font-size: 11px; width: 22px; height: 22px; }
.avatar--md { width: 40px; height: 40px; font-size: 15px; }
.avatar--lg { width: 64px; height: 64px; font-size: 22px; border: 3px solid var(--surface); }
.verified { width: 14px; height: 14px; color: var(--verified); display: inline-block; vertical-align: -2px; }

/* Profiles */
.profiles { display: flex; flex-direction: column; gap: 14px; }
.profile { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.profile__banner { height: 84px; }
.profile__body { padding: 0 16px 16px; margin-top: -32px; }
.profile__name { margin-top: 8px; font-family: var(--font-display); font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.profile__handle { color: var(--muted); font-size: 14px; }
.tag { display: inline-flex; align-items: center; gap: 5px; margin: 10px 0; padding: 2px 8px; border-radius: 6px; font-size: 12px; background: var(--accent-soft); color: var(--accent); }
.profile__stats { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
.profile__stats b { color: var(--text); font-family: var(--font-display); font-size: 17px; margin-right: 4px; }

/* Row lists (payments, ramps) */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s; }
.row:hover { border-color: var(--line-2); }
.row__main { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 12px 14px; text-align: left; }
.row__amt { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.row__sub { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__sub b { color: var(--text); font-weight: 600; }
.row__flow { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.row__flow svg { width: 16px; height: 16px; }
.row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--muted); min-width: 92px; }
.row__side .chev { width: 16px; height: 16px; transition: transform .2s; }
.row.is-open .row__side .chev { transform: rotate(180deg); }
.status { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; background: var(--surface-3); color: var(--text-2); }
.status--warn { background: rgba(255, 181, 71, .12); color: var(--warn); border: 1px solid rgba(255, 181, 71, .35); }
.status--ok { background: rgba(94, 224, 138, .12); color: var(--ok); }
.status svg { width: 12px; height: 12px; }
.status__pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.row__detail { display: none; padding: 4px 14px 14px; border-top: 1px dashed var(--line); }
.row.is-open .row__detail { display: block; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 12px; margin-top: 10px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.breakdown { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px 16px; font-size: 13px; }
.breakdown li { display: flex; justify-content: space-between; color: var(--muted); }
.breakdown b { color: var(--text); font-weight: 500; font-family: var(--font-mono); font-size: 12px; }

.leader { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.leader__rank { font-family: var(--font-mono); font-size: 12px; color: var(--muted); width: 18px; }
.leader__who { min-width: 0; flex: 1; line-height: 1.3; }
.leader__who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader__who span { color: var(--muted); font-size: 13px; }
.leader__amt { font-family: var(--font-display); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }

.coin { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.coin--usd { background: #1f3b2a; color: var(--ok); }
.coin--sol { background: linear-gradient(135deg, #9945ff, #14f195); color: #0b0b0c; }
.coin--xm { background: #f4f4f5; color: #0b0b0c; }
.coin--ex { background: #2a2250; color: #b9a8ff; }
.coin--rake { background: var(--accent); color: var(--accent-ink); }

.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: 16px; }

/* Launch */
.launch { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: start; padding: 36px; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(80% 100% at 0% 0%, rgba(212, 255, 63, .08), transparent 60%), var(--surface); }
.launch__copy h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; }
.launch__copy p { margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 460px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.ticks svg { color: var(--accent); margin-top: 1px; }
.launch__form { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; color: var(--muted); padding: 0; margin-bottom: 6px; }
.field legend + .seg { margin-top: 0; }
.field input, .field__prefix {
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); outline: 0; width: 100%;
}
.field input:focus, .field__prefix:focus-within { border-color: var(--accent); }
.field__prefix { display: flex; align-items: center; gap: 2px; }
.field__prefix b { color: var(--accent); }
.field__prefix input { border: 0; padding: 0; height: 100%; background: none; }
.field-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }
.field input[aria-invalid="true"] { border-color: #ff6b6b; }
.form-note { min-height: 20px; font-size: 13px; color: var(--muted); text-align: center; }
.form-note.is-ok { color: var(--accent); }
.form-note.is-err { color: #ff8b8b; }

/* Docs */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.doc { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.doc h3 { font-size: 18px; margin-bottom: 8px; }
.doc p { color: var(--muted); }
.doc code { font-size: 12.5px; color: var(--text); background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }

/* $RAKE band */
.token-band { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 32px; border-radius: 28px; background: var(--accent); color: var(--accent-ink); }
.token-band .label-mono, .token-band .muted { color: rgba(11, 11, 12, .65); }
.token-band a { text-decoration: underline; }
.token-band__title { font-size: clamp(56px, 10vw, 112px); line-height: .9; letter-spacing: -0.05em; margin: 6px 0 12px; font-weight: 700; }
.token-band p { max-width: 460px; }
.ca { display: flex; flex-direction: column; gap: 6px; }
.ca code { padding: 10px 14px; border-radius: 12px; background: rgba(11, 11, 12, .9); color: var(--accent); font-size: 13px; }

/* Footer */
.footer {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px;
  width: 100%; max-width: 1180px; margin: 64px auto 0; padding: 48px var(--gutter) 56px;
  border-top: 1px solid var(--line);
}
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col h4 { font-size: 14px; margin-bottom: 4px; }
.footer__col a { color: var(--muted); }
.footer__col a:hover { color: var(--text); }
.socials { display: flex; gap: 14px; color: var(--muted); }
.socials a:hover { color: var(--text); }
.socials svg { width: 18px; height: 18px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal__panel { position: relative; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); animation: slideIn .25s var(--ease); }
.modal__panel h3 { font-size: 22px; }
.modal__panel a { color: var(--accent); }
.modal__close { position: absolute; top: 14px; right: 14px; }

/* Search highlight */
.is-hidden { display: none !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .grid-2 { grid-template-columns: 1fr; }
  .profiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #leaders, #onramp { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --gutter: 16px; }
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%);
    transition: transform .25s var(--ease); box-shadow: 20px 0 40px rgba(0, 0, 0, .5);
  }
  .app.nav-open .sidebar { transform: none; }
  .sidebar__collapse { display: none; }
  .sidebar__close { display: inline-grid; }
  .topbar__menu, .brand--mobile { display: inline-flex; }
  .topbar { gap: 10px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "exp exp" "pay pay" "fee rte" "doc doc"; }
  .tokens { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .launch { grid-template-columns: 1fr; padding: 24px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .search { display: none; }
  .topbar__actions .btn--primary { display: none; }
  .brand--mobile { margin-right: auto; }
  .hero { padding: 40px 0 32px; }
  .hero__lead { font-size: 16px; }
  .hero__stats { gap: 24px; }
  .hero__stats dd { font-size: 22px; }
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "exp" "pay" "fee" "rte" "doc"; }
  .steps, .docs { grid-template-columns: 1fr; }
  .step__n { margin-bottom: 18px; }
  .tokens { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .profiles { grid-template-columns: 1fr; }
  .section { padding-top: 56px; }
  .section__head h2 { font-size: 24px; }
  .row__main { grid-template-columns: minmax(0, 1fr) auto; }
  .row__flow { display: none; }
  .row__amt { font-size: 22px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 6px; }
  .field-row { grid-template-columns: 1fr 100px; }
  .token-band { padding: 24px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; justify-content: space-around; align-items: center;
    height: 64px; padding-bottom: env(safe-area-inset-bottom);
    background: rgba(11, 11, 12, .92); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar__main svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); margin-top: -18px; }
}

@media (max-width: 400px) {
  .tokens { gap: 8px; }
  .token__mc { font-size: 17px; }
  .topbar__actions .btn { padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
