:root {
  color-scheme: dark;
  --bg: #041016;
  --bg-deep: #02090d;
  --surface: rgba(7, 27, 35, 0.84);
  --surface-strong: #081c24;
  --surface-soft: rgba(9, 36, 45, 0.58);
  --line: rgba(129, 219, 223, 0.14);
  --line-strong: rgba(129, 219, 223, 0.26);
  --text: #eefcfc;
  --muted: #80a0a6;
  --cyan: #5be7e5;
  --cyan-soft: #9ff7f4;
  --lime: #a8ff9f;
  --amber: #ffd166;
  --red: #ff5c6c;
  --blue: #73a7ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 22px;
  --shell: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 75% -10%, rgba(38, 143, 152, 0.16), transparent 34%),
    radial-gradient(circle at 10% 18%, rgba(14, 77, 91, 0.18), transparent 28%),
    linear-gradient(180deg, #06151c 0%, var(--bg) 40%, #020a0e 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.ocean-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 14, 19, 0.76);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 40px), var(--shell));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(91, 231, 229, 0.22), transparent 55%),
    #071b22;
  box-shadow: inset 0 0 24px rgba(91, 231, 229, 0.08);
}

.brand-mark svg {
  width: 30px;
  fill: var(--cyan);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  letter-spacing: 0.17em;
  font-size: 0.96rem;
}

.brand-copy small {
  color: var(--muted);
  letter-spacing: 0.12em;
  font-size: 0.57rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #a9c0c5;
  font-size: 0.84rem;
}

.desktop-nav a {
  transition: color 160ms ease;
}

.desktop-nav a:hover {
  color: var(--cyan-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.beta-chip,
.demo-pill {
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.07);
  color: var(--amber);
  padding: 7px 10px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: 72px;
  padding-block: 98px 78px;
}

.eyebrow,
.section-kicker {
  color: var(--cyan);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(91, 231, 229, 0.08), 0 0 18px var(--cyan);
}

.hero h1 {
  max-width: 820px;
  margin: 24px 0 22px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan-soft), #72aaff 70%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 690px;
  margin: 0;
  color: #9bb7bc;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 0.84rem;
  font-weight: 800;
}

.primary-button {
  background: var(--cyan);
  color: #021014;
  box-shadow: 0 12px 34px rgba(91, 231, 229, 0.15);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(8, 28, 36, 0.66);
  color: #cce0e3;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: #6f9298;
  font-size: 0.73rem;
}

.trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--lime);
}

.terminal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(10, 39, 49, 0.83), rgba(4, 19, 25, 0.9));
  box-shadow: var(--shadow);
}

.status-terminal {
  transform: rotate(1.2deg);
}

.terminal-header,
.card-topline {
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #789da3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.terminal-lights {
  display: flex;
  gap: 6px;
}

.terminal-lights i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #365861;
}

.terminal-lights i:first-child {
  background: var(--red);
}

.terminal-lights i:nth-child(2) {
  background: var(--amber);
}

