/* ─────────────────────────────────────────────────────────────────────
   Obol — retail crypto swap aggregator
   White / black / blue. No monospace. No gradients. No glow.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --white:        #FFFFFF;
  --bg:           #FFFFFF;
  --bg-soft:      #F6F7F9;
  --bg-elev:      #FAFBFC;
  --ink:          #0A0B0D;
  --ink-2:        #2B2F36;
  --ink-3:        #5A6068;
  --ink-4:        #8C939C;
  --ink-5:        #B8BDC4;
  --line:         #E5E8EC;
  --line-2:       #D5D9DF;
  --blue:         #2257FF;
  --blue-hover:   #1C49DB;
  --blue-soft:    #EEF2FF;
  --blue-ink:     #0F2DAA;
  --up:           #0E9F6E;
  --up-soft:      #E6F6EF;
  --down:         #D0413B;
  --down-soft:    #FBEAEA;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:    0 10px 28px -8px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.15), 0 6px 14px rgba(15, 23, 42, 0.06);

  --sans:  'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ta-r { text-align: right; }

/* ─── NAV ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 14px; color: var(--ink-3); font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--ink); }

.nav__cta { display: flex; align-items: center; gap: 18px; }
.link-muted {
  font-size: 14px; color: var(--ink-3); font-weight: 500;
  transition: color 0.15s;
}
.link-muted:hover { color: var(--ink); }

/* ─── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  letter-spacing: -0.005em; cursor: pointer; border: none;
  transition: transform 0.12s ease, background 0.15s, color 0.15s, box-shadow 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--block { width: 100%; padding: 15px; font-size: 16px; border-radius: 12px; }

.btn--primary {
  background: var(--blue); color: white;
}
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--ink-4); }

.btn--white {
  background: white; color: var(--ink);
}
.btn--white:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 440px;
  gap: 56px;
  align-items: start;
}

.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 13px; color: var(--blue-ink); font-weight: 500;
  background: var(--blue-soft);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: -0.005em;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--ink);
  max-width: 580px;
}
.hero h1 em { color: var(--blue); }

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 520px;
  margin-bottom: 32px;
  letter-spacing: -0.005em;
}

.hero__actions { display: flex; gap: 12px; margin-bottom: 48px; }

.hero__trust {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__trust__label {
  font-size: 13px; color: var(--ink-4);
  margin-bottom: 12px;
  font-weight: 500;
}
.hero__trust__row {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 14px; color: var(--ink-2); font-weight: 500;
  letter-spacing: -0.005em;
}

/* ─── SWAP WIDGET ─────────────────────────────────────────────── */
.widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.widget__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px 14px;
}
.widget__title {
  font-size: 17px; font-weight: 600; letter-spacing: -0.015em;
  color: var(--ink);
}
.widget__settings {
  width: 34px; height: 34px; border-radius: 10px;
  background: transparent; border: none; cursor: pointer;
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.widget__settings:hover { background: var(--bg-soft); color: var(--ink); }

.field {
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 4px;
  transition: border-color 0.12s, background 0.12s;
}
.field:hover, .field:focus-within {
  border-color: var(--line-2);
  background: var(--bg-elev);
}
.field--out { background: var(--bg-soft); }

.field__label {
  font-size: 13px; color: var(--ink-4);
  margin-bottom: 8px;
  font-weight: 500;
}
.field__row {
  display: flex; align-items: center; gap: 12px;
}
.field__input {
  flex: 1; min-width: 0;
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  background: transparent;
  border: none; outline: none;
  width: 100%;
  font-feature-settings: 'tnum';
}
.field__input--readonly {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.field__input::placeholder { color: var(--ink-5); }

.asset-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em;
  transition: border-color 0.12s, box-shadow 0.12s;
  box-shadow: var(--shadow-xs);
}
.asset-btn:hover { border-color: var(--ink-5); box-shadow: var(--shadow-sm); }
.asset-btn svg { color: var(--ink-4); }
.asset-btn__icon {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  color: white;
  letter-spacing: -0.01em;
}

.field__meta {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-size: 13px; color: var(--ink-4);
}

.flip {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  margin: -10px auto;
  background: var(--white);
  border: 4px solid var(--white);
  outline: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  cursor: pointer;
  position: relative; z-index: 2;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), background 0.15s, color 0.15s;
}
.flip:hover { background: var(--bg-soft); color: var(--blue); }

