/* Druid Circle Protocol — Institutional Dark Design System (/, /docs, /stats) */
:root {
  --bg: #06090e;
  --surface: #0b1017;
  --surface-2: #101722;
  --surface-3: #162030;
  --border: #1b2636;
  --border-hi: #2b3c54;
  --text: #edf2f7;
  --muted: #93a4bc;
  --dim: #64758f;
  --emerald: #2ee6a6;
  --emerald-bg: rgba(46, 230, 166, 0.11);
  --emerald-bd: rgba(46, 230, 166, 0.34);
  --gold: #e4bd68;
  --gold-hi: #f2d287;
  --gold-bg: rgba(228, 189, 104, 0.12);
  --gold-bd: rgba(228, 189, 104, 0.38);
  --cyan: #38bdf8;
  --cyan-bg: rgba(56, 189, 248, 0.11);
  --cyan-bd: rgba(56, 189, 248, 0.32);
  --amber: #fbbf24;
  --amber-bg: rgba(251, 191, 36, 0.12);
  --crimson: #f87171;
  --crimson-bg: rgba(248, 113, 113, 0.12);
  --crimson-bd: rgba(248, 113, 113, 0.32);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(960px 440px at 14% -8%, rgba(46, 230, 166, 0.085), transparent 62%),
    radial-gradient(840px 400px at 88% -6%, rgba(228, 189, 104, 0.075), transparent 58%),
    var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button, a, input, select {
  touch-action: manipulation;
  font-family: inherit;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

p code, li code, td code {
  font-size: 0.86em;
  color: #d6e4f2;
  background: rgba(148, 163, 184, 0.11);
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 1px 5px;
  border-radius: 5px;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.c-emerald { color: var(--emerald); }
.c-gold { color: var(--gold); }
.c-cyan { color: var(--cyan); }
.c-amber { color: var(--amber); }
.c-crimson { color: var(--crimson); }
.c-muted { color: var(--muted); }
.c-dim { color: var(--dim); }

/* =========================================================================
   STICKY PROTOCOL HEADER (SHARED ACROSS /, /docs, /stats)
   ========================================================================= */
.p-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 9, 14, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.p-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 11px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.p-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.p-brand:hover {
  text-decoration: none;
}

.p-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(228, 189, 104, 0.16), rgba(46, 230, 166, 0.10));
  border: 1px solid var(--gold-bd);
  color: var(--gold-hi);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.p-brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #fff;
}

.p-brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--emerald);
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-bd);
}

.p-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.p-nav a {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 7px;
  transition: color 0.15s ease, background 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.p-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.p-nav a.active {
  color: #fff;
  background: rgba(46, 230, 166, 0.1);
  border: 1px solid rgba(46, 230, 166, 0.22);
}

.p-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--emerald-bd);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.live-pill.live-mode {
  color: var(--gold-hi);
  background: var(--gold-bg);
  border-color: var(--gold-bd);
}

.live-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* =========================================================================
   BUTTONS & CTAs
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.1;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  font-size: 12.5px;
  padding: 7px 13px;
}

.btn-lg {
  font-size: 13.5px;
  padding: 11px 16px;
  border-radius: 9px;
}

