/* Homepage v7 — match clangster-prototype.vercel.app/v7.html exactly */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #080c14;
  --ink1: #0d1220;
  --ink2: #111826;
  --ink3: #161f30;
  --ink4: #1c2740;
  --b: rgba(255,255,255,.07);
  --b2: rgba(255,255,255,.12);
  --el: #00f0ff;
  --eld: rgba(0,240,255,.08);
  --cr: #f5c842;
  --crd: rgba(245,200,66,.12);
  --gr: #00ff88;
  --grd: rgba(0,255,136,.07);
  --rd: #ff4d6a;
  --rdd: rgba(255,77,106,.1);
  --t: #e2eaff;
  --t2: #94a4c4;
  --t3: #6a7a94;
  --mo: 'Share Tech Mono', monospace;
  --sa: 'Space Grotesk', sans-serif;
  --pixel: 'VT323', monospace;
  /* Terminal feed aliases */
  --electric: var(--el);
  --cred: var(--cr);
  --green: var(--gr);
  --red: var(--rd);
  --daily: #e879f9;
  --purple: #8b5cf6;
  --border: var(--b);
  --border2: var(--b2);
  --text: var(--t);
  --text2: var(--t2);
  --text3: var(--t3);
  --mono: var(--mo);
  --electric-dim: var(--eld);
  --cred-dim: var(--crd);
  --green-dim: var(--grd);
  --red-dim: var(--rdd);
}

html { background: #0a0a1a; }
/* +10% on rem/em; px uses calc(* 1.1) below */
html:has(body.homepage) {
  font-size: 110%;
}
body.homepage {
  min-height: 100vh;
  font-family: var(--sa);
  font-size: 1.125rem;
  color: var(--t);
  background: transparent;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* Matrix canvas */
#matrix-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  pointer-events: none;
}
/* Grid overlay */
.hp-grid-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,240,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,.018) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hp-content { position: relative; z-index: 1; }

.homepage a { color: var(--el); text-decoration: none; }
.homepage a:hover { text-decoration: underline; }
.homepage a.entity-link { color: inherit; }
.homepage a.entity-link:hover { text-decoration: none; opacity: 0.9; }

/* Main content width */
.hp-main { max-width: 64rem; margin: 0 auto; padding: 0 2rem; }

/* Hero - centered */
.hp-hero {
  padding: 2.5rem 0 2.5rem;
  text-align: center;
}
.hp-hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.75rem;
}
.hp-hero .hp-logo {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--t);
  font-family: var(--mo);
  letter-spacing: -0.02em;
}
.hp-hero .hp-logo b { color: var(--el); }
.hp-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 auto 2.5rem;
  color: var(--el);
  font-family: var(--mo);
  text-transform: uppercase;
  max-width: 54rem;
}
.hp-hero .hp-tagline {
  font-size: calc(1.45rem * 1.25);
  color: var(--t);
  line-height: 1.55;
  margin: 0 auto 2.5rem;
  max-width: 56rem;
  font-family: var(--pixel);
}
.hp-cta {
  display: inline-block;
  font-weight: 600;
  padding: 1rem 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--el);
  background: rgba(0,0,0,.5);
  color: var(--el);
  font-family: var(--mo);
  font-size: 1.35rem;
  text-decoration: none !important;
  transition: border-color .2s, box-shadow .2s, background .2s, color .2s;
  box-shadow: 0 0 18px rgba(0,240,255,.35);
}
.hp-cta:hover {
  border-color: rgba(0,240,255,.95);
  box-shadow: 0 0 28px rgba(0,240,255,.6);
  background: rgba(0,240,255,.12);
  color: var(--el);
  text-decoration: none !important;
}

/* Stats */
.hp-stats {
  text-align: center;
  padding: 0.85rem 0;
  font-family: var(--mo);
  font-size: 1.58rem;
  color: var(--el);
}
.hp-stats span {
  color: var(--el);
}

/* Send agent */
.hp-send {
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--el);
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 38rem;
  background: rgba(0,0,0,.5);
}
.hp-send h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t);
  margin-bottom: 1rem;
  font-family: var(--mo);
}
.hp-send .hp-curl {
  display: block;
  margin: 0 auto 0.75rem;
  padding: 0.7rem 1rem;
  background: rgba(0,0,0,.6);
  border: 1px solid var(--gr);
  border-radius: 6px;
  font-family: var(--mo);
  font-size: 1rem;
  color: var(--gr);
  text-align: center;
  cursor: pointer;
  word-break: break-all;
}
.hp-send .hp-claim { font-size: 0.95rem; color: var(--t2); margin-bottom: 0.75rem; }
.hp-send .hp-links { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.hp-send .hp-links a {
  font-size: 0.95rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  border: 1px solid;
  background: transparent;
  font-family: var(--mo);
}
.hp-send .hp-links a:nth-child(1) { color: var(--cr); border-color: var(--cr); }
.hp-send .hp-links a:nth-child(2) { color: var(--gr); border-color: var(--gr); }
.hp-send .hp-links a:nth-child(3) { color: var(--rd); border-color: var(--rd); }

/* Section header - [ WHY_CLANGSTER ] left aligned, with cyan line */
.hp-section-header {
  text-align: left;
  padding: 2.5rem 0 0;
}
.hp-section-header .hp-bracket {
  font-family: var(--mo);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--el);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.hp-section-header .hp-bracket::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--el);
  opacity: 0.6;
  min-width: 2rem;
}
/* Card — number left, body (title + desc + feed) right, not under number */
.hp-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(0,240,255,.2);
  border-radius: 10px;
  padding: 1.75rem 1.5rem 1.5rem;
  margin: 0.5rem 0 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.hp-card[data-section-href] { cursor: pointer; }
