@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Kode+Mono:wght@400;500;600;700&display=swap');

/* =========================================================
   MEME WORLD ASSET — landing surface
   Light brutalist market UI: cream + ink + electric lime, hard 2px borders,
   offset shadows, monospace furniture. The header, footer and mobile menu
   live in shared-shell.css so this page and /launchpad share one shell.
   ========================================================= */

:root {
  --cream: #F2EEE3;
  --card: #FFFEFB;
  --ink: #141414;
  --lime: #BFFF00;
  --lime2: #99CC00;
  --lime-deep: #4D7A00;
  --dim: #6B6B66;
  --muted: #9A9A92;
  --soft: #DDD8C9;
  --good: #168a46;
  --bad: #df3c32;
  --max: 1420px;               /* one page width, shared with the shell */
  --mono: 'Kode Mono', 'SFMono-Regular', Consolas, monospace;
  --sans: Inter, Arial, sans-serif;

  /* One spacing and shadow scale, so no two blocks invent their own. */
  --sec: 88px;                 /* vertical rhythm between sections */
  --sh-sm: 3px;
  --sh-md: 4px;
  --sh-lg: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* Sticky footer: a short route must not leave the footer mid-page. */
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* The active route stretches, so an app route's own background reaches the
   footer instead of stopping at its content and showing a two-tone seam. */
main { flex: 1 0 auto; display: flex; flex-direction: column; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 2px; }
.noise { display: none; }

.shell, .app-shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.route { display: none; }
.route.active { display: block; flex: 1 0 auto; }

.mono-row, .eyebrow {
  font: 700 10px var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.up { color: var(--good) !important; }
.down { color: var(--bad) !important; }

/* ==================================================================== hero */

.hero { padding: 40px 0 var(--sec); }
.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 2px solid var(--ink);
}

/* Three columns: rotated side note, wordmark headline, mascot. Both the
   headline and the mascot sit on the same bottom line, and the row takes its
   height from the mascot rather than a guessed min-height — that guess is
   what left a dead band of cream above the title. */
.hero-title-wrap {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 400px;
  align-items: end;
  gap: 20px;
  padding-top: 34px;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.hero-title-wrap h1 {
  margin: 0 0 34px;
  font-size: clamp(64px, 9.4vw, 168px);
  line-height: .74;
  letter-spacing: -.075em;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-title-wrap h1 span {
  display: inline-block;
  background: var(--lime);
  padding: 0 .04em;
}
.hero-side-note {
  align-self: end;
  margin-bottom: 34px;
  font: 700 10px/1.5 var(--mono);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
/* The cutout is a square PNG with transparent margins baked in (≈12.8% at the
   bottom, ≈14.8% at the right). Laying it out by its box left the raccoon
   floating above the rule and short of the edge, so the transparent band is
   pulled back out — the visible art then sits exactly on the border and flush
   with the container. Both figures are shares of the tile, so they hold at
   every size; the wrap clips the overflow, which is transparent anyway. */
.hero-mascot {
  --mascot: 400px;
  width: var(--mascot);
  margin: 0 calc(var(--mascot) * -.1475) calc(var(--mascot) * -.1276) 0;
  align-self: end;
  justify-self: end;
}
.hero-mascot img { width: 100%; height: auto; }

.hero-bottom-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  padding-top: 32px;
}
.hero-copy p {
  max-width: 760px;
  margin: 0 0 26px;
  font-size: 20px;
  line-height: 1.45;
}
.hero-actions { display: flex; align-items: center; gap: 18px; }

.big-cta {
  height: 64px;
  width: min(390px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--lime);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font: 800 12px var(--mono);
  transition: transform .12s, box-shadow .12s;
}
.big-cta b { font-size: 24px; }
.big-cta:hover { transform: translate(1px, 1px); box-shadow: 4px 4px 0 var(--ink); }
.big-cta:active { transform: translate(5px, 5px); box-shadow: none; }
.big-cta.wide { width: min(700px, 100%); }
.text-link {
  font: 700 11px var(--mono);
  padding: 10px 0;
  border-bottom: 2px solid var(--ink);
}

.hero-system-card {
  align-self: end;
  border: 2px solid var(--ink);
  box-shadow: var(--sh-lg) var(--sh-lg) 0 var(--ink);
  background: var(--card);
}
.hero-system-card > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--soft);
  font: 600 10px var(--mono);
}
.hero-system-card > div:last-child { border-bottom: 0; }
.hero-system-card span { color: var(--dim); }

/* =============================================================== live tape */

.live-tape {
  height: 54px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 150px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--card);
  overflow: hidden;
}
.tape-label, .live-tape > a {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 10px var(--mono);
  border-right: 2px solid var(--ink);
}
.live-tape > a { border-right: 0; border-left: 2px solid var(--ink); }
.live-tape > a:hover { background: var(--lime); }
.blink-dot {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--lime2);
  display: inline-block;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