.terminal-lights i:last-child {
  background: var(--lime);
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.status-grid div {
  min-height: 110px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-grid div:nth-child(2n) {
  border-right: 0;
}

.status-grid small {
  display: block;
  color: #62848a;
  font-size: 0.6rem;
  letter-spacing: 0.13em;
}

.status-grid strong {
  display: block;
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
}

.warning-text {
  color: var(--amber);
}

.terminal-note {
  padding: 20px 22px;
  color: #78989e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  line-height: 1.7;
}

.radar-section,
.metric-section,
.entities-section {
  padding-block: 70px;
}

.section-heading {
  margin-bottom: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading.compact {
  align-items: center;
}

.section-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.section-heading p,
.section-meta {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.83rem;
}

.section-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.radar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
  gap: 18px;
}

.radar-stage {
  position: relative;
  min-height: 530px;
  background:
    radial-gradient(circle, rgba(26, 109, 117, 0.14), transparent 60%),
    #031117;
}

#whale-radar {
  display: block;
  width: 100%;
  height: 530px;
  cursor: crosshair;
}

.radar-center-label {
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: grid;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.radar-center-label strong {
  color: rgba(168, 255, 159, 0.82);
  letter-spacing: 0.15em;
  font-size: 0.73rem;
}

.radar-center-label small {
  margin-top: 4px;
  color: rgba(107, 163, 168, 0.7);
  font-size: 0.52rem;
}

.radar-legend {
  min-height: 48px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 22px;
  color: #6f9096;
  font-size: 0.66rem;
}

.legend-dot {
  width: 7px;
  height: 7px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 50%;
}

.legend-dot.confirmed {
  background: var(--lime);
}

.legend-dot.likely {
  background: var(--cyan);
}

.legend-dot.possible {
  background: var(--amber);
}

.event-detail {
  padding-bottom: 20px;
}

.event-detail .card-topline {
  margin-bottom: 27px;
}

.event-amount {
  padding-inline: 24px;
  color: var(--cyan-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.event-detail h3 {
  margin: 12px 24px 8px;
  font-size: 1rem;
}

.event-detail > p {
  margin: 0 24px;
  color: var(--red);
  font-size: 0.84rem;
}

.confidence {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.confidence.confirmed {
  border-color: rgba(168, 255, 159, 0.26);
  background: rgba(168, 255, 159, 0.07);
  color: var(--lime);
}

.confidence.likely {
  border-color: rgba(91, 231, 229, 0.26);
  background: rgba(91, 231, 229, 0.07);
  color: var(--cyan);
}

.confidence.possible {
  border-color: rgba(255, 209, 102, 0.26);
  background: rgba(255, 209, 102, 0.07);
  color: var(--amber);
}

.event-facts {
  margin: 30px 24px 0;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.event-facts div {
  padding: 14px;
  display: grid;
  grid-template-columns: 76px 1fr;
  background: #071a21;
}

.event-facts dt {
  color: #53757b;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
}

.event-facts dd {
  margin: 0;
  color: #b6ced2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.69rem;
}

.interpretation-warning {
  margin: 18px 24px 0;
  padding: 13px;
  border-left: 2px solid var(--amber);
  background: rgba(255, 209, 102, 0.055);
  color: #8ea7ab;
  font-size: 0.7rem;
}

.sweep-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sweep-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

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

.metric-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(6, 24, 31, 0.72);
}

.metric-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 900;
}

.metric-icon.splash,
.metric-icon.flow {
  color: var(--cyan);
}

.metric-icon.mood {
  color: var(--amber);
}

.metric-icon.blood {
  color: var(--red);
}

.metric-card > span {
  display: block;
  color: #6f9298;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.metric-card strong {
  display: block;
  margin-top: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.35rem, 2.8vw, 2.15rem);
}

.metric-card p {
  min-height: 42px;
  color: #829fa4;
  font-size: 0.76rem;
}

.metric-card small {
  color: #52747a;
  font-size: 0.56rem;
  letter-spacing: 0.09em;
}

.intelligence-grid {
  padding-block: 40px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.inside-card {
  padding: 24px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.event-feed {
  padding: 0 24px 12px;
}

.feed-row {
  min-height: 94px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.feed-row:last-child {
  border-bottom: 0;
}

.asset-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #0b242c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
}

.asset-badge.usdt {
  color: #64d3a1;
}

.asset-badge.btc {
  color: #f9a826;
}

.asset-badge.eth {
  color: #9ea8ff;
}

.asset-badge.usdc {
  color: #4ba3ff;
}

.feed-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.feed-main strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
}

.feed-main span {
  overflow: hidden;
  color: #739399;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-signal {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.feed-signal small {
  color: #4f7076;
  font-size: 0.56rem;
}

.story-card {
  min-height: 100%;
  padding-bottom: 24px;
}

.story-card h2 {
  margin: 36px 25px 20px;
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.story-card > p {
  margin-inline: 25px;
  color: #819fa4;
  font-size: 0.84rem;
}

.story-number {
  color: var(--cyan);
}

.story-tags {
  margin: 26px 25px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-tags span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #79999f;
  font-size: 0.62rem;
}

.story-disclaimer {
  margin: 22px 25px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #4d6e74;
  font-size: 0.63rem;
}

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

.entity-grid article {
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 27, 35, 0.62);
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 13px;
}

.entity-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
}

.entity-grid article div {
  display: grid;
}

.entity-grid small,
.entity-state {
  color: #57797f;
  font-size: 0.55rem;
  letter-spacing: 0.09em;
}

.entity-state {
  color: var(--lime);
}

.product-pillars {
  padding-block: 65px 110px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-pillars article {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.product-pillars span {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
}

.product-pillars h3 {
  margin: 18px 0 10px;
  font-size: 1.06rem;
}

.product-pillars p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #02090d;
}

.footer-inner {
  min-height: 260px;
  padding-block: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 28px;
}

.footer-inner strong {
  letter-spacing: 0.15em;
}

.footer-inner p {
  color: #64858b;
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  color: #7d9ca2;
  font-size: 0.72rem;
}

.footer-inner > small {
  grid-column: 1 / -1;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: #45656b;
  font-size: 0.62rem;
}

@media (max-width: 980px) {
  .desktop-nav,
  .beta-chip {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    padding: 10px 20px 18px;
    border-top: 1px solid var(--line);
    background: rgba(3, 14, 19, 0.98);
  }

  .mobile-menu.is-open {
    display: grid;
  }

  .mobile-menu a {
    padding: 14px 2px;
    border-bottom: 1px solid var(--line);
    color: #b3c9cd;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 76px 60px;
  }

  .status-terminal {
    transform: none;
  }

  .radar-layout,
  .intelligence-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .entity-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .shell,
  .header-inner {
    width: min(calc(100% - 24px), var(--shell));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 14.5vw, 4.45rem);
  }

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .trust-row {
    display: grid;
    gap: 8px;
  }

  .section-heading,
  .section-meta {
    align-items: start;
    flex-direction: column;
  }

  .radar-stage,
  #whale-radar {
    min-height: 390px;
    height: 390px;
  }

  .radar-legend {
    gap: 10px;
    justify-content: space-between;
    font-size: 0.58rem;
  }

  .metric-grid,
  .entity-grid,
  .product-pillars {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 190px;
  }

  .feed-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .feed-signal {
    grid-column: 2;
    justify-items: start;
    display: flex;
    align-items: center;
  }

  .entity-grid article {
    grid-template-columns: 42px 1fr;
  }

  .entity-state {
    grid-column: 2;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .footer-inner > small {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* stage-4c-live-home */
#system-data-mode.live-value {
  color: var(--lime);
}

#system-data-mode.stale-value {
  color: var(--amber);
}

.demo-pill.is-live {
  border-color: rgba(168, 255, 159, 0.28);
  background: rgba(168, 255, 159, 0.07);
  color: var(--lime);
}

.demo-pill.is-stale {
  border-color: rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.07);
  color: var(--amber);
}

#data-freshness {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
}

.confidence.unverified {
  border-color: rgba(255, 209, 102, 0.24);
  background: rgba(255, 209, 102, 0.055);
  color: var(--amber);
}

.confidence.internal {
  border-color: rgba(115, 167, 255, 0.25);
  background: rgba(115, 167, 255, 0.06);
  color: var(--blue);
}

.live-loading-state {
  min-height: 92px;
  width: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.live-asset-badge {
  width: 42px;
  padding-inline: 4px;
  color: var(--cyan);
  font-size: 0.64rem;
  letter-spacing: -0.03em;
}

html[data-data-state="stale"] .terminal-card,
html[data-data-state="stale"] .metric-card {
  border-color: rgba(255, 209, 102, 0.2);
}

html[data-data-state="live"] .status-terminal {
  box-shadow:
    var(--shadow),
    0 0 44px rgba(91, 231, 229, 0.045);
}

/* stage-5b-r1-clean-routes */
.desktop-nav a.is-active {
  color: var(--cyan-soft);
}

.desktop-nav a.is-active::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 5px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(91, 231, 229, 0.55);
}

.buy-token-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 209, 102, 0.07);
  color: var(--amber);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.buy-token-button:hover {
  border-color: rgba(255, 209, 102, 0.58);
  background: rgba(255, 209, 102, 0.12);
}