.hp-card:hover {
  border-color: rgba(0,240,255,.7);
  box-shadow: 0 0 20px rgba(0,240,255,.25);
  background: rgba(0,0,0,.5);
}
.hp-card-num {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--el);
  font-family: var(--mo);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 0.15rem;
}
.hp-card-body {
  flex: 1;
  min-width: 0;
}
.hp-card-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--el);
  font-family: var(--mo);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.hp-card-desc {
  font-size: calc(1rem * 1.25);
  color: var(--t2);
  line-height: 1.55;
  margin-bottom: 1rem;
}
/* Last card — green accent */
.hp-card-green {
  border-color: rgba(0,255,136,.2);
}
.hp-card-green:hover {
  border-color: rgba(0,255,136,.8);
  box-shadow: 0 0 20px rgba(0,255,136,.25);
}
.hp-card-green .hp-card-num,
.hp-card-green .hp-card-title { color: var(--gr); }
.hp-tbl-wrap {
  margin-top: 0.75rem;
  overflow-x: auto;
  border: 1px solid rgba(0,240,255,.35);
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(0,240,255,.12);
  background: rgba(0,0,0,.25);
}
.hp-card-green .hp-tbl-wrap {
  border-color: rgba(0,255,136,.35);
  box-shadow: 0 0 16px rgba(0,255,136,.12);
}
.hp-card-green .hp-feed .global-pred-hdr,
.hp-card-green .hp-feed .prop-table thead,
.hp-card-green .hp-feed .clang-tbl .tbl-hdr { border-bottom-color: rgba(0,255,136,.3); }
.hp-card-green .hp-feed .global-pred-row,
.hp-card-green .hp-feed .prop-table td,
.hp-card-green .hp-feed .clang-row { border-bottom-color: rgba(0,255,136,.2); }
.hp-card-green .hp-feed .global-pred-row:hover,
.hp-card-green .hp-feed .prop-row:hover,
.hp-card-green .hp-feed .clang-row:hover { background: rgba(0,255,136,.04); }

/* CTA row — Launch Terminal below last card */
.hp-cta-row {
  text-align: center;
  padding: 2rem 0 1rem;
}

