:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --row: #f5f6fc;
  --ink: #222222;
  --muted: #7d7d7d;
  --line: #e8e8e8;
  --accent: #2b6cff;
  --accent-fg: #ffffff;
  --link-blue: #2A5ADA;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 500; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.prose { max-width: 768px; margin: 0 auto; padding: 48px 16px 80px; }
.prose p { color: var(--muted); line-height: 1.65; font-size: 16px; }
.prose h1 { font-size: 36px; margin: 0 0 16px; color: var(--ink); }
.prose h2 { font-size: 24px; margin: 48px 0 16px; color: var(--ink); }
.prose li { color: var(--muted); line-height: 1.6; margin: 8px 0; }
header.site {
  position: sticky; top: 0; z-index: 40; background: var(--bg);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; max-width: 1120px; margin: 0 auto; height: 64px; padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: auto; height: 32px; object-fit: contain; }
nav.main { display: none; gap: 4px; }
nav.main a { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
nav.main a:hover, nav.main a.active { color: var(--ink); background: var(--row); }
nav.mobile { display: flex; gap: 4px; padding: 0 12px 8px; }
nav.mobile a { padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
nav.mobile a.active { color: var(--ink); background: var(--row); }
@media (min-width: 768px) {
  nav.main { display: flex; }
  nav.mobile { display: none; }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--accent-fg); font-weight: 600; font-size: 14px;
}
.swap-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 56px; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--accent-fg); font-weight: 600; font-size: 18px;
}
.slogan { text-align: center; padding: 32px 16px 8px; }
.slogan h1 { margin: 0; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
@media (min-width: 768px) { .slogan h1 { font-size: 48px; } }
.slogan p { margin: 8px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.card {
  width: 100%; max-width: 480px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px;
}
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; }
.card-head strong { font-size: 16px; font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.leg { background: var(--row); border-radius: 8px; padding: 16px; }
.leg > p { margin: 0; font-size: 14px; color: var(--muted); font-weight: 500; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.amt { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 32px; font-weight: 500; outline: none; color: var(--ink); }
.token {
  display: inline-flex; align-items: center; gap: 8px; height: 44px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 10px 0 6px; font-weight: 600; font-size: 14px;
}
.token img { width: 24px; height: 24px; border-radius: 50%; }
.flip {
  width: 40px; height: 40px; margin: -12px auto; display: flex; align-items: center; justify-content: center;
  background: var(--row); border: 4px solid var(--surface); border-radius: 8px; position: relative; z-index: 2;
}
.quote { padding: 12px; font-size: 14px; color: var(--muted); }
.badge-cl {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--link-blue); color: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; margin: 0 auto 16px;
}
.badge-cl img { width: 20px; height: 20px; border-radius: 50%; }
.cl-foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-size: 12px; color: var(--muted); }
.cl-bar {
  display: block; background: var(--link-blue); color: #fff;
  border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12);
}
.cl-bar:hover { filter: brightness(1.08); }
.cl-inner {
  max-width: 768px; margin: 0 auto; padding: 40px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
@media (min-width: 640px) {
  .cl-inner { flex-direction: row; text-align: left; }
}
.cl-inner img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.cl-kicker { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .8; }
.cl-title { margin: 4px 0 0; font-size: 20px; font-weight: 600; }
.cl-sub { margin: 4px 0 0; font-size: 14px; opacity: .92; }
.grid3 { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 640px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
.tile { background: var(--row); border-radius: 8px; padding: 16px; }
.tile h3 { margin: 0; font-size: 16px; font-weight: 500; }
.tile p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
footer.site { border-top: 1px solid var(--line); padding: 40px 16px; }
.foot { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot p { max-width: 360px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.foot nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; font-size: 14px; color: var(--muted); }
.foot nav a:hover { color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 32px; }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; text-align: left; }
th { background: var(--row); color: var(--muted); font-weight: 500; padding: 12px 16px; }
td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
tr.ours { background: rgba(245,246,252,.7); }
td .note { margin: 4px 0 0; font-size: 12px; color: var(--muted); max-width: 280px; }
.faq li { border-bottom: 1px solid var(--line); padding: 0 0 24px; margin: 0 0 24px; list-style: none; }
.faq { padding: 0; }
.faq h3 { margin: 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.modal {
  display: none; position: fixed; inset: 0; z-index: 80;
  background: rgba(34,34,34,.5); align-items: flex-end; justify-content: center; padding: 12px;
}
.modal.open { display: flex; }
@media (min-width: 640px) { .modal { align-items: center; } }
.sheet {
  width: 100%; max-width: 448px; background: var(--surface); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.15); display: flex; flex-direction: column; max-height: 80vh;
}
.sheet h2 { margin: 0; padding: 12px 16px; font-size: 16px; font-weight: 500; }
.sheet input {
  margin: 0 12px 8px; padding: 10px 12px; border: 0; border-radius: 8px; background: var(--row);
  font-size: 14px; outline: none; color: var(--ink);
}
.coins { overflow-y: auto; padding-bottom: 8px; }
.coins button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px; border: 0; background: transparent; text-align: left; min-height: 48px;
}
.coins button:hover { background: var(--row); }
.coins .left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.coins img { width: 32px; height: 32px; border-radius: 50%; }
.hero-cl { background: var(--link-blue); color: #fff; padding: 64px 16px; }
.hero-cl .inner { max-width: 768px; margin: 0 auto; }
.hero-cl h1 { margin: 8px 0 0; font-size: 36px; font-weight: 600; color: #fff; }
.muted { color: var(--muted); }
.center { text-align: center; }