.mobile-menu .mobile-buy {
  margin-top: 8px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 12px;
  color: var(--amber);
  text-align: center;
}

.token-strip {
  margin-block: 50px 35px;
  padding: 30px;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: 40px;
  background:
    radial-gradient(
      circle at 90% 15%,
      rgba(255, 209, 102, 0.09),
      transparent 38%
    ),
    rgba(6, 24, 31, 0.78);
}

.token-strip h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.045em;
}

.token-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.token-strip-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.token-strip code {
  width: 100%;
  overflow: hidden;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #031117;
  color: #9cc3c7;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(8, 28, 36, 0.72);
  color: var(--cyan-soft);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.copy-button.is-copied {
  border-color: rgba(168, 255, 159, 0.35);
  color: var(--lime);
}

.module-page {
  min-height: calc(100vh - 338px);
}

.page-hero {
  padding-block: 100px 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 65px;
}

.page-hero h1 {
  max-width: 850px;
  margin: 14px 0 20px;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #91adb2;
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
}

.page-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-status-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 27, 35, 0.72);
}

.page-status-card small {
  color: #5f858b;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.page-status-card strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.page-status-card p {
  color: #76979c;
  font-size: 0.75rem;
}

.module-grid {
  padding-block: 35px 105px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.module-card,
.token-card,
.legal-copy {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(9, 35, 44, 0.68),
      rgba(4, 18, 24, 0.82)
    );
}

