:root {
  color-scheme: dark;
  --ink: #07090d;
  --paper: #f5f6f8;
  --card: #ffffff;
  --text: #12151a;
  --muted: #667085;
  --line: #e6e8ee;
  --gold: #f5b423;
  --gold-ink: #1c1404;
  --up: #0b8f62;
  --down: #e11d48;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
  padding: 0 22px;
  background: rgba(7, 9, 13, 0.92);
  color: #fff;
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 20px;
}
.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 15px;
  font-weight: 800;
}
.links { display: flex; gap: 22px; }
.links a {
  text-decoration: none;
  color: #d5dbe6;
  font-weight: 600;
  font-size: 14px;
}
.links a:hover { color: #fff; }
.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(240px, 28vw);
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #9aa3b2;
}
.search svg { width: 16px; height: 16px; flex: none; }
.search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
}
.search input::placeholder { color: #8b93a3; }
.account { display: flex; align-items: center; gap: 8px; }
.ghost {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}
.pill:hover { filter: brightness(1.05); }
.pill.xl { min-height: 52px; padding: 0 28px; font-size: 16px; }
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 10px;
}
.burger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 640px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: 72px 20px 88px;
}
.stage { position: absolute; inset: 0; }
.shape { position: absolute; border-radius: 50%; }
.shape-a { width: 620px; height: 620px; background: #e79a16; right: -140px; top: -250px; }
.shape-b { width: 760px; height: 520px; background: #128f8c; left: -260px; bottom: -280px; }
.shape-c { width: 340px; height: 340px; background: #f0c56a; right: 14%; bottom: -150px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 800;
}
.lede {
  margin: 22px 0 28px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.lede span {
  display: inline-block;
  width: 2px;
  height: 0.8em;
  margin: 0 14px;
  background: rgba(255, 255, 255, 0.85);
  vertical-align: -0.05em;
}
.or { margin: 18px 0 0; color: #b7c0ce; font-size: 14px; }
.or a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.or a svg { width: 16px; height: 16px; }

.bonus-band { background: #f6edd4; color: #3d3420; }
.bonus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 0;
}
.bonus h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.04em; line-height: 1.05; }
.bonus p { margin: 0; max-width: 680px; }
.eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

.news {
  overflow: hidden;
  background: #f6edd4;
  color: #3d3420;
  border-bottom: 1px solid #ead9a4;
}
.news-track {
  display: flex;
  gap: 56px;
  width: max-content;
  padding: 12px 0;
  animation: ticker 36s linear infinite;
  font-weight: 700;
  font-size: 14px;
}
@keyframes ticker { to { transform: translateX(-50%); } }

.block { padding: 72px 0; background: #fff; }
#markets, #trade, #earn { scroll-margin-top: 84px; }
.block.pale { background: var(--paper); }
.block h2, .close h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.sub { margin: 8px 0 28px; color: var(--muted); font-weight: 600; }
.block h3 { margin: 28px 0 14px; font-size: 18px; }

.table-wrap { overflow-x: auto; }
.board { width: 100%; border-collapse: collapse; min-width: 680px; }
.board th {
  text-align: left;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 12px 12px;
}
.board td { padding: 14px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.board tbody tr:hover td { background: #fafbfc; }
.board .num, .board td.num { text-align: right; font-variant-numeric: tabular-nums; }
.board td.num small { color: #98a2b3; font-weight: 600; font-size: 12px; margin-left: 4px; }
.pair {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.coin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  flex: none;
}
.pair b { display: block; letter-spacing: -0.02em; }
.pair small, .mover small { display: block; color: var(--muted); font-weight: 600; }
.up { color: var(--up); font-weight: 800; }
.down { color: var(--down); font-weight: 800; }
.flat { color: var(--muted); font-weight: 800; }
.spark { width: 112px; height: 36px; display: block; margin-left: auto; }
.trade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 34px;
  border-radius: 999px;
  background: #15181e;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.trade:hover { background: #2c313a; }
.empty { color: var(--muted); padding: 28px 12px !important; }
.flash-up { animation: up 0.7s ease; }
.flash-down { animation: down 0.7s ease; }
@keyframes up { from { background: rgba(11, 143, 98, 0.16); } }
@keyframes down { from { background: rgba(225, 29, 72, 0.12); } }

.movers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mover {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  background: #fff;
}
.mover .coin { grid-row: 1 / span 2; }
.mover .chg { grid-column: 1 / -1; }
.mover:hover { border-color: #d0d5dd; }
.mover b { font-size: 15px; }
.mover .chg { margin-top: 8px; font-size: 18px; letter-spacing: -0.03em; }

.steps, .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.cards { grid-template-columns: repeat(4, 1fr); }
.steps article, .cards article {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.steps article > a, .cards article > a { margin-top: auto; align-self: flex-start; }
.block.pale .steps article { background: #fff; }
.step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.steps h3, .cards h3 { margin: 14px 0 8px; font-size: 20px; letter-spacing: -0.03em; }
.steps p, .cards p { margin: 0 0 18px; color: #475467; }
.line {
  color: #0f766e;
  font-weight: 800;
  text-decoration: none;
}
.cards a { color: #0f766e; font-weight: 800; text-decoration: none; }
.cards article { background: var(--paper); border-color: transparent; }

.close {
  background:
    radial-gradient(520px 220px at 80% 120%, rgba(18, 143, 140, 0.45), transparent 70%),
    radial-gradient(420px 180px at 10% -20%, rgba(231, 154, 22, 0.4), transparent 70%),
    var(--ink);
  color: #fff;
  text-align: center;
  padding: 88px 0;
}
.close p { color: #c5cedb; margin: 12px 0 22px; }

footer { background: #0d1016; color: #c5cedb; padding: 48px 0 28px; }
.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.foot .brand { color: #fff; }
.foot p { max-width: 280px; }
.foot strong { display: block; color: #fff; margin-bottom: 10px; }
.foot a { display: block; color: #c5cedb; text-decoration: none; padding: 4px 0; }
.foot a:hover { color: #fff; }
.legal { margin-top: 28px; color: #8b93a3; font-size: 13px; }

@media (max-width: 980px) {
  .cards, .movers { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .search { display: none; }
}
@media (max-width: 760px) {
  .top { gap: 12px; padding: 0 14px; }
  .links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: #0d1016;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .links.open { display: flex; }
  .links a { padding: 14px 12px; }
  .account .ghost { display: none; }
  .burger { display: block; margin-left: auto; }
  .bonus { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 520px; padding-top: 48px; }
  .shape-a { width: 340px; height: 340px; right: -100px; top: -120px; }
  .shape-b { width: 420px; height: 300px; }
  .cards, .movers, .foot { grid-template-columns: 1fr; }
  .chart-col, .board td:nth-child(4) { display: none; }
  .board { min-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .news-track { animation: none; }
  html { scroll-behavior: auto; }
}
