/* Launchpad Revenue Board — Birdeye Data web design language.
   Tokens and card/widget/chip/pill treatments follow 03_dashboards/otc-launchpad-terminal
   (Figma -Web- Birdeye Data, 05_new-ideas/money-flow-homepage-feature). */

@font-face { font-family: "Geist"; src: url("assets/fonts/geist/Geist-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono/GeistMono-VariableFont_wght.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #090B0C;
  --panel: #15181A;
  --widget: #1E2225;
  --widget-raised: #262B2E;
  --widget-line: #363D41;
  --line: #252C30;
  --line-strong: #404B51;
  --text: #FFFFFF;
  --text-2: #BBC5CA;
  --text-3: #8696A0;
  --text-4: #57656E;
  --green: #00FFA3;
  --green-2: #00C076;
  --green-soft: #61D38A;
  --green-dark: #06754E;
  --red: #FF6B6B;
  --amber: #F5B445;
  /* Additions next to the brand kit, validated with the dataviz script on --panel (2026-10-23):
     this week's launch bars and share bars in categorical slot 1, the week before in a neutral that keeps 3:1. */
  --bar-now: #3987E5;
  --bar-prev: #5F6E78;
  --r-panel: 20px;
  --r-card: 16px;
  --r-widget: 10px;
  --r-btn: 8px;
  --r-chip: 4px;
  --font: "Geist", system-ui, sans-serif;
  --font-body: "Inter", "Geist", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: var(--r-chip); }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--green); color: #090B0C; border-radius: var(--r-btn); font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1312px; margin: 0 auto; padding: 0 24px; }
.na { color: var(--text-4); }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(9, 11, 12, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 16px; max-width: 1312px; height: 68px; margin: 0 auto; padding: 0 24px; }
.brand img { display: block; width: 136px; height: auto; }
.nav-divider { width: 1px; height: 24px; background: var(--line-strong); }
.nav-product { font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; color: var(--text-3); border-radius: var(--r-btn); font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--panel); }
.live-pill { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 6px 12px; color: var(--text-2); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-4); flex-shrink: 0; }
.dot.live { background: var(--green); }
.dot.loading { background: var(--text-3); animation: pulse 1.4s ease-in-out infinite; }
.dot.warning { background: var(--amber); }
@keyframes pulse { 50% { opacity: .3; } }

