:root {
  /* pump.fun dark theme */
  --bg: #0c0c0c;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --ink: #ffffff;
  --paper: #0c0c0c;
  --deep: #1a1a1a;
  --acid: #86ef4a;
  --on-acid: #0c0c0c;
  --muted: #8a8a8a;
  --rule: rgba(255, 255, 255, 0.1);
  --up: #86ef4a;
  --down: #ff5c5c;
  --shadow: #000000;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 48px)); margin: auto; }

.ticker {
  overflow: hidden;
  background: #080808;
  color: var(--acid);
  border-bottom: 1px solid var(--rule);
  font: 500 11px/28px "DM Mono", monospace;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.ticker-track span {
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.nav {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.07em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: #000;
  flex-shrink: 0;
}
.brand-text { line-height: 1; }
footer .brand-mark {
  width: 28px;
  height: 28px;
}
.nav nav {
  display: flex;
  gap: 34px;
  font: 500 11px "DM Mono", monospace;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.nav nav a:hover { color: var(--acid); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--acid);
  color: var(--on-acid);
  border: 1px solid transparent;
  padding: 16px 22px;
  font: 500 11px "DM Mono", monospace;
  box-shadow: none;
  transition: 0.15s;
  border-radius: 8px;
}
.button:hover {
  filter: brightness(1.06);
  transform: none;
  box-shadow: none;
}
.button.small {
  padding: 11px 15px;
  box-shadow: none;
}
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}
.button[aria-disabled="true"]:hover {
  filter: none;
  transform: none;
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 96px 0 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 820px);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.kicker,
.stamp,
.live {
  font: 500 11px "DM Mono", monospace;
  letter-spacing: 0.1em;
}
.live i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--acid);
  border: 1px solid transparent;
  border-radius: 50%;
  margin-right: 9px;
}
.kicker { color: var(--acid); }
.hero h1 {
  font-size: clamp(80px, 9.2vw, 126px);
  line-height: 1.22;
  letter-spacing: -0.085em;
  margin: 0 0 12px;
  white-space: nowrap;
  font-weight: 700;
}
.hero mark {
  display: inline-block;
  background: var(--acid);
  color: var(--on-acid);
  padding: 0 0.11em 0.07em;
  margin-top: 0.12em;
}
.hero-tagline {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0;
}
.lede {
  font-size: 18px;
  line-height: 1.65;
  max-width: 640px;
  margin: 0;
  color: var(--muted);
}
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 12px;
}
.text-link {
  font: 500 11px "DM Mono", monospace;
  border-bottom: 1px solid var(--acid);
  color: var(--acid);
  padding-bottom: 4px;
}
.text-link:hover { filter: brightness(1.1); }

.position-section {
  background: var(--surface);
  color: var(--ink);
  padding: 90px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 35px;
  gap: 20px;
}
.section-head h2 {
  font-size: 56px;
  letter-spacing: -0.06em;
  margin: 10px 0 0;
  font-weight: 700;
}
.live { color: var(--muted); }
.live i { box-shadow: 0 0 0 5px rgba(134, 239, 74, 0.18); }