.route {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--blue-soft);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px;
}
.route__row {
  display: flex; justify-content: space-between; align-items: center;
}
.route__row span:first-child { color: var(--ink-3); }
.route__row span:last-child { color: var(--ink); font-weight: 600; letter-spacing: -0.005em; }
.route__provider { color: var(--blue) !important; }

.widget__note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-4);
  text-align: center;
  line-height: 1.5;
}

/* ─── METRICS STRIP ───────────────────────────────────────────── */
.strip {
  background: var(--ink);
  color: white;
  padding: 40px 0;
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.strip__item { }
.strip__num {
  font-size: 36px; font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 6px;
  color: white;
}
.strip__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: -0.005em;
}

/* ─── SECTIONS ────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }

.section__head { max-width: 680px; margin-bottom: 48px; }
.section__head--compact { margin-bottom: 32px; }
.section__head--center { margin: 0 auto 48px; text-align: center; }
.section__head h2 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}
.section__head p {
  font-size: 17px; color: var(--ink-3);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* ─── ROUTES TABLE ────────────────────────────────────────────── */
.routes {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.routes__bar {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.tabs {
  display: flex; gap: 2px;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 3px;
}
.tab {
  padding: 7px 14px;
  background: transparent; color: var(--ink-3);
  border: none; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  border-radius: 8px;
  letter-spacing: -0.005em;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--ink); }
.tab--active {
  background: white; color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.routes__count {
  font-size: 13px; color: var(--ink-4);
  letter-spacing: -0.005em;
}

.routes__head, .routes__row {
  display: grid;
  grid-template-columns: 2fr 1.3fr 0.9fr 0.9fr 0.9fr 36px;
  gap: 16px;
  padding: 14px 22px;
  align-items: center;
}
.routes__head {
  font-size: 13px;
  color: var(--ink-4);
  font-weight: 500;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.005em;
}

.routes__row {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
}
.routes__row:last-child { border-bottom: none; }
.routes__row:hover { background: var(--bg-soft); }
.routes__row.is-selected {
  background: var(--blue-soft);
}
.routes__row.is-selected::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--blue);
}

.provider {
  display: flex; align-items: center; gap: 12px;
}
.provider__avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--ink);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.01em;
}
.provider__name {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.provider__sub {
  font-size: 13px; color: var(--ink-4);
  margin-top: 1px;
}
.badge {
  font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: -0.005em;
}
.badge--best {
  background: var(--blue-soft);
  color: var(--blue-ink);
}

.routes__row .out {
  font-size: 15px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em;
  font-feature-settings: 'tnum';
}
.routes__row .out__ticker {
  color: var(--ink-4); margin-left: 5px; font-size: 13px; font-weight: 500;
}
.routes__row .delta {
  font-size: 14px;
  color: var(--ink-3); font-weight: 500;
  font-feature-settings: 'tnum';
}
.routes__row .delta--best { color: var(--up); }
.routes__row .delta--neg { color: var(--down); }

.routes__row .eta,
.routes__row .liquidity {
  font-size: 14px;
  color: var(--ink-3);
  font-feature-settings: 'tnum';
}

.routes__row .chevron {
  color: var(--ink-5);
  display: flex; justify-content: flex-end;
  transition: color 0.15s, transform 0.15s;
}
.routes__row:hover .chevron { color: var(--ink-3); transform: translateX(2px); }
.routes__row.is-selected .chevron { color: var(--blue); }

/* ─── STATS GRID ───────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 20px 0;
  overflow: hidden;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.stat-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.stat-card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.stat-card__label {
  font-size: 13px; color: var(--ink-3); font-weight: 500;
}
.stat-card__delta {
  font-size: 12.5px; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
  letter-spacing: -0.005em;
}
.stat-card__delta--up { background: var(--up-soft); color: var(--up); }
.stat-card__delta--down { background: var(--down-soft); color: var(--down); }

.stat-card__value {
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.03em; color: var(--ink);
  margin-bottom: 16px;
  display: flex; align-items: baseline; gap: 5px;
  font-feature-settings: 'tnum';
}
.stat-card__unit {
  font-size: 15px; color: var(--ink-4); font-weight: 500;
}

.sparkline {
  width: calc(100% + 40px);
  margin-left: -20px; margin-bottom: -1px;
  height: 50px; display: block;
}

/* ─── SPLIT PANELS ─────────────────────────────────────────────── */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.panel__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 22px;
}
.panel__head h3 {
  font-size: 17px; font-weight: 600; letter-spacing: -0.015em;
}
.panel__meta {
  font-size: 13px; color: var(--ink-4);
}