/* Terminal-style feeds — same structure as terminal/public/css/terminal.css */
/* Markets: dot | Market | Staked | Odds | Agents | Status */
.hp-feed .global-pred-hdr,
.hp-feed .global-pred-row {
  display: grid;
  grid-template-columns: 12px 1fr 70px 90px 70px 100px;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
}
.hp-feed .global-pred-hdr {
  background: rgba(0,0,0,.4);
  border-bottom: 1px solid rgba(0,240,255,.3);
  font-size: calc(10.5px * 1.1);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--t2);
  text-transform: uppercase;
  padding: 10px 20px;
}
.hp-feed .global-pred-hdr .th { display: flex; align-items: center; justify-content: center; }
.hp-feed .global-pred-hdr .th.left { justify-content: flex-start; }
.hp-feed .global-pred-row > div:nth-child(n+3) { text-align: center; }
.hp-feed .global-pred-row {
  min-height: 60px;
  border-bottom: 1px solid rgba(0,240,255,.2);
  cursor: pointer;
  transition: background 0.15s;
}
.hp-feed .global-pred-row:last-child { border-bottom: none; }
.hp-feed .global-pred-row:hover { background: rgba(0,240,255,.04); }
.hp-feed .type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hp-feed .type-dot.daily { background: var(--daily); box-shadow: 0 0 5px rgba(232,121,249,.4); }
.hp-feed .type-dot.event { background: var(--purple); box-shadow: 0 0 5px rgba(139,92,246,.4); }
.hp-feed .pred-name { font-size: calc(13.5px * 1.1); font-weight: 500; color: var(--text); line-height: 1.35; }
.hp-feed .pred-name:hover { color: var(--electric); }
.hp-feed .global-staked-col { display: flex; flex-direction: column; align-items: center; font-family: var(--mono); font-size: calc(13px * 1.1); text-align: center; }
.hp-feed .global-staked-up { color: var(--green); font-weight: 600; }
.hp-feed .global-staked-dn { color: var(--red); font-weight: 600; }
.hp-feed .cell-c { text-align: center; font-family: var(--mono); font-size: calc(13px * 1.1); }
.hp-feed .cell-cred { color: var(--cred); }
.hp-feed .odds-display { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hp-feed .odds-yes { font-family: var(--mono); font-size: calc(12px * 1.1); color: var(--green); font-weight: 600; }
.hp-feed .odds-no { font-family: var(--mono); font-size: calc(12px * 1.1); color: var(--red); font-weight: 600; }
.hp-feed .status-badge { display: inline-flex; font-size: calc(10px * 1.1); font-weight: 700; letter-spacing: 0.07em; padding: 3px 8px; border-radius: 6px; }
.hp-feed .status-badge.open { background: rgba(0,240,255,.1); color: var(--el); border: 1px solid rgba(0,240,255,.25); }
.hp-feed .status-badge.closed { background: rgba(255,255,255,.05); color: var(--t2); border: 1px solid rgba(255,255,255,.1); }
.hp-feed .pred-status-remaining { font-size: calc(11px * 1.1); color: var(--text3); margin-top: 2px; font-family: var(--mono); }

/* Proposals — prop-table style */
.hp-feed .prop-table { width: 100%; border-collapse: collapse; font-size: calc(13px * 1.1); }
.hp-feed .prop-table thead { background: rgba(0,0,0,.4); border-bottom: 1px solid rgba(0,240,255,.3); }
.hp-feed .prop-table th { text-align: left; padding: 10px 12px; font-size: calc(10.5px * 1.1); font-weight: 600; letter-spacing: 0.08em; color: var(--t2); text-transform: uppercase; }
.hp-feed .prop-table th:first-child { width: 12px; min-width: 12px; padding: 8px 4px 8px 20px; text-align: center; }
.hp-feed .prop-table th:nth-child(2) { text-align: left; }
.hp-feed .prop-table th:nth-child(3), .hp-feed .prop-table th:nth-child(4), .hp-feed .prop-table th:nth-child(5), .hp-feed .prop-table th:nth-child(6) { text-align: center; }
.hp-feed .prop-table td { padding: 12px 12px; border-bottom: 1px solid rgba(0,240,255,.2); vertical-align: middle; }
.hp-feed .prop-table tr:last-child td { border-bottom: none; }
.hp-feed .prop-table td:first-child { width: 12px; min-width: 12px; padding: 10px 4px 10px 20px; text-align: center; }
.hp-feed .prop-table td:nth-child(2) { text-align: left; }
.hp-feed .prop-table td:nth-child(3), .hp-feed .prop-table td:nth-child(4), .hp-feed .prop-table td:nth-child(5), .hp-feed .prop-table td:nth-child(6) { text-align: center; }
.hp-feed .prop-row:hover { background: rgba(0,240,255,.04); }
.hp-feed .prop-type-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.hp-feed .prop-type-dot.daily { background: var(--daily); box-shadow: 0 0 5px rgba(232,121,249,.4); }
.hp-feed .prop-type-dot.event { background: var(--purple); box-shadow: 0 0 5px rgba(139,92,246,.4); }
.hp-feed .prop-title { font-size: calc(13.5px * 1.1); font-weight: 500; color: var(--text); text-decoration: none; }
.hp-feed .prop-title:hover { color: var(--electric); }
.hp-feed .prop-clang-cell { display: flex; align-items: center; gap: 6px; }
.hp-feed .prop-votes-yes { font-size: calc(11px * 1.1); color: var(--gr); font-weight: 600; }
.hp-feed .prop-votes-no { font-size: calc(11px * 1.1); color: var(--rd); font-weight: 600; }
.hp-feed .prop-status { font-size: calc(12px * 1.1); font-weight: 600; }
.hp-feed .prop-status.passed { color: var(--green); }
.hp-feed .prop-status.rejected { color: var(--red); }
.hp-feed .prop-status.open { color: var(--electric); }

/* Clangs — clang-row style */
.hp-feed .clang-tbl .tbl-hdr,
.hp-feed .clang-row {
  display: grid;
  grid-template-columns: 52px 1fr 100px 120px 110px 110px 100px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}
.hp-feed .clang-tbl .tbl-hdr {
  background: rgba(0,0,0,.4);
  border-bottom: 1px solid rgba(0,240,255,.3);
  font-size: calc(10.5px * 1.1);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--t2);
  text-transform: uppercase;
  padding: 10px 16px;
}
.hp-feed .clang-tbl .th { display: flex; align-items: center; justify-content: center; }
.hp-feed .clang-tbl .th.left { justify-content: flex-start; }
.hp-feed .clang-row > div:nth-child(n+3) { text-align: center; }
.hp-feed .clang-row {
  min-height: 62px;
  border-bottom: 1px solid rgba(0,240,255,.2);
  cursor: pointer;
  transition: background 0.15s;
}
.hp-feed .clang-row:last-child { border-bottom: none; }
.hp-feed .clang-row:hover { background: rgba(0,240,255,.04); }
.hp-feed .clang-ico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: calc(20px * 1.1); border: 1px solid var(--border2); flex-shrink: 0; }
.hp-feed .clang-name-cell { padding: 0 10px; min-width: 0; }
.hp-feed .clang-title { font-size: calc(14px * 1.1); font-weight: 700; color: var(--text); }
.hp-feed .clang-title:hover { color: var(--electric); }
.hp-feed .clang-agents { font-size: calc(10.5px * 1.1); color: var(--text3); margin-top: 2px; font-family: var(--mono); }
.hp-feed .act-btn.buy { color: var(--green); background: var(--green-dim); border: 1px solid #4ade80; font-size: calc(10px * 1.1); font-weight: 700; padding: 5px 12px; border-radius: 5px; }
.hp-feed .act-btn.buy:hover { background: rgba(0,255,136,.15); text-decoration: none; color: var(--green); }
.hp-feed .pnl-pos { color: var(--green); font-family: var(--mono); font-size: calc(13px * 1.1); text-align: center; }
.hp-feed .pnl-neg { color: var(--red); font-family: var(--mono); font-size: calc(13px * 1.1); text-align: center; }
.hp-feed .pnl-zero { color: var(--text3); font-family: var(--mono); font-size: calc(13px * 1.1); text-align: center; }

.hp-empty { padding: 1.5rem; text-align: center; color: var(--t3); font-size: 0.95rem; }

/* Arrow — buffer above/below matches spacing above WHY_CLANGSTER (2.5rem) */
.hp-arrow {
  text-align: center;
  padding: 1rem 0 2rem;
}
.hp-arrow-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--el);
  color: var(--el);
  font-size: 1.25rem;
  font-family: var(--mo);
}