.module-card {
  min-height: 235px;
}

.module-card > span {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.module-card h2,
.module-card h3 {
  margin: 22px 0 12px;
  letter-spacing: -0.035em;
}

.module-card p,
.token-card p,
.legal-copy p,
.legal-copy li {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.75;
}

.token-page-grid {
  padding-block: 30px 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
}

.mint-box {
  margin-block: 25px;
  padding: 17px;
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 14px;
  background: #031117;
}

.mint-box small {
  display: block;
  margin-bottom: 8px;
  color: #608188;
  letter-spacing: 0.1em;
}

.mint-box code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--amber);
  font-size: 0.78rem;
}

.token-warning {
  padding: 16px;
  border-left: 2px solid var(--amber);
  background: rgba(255, 209, 102, 0.055);
  color: #9cafb0;
  font-size: 0.76rem;
}

.legal-copy {
  max-width: 920px;
  margin-block: 35px 105px;
}

.legal-copy h2 {
  margin-top: 36px;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

@media (max-width: 980px) {
  .token-strip,
  .page-hero,
  .token-page-grid {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .header-actions > .buy-token-button {
    display: none;
  }

  .token-strip {
    width: min(calc(100% - 24px), var(--shell));
    padding: 22px;
  }

  .token-strip-actions,
  .page-actions {
    display: grid;
  }

  .token-strip-actions .primary-button,
  .token-strip-actions .secondary-button,
  .page-actions .primary-button,
  .page-actions .secondary-button,
  .copy-button {
    width: 100%;
  }

  .page-hero {
    padding-block: 65px 38px;
  }

  .page-hero h1 {
    font-size: clamp(2.55rem, 14vw, 4.2rem);
  }

  .module-grid {
    grid-template-columns: 1fr;
  }
}

/* stage-5b-ga1-r2 */
.analytics-consent {
  position: fixed;
  z-index: 5000;
  right: 22px;
  bottom: 22px;
  width: min(560px, calc(100% - 44px));
  padding: 20px;
  border: 1px solid rgba(91, 231, 229, 0.24);
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(91, 231, 229, 0.08),
      transparent 40%
    ),
    rgba(3, 16, 22, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
}

.analytics-consent-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.analytics-consent-copy > span {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.56rem;
  letter-spacing: 0.13em;
}

.analytics-consent-copy > strong {
  color: var(--white);
  font-size: 1rem;
}

.analytics-consent-copy > p {
  margin: 0;
  color: #78989e;
  font-size: 0.72rem;
  line-height: 1.6;
}

.analytics-consent-copy > a {
  width: fit-content;
  color: var(--cyan-soft);
  font-size: 0.68rem;
}

.analytics-consent-actions {
  display: grid;
  gap: 8px;
}

.analytics-consent-actions button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.analytics-reject {
  border: 1px solid var(--line-strong);
  background: rgba(7, 27, 35, 0.7);
  color: #8da8ad;
}

.analytics-accept {
  border: 1px solid rgba(91, 231, 229, 0.45);
  background: var(--cyan);
  color: #021116;
}

.analytics-reset-choice {
  margin-top: 8px;
}

@media (max-width: 680px) {
  .analytics-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 18px;
    grid-template-columns: 1fr;
  }

  .analytics-consent-actions {
    grid-template-columns: 1fr 1fr;
  }

  .analytics-consent-actions button {
    width: 100%;
  }
}

/* stage-5c-h1-home-hub */
.home-intelligence-hub {
  margin-block: 36px 70px;
}

.home-hub-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.home-hub-heading h2 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.055em;
}

.home-hub-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.home-hub-status {
  min-width: 210px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: grid;
  gap: 5px;
  background: rgba(5, 22, 29, 0.72);
  text-align: right;
}

.home-hub-status > span {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.home-hub-status > small {
  color: #64858b;
  font-size: 0.62rem;
}

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

.home-pulse-card {
  min-height: 235px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(
      180deg,
      rgba(8, 33, 42, 0.75),
      rgba(4, 18, 24, 0.88)
    );
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.home-pulse-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 231, 229, 0.28);
  background:
    linear-gradient(
      180deg,
      rgba(10, 40, 50, 0.82),
      rgba(4, 18, 24, 0.92)
    );
}

.home-pulse-card > span {
  color: #64878d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.home-pulse-card > strong {
  margin: 22px 0 11px;
  color: var(--white);
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}

.home-pulse-card > p {
  margin: 0;
  color: #76979d;
  font-size: 0.73rem;
  line-height: 1.65;
}