.position-card {
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: none;
  border-radius: 12px;
  overflow: hidden;
}
.position-title {
  padding: 24px 28px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.pair,
.position-title > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.pair strong,
.pair small,
.position-title strong,
.position-title small { display: block; }
.pair small,
.position-title small {
  font: 10px "DM Mono", monospace;
  color: var(--muted);
  margin-top: 4px;
}
.coin {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--on-acid);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.badge {
  background: var(--acid);
  color: var(--on-acid);
  border: 1px solid transparent;
  padding: 7px 10px;
  font: 500 11px "DM Mono", monospace;
  border-radius: 6px;
}
.position-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
}
.position-grid > div {
  padding: 32px 27px;
  min-height: 135px;
  border-right: 1px solid var(--rule);
}
.position-grid > div:last-child { border: 0; }
.position-grid small,
.stats small {
  display: block;
  font: 10px "DM Mono", monospace;
  color: var(--muted);
  margin-bottom: 16px;
}
.position-grid strong { font-size: 22px; }
.pnl-block strong {
  font-size: 40px;
  color: var(--up);
  display: block;
}
.pnl-block span {
  font: 10px "DM Mono", monospace;
  color: var(--muted);
}
.card-foot {
  padding: 17px 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font: 10px "DM Mono", monospace;
  color: var(--muted);
  gap: 16px;
}
.card-foot a {
  color: var(--acid);
  font-weight: 500;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
  border-top: 1px solid var(--rule);
}
.stats > div {
  padding: 28px 0;
  border-right: 1px solid var(--rule);
}
.stats > div:not(:first-child) { padding-left: 28px; }
.stats small { color: var(--muted); }
.stats strong { font-size: 32px; }