/* Tagline block — above footer */
.hp-tagline-block {
  text-align: center;
  padding: 2.5rem 2rem 2rem;
}
.hp-tagline-slogan {
  font-size: calc(1.6rem * 1.25);
  font-weight: 600;
  color: var(--t);
  letter-spacing: 0.02em;
  font-family: var(--mo);
  margin: 0;
}
.hp-tagline-slogan span { display: block; margin-bottom: 0.35rem; }
.hp-tagline-slogan span:last-child { margin-bottom: 0; }

/* Footer */
.hp-footer {
  text-align: center;
  padding: 2rem 2rem 3rem;
  border-top: 1px solid var(--b);
  background: rgba(0,0,0,.3);
}
.hp-footer .hp-brand { font-size: 1.15rem; font-weight: 700; color: var(--el); font-family: var(--mo); }
.hp-footer .hp-nav {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hp-footer .hp-nav a {
  font-size: 0.95rem;
  color: var(--t2);
  font-family: var(--mo);
}
.hp-footer .hp-nav a:not(:last-child)::after {
  content: ' · ';
  color: var(--t3);
}
.hp-footer .hp-nav a:hover { color: var(--el); }

/* ── Airdrop page ── */
.airdrop-page .hp-hero-brand { gap: 1rem; }
.airdrop-page .hp-hero-brand .hp-logo { margin-bottom: 0; }
.airdrop-page .hp-hero { padding-bottom: 1rem; }
.airdrop-page .hp-hero .hp-tagline { margin-bottom: 0.75rem; }
.ad-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--purple);
  color: var(--purple);
  background: rgba(139,92,246,.12);
  font-family: var(--mo);
}
.ad-stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  margin-bottom: 1rem;
}
.ad-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.ad-stat-val {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gr);
  font-family: var(--mo);
}
.ad-stat-teal .ad-stat-val { color: var(--el); }
.ad-stat-purple .ad-stat-val { color: var(--purple); }
.ad-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--t2);
  text-transform: uppercase;
}
.ad-season-block {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--el);
  border-radius: 10px;
  margin-bottom: 2rem;
  background: rgba(0,0,0,.5);
}
.ad-season-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--t);
  font-family: var(--mo);
  margin-bottom: 1rem;
}
.ad-progress-wrap { margin-bottom: 1rem; }
.ad-progress-bar {
  height: 8px;
  background: var(--ink3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.ad-progress-fill {
  height: 100%;
  background: var(--el);
  border-radius: 4px;
  transition: width 0.3s;
}
.ad-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--t2);
  font-family: var(--mo);
}
.ad-info-box {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--gr);
  border-radius: 8px;
  background: rgba(0,255,136,.06);
}
.ad-info-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gr);
  margin-bottom: 0.5rem;
  font-family: var(--mo);
}
.ad-info-text {
  font-size: 0.95rem;
  color: var(--t2);
  line-height: 1.55;
  margin: 0;
}
.ad-quest-table {
  margin-top: 1rem;
  border: 1px solid rgba(0,240,255,.25);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,.2);
}
.ad-quest-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,240,255,.15);
  font-size: 0.95rem;
}
.ad-quest-row:last-child { border-bottom: none; }
.ad-quest-hdr {
  background: rgba(0,0,0,.4);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--t2);
  text-transform: uppercase;
}
.ad-cred { color: var(--el); font-family: var(--mo); font-weight: 600; }
.ad-scenarios {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--b);
}
.ad-scenarios-title {
  font-size: 0.85rem;
  color: var(--t2);
  font-family: var(--mo);
  margin-bottom: 0.5rem;
}
.ad-scenario {
  font-size: 0.9rem;
  color: var(--t2);
  margin: 0.25rem 0;
  font-family: var(--mo);
}
.ad-ref-link-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.ad-ref-link {
  padding: 0.6rem 1rem;
  background: rgba(0,0,0,.5);
  border: 1px solid var(--b2);
  border-radius: 6px;
  font-family: var(--mo);
  font-size: 0.95rem;
  color: var(--el);
  word-break: break-all;
}
.ad-copy-btn {
  padding: 0.6rem 1.25rem;
  background: rgba(139,92,246,.2);
  border: 1px solid var(--purple);
  border-radius: 6px;
  color: var(--purple);
  font-family: var(--mo);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.ad-copy-btn:hover { background: rgba(139,92,246,.35); }
.ad-share-btn {
  padding: 0.6rem 1.25rem;
  min-height: 44px;
  background: rgba(29,155,240,.2);
  border: 1px solid #1d9bf0;
  border-radius: 6px;
  color: #1d9bf0;
  font-family: var(--mo);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  box-sizing: border-box;
}
.ad-share-btn:hover { background: rgba(29,155,240,.35); text-decoration: none; color: #1d9bf0; }
.ad-ref-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ad-ref-bonuses {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}
.ad-ref-bonus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}
.ad-ref-bonus .ad-cred { font-size: 1.5rem; }
.ad-ref-label {
  font-size: 0.75rem;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ad-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.ad-tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--mo);
  color: var(--t2);
  background: transparent;
  border: 1px solid var(--b);
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}
.ad-tab.on {
  color: var(--el);
  border-color: var(--el);
  background: var(--eld);
}
.ad-tab:hover:not(.on) { border-color: var(--b2); color: var(--t); }
.ad-leaderboard {
  border: 1px solid rgba(0,240,255,.25);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,.2);
}
.ad-lb-hdr {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,.4);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--t2);
  text-transform: uppercase;
}
.ad-lb-hdr-agents,
.ad-lb-row-agents {
  grid-template-columns: 40px 1fr 90px 70px 90px 70px;
}
.ad-lb-row {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,240,255,.15);
  font-size: 0.9rem;
  align-items: center;
}
.ad-lb-row:last-child { border-bottom: none; }
.ad-lb-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--t3);
  font-size: 0.95rem;
}
.ad-pnl-pos { color: var(--gr); font-family: var(--mo); }
.ad-pnl-neg { color: var(--rd); font-family: var(--mo); }
.ad-seasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.ad-season-card {
  padding: 1.5rem;
  border: 1px solid rgba(0,240,255,.2);
  border-radius: 10px;
  background: rgba(0,0,0,.35);
  position: relative;
}
.ad-season-card.ad-season-locked {
  border-color: rgba(255,255,255,.1);
  opacity: 0.85;
}
.ad-season-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.ad-season-tag.live { background: var(--grd); color: var(--gr); border: 1px solid rgba(0,255,136,.3); }
.ad-season-tag.soon { background: rgba(139,92,246,.2); color: var(--purple); border: 1px solid rgba(139,92,246,.3); }
.ad-season-tag.locked { background: var(--ink3); color: var(--t3); border: 1px solid var(--b); }
.ad-season-alloc {
  font-size: 0.9rem;
  color: var(--el);
  margin-bottom: 0.5rem;
  font-family: var(--mo);
}
.ad-steps .ad-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid rgba(0,240,255,.2);
  border-radius: 10px;
  background: rgba(0,0,0,.35);
  margin-bottom: 0.5rem;
}
.ad-steps .hp-arrow { padding: 0.75rem 0 1rem; }
.ad-final-cta {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--el);
  border-radius: 10px;
  margin: 2rem 0;
  background: rgba(0,0,0,.5);
}
.ad-final-cta .hp-card-title { margin-bottom: 0.75rem; }
.ad-final-cta .hp-curl {
  display: block;
  margin: 0 auto 0.75rem;
  cursor: pointer;
}
.airdrop-page .hp-footer .hp-nav a:not(:last-child)::after { content: none; }
.airdrop-page .hp-footer .hp-nav { gap: 1rem; }

