@font-face { font-family: 'Instrument Sans'; src: url(/fonts/instrument-sans-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(/fonts/instrument-sans-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(/fonts/instrument-sans-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(/fonts/instrument-serif-400-italic.woff2) format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --bg: #0b0c0f; --bg2: #0f1014; --card: #131419; --card2: #181a20; --line: rgba(255, 255, 255, 0.075); --line2: rgba(255, 255, 255, 0.13);
  --text: #eceef3; --muted: #8a8f9b; --silver: linear-gradient(180deg, #fbfcfe 0%, #d9dde4 45%, #aab0bb 100%);
  --up: #6fd3a2; --down: #ee7a7a; --gold: #d8c08a; --r: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 'Instrument Sans', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(900px 600px at 78% -10%, rgba(160, 170, 190, 0.07), transparent 70%); z-index: -1; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; margin: 0; }
em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea { font: inherit; color: var(--text); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.center { text-align: center; }
.show-s { display: none; }
.grow { flex: 1; }
.row { display: flex; align-items: center; flex-wrap: wrap; }
.gap { gap: 12px; }
.up { color: var(--up); }
.down { color: var(--down); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 48px 0; text-align: center; }
section.empty { padding: 120px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 12, 15, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topin { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.logo img { border-radius: 50%; }
.logo.sm { font-size: 14px; gap: 8px; }
nav { display: flex; gap: 4px; flex: 1; }
nav a { white-space: nowrap; padding: 7px 12px; border-radius: 9px; color: var(--muted); font-weight: 500; }
nav a:hover, nav a.on { color: var(--text); background: rgba(255, 255, 255, 0.05); }
#acct { display: flex; }
.chip { display: flex; align-items: center; gap: 9px; background: var(--card2); border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px; font-weight: 500; font-size: 14px; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 12px 20px; font-weight: 600; background: var(--silver); color: #121318; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 22px rgba(190, 200, 220, 0.12); transition: transform 0.12s, filter 0.12s; white-space: nowrap; }
.btn:hover { filter: brightness(1.05); color: #121318; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn.wide { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 20px; padding-top: 56px; padding-bottom: 36px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 0.98; letter-spacing: -0.035em; }
.hero h1 em { font-size: 1.08em; }
.lead { font-size: 18px; color: #b9bdc7; max-width: 560px; margin: 26px 0 30px; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 600px; height: auto; mix-blend-mode: lighten; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 64px; }
.stats.three { grid-template-columns: repeat(3, 1fr); margin: 22px 0 10px; }
.stat { background: var(--bg2); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.stat span { font-size: 13px; }
.stat b { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* coin list */
.bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.bar h2 { font-size: 26px; margin-right: 6px; }
.tabs { display: flex; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 7px; color: var(--muted); font-weight: 500; font-size: 14px; }
.tabs button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.tabs.small button { padding: 4px 9px; font-size: 12px; }
.search { margin-left: auto; min-width: 280px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; outline: none; }
.search:focus { border-color: var(--line2); }
.table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg2); }
.crow { display: grid; grid-template-columns: minmax(200px, 2.2fr) 1fr 0.7fr 1fr 0.6fr 2fr 0.5fr; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line); }
.crow:first-child { border-top: 0; }
a.crow:hover { background: rgba(255, 255, 255, 0.025); }
.thead { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 11px; padding-bottom: 11px; background: var(--card); }
.wrow { grid-template-columns: minmax(200px, 2fr) 1fr 1fr 1fr 110px; }
.cid { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cid > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.cid b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cimg { border-radius: 50%; object-fit: cover; flex: none; background: var(--card2); }
.cimg.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--silver); color: #2a2d34; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2); color: #c9ccd4; white-space: nowrap; }
.tag.dim { color: var(--muted); border-color: var(--line); }
.tag.gold { color: var(--gold); border-color: rgba(216, 192, 138, 0.4); }

/* blocks */
.blocks { margin-top: 96px; }
.blocks h2, .hk h2 { font-size: clamp(30px, 3.6vw, 44px); }
.sub { max-width: 640px; margin: 12px 0 28px; }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bcard { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.bcard h3 { font-size: 18px; }
.bcard p { margin: 0; color: #b4b8c2; flex: 1; }
.bcard.lock { background: linear-gradient(180deg, #16171c, #101115); border-color: var(--line2); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 96px; }
.howcol .n { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--silver); color: #16171c; font-weight: 600; font-size: 14px; }
.howcol h3 { font-size: 20px; margin: 14px 0 6px; }
.howcol p { margin: 0; color: #b4b8c2; }
.hk { margin: 96px 0 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; border-top: 1px solid var(--line); padding-top: 56px; }
.hk p { max-width: 520px; font-size: 17px; }
.hkcoin { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line2); border-radius: var(--r); padding: 16px 18px; }
.hkcoin > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }

/* cards + forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card + .card { margin-top: 14px; }
.ptitle { font-size: clamp(32px, 4vw, 46px); margin: 40px 0 6px; }
.h2s { font-size: 20px; margin: 30px 0 4px; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fld > span { font-size: 13px; color: #b4b8c2; font-weight: 500; }
.fld input, .fld textarea, .inrow { background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 11px 13px; outline: none; width: 100%; }
.fld input:focus, .fld textarea:focus, .inrow:focus-within { border-color: rgba(255, 255, 255, 0.28); }
.fld textarea { resize: vertical; }
.inrow { display: flex; align-items: center; gap: 8px; padding: 0 13px; }
.inrow input { border: 0; background: none; padding: 12px 0; font-size: 18px; outline: none; flex: 1; min-width: 0; }
.unit { color: var(--muted); font-weight: 500; white-space: nowrap; }
.launch { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-bottom: 80px; }
.lform .card { margin-top: 14px; }
.imgrow { display: flex; gap: 18px; }
.drop { width: 132px; height: 132px; flex: none; border: 1px dashed var(--line2); border-radius: 16px; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; overflow: hidden; background: var(--bg2); }
.drop.over { border-color: #fff; }
.drop #dropin { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.drop img { width: 132px; height: 132px; object-fit: cover; }
.links summary { cursor: pointer; color: #b4b8c2; font-size: 14px; margin-bottom: 10px; }
.rule { padding: 0; overflow: hidden; }
.rhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; }
.rhead > span:first-child { display: flex; flex-direction: column; }
.rbody { padding: 4px 20px 18px; border-top: 1px solid var(--line); }
.rule.off .rbody { display: none; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #2a2c33; transition: 0.15s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #8a8f9b; transition: 0.15s; }
.switch input:checked + i { background: #d9dde4; }
.switch input:checked + i::after { left: 21px; background: #15161b; }
.sl { display: grid; grid-template-columns: 1fr 96px; align-items: center; gap: 4px 12px; margin-top: 14px; }
.sl span { grid-column: 1 / -1; font-size: 13px; color: #b4b8c2; }
.sl output { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; background: #2a2c33; border-radius: 4px; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--silver); border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #dfe2e8; border: 0; cursor: pointer; }
.seg { display: flex; gap: 2px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 7px 10px; border-radius: 7px; color: var(--muted); font-weight: 500; }
.seg button.on { background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.seg button:disabled { opacity: 0.35; cursor: default; }
.seg.wide { margin-bottom: 16px; }
.lside .sticky { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.pvhead { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pvhead > div { display: flex; flex-direction: column; }
.pvhead b { font-size: 18px; }
.fees { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.fl { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 3px 0; }
.fl b { font-weight: 600; text-align: right; }
.split { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }

/* coin page */
.coin { padding-bottom: 80px; }
.chead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 34px 0 10px; }
.cid.big h1 { font-size: 30px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 14px; align-items: center; }
.meta a { color: #c6c9d1; }
.ca { background: var(--card); border: 1px solid var(--line2); border-radius: 8px; padding: 3px 9px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.kpis { display: flex; gap: 28px; flex-wrap: wrap; }
.kpis > div { display: flex; flex-direction: column; }
.kpis b { font-size: 19px; font-variant-numeric: tabular-nums; }
.cdesc { color: #b9bdc7; max-width: 760px; margin: 4px 0 18px; white-space: pre-wrap; }
.cgrid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.chartcard { padding: 12px 12px 4px; }
.chartcard .bar { margin: 0 6px 6px; justify-content: space-between; }
#chart { height: 400px; }
.tlist { display: flex; flex-direction: column; margin-top: 10px; }
.trow { display: grid; grid-template-columns: 70px 1fr 1fr 1fr 60px; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); font-size: 14px; align-items: center; }
.trow:first-child { border-top: 0; }
.cside { display: flex; flex-direction: column; gap: 14px; }
.cside .card + .card { margin-top: 0; }
.trade .quick { display: flex; gap: 6px; margin: -4px 0 14px; }
.quick button { flex: 1; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 0; font-size: 13px; color: #c6c9d1; }
.quick button:hover { border-color: var(--line2); }
.quote { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; background: var(--bg2); border-radius: 10px; margin-bottom: 10px; }
.quote b { font-size: 17px; }
.trade .btn { margin-top: 12px; }
.ch3 { font-size: 16px; margin-bottom: 8px; }
.ri { padding: 12px 0; border-top: 1px solid var(--line); }
.ri:first-of-type { border-top: 0; padding-top: 4px; }
.rih { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rih span { font-variant-numeric: tabular-nums; color: #d6d9e0; }
.ri p { margin: 6px 0 0; }
.ri .btn { margin-top: 10px; }
.meter { height: 6px; background: #24262c; border-radius: 6px; overflow: hidden; margin-top: 10px; }
.meter i { display: block; height: 100%; background: var(--silver); border-radius: 6px; }
.lockline { border-top: 1px solid var(--line); padding-top: 12px; margin: 4px 0 0; }
.warn { margin-top: 24px; background: rgba(238, 122, 122, 0.1); border: 1px solid rgba(238, 122, 122, 0.35); color: #f3b0b0; border-radius: 12px; padding: 12px 16px; }

/* docs */
.docs { max-width: 820px; padding-bottom: 80px; }
.docs h2 { font-size: 22px; margin: 40px 0 10px; }
.docs p, .docs dd { color: #c0c4cd; }
.docs dt { font-weight: 600; margin-top: 18px; }
.docs dd { margin: 4px 0 0; }
.docs a { text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.addrs { display: flex; flex-direction: column; gap: 4px; }

/* footer, toasts, modal */
.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; margin-top: 40px; }
.footin { display: flex; align-items: center; gap: 18px; font-size: 14px; flex-wrap: wrap; }
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 60; max-width: 360px; }
.toast { background: #1b1d23; border: 1px solid var(--line2); border-radius: 12px; padding: 12px 16px; font-size: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(8px); transition: 0.25s; cursor: pointer; }
.toast.in { opacity: 1; transform: none; }
.toast.good { border-color: rgba(111, 211, 162, 0.4); }
.toast.bad { border-color: rgba(238, 122, 122, 0.45); }
.toast a { text-decoration: underline; }
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.sheet { background: #15161b; border: 1px solid var(--line2); border-radius: 18px; padding: 26px; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.sheet h3 { font-size: 20px; }
.wlist { display: flex; flex-direction: column; gap: 8px; }
.wopt { display: flex; align-items: center; gap: 12px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-align: left; font-weight: 500; }
.wopt:hover { border-color: var(--line2); }
.wopt img { border-radius: 7px; }
.wdot { width: 28px; height: 28px; border-radius: 7px; background: var(--silver); }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 360px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .cgrid { display: flex; flex-direction: column; }
  .cmain, .cside { display: contents; }
  .bgrid, .how { grid-template-columns: 1fr 1fr; }
  .hk { grid-template-columns: 1fr; }
  .launch, .cgrid { grid-template-columns: 1fr; }
  .crow { grid-template-columns: minmax(160px, 2fr) 1fr 0.7fr 1fr 0.6fr 0.5fr; }
  .hide-m { display: none; }
  .search { min-width: 0; width: 100%; margin-left: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topin { gap: 12px; }
  nav a { padding: 6px 7px; font-size: 14px; }
  nav a:nth-child(3), nav a:nth-child(4) { display: none; }
  .trow { font-size: 13px; }
  .trow > :nth-child(4) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logo span { display: none; }
  .bgrid, .how { grid-template-columns: 1fr; }
  .crow { grid-template-columns: minmax(130px, 2fr) 1fr 0.8fr; padding: 11px 12px; }
  .wrow { grid-template-columns: minmax(130px, 2fr) 1fr 90px; }
  .wrow > :nth-child(2), .wrow > :nth-child(3) { display: none; }
  .hide-s { display: none; }
  .show-s { display: inline; }
  .cgrid > .card, .cgrid .card { width: 100%; align-self: stretch; }
  .stats.three { grid-template-columns: 1fr; }
  .kpis { gap: 16px; }
  #chart { height: 300px; }
  .trow { grid-template-columns: 44px 1fr 1fr 44px; }
  .trow > .hide-s { display: none; }
  .lead { font-size: 16px; }
}