.btn-primary {
  background: linear-gradient(180deg, #35f0b0 0%, #1fd294 100%);
  color: #03150e;
  border-color: rgba(46, 230, 166, 0.7);
  box-shadow: 0 6px 24px rgba(46, 230, 166, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #4df5bc 0%, #27dfa0 100%);
  box-shadow: 0 8px 28px rgba(46, 230, 166, 0.30);
}

.btn-gold {
  background: linear-gradient(180deg, #f0cb78 0%, #d4a64a 100%);
  color: #161004;
  border-color: rgba(242, 210, 135, 0.8);
  box-shadow: 0 6px 24px rgba(228, 189, 104, 0.22);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #f6d891 0%, #dfb256 100%);
  box-shadow: 0 8px 28px rgba(228, 189, 104, 0.32);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-hi);
}

.btn-ghost:hover {
  background: var(--surface-3);
  border-color: #3d5474;
  color: #fff;
}

.btn-subtle {
  background: rgba(16, 23, 34, 0.7);
  color: var(--muted);
  border-color: var(--border);
}

.btn-subtle:hover {
  color: #fff;
  border-color: var(--border-hi);
  background: var(--surface-2);
}

/* =========================================================================
   LAYOUT CONTAINERS & PANELS
   ========================================================================= */
.p-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 22px 64px;
}

.section {
  margin-top: 44px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 5px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.2;
}

.section-sub {
  margin: 5px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 68ch;
}

.panel {
  background: linear-gradient(180deg, rgba(16, 23, 34, 0.85), rgba(11, 16, 23, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel-pad {
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 23, 34, 0.6);
  flex-wrap: wrap;
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.panel-hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
}

/* =========================================================================
   LANDING PAGE (/) HERO & COMPONENTS
   ========================================================================= */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
  padding-top: 8px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-hi);
  background: var(--gold-bg);
  border: 1px solid var(--gold-bd);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
}

.hero-title .hl-grad {
  background: linear-gradient(95deg, #2ee6a6 0%, #8bf7d0 48%, #f0cb78 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 16px 0 0;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.6;
  color: #b8c6d8;
  max-width: 58ch;
}

.hero-lead strong {
  color: #fff;
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(27, 38, 54, 0.8);
}

.hero-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.hero-proof-item .check {
  color: var(--emerald);
  font-weight: 700;
}

/* Right Hero Visual Showcase Card */
.hero-stage-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border-hi);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(46, 230, 166, 0.08) inset;
}

.hero-art-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #080d0a;
}

.hero-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  display: block;
  filter: contrast(1.04) saturate(1.06);
  transition: transform 0.6s ease;
}

.hero-stage-card:hover .hero-art-wrap img {
  transform: scale(1.03);
}

.hero-art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 14, 0.18) 0%, rgba(6, 9, 14, 0.12) 45%, rgba(6, 9, 14, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.hero-art-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(6, 9, 14, 0.82);
  border: 1px solid rgba(46, 230, 166, 0.36);
  color: var(--emerald);
  backdrop-filter: blur(8px);
}

.hud-badge.gold {
  border-color: var(--gold-bd);
  color: var(--gold-hi);
}

.hero-art-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.hero-art-caption strong {
  display: block;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.01em;
}

.hero-art-caption span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.hero-stage-footer {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  background: rgba(11, 16, 23, 0.96);
}

.hero-spotlight-meta {
  min-width: 0;
}

.hero-spotlight-k {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.hero-spotlight-v {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================================
   LIVE STATS STRIP (5 METRICS FROM /v1/meta)
   ========================================================================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stat-tile {
  background: linear-gradient(180deg, rgba(16, 23, 34, 0.92), rgba(11, 16, 23, 0.96));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease;
}

.stat-tile:hover {
  border-color: var(--border-hi);
}

.stat-k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dim);
}

.stat-v {
  font-family: var(--font-mono);
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* =========================================================================
   LIVE SHORT-OMEN BOARD PREVIEW TABLE & FILTER CHIPS
   ========================================================================= */
.chip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  border-color: var(--border-hi);
  color: #fff;
}

.chip.active {
  color: #03150e;
  background: var(--emerald);
  border-color: var(--emerald);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--dim);
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 23, 0.8);
  white-space: nowrap;
}