.home-pulse-card > small {
  margin-top: auto;
  padding-top: 22px;
  color: var(--cyan-soft);
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.home-pulse-card.splash {
  border-color: rgba(91, 231, 229, 0.19);
}

.home-pulse-card.tide {
  border-color: rgba(111, 183, 255, 0.18);
}

.home-pulse-card.pressure {
  border-color: rgba(255, 107, 129, 0.17);
}

.home-pulse-card.entity {
  border-color: rgba(255, 209, 102, 0.17);
}

.home-pressure-track {
  height: 5px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(91, 231, 229, 0.17),
      rgba(255, 107, 129, 0.17)
    );
}

.home-pressure-track > i {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(91, 231, 229, 0.4);
  transition: width 480ms ease;
}

.home-pulse-card.pressure .home-pressure-track > i {
  background:
    linear-gradient(
      90deg,
      var(--red),
      var(--cyan)
    );
}

.home-brief-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
}

.home-market-brief,
.home-alert-panel {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 22, 29, 0.72);
}

.home-market-brief h3,
.home-alert-panel h3 {
  margin: 10px 0 13px;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  letter-spacing: -0.045em;
}

.home-market-brief > p {
  margin: 0;
  color: #88a5aa;
  font-size: 0.82rem;
  line-height: 1.75;
}

.home-market-brief > small {
  display: block;
  margin-top: 20px;
  color: #58787e;
  font-size: 0.62rem;
}

.home-brief-tags {
  margin-top: 21px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.home-brief-tags > span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan-soft);
  background: rgba(91, 231, 229, 0.035);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.07em;
}

.home-alert-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.home-alert-heading h3 {
  margin-bottom: 0;
}

.home-alert-heading > a {
  margin-top: 4px;
  color: var(--cyan-soft);
  font-size: 0.62rem;
  font-weight: 900;
}

.home-alert-list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.home-alert-item {
  padding: 12px;
  border: 1px solid rgba(91, 231, 229, 0.08);
  border-radius: 12px;
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: rgba(3, 16, 22, 0.56);
}

.home-alert-item:hover {
  border-color: rgba(91, 231, 229, 0.22);
}

.home-alert-asset {
  width: 43px;
  height: 43px;
  border: 1px solid rgba(91, 231, 229, 0.16);
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(91, 231, 229, 0.045);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 900;
}

.home-alert-item strong {
  color: var(--white);
  font-size: 0.78rem;
}

.home-alert-item p {
  margin: 4px 0 0;
  color: #64868c;
  font-size: 0.66rem;
}

.home-alert-item > small {
  max-width: 150px;
  color: #6f9399;
  font-size: 0.53rem;
  text-align: right;
}

.home-alert-loading {
  padding: 25px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.7rem;
}

.home-module-launchpad {
  margin-block: 74px 45px;
}

.home-module-launchpad .section-heading {
  margin-bottom: 18px;
}

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

.home-module-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(
      circle at 85% 10%,
      rgba(91, 231, 229, 0.05),
      transparent 38%
    ),
    rgba(5, 22, 29, 0.74);
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.home-module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(91, 231, 229, 0.27);
}

.home-module-card > span {
  color: #53777d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
}

.home-module-card h3 {
  margin: 55px 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.home-module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.65;
}

.home-module-card > strong {
  margin-top: auto;
  padding-top: 24px;
  color: var(--cyan-soft);
  font-size: 0.62rem;
}

html[data-home-hub-state="stale"] .home-intelligence-hub {
  --line: rgba(255, 209, 102, 0.15);
}

html[data-home-hub-state="stale"] .home-hub-status > span {
  color: var(--amber);
}

@media (max-width: 1100px) {
  .home-pulse-grid,
  .home-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .home-hub-heading,
  .home-alert-heading {
    align-items: start;
    flex-direction: column;
  }

  .home-hub-status {
    width: 100%;
    text-align: left;
  }

  .home-brief-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .home-intelligence-hub,
  .home-module-launchpad {
    width: min(calc(100% - 24px), var(--shell));
  }

  .home-pulse-grid,
  .home-module-grid {
    grid-template-columns: 1fr;
  }

  .home-pulse-card {
    min-height: 210px;
  }

  .home-alert-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .home-alert-item > small {
    grid-column: 2;
    max-width: none;
    text-align: left;
  }
}

/* stage-5c-h2-priority-home */
body[data-page="home"] main {
  overflow: clip;
}

body[data-page="home"] main > section {
  scroll-margin-top: 84px;
}