.ticker-window { overflow: hidden; }
.ticker-track { height: 100%; display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker-item {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-right: 1px solid var(--soft);
  font: 600 10px var(--mono);
  white-space: nowrap;
}
.ticker-item img { width: 18px; height: 18px; border-radius: 50%; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ================================================================= metrics */

.metrics-section { padding: var(--sec) 0; }
.section-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow: var(--sh-lg) var(--sh-lg) 0 var(--ink);
}
.metrics-grid article {
  min-height: 150px;
  padding: 20px;
  border-right: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.metrics-grid article:last-child { border-right: 0; }
.metrics-grid span, .metrics-grid small { font: 600 10px var(--mono); }
.metrics-grid small { color: var(--dim); }
.metrics-grid strong {
  margin: auto 0 12px;
  font: 700 clamp(28px, 3vw, 44px) var(--mono);
  letter-spacing: -.05em;
}

/* =================================================================== intro */

.intro-section {
  display: grid;
  grid-template-columns: 72px 1.2fr .8fr;
  gap: 36px;
  padding: var(--sec) 0;
  border-top: 2px solid var(--ink);
}
.section-number { font: 700 11px var(--mono); }
.intro-main h2, .section-heading-row h2, .final-cta h2 {
  margin: 14px 0 24px;
  font-size: clamp(46px, 6vw, 88px);
  line-height: .9;
  letter-spacing: -.055em;
}
/* This heading sits in a 1.2fr column, not the full page: at the shared size
   its second line broke mid-phrase into three ragged lines. */
.intro-main h2 { font-size: clamp(36px, 4.6vw, 66px); }
.intro-main h2 i { font-style: normal; background: var(--lime); }
.intro-main p { max-width: 760px; font-size: 18px; line-height: 1.5; }
.intro-aside {
  align-self: end;
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow: var(--sh-md) var(--sh-md) 0 var(--ink);
}
.terminal-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--soft);
  font: 600 10px var(--mono);
}
.terminal-line:last-child { border-bottom: 0; }

/* ============================================================= stock table */

.fairstocks-preview { padding: 0 0 var(--sec); }
.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  margin-bottom: 30px;
}
.section-heading-row p { max-width: 440px; line-height: 1.5; }
.square-link {
  padding: 14px 16px;
  border: 2px solid var(--ink);
  box-shadow: var(--sh-md) var(--sh-md) 0 var(--ink);
  background: var(--card);
  font: 700 10px var(--mono);
  white-space: nowrap;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.square-link:hover { background: var(--lime); transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink); }

.stock-table-wrap {
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow: var(--sh-lg) var(--sh-lg) 0 var(--ink);
}
.stock-table-head, .stock-row {
  display: grid;
  grid-template-columns: 1.65fr .7fr .55fr .8fr .8fr;
  gap: 18px;
  align-items: center;
}
.stock-table-head {
  padding: 11px 14px;
  border-bottom: 2px solid var(--ink);
  font: 700 9px var(--mono);
}
.stock-row {
  min-height: 64px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--soft);
  font: 600 11px var(--mono);
}
.stock-row:last-child { border-bottom: 0; }
.stock-row:hover { background: #F8F6ED; }
.stock-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stock-identity img, .stock-letter {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: var(--lime);
  font-weight: 800;
}
.stock-identity div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stock-identity b, .stock-rank-identity b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-identity small, .stock-rank-identity small {
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contract-link { text-decoration: underline; text-decoration-thickness: 1px; }

/* Shared by both boards: loading, or a feed that is down. No fake rows. */
.board-empty {
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 26px 20px;
  text-align: center;
  color: var(--dim);
  font: 600 11px/1.6 var(--mono);
}

/* ================================================================ features */

.features-block { background: var(--ink); color: var(--cream); padding: var(--sec) 0; }
.features-block .eyebrow, .features-block p { color: var(--cream); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid var(--cream);
}
.feature-card {
  min-height: 300px;
  padding: 24px;
  border-right: 2px solid var(--cream);
  border-bottom: 2px solid var(--cream);
  display: flex;
  flex-direction: column;
}
/* Five cards, one of them double-width: 2 + 1 on the first row, then three on
   the second. Two wide cards left a hole in the grid — a bordered empty cell
   reads as a missing card, not as breathing room. The border rules below name
   that layout, so they move together with it. */
.feature-card.feature-wide { grid-column: span 2; }
.feature-card:nth-child(2), .feature-card:nth-child(5) { border-right: 0; }
.feature-card:nth-child(n+3) { border-bottom: 0; }
.feature-icon { margin-bottom: 52px; font: 800 28px var(--mono); color: var(--lime); }
.feature-card small { font: 700 10px var(--mono); }
.feature-card h3 { margin: 9px 0; font-size: 28px; }
.feature-card p { line-height: 1.48; }
.feature-card a { margin-top: auto; padding-top: 18px; font: 700 10px var(--mono); color: var(--lime); }
.feature-card a:hover { text-decoration: underline; }

/* ============================================================== tokenomics */

.tokenomics { padding: var(--sec) 0; }
.tokenomics-grid {
  display: grid;
  grid-template-columns: 6fr 3fr 2fr;
  border: 2px solid var(--ink);
  box-shadow: var(--sh-lg) var(--sh-lg) 0 var(--ink);
}
.allocation-big {
  min-height: 220px;
  padding: 22px;
  border-right: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card);
}
.allocation-big:last-child { border-right: 0; }
.allocation-big span { font: 800 clamp(50px, 7vw, 94px) var(--mono); letter-spacing: -.08em; }
.allocation-big div { display: flex; flex-direction: column; }
.allocation-big b { font: 800 11px var(--mono); }
.allocation-big small { margin-top: 4px; font: 600 10px var(--mono); color: var(--dim); }
.allocation-big.liquidity { background: var(--lime); }

.infra-rail { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--card); }
.infra-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font: 700 11px var(--mono);
}
.infra-inner i { font-style: normal; color: var(--lime2); }