.data-table th.r, .data-table td.r {
  text-align: right;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(27, 38, 54, 0.65);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr.clickable-row {
  cursor: pointer;
  transition: background 0.12s ease;
}

.data-table tbody tr.clickable-row:hover {
  background: rgba(46, 230, 166, 0.05);
}

.tok-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.tok-rank {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
  width: 18px;
}

.tok-sym {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.tok-name {
  display: block;
  font-size: 11.5px;
  color: var(--dim);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chain-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid var(--border-hi);
  background: var(--surface-2);
  color: var(--cyan);
}

.chain-tag.solana { color: #a78bfa; border-color: rgba(167, 139, 250, 0.35); background: rgba(167, 139, 250, 0.1); }
.chain-tag.base { color: #60a5fa; border-color: rgba(96, 165, 250, 0.35); background: rgba(96, 165, 250, 0.1); }
.chain-tag.elysium { color: var(--gold-hi); border-color: var(--gold-bd); background: var(--gold-bg); }

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--crimson-bg);
  border: 1px solid var(--crimson-bd);
  color: #fca5a5;
}

.score-pill.cool {
  background: var(--emerald-bg);
  border-color: var(--emerald-bd);
  color: var(--emerald);
}

.row-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 7px;
  background: rgba(228, 189, 104, 0.12);
  border: 1px solid var(--gold-bd);
  color: var(--gold-hi);
  text-decoration: none;
  white-space: nowrap;
}

.row-cta:hover {
  background: rgba(228, 189, 104, 0.22);
  text-decoration: none;
}

/* Mobile omen cards (shown <= 760px instead of cramped wide table) */
.omen-mobile-list {
  display: none;
  padding: 12px;
  gap: 10px;
  flex-direction: column;
}

.omen-m-card {
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  text-decoration: none;
}

.omen-m-card:hover {
  border-color: var(--gold-bd);
  text-decoration: none;
}

.omen-m-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.omen-m-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(27, 38, 54, 0.7);
}

.omen-m-cell span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--dim);
}

.omen-m-cell strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  margin-top: 2px;
}

/* =========================================================================
   COMPARISON MATRIX (DRUID CIRCLE vs CEX vs THIN-BOOK DEX)
   ========================================================================= */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.cmp-table th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  background: rgba(11, 16, 23, 0.85);
}

.cmp-table th.col-druid, .cmp-table td.col-druid {
  background: rgba(46, 230, 166, 0.055);
  border-left: 1px solid rgba(46, 230, 166, 0.22);
  border-right: 1px solid rgba(46, 230, 166, 0.22);
}

.cmp-table th.col-druid {
  color: var(--emerald);
  background: rgba(46, 230, 166, 0.11);
}

.cmp-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(27, 38, 54, 0.7);
  vertical-align: top;
  color: var(--muted);
}

.cmp-table tbody tr:last-child td {
  border-bottom: none;
}

.cmp-table td:first-child {
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.cmp-table td.col-druid {
  color: #edf7f2;
  font-weight: 500;
}

.cmp-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

.cmp-tag.good { background: var(--emerald-bg); color: var(--emerald); }
.cmp-tag.bad { background: var(--crimson-bg); color: var(--crimson); }
.cmp-tag.warn { background: var(--amber-bg); color: var(--amber); }

/* Mobile comparison cards */
.cmp-mobile-cards {
  display: none;
  padding: 12px;
  gap: 10px;
  flex-direction: column;
}

.cmp-m-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
}

.cmp-m-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  margin-bottom: 8px;
}

.cmp-m-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
  border-top: 1px solid rgba(27, 38, 54, 0.65);
  font-size: 12.5px;
  color: var(--muted);
}

.cmp-m-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.cmp-m-row.druid {
  color: #eefbf5;
}

.cmp-m-lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
}

/* =========================================================================
   FEATURE & DUAL-SURFACE CARDS
   ========================================================================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: linear-gradient(180deg, rgba(16, 23, 34, 0.85), rgba(11, 16, 23, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-k {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
}

.feature-card.gold .feature-k { color: var(--gold-hi); }
.feature-card.cyan .feature-k { color: var(--cyan); }

.feature-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.58;
}

.feature-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 38, 54, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.feature-foot a {
  white-space: nowrap;
  flex-shrink: 0;
}

/* =========================================================================
   DOCS PORTAL (/docs) 3-COLUMN HYPERLIQUID LAYOUT
   ========================================================================= */
.docs-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr) 210px;
  gap: 28px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 74px;
  max-height: calc(100vh - 94px);
  overflow-y: auto;
  padding-right: 6px;
}

.docs-search-wrap {
  margin-bottom: 14px;
}

.docs-search {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 11px;
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
}

.docs-search:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 2px rgba(46, 230, 166, 0.14);
}

.docs-cat-group {
  margin-bottom: 18px;
}

.docs-cat-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0 10px 6px;
}

