/* PumpChain — product type: Geist Sans everywhere, Geist Mono for addresses only */
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --paper-2: #F7F8F7;
  --ink: #101412;
  --ink-soft: #3A4240;
  --mute: #6B736F;
  --line: #E6E8E6;
  --line-2: #D5D8D5;
  --brand: #1A5D46;
  --accent: #1F9A5C;
  --up: #1F9A5C;
  --down: #D13B3B;
  --stone: #8A908C;
  --sans: "Geist", "Helvetica Neue", "SF Pro Display", system-ui, sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", ui-monospace, monospace;
  --max: 1180px;
  --gutter: 32px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
html { font-size: 17px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { font-family: var(--sans); line-height: 1.5; letter-spacing: -0.011em; min-height: 100vh; display: flex; flex-direction: column; font-weight: 400; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.045em; line-height: 1.04; margin: 0; font-feature-settings: "ss01" on, "cv11" on; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.35rem); letter-spacing: -0.05em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.15rem); letter-spacing: -0.04em; font-weight: 600; }
h3 { font-size: 1.05rem; letter-spacing: -0.03em; font-weight: 600; }
p { margin: 0; }
code, .mono, .addr, kbd { font-family: var(--mono); font-size: .84em; font-weight: 500; letter-spacing: 0; }
.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; }

.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand img, .brand svg { width: 32px; height: 32px; border-radius: 7px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; gap: 1px; }
.brand b { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.04em; }
.brand .ticker { font-size: .68rem; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.nav { display: flex; gap: 4px 22px; flex: 1; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: .92rem; padding: 5px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.on { color: var(--ink); border-bottom-color: var(--ink); }
.nav a.launch { color: var(--accent); }
.top-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pill {
  border: 1px solid var(--line-2); background: transparent; padding: 7px 14px;
  border-radius: 999px; font-size: .85rem; color: var(--ink-soft);
}
.pill:hover, .pill.on { border-color: var(--ink); color: var(--ink); }
.pill.warn { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent); }

.banner {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-soft);
  font-size: .86rem;
  padding: 11px 0;
}
.banner .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }

.ca-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-size: .82rem;
  padding: 8px 0;
}
.ca-strip-inner {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  min-height: 28px;
}
.ca-label {
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .68rem;
  color: var(--brand);
  flex: 0 0 auto;
}
.ca-addr {
  font-size: .8rem;
  color: var(--ink);
  word-break: break-all;
  overflow-wrap: anywhere;
}
.ca-copy {
  border: 1px solid var(--line-2);
  background: var(--paper-2);
  color: var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.3;
}
.ca-copy:hover { border-color: var(--brand); color: var(--brand); }
.ca-copy.is-copied { border-color: var(--accent); color: var(--accent); }
.ca-copy.linkish {
  border: 0;
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--accent);
  font-size: inherit;
  font-weight: 500;
}
.ca-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.ca-link:hover, .foot .ca-copy.linkish:hover { text-decoration: underline; text-underline-offset: 2px; }
.foot code.mono { font-size: .8em; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--brand); background: var(--brand); color: #FFFFFF;
  padding: 11px 18px; border-radius: 2px; text-decoration: none; font-size: .95rem;
  transition: background .18s var(--ease), color .18s, border-color .18s, transform .18s var(--ease);
}
.btn:hover { background: #147A4A; border-color: #147A4A; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 36px 48px;
  align-items: center;
  padding: 56px 0 28px;
  min-height: min(78vh, 760px);
}
.kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; }
.hero h1 em { font-style: normal; font-weight: 600; }
.hero p.lead { margin-top: 22px; font-size: 1.18rem; color: var(--ink-soft); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-stage {
  position: relative;
  height: min(62vh, 560px);
  min-height: 340px;
  perspective: 1200px;
}
.hero-stage::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 18%; bottom: 6%;
  background: radial-gradient(ellipse at 50% 58%, rgba(31,154,92,0.16) 0%, rgba(26,93,70,0.07) 42%, rgba(26,93,70,0) 72%);
  pointer-events: none;
  z-index: 0;
}
.hero-stage .hero3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.hero-fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
  z-index: 1;
}
.hero-fallback img {
  width: min(100%, 640px);
  height: auto;
  display: block;
}
.hero-stage.is-live .hero-fallback { opacity: 0; }
.stone-css {
  width: 70%;
  aspect-ratio: 1.15 / 1;
  transform: rotateX(18deg) rotateY(28deg);
  transform-style: preserve-3d;
  position: relative;
}
.course { position: absolute; left: 8%; right: 8%; height: 28%; display: flex; gap: 3%; transform-style: preserve-3d; }
.course:nth-child(1) { bottom: 8%; }
.course:nth-child(2) { bottom: 38%; }
.course:nth-child(3) { bottom: 68%; }
.block {
  background: linear-gradient(145deg, #FFFFFF 0%, #F7F8F7 55%, #E6E8E6 100%);
  box-shadow: inset 0 0 0 1px rgba(16,20,18,.08), 8px 14px 24px rgba(16,26,22,.08);
  border-radius: 3px;
  height: 100%;
}
.block.w2 { flex: 1.7; }
.block.w1 { flex: 1; }

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  margin: 12px 0 8px;
}
.stat { background: transparent; padding: 22px 8px 20px 0; }
.stat + .stat { padding-left: 22px; }
.stat b { display: block; font-family: var(--sans); font-size: 1.55rem; font-weight: 600; letter-spacing: -0.04em; }
.stat span { display: block; margin-top: 6px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.stat .note { letter-spacing: 0; text-transform: none; color: var(--stone); margin-top: 3px; }

.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 40px 0 10px; }
.col h3 { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
.col h3 em { font-style: normal; font-family: var(--sans); font-size: .82rem; color: var(--mute); font-weight: 500; letter-spacing: 0; }

.tilt-scene { perspective: 900px; }
.row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .18s var(--ease), background .18s;
}
.row:hover .nm b { text-decoration: underline; text-underline-offset: 3px; }
.pic, .pic img, .pic svg { width: 44px; height: 44px; border-radius: 2px; object-fit: cover; background: var(--paper-2); box-shadow: 0 6px 14px rgba(16,20,18,.08); }
.nm { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.nm b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm span { color: var(--mute); font-size: .85rem; }
.sub { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--mute); margin-top: 3px; }
.bar { flex: 1; height: 2px; background: var(--paper-2); min-width: 40px; max-width: 90px; }
.bar i { display: block; height: 100%; background: var(--ink); }
.mc { text-align: right; }
.mc b { display: block; font-family: var(--sans); font-weight: 600; letter-spacing: -0.03em; }
.mc div { font-size: .78rem; color: var(--mute); }
.empty { color: var(--mute); font-size: .95rem; padding: 26px 0; }

.section { padding: 72px 0; border-top: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.step n { font-family: var(--sans); display: block; color: var(--mute); font-size: 1.15rem; margin-bottom: 10px; letter-spacing: -0.04em; font-weight: 600; }
.step h3 { font-size: 1.45rem; }
.step p { color: var(--ink-soft); margin-top: 10px; max-width: 32em; }
.story p { color: var(--ink-soft); font-size: 1.12rem; max-width: 36em; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: 8px; color: var(--ink-soft); max-width: 48em; }
.loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; margin: 28px 0 0; padding: 0; }
.loop li { list-style: none; padding-top: 12px; border-top: 1px solid var(--ink); color: var(--ink-soft); }
.loop li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--sans); color: var(--mute); display: block; margin-bottom: 10px; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.03em; }