.final-cta { padding: var(--sec) 0 calc(var(--sec) + 20px); }
.final-cta h2 { font-size: clamp(58px, 8vw, 118px); }

/* ============================================== app routes (board / spec) */

.app-route { background: #F7F5ED; }
.app-shell { padding: 38px 0 var(--sec); }
.app-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 24px;
}
.app-page-head h2 { margin: 6px 0 0; font-size: 54px; letter-spacing: -.055em; }
.app-page-head p { max-width: 650px; line-height: 1.45; color: var(--dim); }
.data-status {
  flex: 0 0 auto;
  padding: 11px 13px;
  border: 2px solid var(--ink);
  background: var(--card);
  font: 700 9px var(--mono);
  white-space: nowrap;
}

.stock-tabs { width: max-content; margin-bottom: 14px; display: flex; border: 2px solid var(--ink); background: var(--card); }
.stock-tabs button {
  border: 0;
  border-right: 1px solid var(--ink);
  background: transparent;
  padding: 11px 14px;
  font: 700 10px var(--mono);
}
.stock-tabs button:last-child { border-right: 0; }
.stock-tabs button.active { background: var(--ink); color: var(--lime); }

.stocks-full-table {
  border: 2px solid var(--ink);
  background: var(--card);
  box-shadow: 5px 5px 0 var(--ink);
  overflow-x: auto;
}
.stocks-full-head, .stock-full-row {
  min-width: 930px;
  display: grid;
  grid-template-columns: 1.6fr .7fr .55fr .7fr .6fr .9fr .45fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}
.stocks-full-head { border-bottom: 2px solid var(--ink); font: 700 9px var(--mono); }
.stock-full-row {
  min-height: 62px;
  border-bottom: 1px solid var(--soft);
  font: 600 10px var(--mono);
}
.stock-full-row:last-child { border-bottom: 0; }
.stock-full-row:hover { background: #F8F6ED; }
.stock-rank-identity { display: flex; align-items: center; gap: 9px; min-width: 0; }
.stock-rank { width: 22px; flex: 0 0 auto; color: var(--dim); }
.stock-rank-identity img, .stock-rank-identity .stock-letter { width: 32px; height: 32px; }
.stock-rank-identity div { min-width: 0; display: flex; flex-direction: column; }
.status-live { color: var(--good); }
.status-halted { color: var(--bad); }
.stock-trade-link { font-weight: 800; text-decoration: underline; }

/* --- asset standard page ------------------------------------------------- */

.standard-total {
  flex: 0 0 auto;
  padding: 14px;
  border: 2px solid var(--ink);
  background: var(--lime);
  display: flex;
  flex-direction: column;
}
.standard-total span, .standard-total small { font: 700 9px var(--mono); }
.standard-total b { font: 800 22px var(--mono); margin: 6px 0 2px; }
.standard-visual { margin: 40px 0; }
.standard-axis { display: flex; justify-content: space-between; gap: 16px; font: 700 9px var(--mono); }
.standard-line { height: 2px; background: var(--ink); margin: 12px 0 20px; }
.standard-cards, .standard-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.standard-card {
  min-height: 140px;
  padding: 16px;
  border: 2px solid var(--ink);
  box-shadow: var(--sh-md) var(--sh-md) 0 var(--ink);
  background: var(--card);
  display: flex;
  flex-direction: column;
}
.standard-card span, .standard-card small { font: 700 9px var(--mono); }
.standard-card b { margin: auto 0; font: 800 40px var(--mono); letter-spacing: -.05em; }
.standard-card small { color: var(--dim); }
.standard-explain-grid { margin-top: 12px; }
.standard-explain-grid article {
  padding: 18px;
  border: 2px solid var(--ink);
  background: var(--card);
}
.standard-explain-grid article span { font: 800 10px var(--mono); background: var(--lime); padding: 5px; }
.standard-explain-grid h3 { font-size: 20px; margin: 14px 0 8px; }
.standard-explain-grid p { margin: 0; line-height: 1.45; color: var(--dim); }

/* =================================================================== toast */

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--lime);
  font: 700 10px var(--mono);
  z-index: 100;
  transition: .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================ breakpoints */