/* ── Mobile (767px and below) ── */
@media (max-width: 767px) {
  /* Page-level: no horizontal scroll */
  body.homepage { font-size: 1rem; }
  .hp-content { overflow-x: hidden; }
  .hp-main { padding: 0 1rem; }

  /* Hero — readable, no overflow */
  .hp-hero { padding: 1.5rem 0 1.5rem; }
  .hp-hero h1 {
    font-size: clamp(1.5rem, calc(5vw * 1.1), 2.25rem);
    word-wrap: break-word;
    margin-bottom: 1.5rem;
  }
  .hp-hero .hp-tagline { font-size: calc(1rem * 1.25); margin-bottom: 1.5rem; }
  .hp-hero-brand { margin-bottom: 1.5rem; }

  /* CTAs — full width, thumb-friendly (min 44px) */
  .hp-cta,
  .hp-cta-row .hp-cta {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    text-align: center;
    box-sizing: border-box;
  }
  .hp-cta-row { padding: 1rem 0; }

  /* Install command box — full width, copyable */
  .hp-send { margin: 1rem 0; max-width: none; padding: 1rem; }
  .hp-send .hp-curl {
    font-size: 0.85rem;
    padding: 0.75rem;
    -webkit-tap-highlight-color: transparent;
  }
  .hp-send .hp-links a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

  /* Section headers */
  .hp-section-header { padding-top: 1.5rem; }
  .hp-section-header .hp-bracket { font-size: 1.1rem; margin-bottom: 1rem; }

  /* Cards — stack layout */
  .hp-card { flex-direction: column; gap: 1rem; padding: 1.25rem 1rem; align-items: stretch; }
  .hp-card-num { font-size: 2.5rem; }
  .hp-card-title { font-size: 1.5rem; }
  .hp-card-desc { font-size: calc(1rem * 1.25); }

  /* Tables — horizontal scroll, touch-friendly */
  .hp-tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 0.5rem;
  }
  .hp-feed .global-pred-hdr,
  .hp-feed .global-pred-row {
    grid-template-columns: 12px 1fr 60px 80px 60px 80px;
    padding: 0 12px;
    min-width: 380px;
  }
  .hp-feed .prop-table { min-width: 400px; }
  .hp-feed .clang-tbl .tbl-hdr,
  .hp-feed .clang-row {
    grid-template-columns: 40px 1fr 60px 80px 80px 80px;
    padding: 0 12px;
    min-width: 420px;
  }

  /* Tagline */
  .hp-tagline-block { padding: 1.5rem 1rem; }
  .hp-tagline-slogan { font-size: calc(1.25rem * 1.25); }

  /* Footer nav */
  .hp-footer { padding: 1.5rem 1rem 2rem; }
  .hp-footer .hp-nav { gap: 1rem; }

  /* ── Airdrop-specific ── */
  .ad-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem 0;
  }
  .ad-stats-row .ad-stat:nth-child(3) { grid-column: 1 / -1; }
  .ad-stat-val { font-size: 1.5rem; }

  .ad-ref-link-wrap {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .ad-ref-link {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0.75rem 1rem;
  }
  .ad-ref-btns {
    flex-direction: column;
    width: 100%;
  }
  .ad-ref-btns .ad-copy-btn,
  .ad-ref-btns .ad-share-btn {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ad-seasons-grid { grid-template-columns: 1fr; }

  .ad-steps .ad-step {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 1rem;
  }
  .ad-steps .hp-arrow { padding: 0.5rem 0; }

  .ad-leaderboard {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ad-lb-hdr-agents,
  .ad-lb-row-agents {
    grid-template-columns: 30px 1fr 70px 60px 70px 50px;
    font-size: 0.8rem;
    min-width: 420px;
  }

  .ad-final-cta { padding: 1.5rem 1rem; }
}

/* Hero — dual CTAs */
.hp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hp-btn {
  display: inline-block;
  font-weight: 600;
  padding: 1rem 2.25rem;
  border-radius: 8px;
  font-family: var(--mo);
  font-size: 1.35rem;
  text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.hp-btn-secondary {
  border: 1px solid var(--el);
  background: rgba(0, 0, 0, 0.5);
  color: var(--el);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.28);
}
.hp-btn-secondary:hover {
  border-color: rgba(0, 240, 255, 0.95);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.1);
  color: var(--el);
  text-decoration: none !important;
}

.hp-btn-primary {
  border: 1px solid var(--el);
  background: var(--el);
  color: #0a0a0f;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.45);
}
.hp-btn-primary:hover {
  background: rgba(0, 240, 255, 0.92);
  color: #0a0a0f;
  border-color: rgba(0, 240, 255, 0.95);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.65);
}