.page { padding: 44px 0 96px; flex: 1; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.page-head p { color: var(--ink-soft); max-width: 40em; margin-top: 10px; }

.coin-top { display: grid; grid-template-columns: 1.45fr .85fr; gap: 40px; align-items: start; }
.coin-id { display: flex; gap: 18px; align-items: center; }
.coin-id .pic, .coin-id .pic img, .coin-id .pic svg { width: 76px; height: 76px; border-radius: 3px; }
.meta { margin-top: 10px; color: var(--mute); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.chart {
  height: 320px; background: var(--paper); border: 1px solid var(--line); margin-top: 26px; position: relative;
}
.chart canvas { width: 100%; height: 100%; display: block; }
.trade-box { border: 1px solid var(--line); padding: 22px; background: var(--paper-2); position: sticky; top: 96px; }
.tabs { display: flex; gap: 0; margin-bottom: 16px; border: 1px solid var(--line-2); }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px; }
.tabs button.on { background: var(--ink); color: var(--paper); }
label, label.field { display: block; font-size: .75rem; color: var(--mute); margin: 12px 0 5px; letter-spacing: .08em; text-transform: uppercase; }
input, input[type=text], input[type=number], textarea, select {
  width: 100%; border: 1px solid var(--line-2); background: var(--paper); padding: 10px 11px; border-radius: 2px; outline: none;
}
button.link { border: 0; background: none; padding: 0; color: var(--accent); font-size: .9rem; text-decoration: underline; text-underline-offset: 2px; }
.modal-card, .sheet { width: min(440px, 100%); background: var(--paper); border: 1px solid var(--line-2); padding: 26px; box-shadow: 0 20px 50px rgba(16,20,18,.16); }
.modal-card h2, .sheet h2 { margin-bottom: 8px; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); }
.hint { font-size: .82rem; color: var(--mute); margin-top: 8px; }
.err { color: var(--down); font-size: .9rem; margin-top: 8px; }
.ok { color: var(--up); font-size: .9rem; margin-top: 8px; }
.bal { display: flex; justify-content: space-between; font-size: .88rem; color: var(--ink-soft); margin-top: 8px; }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 500; color: var(--mute); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding: 8px 8px 8px 0; }
.table td { border-bottom: 1px solid var(--line); padding: 11px 8px 11px 0; vertical-align: middle; }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; text-underline-offset: 2px; }
.buy { color: var(--up); }
.sell { color: var(--down); }

.form { max-width: 520px; }
.drop {
  border: 1px dashed var(--line-2); padding: 28px; text-align: center; color: var(--mute);
  background: var(--paper-2); cursor: pointer;
}
.drop input { display: none; }
.preview-img { width: 72px; height: 72px; object-fit: cover; margin: 0 auto 8px; border-radius: 2px; }

.tape li { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); list-style: none; font-size: .92rem; }
.tape { margin: 0; padding: 0; }

.modal {
  position: fixed; inset: 0; background: rgba(16,20,18,.38); z-index: 40;
  display: flex; align-items: flex-start; justify-content: center; padding: 88px 20px 40px;
}
.sheet { width: min(440px, 100%); background: var(--paper); border: 1px solid var(--line-2); padding: 26px; box-shadow: 0 20px 50px rgba(16,20,18,.16); }
.sheet h2 { margin-bottom: 8px; }
.wallets { margin: 16px 0; }
.wrow { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wrow button.link { border: 0; background: none; padding: 0; color: var(--accent); font-size: .85rem; }

.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--mute); font-size: .88rem; margin-top: auto; }
.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; color: var(--ink-soft); }
.foot a:hover { text-decoration: underline; text-underline-offset: 2px; }

.docs { max-width: 42em; }
.docs h2 { margin: 40px 0 12px; }
.docs h3 { margin: 24px 0 8px; }
.docs p, .docs li { color: var(--ink-soft); }
.docs ul, .docs ol { padding-left: 1.2em; }
.docs p + p { margin-top: 12px; }
.nums { width: 100%; }
.nums td { padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line); }
.nums td:first-child { color: var(--mute); white-space: nowrap; width: 40%; }

/* Visible by default so stats and other blocks stay readable without JS or scroll.
   Off-screen items are hidden only after JS marks them .pending. */
.reveal { opacity: 1; transform: none; }
.reveal.pending { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; }
.reveal.pending.in { transition: opacity .8s var(--ease), transform .8s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.pending { opacity: 1; transform: none; }
  .row, .stone-css { transition: none; transform: none; }
}