.docs-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.12s ease;
  margin-bottom: 2px;
}

.docs-nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

.docs-nav-item.active {
  color: var(--emerald);
  background: rgba(46, 230, 166, 0.1);
  border-color: rgba(46, 230, 166, 0.25);
  font-weight: 600;
}

.docs-mobile-toggle {
  display: none;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 14px;
}

.docs-article-wrap {
  min-width: 0;
  background: linear-gradient(180deg, rgba(14, 20, 30, 0.85), rgba(11, 16, 23, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px 32px;
}

.docs-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.docs-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
}

.docs-breadcrumbs .cat {
  color: var(--emerald);
  font-weight: 600;
}

.docs-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.doc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}

.doc-action-btn:hover {
  color: #fff;
  border-color: var(--emerald-bd);
  text-decoration: none;
}

/* Rendered Markdown Typography */
.md-body {
  color: #d3deec;
  font-size: 15px;
  line-height: 1.72;
}

.md-body h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.18;
}

.md-body h2 {
  margin: 30px 0 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(27, 38, 54, 0.75);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  scroll-margin-top: 86px;
}

.md-body h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-hi);
  scroll-margin-top: 86px;
}

.md-body p {
  margin: 0 0 14px;
}

.md-body ul, .md-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.md-body li {
  margin-bottom: 6px;
}

.md-body strong {
  color: #fff;
  font-weight: 600;
}

.md-body blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--emerald);
  background: rgba(46, 230, 166, 0.06);
  border-radius: 0 8px 8px 0;
  color: #d7efe6;
}

.md-body blockquote p:last-child {
  margin-bottom: 0;
}

.md-code-wrap {
  position: relative;
  margin: 16px 0;
  border-radius: 9px;
  border: 1px solid var(--border-hi);
  background: #070b11;
  overflow: hidden;
}

.md-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: rgba(16, 23, 34, 0.85);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--dim);
  text-transform: uppercase;
}

.md-code-copy {
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--muted);
  border-radius: 5px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  cursor: pointer;
}

.md-code-copy:hover {
  color: #fff;
  border-color: var(--emerald-bd);
}

.md-code-wrap pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: #dbe8f6;
}

.md-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.md-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.md-body th {
  text-align: left;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: rgba(16, 23, 34, 0.8);
  border-bottom: 1px solid var(--border);
}

.md-body td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(27, 38, 54, 0.65);
}

.md-body tbody tr:last-child td {
  border-bottom: none;
}

.docs-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-decoration: none;
}

.pager-link:hover {
  border-color: var(--emerald-bd);
  text-decoration: none;
}

.pager-link.next {
  text-align: right;
}

.pager-dir {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--dim);
}

.pager-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.docs-toc {
  position: sticky;
  top: 74px;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.docs-toc-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 10px;
}

.docs-toc a {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  padding: 4px 0;
  line-height: 1.35;
  text-decoration: none;
}

.docs-toc a.lvl-3 {
  padding-left: 12px;
  font-size: 12px;
  color: var(--dim);
}

.docs-toc a:hover {
  color: var(--emerald);
}

/* =========================================================================
   SOLVENCY DASHBOARD (/stats)
   ========================================================================= */
.proof-banner {
  border-radius: 14px;
  border: 1px solid var(--emerald-bd);
  background:
    radial-gradient(620px 200px at 8% 0%, rgba(46, 230, 166, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(12, 24, 24, 0.92), rgba(10, 16, 22, 0.98));
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.proof-banner.warn {
  border-color: var(--crimson-bd);
  background: linear-gradient(180deg, rgba(35, 14, 18, 0.92), rgba(14, 12, 16, 0.98));
}

.proof-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.proof-status {
  display: flex;
  align-items: center;
  gap: 11px;
}

.proof-shield {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-bd);
  color: var(--emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.proof-title {
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.proof-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.proof-eq-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(6, 9, 14, 0.72);
  border: 1px solid rgba(46, 230, 166, 0.24);
  border-radius: 9px;
  padding: 11px 15px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.proof-checks {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
}

.proof-check-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-bd);
  color: var(--emerald);
  font-weight: 600;
}

.kpi-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.kpi-card {
  background: linear-gradient(180deg, rgba(16, 23, 34, 0.9), rgba(11, 16, 23, 0.96));
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.util-bar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #080d14;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 6px;
}

.util-bar-cap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold);
  z-index: 2;
}