body[data-page="home"] .home-hero-priority {
  min-height: 0 !important;
  padding-top: clamp(62px, 7vw, 100px) !important;
  padding-bottom: clamp(42px, 5vw, 68px) !important;
}

body[data-page="home"] .home-hero-priority h1 {
  max-width: 760px;
  font-size: clamp(3.3rem, 6.6vw, 6.5rem);
  line-height: 0.91;
}

body[data-page="home"] .home-hero-priority p {
  max-width: 680px;
}

body[data-page="home"] #radar {
  margin-top: 0 !important;
  padding-top: clamp(38px, 4vw, 58px) !important;
  padding-bottom: clamp(34px, 4vw, 56px) !important;
}

body[data-page="home"] #radar .section-heading {
  margin-bottom: 20px;
}

body[data-page="home"] #liquidations {
  margin-top: 0 !important;
  padding-top: clamp(28px, 3vw, 46px) !important;
  padding-bottom: clamp(30px, 3vw, 48px) !important;
}

body[data-page="home"] .home-intelligence-hub {
  margin-top: 28px;
  margin-bottom: 44px;
}

body[data-page="home"] .home-hub-heading {
  margin-bottom: 15px;
}

body[data-page="home"] .home-pulse-card {
  min-height: 205px;
}

body[data-page="home"] .home-duplicate-summary-heading,
body[data-page="home"] .home-duplicate-summary-grid {
  display: none !important;
}

body[data-page="home"] .home-legacy-intelligence {
  margin-top: 0 !important;
  padding-top: 22px !important;
  padding-bottom: 42px !important;
}

body[data-page="home"] .home-event-priority {
  margin-top: 0 !important;
}

body[data-page="home"] #entities,
body[data-page="home"] .home-entities-compact {
  margin-top: 0 !important;
  padding-top: 44px !important;
  padding-bottom: 44px !important;
}

body[data-page="home"] .home-module-launchpad,
body[data-page="home"] .home-launchpad-compact {
  margin-top: 34px;
  margin-bottom: 36px;
}

body[data-page="home"] .home-module-card {
  min-height: 220px;
}

body[data-page="home"] .home-module-card h3 {
  margin-top: 35px;
}

body[data-page="home"] .token-strip,
body[data-page="home"] .home-token-compact {
  margin-top: 34px;
  margin-bottom: 36px;
}

body[data-page="home"] .product-pillars {
  margin-top: 32px;
  margin-bottom: 48px;
}

body[data-page="home"] .site-footer {
  margin-top: 20px;
}

/* Compact, non-blocking Analytics consent */
.analytics-consent {
  right: 12px;
  bottom: 12px;
  width: min(430px, calc(100% - 24px));
  padding: 13px 14px;
  border-radius: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.analytics-consent-copy {
  gap: 3px;
}

.analytics-consent-copy > span {
  font-size: 0.49rem;
}

.analytics-consent-copy > strong {
  font-size: 0.83rem;
}

.analytics-consent-copy > p {
  max-width: 270px;
  font-size: 0.62rem;
  line-height: 1.4;
}

.analytics-consent-copy > a {
  font-size: 0.58rem;
}

.analytics-consent-actions {
  min-width: 116px;
  gap: 6px;
}

.analytics-consent-actions button {
  min-height: 33px;
  padding: 0 10px;
  font-size: 0.54rem;
}

@media (max-width: 1100px) {
  body[data-page="home"] .home-hero-priority {
    padding-top: 58px !important;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .home-hero-priority {
    padding-top: 44px !important;
    padding-bottom: 34px !important;
  }

  body[data-page="home"] .home-hero-priority h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  body[data-page="home"] #radar,
  body[data-page="home"] #liquidations,
  body[data-page="home"] #entities {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .analytics-consent {
    right: 8px;
    bottom: 8px;
    width: calc(100% - 16px);
    padding: 12px;
  }
}

@media (max-width: 520px) {
  .analytics-consent {
    grid-template-columns: 1fr;
  }

  .analytics-consent-copy > p {
    max-width: none;
  }

  .analytics-consent-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* stage-5c-h3-tight-fold */

/*
  The homepage should reveal the product quickly:
  compact hero -> radar -> intelligence.
*/

body[data-page="home"] .home-hero-priority {
  min-height: 0 !important;
  padding-top: clamp(28px, 3.2vw, 46px) !important;
  padding-bottom: clamp(10px, 1.5vw, 22px) !important;
  display: grid !important;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(330px, 0.58fr) !important;
  align-items: center !important;
  column-gap: clamp(34px, 5vw, 78px) !important;
  row-gap: 20px !important;
}

body[data-page="home"] .home-hero-priority > :first-child {
  padding-block: 0 !important;
}

body[data-page="home"] .home-hero-priority > :last-child {
  width: 100%;
  max-width: 390px;
  justify-self: end;
  align-self: center;
}

body[data-page="home"] .home-hero-priority h1 {
  max-width: 690px !important;
  margin-top: 14px !important;
  margin-bottom: 15px !important;
  font-size: clamp(3rem, 5.25vw, 5.35rem) !important;
  line-height: 0.89 !important;
  letter-spacing: -0.066em !important;
}

body[data-page="home"] .home-hero-priority p {
  max-width: 630px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  font-size: clamp(0.88rem, 1.15vw, 1.02rem) !important;
  line-height: 1.52 !important;
}

body[data-page="home"] .home-hero-priority .hero-actions,
body[data-page="home"] .home-hero-priority .page-actions,
body[data-page="home"] .home-hero-priority [class*="actions"] {
  margin-top: 17px !important;
  gap: 9px !important;
}

body[data-page="home"] .home-hero-priority .hero-actions a,
body[data-page="home"] .home-hero-priority .page-actions a {
  min-height: 43px !important;
}

body[data-page="home"] .home-hero-priority .hero-trust,
body[data-page="home"] .home-hero-priority .trust-row,
body[data-page="home"] .home-hero-priority [class*="trust"] {
  margin-top: 13px !important;
  gap: 13px !important;
}

body[data-page="home"] .home-hero-priority > :last-child small {
  font-size: 0.55rem !important;
}

body[data-page="home"] .home-hero-priority > :last-child strong {
  font-size: 0.88rem !important;
}

body[data-page="home"] .home-hero-priority > :last-child p {
  font-size: 0.62rem !important;
  line-height: 1.45 !important;
}

/* Radar should begin almost immediately after the hero. */
body[data-page="home"] #radar {
  margin-top: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 26px !important;
}

body[data-page="home"] #radar .section-heading {
  margin-top: 0 !important;
  margin-bottom: 13px !important;
}