@media (max-width: 900px) {
  :root { --gutter: 18px; }
  html { font-size: 16px; }
  .hero, .stats, .columns, .grid-2, .grid-3, .loop, .coin-top { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 32px; gap: 12px; }
  .hero-stage { height: 300px; min-height: 260px; order: -1; }
  .nav { display: none; }
  .top-inner { height: 58px; }
  .menu-btn { display: inline-flex; }
  .stat + .stat { padding-left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .trade-box { position: static; }
}
@media (min-width: 901px) { .menu-btn { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 10px 0 14px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: inline-block; margin: 6px 16px 6px 0; text-decoration: none; color: var(--ink-soft); }


/* explorer */
.ex-search { display: flex; gap: 8px; align-items: stretch; width: min(100%, 560px); }
.ex-search input { flex: 1; }
.ex-search .btn { padding: 10px 16px; }
.subnav { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0 28px; }
.subnav a { text-decoration: none; color: var(--ink-soft); font-size: .9rem; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.subnav a:hover, .subnav a.on { color: var(--ink); border-bottom-color: var(--ink); }
.net { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin: 8px 0 36px; }
.net .stat { padding: 18px 12px 18px 0; }
.hits { list-style: none; margin: 0; padding: 0; }
.hits li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.hits a { text-decoration: none; }
.hits a:hover { text-decoration: underline; text-underline-offset: 2px; }
.kind { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* bridge */
.bridge-tabs { display: flex; border: 1px solid var(--line-2); margin-bottom: 18px; }
.bridge-tabs button { flex: 1; border: 0; background: transparent; padding: 10px; }
.bridge-tabs button.on { background: var(--ink); color: var(--paper); }
.bridge-panel { border: 1px solid var(--line); background: var(--paper-2); padding: 24px; }
.bridge-panel.is-closed { opacity: 1; }
.bridge-status {
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--paper));
  padding: 14px 16px; margin-bottom: 16px; color: var(--ink-soft);
}
.bridge-status b { color: var(--accent); display: block; margin-bottom: 4px; font-weight: 600; }
.slot-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.slot-row span:first-child { color: var(--mute); }
.muted-input { background: var(--paper-2) !important; color: var(--mute); }

@media (max-width: 900px) {
  .net { grid-template-columns: repeat(2, 1fr); }
}

/* chain-link 3D fallback */
.chain-css {
  width: 240px; height: 240px;
  position: relative;
  transform: rotateX(16deg) rotateY(22deg);
  transform-style: preserve-3d;
}
.chain-css .link {
  position: absolute;
  width: 150px; height: 92px;
  border: 18px solid #1A5D46;
  border-radius: 999px;
  box-sizing: border-box;
}
.chain-css .link.g { left: 18px; top: 52px; transform: rotate(-22deg); }
.chain-css .link.w {
  left: 68px; top: 86px;
  border-color: #FFFFFF;
  transform: rotate(58deg);
  filter: drop-shadow(0 10px 16px rgba(16,20,18,.12));
}

.tilt-scene { transform-style: preserve-3d; transition: transform .18s var(--ease); will-change: transform; }

/* bridge converter */
.rate-card {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 22px 24px;
  margin: 8px 0 28px;
}
.rate-card .rate {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}
.rate-card p { color: var(--ink-soft); margin-top: 10px; max-width: 36em; }
.converter { display: grid; gap: 8px; margin: 18px 0 16px; }
.converter label {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.converter .equals { color: var(--mute); font-size: .85rem; margin: 2px 0; }
.conv-out {
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  min-height: 1.3em;
}
.bridge-page { max-width: 640px; }
.bridge-page .lead { margin: 16px 0 28px; color: var(--ink-soft); font-size: 1.12rem; }

.thumb { width: 44px; height: 44px; border-radius: 4px; overflow: hidden; background: #F7F8F7; flex: 0 0 auto; }
.thumb img, .thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.lg { width: 72px; height: 72px; }
.board { border-top: 1px solid var(--line); }
.coin-head { display: flex; gap: 16px; align-items: center; }