/* Anchor CTAs: .homepage a { color: var(--el) } would hide dark text on .hp-btn-primary */
.homepage a.hp-btn-primary,
.homepage a.hp-btn-primary:hover {
  color: #0a0a0f;
}

.hp-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Desktop: tables; mobile: card stacks (see @media max-width 768) */
.hp-feed-cards {
  display: none;
}

.homepage .hp-feed-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mo);
  font-size: 0.88rem;
}
.homepage .hp-feed-table th,
.homepage .hp-feed-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}
.homepage .hp-feed-table th {
  color: var(--t2);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.homepage .hp-markets-table .hp-col-dot {
  width: 16px;
}
.homepage .hp-markets-table .type-dot {
  display: inline-block;
}

.hp-feed-card {
  background: rgba(0, 20, 20, 0.8);
  border: 1px solid #0a3a3a;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}
.hp-feed-card-title {
  color: #e0e0e0;
  font-size: calc(12px * 1.1);
  margin-bottom: 6px;
  font-family: "Courier New", Courier, monospace;
  padding-right: 72px;
}
.hp-feed-card-title--clang {
  padding-right: 0;
}
.hp-feed-card-ico {
  margin-right: 4px;
}
.hp-feed-card-meta {
  color: #4a7a7a;
  font-size: calc(11px * 1.1);
  font-family: "Courier New", Courier, monospace;
  line-height: 1.45;
}
.hp-feed-card-meta .pnl-pos {
  color: var(--gr);
}
.hp-feed-card-meta .pnl-neg {
  color: var(--rd);
}
.hp-feed-card-meta .pnl-zero {
  color: var(--t2);
}
.hp-feed-card-status {
  float: right;
  font-size: calc(10px * 1.1);
  color: #00d4aa;
  border: 1px solid rgba(0, 212, 170, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Courier New", Courier, monospace;
}
.hp-feed-card-actions {
  margin-top: 10px;
}
.hp-feed-card-invest {
  font-family: var(--mo);
  font-size: calc(11px * 1.1);
  color: var(--el);
  text-decoration: none !important;
  border: 1px solid var(--el);
  padding: 6px 12px;
  border-radius: 4px;
  display: inline-block;
}
.hp-feed-card-invest:hover {
  background: rgba(0, 240, 255, 0.1);
}

.hp-birth-footer {
  text-align: center;
  padding: 2rem 1rem 2.5rem;
  max-width: 64rem;
  margin: 0 auto;
}
.hp-birth-footer h2 {
  font-family: var(--mo);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--el);
  margin-bottom: 0.5rem;
}
.hp-birth-footer .hp-sub {
  font-family: var(--mo);
  color: var(--t2);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

/* Inline birth option cards (hero + footer) — distinct from /birth full-page cards */
#birth-reveal .birth-options,
.hp-birth-footer .birth-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 24px auto 0;
}
#birth-reveal .birth-options .birth-card,
.hp-birth-footer .birth-options .birth-card {
  background: rgba(0, 212, 170, 0.03);
  border: 1px solid #0a3a3a;
  padding: 28px 24px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
  border-radius: 8px;
}
#birth-reveal .birth-options .birth-card:hover,
.hp-birth-footer .birth-options .birth-card:hover {
  border-color: #00d4aa;
  background: rgba(0, 212, 170, 0.06);
}
#birth-reveal .birth-icon,
.hp-birth-footer .birth-icon {
  font-size: calc(28px * 1.1);
  margin-bottom: 12px;
}
#birth-reveal .birth-card h3,
.hp-birth-footer .birth-card h3 {
  font-size: calc(13px * 1.1);
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 700;
  font-family: var(--mo);
}
#birth-reveal .birth-card p,
.hp-birth-footer .birth-card p {
  font-size: calc(12px * 1.1);
  color: #4a7a7a;
  line-height: 1.5;
  font-family: var(--mo);
  margin: 0;
}

body.birth-page.birth-expand-openclaw .birth-grid .birth-card:nth-child(2) {
  display: none;
}
body.birth-page.birth-expand-openclaw .birth-grid .birth-card:first-child {
  grid-column: 1 / -1;
}
body.birth-page.birth-expand-new .birth-grid .birth-card:first-child {
  display: none;
}
body.birth-page.birth-expand-new .birth-grid .birth-card:nth-child(2) {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .hp-feed-scroll-desktop,
  .hp-feed-desktop-only {
    display: none !important;
  }
  .hp-feed-cards {
    display: block !important;
  }

  #birth-reveal .birth-options,
  .hp-birth-footer .birth-options {
    grid-template-columns: 1fr;
  }
  #birth-reveal .birth-options .birth-card,
  .hp-birth-footer .birth-options .birth-card {
    padding: 20px 16px;
  }
  .hp-hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .hp-btn,
  .hp-btn-secondary,
  .hp-btn-primary {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
  .hp-hero .hp-cta {
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-sizing: border-box;
  }
  .hp-section {
    padding: 32px 16px;
  }
  .hp-hero {
    padding: 40px 16px 32px;
  }
  .hp-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .hp-hero h1 {
    font-size: clamp(calc(22px * 1.1), calc(7vw * 1.1), calc(48px * 1.1));
  }
}

/* Reveal curl on homepage */
.hp-reveal-btn {
  display: inline-block;
  font-family: var(--mo);
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  margin: 0 auto 0.75rem;
  cursor: pointer;
  border: 1px solid var(--el);
  background: rgba(0, 0, 0, 0.5);
  color: var(--el);
  border-radius: 6px;
  letter-spacing: 0.06em;
}
.hp-reveal-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}
.hp-curl-hint {
  font-size: 0.9rem;
  color: var(--t2);
  margin: 0.5rem 0 0;
  font-family: var(--mo);
}

/* /birth — agents only page */
.birth-page {
  --birth-accent: #00d4aa;
}
.birth-header {
  padding: 1.25rem 2rem 0;
  max-width: 64rem;
  margin: 0 auto;
}
.birth-logo {
  font-family: var(--mo);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--t);
  text-decoration: none !important;
  display: inline-block;
}
.birth-logo b {
  color: var(--birth-accent);
}
.birth-main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  text-align: center;
}
.birth-title {
  font-family: var(--mo);
  font-size: clamp(1.75rem, calc(4vw * 1.1), 2.5rem);
  color: var(--birth-accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.birth-lead {
  font-family: var(--mo);
  color: var(--t2);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.birth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}
@media (max-width: 52em) {
  .birth-grid {
    grid-template-columns: 1fr;
  }
}
.birth-page .birth-grid > .birth-card {
  border: 1px solid var(--birth-accent);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.12);
}
.birth-card-title {
  font-family: var(--mo);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--birth-accent);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.birth-card-desc {
  font-family: var(--mo);
  font-size: 0.9rem;
  color: var(--t);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.birth-mt {
  margin-top: 1rem;
}
.birth-curl {
  display: block;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(0, 212, 170, 0.45);
  border-radius: 6px;
  font-family: var(--mo);
  font-size: 0.88rem;
  color: var(--birth-accent);
  cursor: pointer;
  word-break: break-all;
  margin-bottom: 0.35rem;
}
.birth-curl-sm {
  font-size: 0.8rem;
  color: var(--gr);
  border-color: rgba(0, 255, 136, 0.35);
}
.birth-curl-hint {
  font-family: var(--mo);
  font-size: 0.8rem;
  color: var(--t3);
  margin: 0 0 0.5rem;
  line-height: 1.45;
}
.birth-inline {
  font-family: var(--mo);
  font-size: 0.85em;
  color: var(--el);
}
.birth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.birth-page a.birth-link {
  font-family: var(--mo);
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--birth-accent);
  color: var(--birth-accent) !important;
  text-decoration: none !important;
  background: rgba(0, 212, 170, 0.06);
}
.birth-page a.birth-link:hover {
  background: rgba(0, 212, 170, 0.14);
  text-decoration: none !important;
}
.birth-footer-nav {
  font-family: var(--mo);
  font-size: 0.95rem;
  color: var(--t2);
}
.birth-footer-nav a {
  color: var(--el);
}
.birth-sep {
  margin: 0 0.35rem;
  color: var(--t3);
}

/* —— Homepage full-page scroll snap (home.ejs only: body.hp-snap-root) —— */
html:has(body.hp-snap-root) {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100%;
}
html:has(body.hp-snap-root) body.hp-snap-root {
  height: auto;
  overflow: unset;
  min-height: 100%;
}

body.hp-snap-root #matrix-canvas,
body.hp-snap-root canvas#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
body.hp-snap-root .hp-grid-overlay {
  z-index: 0;
}
body.hp-snap-root .hp-content {
  position: relative;
  z-index: 1;
}

body.hp-snap-root .hp-main {
  padding: 0;
}

body.hp-snap-root .hp-snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 0 40px;
  box-sizing: border-box;
}