body[data-page="home"] #radar .section-heading h2 {
  margin-top: 5px !important;
  margin-bottom: 0 !important;
}

body[data-page="home"] #radar .section-heading p {
  margin-bottom: 0 !important;
}

/* Pull the intelligence overview closer to the radar. */
body[data-page="home"] .home-intelligence-hub {
  margin-top: 14px !important;
  margin-bottom: 26px !important;
}

body[data-page="home"] .home-hub-heading {
  margin-bottom: 12px !important;
}

body[data-page="home"] .home-hub-heading h2 {
  margin-top: 5px !important;
  margin-bottom: 7px !important;
}

body[data-page="home"] .home-pulse-grid {
  gap: 10px !important;
}

body[data-page="home"] .home-pulse-card {
  min-height: 188px !important;
  padding: 18px !important;
}

body[data-page="home"] .home-pulse-card > strong {
  margin-top: 17px !important;
  margin-bottom: 9px !important;
}

body[data-page="home"] .home-pulse-card > small {
  padding-top: 15px !important;
}

body[data-page="home"] .home-brief-grid {
  margin-top: 10px !important;
  gap: 10px !important;
}

body[data-page="home"] .home-market-brief,
body[data-page="home"] .home-alert-panel {
  padding: 21px !important;
}

/* Existing event stream and story should not float inside empty space. */
body[data-page="home"] .home-legacy-intelligence {
  margin-top: 0 !important;
  padding-top: 4px !important;
  padding-bottom: 22px !important;
}

body[data-page="home"] .home-event-priority {
  margin-top: 0 !important;
  padding-top: 14px !important;
  padding-bottom: 25px !important;
}

body[data-page="home"] .home-event-priority .section-heading {
  margin-bottom: 13px !important;
}

/* Tighten the lower homepage without crushing card readability. */
body[data-page="home"] #entities,
body[data-page="home"] .home-entities-compact {
  margin-top: 0 !important;
  padding-top: 26px !important;
  padding-bottom: 28px !important;
}

body[data-page="home"] #entities .section-heading {
  margin-bottom: 15px !important;
}

body[data-page="home"] .home-module-launchpad,
body[data-page="home"] .home-launchpad-compact {
  margin-top: 22px !important;
  margin-bottom: 25px !important;
}

body[data-page="home"] .home-module-launchpad .section-heading {
  margin-bottom: 14px !important;
}

body[data-page="home"] .home-module-card {
  min-height: 198px !important;
  padding: 19px !important;
}

body[data-page="home"] .home-module-card h3 {
  margin-top: 27px !important;
  margin-bottom: 9px !important;
}