/* buttons, chips, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 18px; border-radius: var(--r-btn); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { color: #090B0C; background: var(--green); border: 1px solid var(--green); }
.btn-primary:hover { background: var(--green-2); border-color: var(--green-2); }
.btn-primary:disabled { opacity: .5; cursor: progress; }
.btn-secondary { color: var(--text); background: var(--widget); border: 1px solid var(--line-strong); font-weight: 500; }
.btn-secondary:hover { background: var(--widget-raised); }
.chip { display: inline-flex; align-items: center; padding: 2px 8px; color: var(--text-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; padding: 2px 6px; color: #D9E0EB; background: rgba(255, 255, 255, .08); border-radius: var(--r-chip); font-size: 11px; white-space: nowrap; }
.kicker-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px; color: var(--green); border: 1px solid rgba(0, 255, 163, .3); border-radius: 999px; font-size: 13px; }
.kicker-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.kicker { color: var(--text-3); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--widget); border: 1px solid var(--line); border-radius: var(--r-btn); }
.tabs button { padding: 6px 12px; color: var(--text-3); background: transparent; border: 0; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-pressed="true"] { color: var(--text); background: var(--line-strong); }

/* hero */
.hero { position: relative; display: grid; justify-items: center; gap: 16px; padding: 72px 0 40px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0 -24px; z-index: -1; background: radial-gradient(900px 380px at 50% 0%, rgba(4, 62, 69, .55), transparent 72%); pointer-events: none; }
.hero h1 { max-width: 820px; font-size: 48px; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.lede { max-width: 700px; color: var(--text-3); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
.headline { max-width: 760px; color: var(--text-2); font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
.headline b { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }

/* KPI widgets */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { min-width: 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); }
.kpi span { display: block; color: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.kpi strong { display: block; margin-top: 8px; font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi small { display: block; margin-top: 4px; color: var(--text-3); font-family: var(--font-body); font-size: 12px; line-height: 1.45; }

/* sections & panels */
.section { padding-top: 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-head > div:first-child { min-width: 0; max-width: 780px; }
.section-head h2 { margin-top: 10px; font-size: 32px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.section-head p { margin-top: 8px; color: var(--text-3); font-family: var(--font-body); font-size: 15px; line-height: 1.55; }
.panel { position: relative; min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); }
.note { margin: 0; padding: 14px 20px 18px; color: var(--text-3); border-top: 1px solid var(--line); font-family: var(--font-body); font-size: 12px; line-height: 1.6; }
.note b { color: var(--text-2); font-weight: 500; }
.note li + li { margin-top: 4px; }
.note ul { margin: 0; padding-left: 16px; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.board { min-width: 980px; }
.launch-table { min-width: 760px; table-layout: fixed; }
/* Fixed column widths keep each number next to its header; the bars take the slack instead of empty space. */
.launch-table th:nth-child(1) { width: 26%; }
.launch-table th:nth-child(2), .launch-table th:nth-child(3) { width: 13%; }
.launch-table th:nth-child(4) { width: 11%; }
.launch-table th:nth-child(5) { width: 24%; }
.launch-table th { white-space: normal; line-height: 1.35; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 13px; }
th { color: var(--text-3); background: var(--panel); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
th button { padding: 0; color: inherit; background: none; border: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; }
th button:hover { color: var(--text); }
th[aria-sort] { color: var(--green); }
th[aria-sort="descending"] button::after { content: " ↓"; }
th[aria-sort="ascending"] button::after { content: " ↑"; }
td { color: var(--text-2); font-variant-numeric: tabular-nums; }
td b { color: var(--text); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.right { text-align: right; }
.rank-cell { width: 40px; color: var(--text-3); font-family: var(--font-mono); font-size: 12px; }
td small { display: block; margin-top: 2px; color: var(--text-3); font-size: 11px; white-space: nowrap; }
.pad { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pad-id b { display: block; font-size: 14px; }
.pad-chains { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.logo { width: 30px; height: 30px; flex-shrink: 0; object-fit: cover; background: var(--widget); border: 1px solid var(--widget-line); border-radius: 50%; }
.logo.ph { display: grid; place-items: center; color: var(--text-2); font-family: var(--font-mono); font-size: 10px; }
.money { font-size: 14px; }
.money.now { color: var(--text); font-weight: 600; }
.money.fees { color: var(--text-3); font-weight: 400; }
.change { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.change.up { color: var(--green); }
.change.down { color: var(--red); }
.change.flat { color: var(--text-3); }
.share { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.share-track { position: relative; flex: 1; height: 6px; overflow: hidden; background: var(--widget-raised); border-radius: 3px; }
.share-track i { position: absolute; inset: 0 auto 0 0; background: var(--bar-now); border-radius: 3px; }
.share small { width: 44px; margin: 0; color: var(--text-3); font-family: var(--font-mono); font-size: 11px; text-align: right; }
.spark { display: block; width: 132px; height: 32px; overflow: visible; }
.spark path.line { fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark path.area { fill: rgba(187, 197, 202, .08); }
.spark rect.win { fill: rgba(0, 255, 163, .08); }
.spark rect.win.ago { fill: rgba(255, 255, 255, .05); }
.spark circle { fill: var(--green); }
.cols { display: flex; align-items: flex-end; gap: 2px; width: 100%; max-width: 280px; height: 28px; border-bottom: 1px solid var(--line-strong); }
.cols i { flex: 1; background: var(--bar-prev); border-radius: 2px 2px 0 0; }
.cols i.now { background: var(--bar-now); }
.cols i.zero { border-radius: 0; }
.why { max-width: 420px; color: var(--text-3); font-family: var(--font-body); font-size: 12px; line-height: 1.5; white-space: normal; }

/* tooltip */
.tooltip { position: fixed; z-index: 70; max-width: 260px; padding: 8px 10px; color: var(--text); background: #0D1012; border: 1px solid var(--line-strong); border-radius: var(--r-btn); font-size: 12px; line-height: 1.45; pointer-events: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); font-variant-numeric: tabular-nums; }
.tooltip small { display: block; color: var(--text-3); }


.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 72px; padding-top: 28px; padding-bottom: 48px; color: var(--text-3); border-top: 1px solid var(--line); font-family: var(--font-body); font-size: 13px; }
.footer span { max-width: 820px; line-height: 1.55; }
.footer a { color: var(--green-soft); }

@media (max-width: 1120px) {
  .nav-links { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 38px; }
  .nav-product, .nav-divider { display: none; }
}
@media (max-width: 680px) {
  .wrap, .nav-inner { padding: 0 16px; }
  .nav-inner { gap: 10px; }
  .brand img { width: 128px; }
  .hero { padding: 48px 0 28px; }
  .hero h1 { font-size: 32px; }
  .lede { font-size: 15px; }
  .kpi-grid { gap: 8px; }
  .kpi { padding: 14px; }
  .kpi strong { font-size: 19px; }
  .section { padding-top: 56px; }
  .section-head h2 { font-size: 26px; }
  th, td { padding: 10px 12px; }
  /* keep the launchpad in view while the numbers scroll */
  .board th:nth-child(2), .board td:nth-child(2), .launch-table th:first-child, .launch-table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); box-shadow: 1px 0 0 var(--line); }
  .board .rank-cell { display: none; }
  .board .pad-chains { display: none; }
  /* a narrow name column, so at least two numbers fit beside it; the tags wrap under the name */
  .launch-table { min-width: 640px; }
  .launch-table th:nth-child(1) { width: 150px; }
  .board { min-width: 720px; table-layout: fixed; }
  .board th:nth-child(2) { width: 150px; }
  .board th:nth-child(3), .board th:nth-child(4) { width: 92px; }
  .board th:nth-child(5) { width: 84px; }
  .board th:nth-child(6) { width: 164px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