.ledger { padding: 100px 0; }
.intro-note { margin: -8px 0 24px; }
.ledger-block { margin-bottom: 10px; }
.ledger-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--rule);
  box-shadow: none;
  background: var(--surface);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font: 12px "DM Mono", monospace;
  white-space: nowrap;
}
th {
  text-align: left;
  background: var(--surface-2);
  color: var(--muted);
  padding: 13px 17px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
td {
  padding: 17px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
}
td a {
  border-bottom: 1px solid;
  color: var(--acid);
}
.long-pill {
  background: var(--acid);
  color: var(--on-acid);
  border: 1px solid transparent;
  padding: 4px 7px;
  font-size: 10px;
  border-radius: 4px;
}
.table-note {
  font: 10px "DM Mono", monospace;
  color: var(--muted);
  margin: 15px 0;
}
.claims-head { margin: 48px 0 25px; }
.claims-head h3 {
  font-size: 36px;
  letter-spacing: -0.04em;
  margin: 8px 0;
  font-weight: 700;
}

.mechanism {
  background: var(--bg);
  color: var(--ink);
  padding: 90px 0;
  border-top: 1px solid var(--rule);
}
.mechanism .kicker { color: var(--acid); }
.mechanism h2 {
  font-size: 58px;
  letter-spacing: -0.06em;
  line-height: 1;
  margin: 18px 0 55px;
  font-weight: 700;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.steps-3 { grid-template-columns: repeat(3, 1fr); }
.steps article {
  padding: 25px;
  border-right: 1px solid var(--rule);
  min-height: 230px;
}
.steps article:last-child { border: 0; }
.steps b {
  font: 12px "DM Mono", monospace;
  color: var(--acid);
}
.steps h3 {
  font-size: 24px;
  margin: 48px 0 12px;
}
.steps p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.token {
  padding: 105px 0;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: end;
}
.token h2 {
  font-size: 58px;
  letter-spacing: -0.06em;
  margin: 12px 0;
  font-weight: 700;
}
.token p { color: var(--muted); }
.contract {
  width: 100%;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 12px;
  text-align: left;
  padding: 24px;
  cursor: pointer;
  position: relative;
}
.contract small {
  display: block;
  font: 10px "DM Mono", monospace;
  color: var(--muted);
  margin-bottom: 13px;
}
.contract code {
  font: 13px "DM Mono", monospace;
  word-break: break-all;
}
.contract b {
  position: absolute;
  right: 22px;
  top: 22px;
  font: 10px "DM Mono", monospace;
  background: var(--acid);
  color: var(--on-acid);
  padding: 5px 7px;
  border-radius: 4px;
}

footer.shell,
footer {
  min-height: 140px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 11px "DM Mono", monospace;
  color: var(--muted);
  gap: 20px;
  padding: 28px 0 36px;
}
footer .brand { color: var(--ink); }
footer a:hover { color: var(--acid); }
footer div { display: flex; gap: 20px; }

@media (max-width: 980px) {
  .shell { width: min(100% - 28px, 1180px); }
  .nav {
    height: auto;
    min-height: 72px;
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .nav nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a { flex-shrink: 0; }
  .hero {
    min-height: auto;
    padding: 64px 0 72px;
  }
  .hero-copy {
    width: 100%;
    gap: 22px;
  }
  .hero h1 {
    font-size: clamp(56px, 9vw, 76px);
    white-space: normal;
  }
  .section-head { align-items: start; }
  .section-head h2 { font-size: 42px; }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats > div { padding-left: 0 !important; }
  .stats > div:nth-child(2n) { border-right: 0; }
  .ledger-split { grid-template-columns: 1fr; }
  .steps,
  .steps-3 { grid-template-columns: 1fr; }
  .steps article { border-right: 0; border-bottom: 1px solid var(--rule); }
  .steps article:last-child { border-bottom: 0; }
  .token {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 80px 0;
  }
  .mechanism h2 { font-size: 44px; }
  footer {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

@media (max-width: 680px) {
  html,
  body { overflow-x: clip; }
  .shell { width: min(100% - 24px, 1180px); }
  .ticker {
    font-size: 7.7px; /* 30% smaller than desktop 11px */
    line-height: 20px; /* 30% smaller than desktop 28px */
    letter-spacing: 0.1em;
  }
  .ticker-track { animation-duration: 22s; }
  .nav {
    min-height: 64px;
    padding: 12px 0 10px;
  }
  .brand { font-size: 22px; }
  .button.small { padding: 10px 12px; font-size: 10px; }
  .hero {
    padding: 40px 0 56px;
    align-items: flex-start;
  }
  .hero-copy { gap: 18px; }
  .hero h1 {
    font-size: clamp(48px, 14vw, 64px);
    line-height: 1.18;
    letter-spacing: -0.07em;
    margin: 0;
    white-space: normal;
  }
  .hero mark { margin-top: 0.08em; }
  .hero-tagline {
    font-size: 20px;
    line-height: 1.3;
    max-width: 18ch;
  }
  .lede {
    font-size: 16px;
    line-height: 1.6;
    max-width: 34em;
  }
  .actions {
    flex-direction: column;
    width: 100%;
    gap: 18px;
    margin-top: 4px;
  }
  .actions .button {
    width: min(100%, 320px);
  }
  .position-section,
  .ledger,
  .mechanism { padding: 56px 0; }
  .section-head {
    display: block;
    margin-bottom: 24px;
  }
  .section-head h2 {
    font-size: clamp(34px, 9vw, 40px);
    line-height: 1.05;
  }
  .live,
  .stamp {
    display: block;
    margin-top: 14px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stats > div {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .stats > div:last-child { border-bottom: 0; }
  .stats strong { font-size: 24px; }
  .claims-head { margin: 36px 0 18px; }
  .claims-head h3 { font-size: 28px; }
  .table-wrap { box-shadow: none; }
  th,
  td { padding: 12px 14px; }
  .steps { display: block; }
  .steps article {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    min-height: 0;
    padding: 22px 18px;
  }
  .steps article:last-child { border-bottom: 0; }
  .steps h3 { margin: 28px 0 10px; font-size: 22px; }
  .mechanism h2,
  .token h2 {
    font-size: clamp(34px, 10vw, 40px);
    line-height: 1.05;
  }
  .mechanism h2 { margin: 14px 0 32px; }
  .token { padding: 64px 0 72px; align-items: start; }
  .contract {
    padding: 20px 64px 20px 16px;
  }
  .contract code { font-size: 12px; }
  footer {
    padding: 28px 0 36px;
    display: grid;
    gap: 14px;
    min-height: 0;
  }
  footer p {
    margin: 0;
    line-height: 1.45;
    max-width: 36ch;
  }
  footer div {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 44px; }
  .nav nav { gap: 14px; }
  .button.small { padding: 9px 10px; }
}
