/* Kimchi Watch — Birdeye Data web design language (same tokens and treatments as
   otc-launchpad-terminal: 01_brand-assets/tokens and the Figma-built homepage section in
   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;
  --amber: #F5B445;
  --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, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code, .mono { 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 { display: inline-flex; align-items: center; min-height: 40px; flex-shrink: 0; }
.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; }
.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, 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-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; gap: 8px; padding: 4px 10px; color: var(--text-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; white-space: nowrap; }
.chip-sm { padding: 2px 8px; font-size: 11px; }
.chip-btn { transition: border-color .15s, color .15s; }
.chip-btn:hover { color: var(--text); border-color: var(--line-strong); }
.copy-hint { color: var(--green-soft); font-family: var(--font); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; color: #D9E0EB; background: rgba(255, 255, 255, .08); border-radius: var(--r-chip); font-size: 11px; white-space: nowrap; }
.tag.real { color: #252C30; background: var(--green); font-weight: 600; }
.tag.separate { color: #090B0C; background: var(--amber); font-weight: 600; }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.sw-green { background: var(--green); } .sw-light { background: var(--text-2); } .sw-grey { background: var(--text-3); }
.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, .kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.link-pill { display: inline-flex; align-items: center; padding: 5px 12px; color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; transition: background .15s, color .15s; }
.link-pill:hover { color: var(--text); background: var(--widget); }

/* ── banner ── */
.banner { display: none; margin-top: 16px; padding: 12px 16px; color: #FFD6CC; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .4); border-radius: var(--r-widget); font-family: var(--font-body); font-size: 13px; }
.banner.show { display: block; }

/* ── 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: 860px; font-size: 48px; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.lede b { color: var(--green); font-weight: 600; }
.lede { max-width: 720px; color: var(--text-3); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
.hero-meta { 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-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.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: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.kpi strong.accent { color: var(--green); }
.kpi strong.na { color: var(--text-4); }
.kpi small { display: block; margin-top: 4px; color: var(--text-3); font-family: var(--font-body); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── 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: 760px; }
.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; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.section.two-col { align-items: start; }
.panel { position: relative; min-width: 0; padding: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); }
.panel-flush { padding: 0; }
.panel-glow { background: radial-gradient(120% 90% at 0% 100%, rgba(4, 62, 69, .55), transparent 60%), linear-gradient(160deg, #161A1C, #101415); }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-bar h3, .panel-title { font-size: 16px; font-weight: 500; }
.panel-title { margin-bottom: 16px; }
.note { margin-top: 16px; color: var(--text-3); font-family: var(--font-body); font-size: 12px; line-height: 1.6; }
.note b { color: var(--text-2); font-weight: 500; }
.note a { color: var(--green-soft); }
.note-pad { margin: 0; padding: 14px 20px 18px; border-top: 1px solid var(--line); }

/* ── tables ── */
.table-wrap { max-height: 560px; overflow: auto; }
table { width: 100%; min-width: 1040px; border-collapse: collapse; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 13px; }
th { position: sticky; top: 0; z-index: 1; color: var(--text-3); background: var(--panel); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
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; }
tr.is-real td { background: rgba(0, 255, 163, .05); }
.right { text-align: right; }
.when b { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.when small { display: block; color: var(--text-3); font-size: 11px; }
.platform-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 460px; }
.platform-chips b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-cell { color: var(--text-3); font-family: var(--font-mono); font-size: 12px; }
.coin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coin small { display: block; max-width: 220px; overflow: hidden; color: var(--text-3); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
td.ca { white-space: nowrap; }
.ca-btn { white-space: nowrap; padding: 2px 6px; color: var(--text-2); background: transparent; border: 1px solid var(--line); border-radius: var(--r-chip); font-family: var(--font-mono); font-size: 12px; }
.ca-btn:hover { color: var(--text); border-color: var(--line-strong); }
.logo { width: 28px; height: 28px; 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; }

/* ── sources ── */
.cta-panel { display: grid; align-content: start; gap: 12px; padding: 28px; }
.cta-panel h2 { font-size: 28px; font-weight: 600; line-height: 1.2; }
.cta-panel p { color: var(--text-3); font-family: var(--font-body); font-size: 15px; line-height: 1.6; }
.code-line { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-widget); }
.code-line span { color: var(--text-3); font-size: 13px; }
.code-line code { color: var(--green); font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.source-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; }
.source-grid dt, .source-grid dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.source-grid dt { color: var(--text-3); font-family: var(--font-body); }
.source-grid dd { color: var(--text-2); text-align: right; }

.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: 760px; line-height: 1.55; }
.footer a { color: var(--green-soft); }
.footer a:hover { text-decoration: underline; }

/* ── responsive (1120 / 900 / 680) ── */
@media (max-width: 1120px) {
  .kpi-grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-chips { justify-content: flex-start; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .section.two-col { gap: 56px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .kpi-grid, .kpi-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid-5 .kpi:last-child { grid-column: 1 / -1; }
  .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; }
  .nav .btn { display: none; }
  .brand img { width: 128px; }
  .hero { padding: 48px 0 28px; }
  .hero::before { inset: 0 -16px; } /* match the 16px gutter so the glow never widens the page */
  .hero h1 { font-size: 30px; }
  .lede { font-size: 15px; }
  .kpi-grid { gap: 8px; }
  .kpi { padding: 14px; }
  .kpi strong { font-size: 19px; }
  .kpi small { white-space: normal; }
  .section { padding-top: 56px; }
  .section-head h2 { font-size: 26px; }
  .panel { padding: 16px; }
  .panel-flush { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