.util-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2ee6a6, #38bdf8);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.sse-ticker-strip {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow: hidden;
}

.sse-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-bd);
  color: var(--emerald);
  flex-shrink: 0;
}

.sse-pill.idle {
  background: var(--amber-bg);
  border-color: rgba(251, 191, 36, 0.35);
  color: var(--amber);
}

.sse-ticker-text {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.mini-bar {
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: #090e15;
  border: 1px solid var(--border);
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

.mini-bar > span {
  display: block;
  height: 100%;
  background: var(--emerald);
}

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(27, 38, 54, 0.6);
  font-family: var(--font-mono);
  font-size: 12px;
}

.activity-row:last-child {
  border-bottom: none;
}

.empty-state {
  padding: 26px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.empty-state strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

.caps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.cap-cell {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
}

.cap-cell .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--dim);
}

.cap-cell .v {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 3px;
}

.cap-cell .d {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.p-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: rgba(6, 9, 14, 0.9);
}

.p-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 22px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--dim);
}

.p-footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.p-footer-links a {
  color: var(--muted);
}

.p-footer-links a:hover {
  color: #fff;
}

/* Skeleton shimmer */
.skel {
  display: inline-block;
  border-radius: 5px;
  background: linear-gradient(90deg, #131b27 25%, #1c283a 50%, #131b27 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  color: transparent !important;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & 393x852 MOBILE)
   ========================================================================= */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .docs-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .docs-toc {
    display: none;
  }
  .caps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .p-header-inner {
    padding: 10px 14px;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .p-brand-tag {
    display: none;
  }
  .p-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 2px;
    border-top: 1px solid rgba(27, 38, 54, 0.7);
    padding-top: 7px;
    gap: 2px;
  }
  .p-nav a {
    font-size: 12px;
    padding: 6px 8px;
  }
  .live-pill {
    display: none;
  }
  .p-main {
    padding: 18px 14px 44px;
  }
  .section {
    margin-top: 30px;
  }
  .hero-eyebrow {
    font-size: 9.8px;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    gap: 5px;
  }
  .hero-ctas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-ctas .btn {
    padding: 11px 10px;
    font-size: 12.5px;
    min-height: 44px;
  }
  .md-body th {
    padding: 8px 9px;
    font-size: 11px;
    white-space: nowrap;
  }
  .md-body td {
    padding: 8px 9px;
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 20px;
  }
  .stat-tile:last-child {
    grid-column: 1 / -1;
  }
  .grid-3, .grid-2, .kpi-grid-6 {
    grid-template-columns: minmax(0, 1fr);
  }
  .omen-desktop-wrap {
    display: none;
  }
  .omen-mobile-list {
    display: flex;
  }
  .cmp-desktop-wrap {
    display: none;
  }
  .cmp-mobile-cards {
    display: flex;
  }
  .docs-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .docs-mobile-toggle {
    display: flex;
  }
  .docs-sidebar {
    display: none;
    position: static;
    max-height: none;
    padding: 12px;
    margin-bottom: 14px;
    background: var(--surface);
    border: 1px solid var(--border-hi);
    border-radius: 10px;
  }
  .docs-sidebar.open {
    display: block;
  }
  .docs-article-wrap {
    padding: 18px 16px 22px;
  }
  .docs-pager {
    grid-template-columns: minmax(0, 1fr);
  }
  .pager-link.next {
    text-align: left;
  }
  .proof-banner {
    padding: 16px 14px;
  }
  .proof-eq-bar {
    font-size: 11.5px;
    padding: 10px 12px;
  }
  .caps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sse-ticker-strip {
    flex-wrap: wrap;
    gap: 8px;
  }
  .sse-ticker-text {
    white-space: normal;
  }
  .p-footer-inner {
    padding: 16px 14px;
  }
}