.bars { display: flex; flex-direction: column; gap: 14px; }
.bar {
  display: grid;
  grid-template-columns: 110px 1fr 90px;
  gap: 14px;
  align-items: center;
}
.bar__label {
  font-size: 14px; color: var(--ink);
  font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar__track {
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.bar__fill {
  height: 100%; width: 0;
  background: var(--blue);
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.bar__value {
  font-size: 13.5px; color: var(--ink-3);
  font-weight: 500;
  text-align: right;
  font-feature-settings: 'tnum';
}

/* ─── TICKER ───────────────────────────────────────────────────── */
.ticker {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.ticker__head, .ticker__row {
  display: grid;
  grid-template-columns: 110px 1.3fr 1fr 1fr 1.1fr 0.8fr;
  gap: 16px;
  padding: 14px 22px;
  align-items: center;
}
.ticker__head {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-4);
  font-weight: 500;
}
.ticker__row {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-feature-settings: 'tnum';
}
.ticker__row:last-child { border-bottom: none; }
.ticker__time { color: var(--ink-4); }
.ticker__pair {
  color: var(--ink); font-weight: 600;
  letter-spacing: -0.005em;
}
.ticker__via { color: var(--ink-2); font-weight: 500; }
.ticker__amount { color: var(--ink-2); font-weight: 500; }
.ticker__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
}
.ticker__status .dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.ticker__status--done { color: var(--up); }
.ticker__status--done .dot { background: var(--up); }
.ticker__status--pending { color: #C28A1A; }
.ticker__status--pending .dot {
  background: #E0AD46;
  animation: pulse-pending 1.5s ease-in-out infinite;
}
@keyframes pulse-pending {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes slidein {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ticker__row.is-new { animation: slidein 0.4s cubic-bezier(0.22,1,0.36,1); }

/* ─── STEPS ───────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.step:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.step__num {
  font-size: 14px; font-weight: 600;
  color: var(--blue);
  margin-bottom: 18px;
  letter-spacing: -0.005em;
}
.step h3 {
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.step p {
  font-size: 14.5px; color: var(--ink-3);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 760px; margin: 0 auto;
}
.faq__item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq__item:hover { border-color: var(--line-2); }
.faq__item[open] { border-color: var(--ink-5); }
.faq__item summary {
  padding: 20px 22px;
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  width: 24px; height: 24px;
  position: relative;
  flex-shrink: 0;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink-3);
  transition: transform 0.2s;
}
.faq__icon::before {
  width: 12px; height: 1.6px;
  transform: translate(-50%, -50%);
}
.faq__icon::after {
  width: 1.6px; height: 12px;
  transform: translate(-50%, -50%);
}
.faq__item[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.faq__body {
  padding: 0 22px 22px;
  color: var(--ink-3);
  font-size: 15px; line-height: 1.6;
  letter-spacing: -0.005em;
}

/* ─── CTA STRIP ───────────────────────────────────────────────── */
.cta-strip {
  background: var(--blue);
  color: white;
  padding: 80px 0;
}
.cta-strip__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-strip h2 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 12px;
  color: white;
}
.cta-strip p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 24px;
  background: white;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer__brand p {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__head {
  font-size: 13px; color: var(--ink-4);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.footer__col a {
  font-size: 14px; color: var(--ink-2);
  letter-spacing: -0.005em;
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--blue); }
.footer__bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 13.5px; color: var(--ink-4);
}
.footer__legal { display: flex; gap: 22px; }
.footer__legal a { color: var(--ink-4); transition: color 0.15s; }
.footer__legal a:hover { color: var(--ink); }

/* ─── MODAL ───────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 11, 13, 0.4);
  backdrop-filter: blur(4px);
  animation: fadein 0.2s ease;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes scalein {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal__card {
  position: relative;
  width: min(440px, 100%);
  max-height: 78vh;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: scalein 0.22s cubic-bezier(0.22,1,0.36,1);
}
.modal__head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.modal__title {
  font-size: 17px; font-weight: 600; letter-spacing: -0.015em;
}
.modal__close {
  background: transparent; border: none; cursor: pointer;
  color: var(--ink-3); padding: 8px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.modal__close:hover { background: var(--bg-soft); color: var(--ink); }

.modal__search {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-elev);
}
.modal__search svg { color: var(--ink-4); flex-shrink: 0; }
.modal__search input {
  flex: 1;
  background: transparent; border: none; outline: none;
  font-family: var(--sans); font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.modal__search input::placeholder { color: var(--ink-5); }

.modal__list { overflow-y: auto; flex: 1; }
.modal__item {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  background: transparent; border: none;
  border-bottom: 1px solid var(--line);
  cursor: pointer; text-align: left;
  transition: background 0.12s;
}
.modal__item:hover { background: var(--bg-soft); }
.modal__item:last-child { border-bottom: none; }
.modal__item__icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  color: white; flex-shrink: 0;
  letter-spacing: -0.01em;
}
.modal__item__main { flex: 1; min-width: 0; }
.modal__item__name {
  font-size: 15px; color: var(--ink); font-weight: 500;
  letter-spacing: -0.005em;
}
.modal__item__sub {
  font-size: 13px; color: var(--ink-4);
  margin-top: 1px;
}
.modal__item__px {
  font-size: 14px; color: var(--ink-2);
  font-weight: 500;
  font-feature-settings: 'tnum';
}

/* ─── REVEAL ANIMATIONS ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { padding: 48px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .widget { max-width: 460px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .strip__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__cta .link-muted { display: none; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: 40px; }
  .lede { font-size: 16px; }
  .section { padding: 64px 0; }
  .section__head h2 { font-size: 30px; }
  .stats-grid { grid-template-columns: 1fr; }
  .strip { padding: 32px 0; }
  .strip__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .strip__num { font-size: 28px; }
  .routes__head, .routes__row {
    grid-template-columns: 1.6fr 1fr 0.7fr 0.6fr;
    gap: 8px; padding: 12px 16px;
  }
  .routes__head > div:nth-child(5),
  .routes__head > div:nth-child(6),
  .routes__row .liquidity,
  .routes__row .chevron { display: none; }
  .ticker__head, .ticker__row {
    grid-template-columns: 80px 1fr 1fr 0.8fr;
    gap: 10px; padding: 12px 16px;
  }
  .ticker__head > div:nth-child(4),
  .ticker__head > div:nth-child(5),
  .ticker__row > div:nth-child(4),
  .ticker__row > div:nth-child(5) { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-strip { padding: 56px 0; }
}