body.hp-snap-root .hp-snap-section .hp-section-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
  min-height: 0;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  box-sizing: border-box;
}

body.hp-snap-root .hp-snap-section:not(.hp-snap-hero):not(.hp-snap-final) .hp-section-inner {
  justify-content: flex-start;
  padding-top: 0.5rem;
}

body.hp-snap-root .hp-snap-final {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

body.hp-snap-root .hp-snap-section .hp-table-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  max-height: calc(100vh - 200px);
  min-height: 0;
}
body.hp-snap-root .hp-snap-section .hp-table-scroll::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
body.hp-snap-root .hp-snap-section .hp-table-scroll::-webkit-scrollbar-track {
  background: transparent;
}
body.hp-snap-root .hp-snap-section .hp-table-scroll::-webkit-scrollbar-thumb {
  background: #0a3a3a;
}

body.hp-snap-root .hp-card.hp-card-feed {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  flex: 1;
  min-height: 0;
  margin: 0;
  display: flex;
}

body.hp-snap-root .hp-snap-section:not(.hp-snap-final) .hp-section-inner > .hp-card-feed {
  flex: 1;
  min-height: 0;
}

body.hp-snap-root .hp-snap-section .hp-tbl-wrap.hp-feed {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.hp-snap-root .hp-feed-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 0;
  flex-shrink: 0;
  padding: 0;
  text-align: left;
}
body.hp-snap-root .hp-feed-heading .hp-section-title {
  margin: 0;
}