body[data-page="home"] .token-strip,
body[data-page="home"] .home-token-compact {
  margin-top: 22px !important;
  margin-bottom: 25px !important;
  padding: 24px !important;
}

body[data-page="home"] .product-pillars {
  margin-top: 22px !important;
  margin-bottom: 34px !important;
}

body[data-page="home"] .site-footer {
  margin-top: 0 !important;
}

/* Large desktop: keep hero compact and balanced. */
@media (min-width: 1180px) {
  body[data-page="home"] .home-hero-priority {
    padding-top: 34px !important;
    padding-bottom: 12px !important;
  }

  body[data-page="home"] .home-hero-priority h1 {
    font-size: clamp(3.2rem, 5.05vw, 5.2rem) !important;
  }
}

/* Tablet: use one balanced column before the page feels cramped. */
@media (max-width: 980px) {
  body[data-page="home"] .home-hero-priority {
    grid-template-columns: 1fr !important;
    padding-top: 30px !important;
    padding-bottom: 10px !important;
    row-gap: 18px !important;
  }

  body[data-page="home"] .home-hero-priority > :last-child {
    max-width: none;
    justify-self: stretch;
  }

  body[data-page="home"] .home-hero-priority h1 {
    max-width: 720px !important;
  }

  body[data-page="home"] #radar {
    padding-top: 10px !important;
  }
}

/* Mobile: compact but still readable and touch-friendly. */
@media (max-width: 680px) {
  body[data-page="home"] .home-hero-priority {
    padding-top: 22px !important;
    padding-bottom: 7px !important;
    row-gap: 14px !important;
  }

  body[data-page="home"] .home-hero-priority h1 {
    max-width: none !important;
    margin-top: 10px !important;
    margin-bottom: 12px !important;
    font-size: clamp(2.8rem, 13.5vw, 4.25rem) !important;
    line-height: 0.9 !important;
  }

  body[data-page="home"] .home-hero-priority p {
    font-size: 0.86rem !important;
  }

  body[data-page="home"] .home-hero-priority .hero-actions,
  body[data-page="home"] .home-hero-priority .page-actions {
    margin-top: 14px !important;
  }

  body[data-page="home"] #radar {
    padding-top: 5px !important;
    padding-bottom: 21px !important;
  }

  body[data-page="home"] .home-intelligence-hub {
    margin-top: 9px !important;
    margin-bottom: 21px !important;
  }

  body[data-page="home"] .home-event-priority,
  body[data-page="home"] #entities {
    padding-top: 20px !important;
    padding-bottom: 22px !important;
  }

  body[data-page="home"] .home-module-launchpad,
  body[data-page="home"] .token-strip {
    margin-top: 18px !important;
    margin-bottom: 20px !important;
  }
}

/* Stage 5C-R2B — global smart navbar */

.wh-nav-auto-hide {
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms ease !important;
  will-change: transform;
}

.wh-nav-auto-hide.wh-nav-hidden {
  transform: translateY(calc(-100% - 3px)) !important;
  box-shadow: none !important;
}

.wh-nav-auto-hide.wh-nav-menu-open,
.wh-nav-auto-hide:focus-within {
  transform: translateY(0) !important;
}

.mobile-token-cta {
  display: none;
}

@media (max-width: 760px) {
  .mobile-token-cta {
    min-width: 72px;
    height: 40px;
    margin-left: auto;
    margin-right: 8px;
    padding: 0 11px 0 6px;
    border: 1px solid rgba(91, 231, 229, 0.25);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background:
      linear-gradient(
        135deg,
        rgba(91, 231, 229, 0.13),
        rgba(145, 255, 159, 0.055)
      );
    color: #dffbfb;
    text-decoration: none;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.018);
  }

  .mobile-token-cta-mark {
    width: 27px;
    height: 27px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background:
      linear-gradient(
        145deg,
        #5be7e5,
        #61b9ef
      );
    color: #021217;
    font-size: 0.67rem;
    font-weight: 950;
  }

  .mobile-token-cta-label {
    font-size: 0.59rem;
    font-weight: 950;
    letter-spacing: 0.07em;
  }

  .mobile-token-cta:active {
    transform: scale(0.97);
  }
}

@media (max-width: 370px) {
  .mobile-token-cta {
    min-width: 61px;
    padding-right: 8px;
    gap: 5px;
  }

  .mobile-token-cta-mark {
    width: 25px;
    height: 25px;
  }

  .mobile-token-cta-label {
    font-size: 0.53rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wh-nav-auto-hide {
    transition: none !important;
  }
}