@media (max-width: 1120px) {
  .hero-title-wrap { grid-template-columns: minmax(0, 1fr) 300px; }
  .hero-side-note { display: none; }
  .hero-mascot { --mascot: 300px; }
}

@media (max-width: 900px) {
  :root { --sec: 64px; }
  .shell, .app-shell { width: min(calc(100% - 24px), var(--max)); }
  .hero { padding-top: 24px; }
  .hero-title-wrap { grid-template-columns: minmax(0, 1fr) 230px; gap: 14px; }
  .hero-title-wrap h1 { font-size: clamp(52px, 10.6vw, 96px); margin-bottom: 24px; white-space: normal; }
  .hero-mascot { --mascot: 230px; }
  .hero-bottom-grid, .intro-section { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid article:nth-child(2) { border-right: 0; }
  .metrics-grid article:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
  .section-number { display: none; }
  /* Two columns: the wide card takes the first row alone, then two pairs. */
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card { border-right: 2px solid var(--cream); border-bottom: 2px solid var(--cream); }
  .feature-card:nth-child(odd) { border-right: 0; }
  .feature-card:nth-child(n+4) { border-bottom: 0; }
  .tokenomics-grid { grid-template-columns: 1fr; }
  .allocation-big { border-right: 0; border-bottom: 2px solid var(--ink); }
  .allocation-big:last-child { border-bottom: 0; }
  .infra-inner { overflow-x: auto; justify-content: flex-start; white-space: nowrap; }
  .section-heading-row, .app-page-head { flex-direction: column; align-items: flex-start; }
  .standard-cards, .standard-explain-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .hero-meta { font-size: 8px; }
  .hero-title-wrap { grid-template-columns: minmax(0, 1fr); position: relative; padding-top: 26px; }
  .hero-title-wrap h1 { position: relative; z-index: 2; font-size: clamp(46px, 16vw, 78px); margin: 0 0 190px; }
  .hero-mascot { position: absolute; right: calc(230px * -.1475); bottom: calc(230px * -.1276); --mascot: 230px; z-index: 1; margin: 0; }
  .hero-bottom-grid { padding-top: 24px; gap: 24px; }
  .hero-copy p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .big-cta { width: 100%; }
  .text-link { width: max-content; }
  .live-tape { grid-template-columns: 130px minmax(0, 1fr); }
  .live-tape > a { display: none; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metrics-grid article { border-right: 0 !important; border-bottom: 2px solid var(--ink) !important; }
  .metrics-grid article:last-child { border-bottom: 0 !important; }
  .stock-table-head, .stock-row { grid-template-columns: 1.4fr .7fr .55fr; }
  .stock-table-head span:nth-child(4), .stock-table-head span:nth-child(5),
  .stock-row > *:nth-child(4), .stock-row > *:nth-child(5) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card.feature-wide {
    grid-column: span 1;
    border-right: 0;
    border-bottom: 2px solid var(--cream);
  }
  .feature-card:last-child { border-bottom: 0; }
  .app-page-head h2 { font-size: 40px; }
  .standard-cards, .standard-explain-grid { grid-template-columns: 1fr; }
  .infra-rail { display: none; }
}

/* =========================================================
   Touch targets
   The inline links carry real navigation, so they get a thumb-sized row
   rather than the height of their own 10px type.
   ========================================================= */
.text-link { display: inline-flex; align-items: center; min-height: 44px; }
.feature-card a { display: inline-flex; align-items: center; min-height: 44px; padding-top: 14px; }
/* Address links sit inside a dense table row, so they take their height from
   padding rather than from the row itself. */
a.contract-link, .stock-trade-link { display: inline-flex; align-items: center; min-height: 34px; }
@media (max-width: 900px) { a.contract-link, .stock-trade-link { min-height: 44px; } }