body.hp-snap-root .hp-section-num {
  font-size: calc(48px * 1.1);
  color: #00d4aa;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  font-family: var(--mo);
}

body.hp-snap-root .hp-section-title {
  font-size: clamp(calc(18px * 1.1), calc(3vw * 1.1), calc(28px * 1.1));
  color: #ffffff;
  letter-spacing: 2px;
  font-weight: 700;
  font-family: var(--mo);
}

body.hp-snap-root .hp-section-desc {
  font-size: calc(13px * 1.375);
  color: #4a7a7a;
  margin-bottom: 16px;
  flex-shrink: 0;
  max-width: 700px;
  line-height: 1.5;
}

body.hp-snap-root .hp-card-green .hp-section-num,
body.hp-snap-root .hp-card-green .hp-section-title {
  color: var(--gr);
}

body.hp-snap-root .hp-snap-section .hp-why-header {
  padding: 0;
  flex-shrink: 0;
  margin-bottom: 8px;
}

body.hp-snap-root .hp-snap-hero .hp-section-inner {
  justify-content: center;
}

body.hp-snap-root .hp-snap-hero .hp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
}

body.hp-snap-root .hp-stats {
  flex-shrink: 0;
}

body.hp-snap-root .hp-scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #00d4aa;
  font-size: calc(18px * 1.1);
  opacity: 0.4;
  animation: hp-pulse-down 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes hp-pulse-down {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 0.8; }
}

body.hp-snap-root .hp-section-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}

body.hp-snap-root .hp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0a3a3a;
  border: 1px solid #00d4aa44;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
body.hp-snap-root .hp-dot.active {
  background: #00d4aa;
}

body.hp-snap-root .hp-snap-final .hp-section-inner {
  max-height: none;
  justify-content: center;
  padding-bottom: 1rem;
  box-sizing: border-box;
}

body.hp-snap-root .hp-tagline-line {
  font-size: clamp(calc(16px * 1.375), calc(3vw * 1.1), calc(28px * 1.375));
  color: #ffffff;
  letter-spacing: 2px;
  font-weight: 700;
  font-family: "Courier New", Courier, monospace;
  line-height: 1.6;
  margin: 0;
}

body.hp-snap-root .hp-snap-final .hp-footer .hp-footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--el);
  font-family: var(--mo);
}

body.hp-snap-root .hp-snap-final .hp-footer .hp-footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

body.hp-snap-root .hp-snap-final .hp-footer .hp-footer-links a {
  font-size: 0.95rem;
  color: var(--t2);
  font-family: var(--mo);
}

body.hp-snap-root .hp-snap-final .hp-footer .hp-footer-links a:not(:last-child)::after {
  content: " · ";
  color: var(--t3);
}

body.hp-snap-root .hp-snap-final .hp-footer .hp-footer-links a:hover {
  color: var(--el);
}

@media (max-width: 768px) {
  html:has(body.hp-snap-root) {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100%;
  }

  body.hp-snap-root .hp-snap-section {
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 0 16px;
    box-sizing: border-box;
    justify-content: flex-start;
  }

  body.hp-snap-root .hp-snap-final {
    height: auto;
    min-height: 100svh;
    max-height: none;
    overflow: visible;
  }

  body.hp-snap-root .hp-feed-cards {
    overflow-y: auto;
    max-height: calc(100svh - 180px);
    -webkit-overflow-scrolling: touch;
  }

  body.hp-snap-root .hp-feed-cards::-webkit-scrollbar {
    display: none;
  }

  body.hp-snap-root .hp-snap-section .hp-section-inner {
    max-height: 100%;
    min-height: 0;
  }

  body.hp-snap-root .hp-snap-section .hp-table-scroll {
    max-height: min(55vh, 420px);
  }

  body.hp-snap-root .hp-section-num {
    font-size: calc(36px * 1.1);
  }
}
