:root {
  --bg: #f3f5f2;
  --panel: #ffffff;
  --card: #ffffff;
  --ink: #141b18;
  --muted: #66736d;
  --muted-2: #9ba59f;
  --line: #dfe6df;
  --line-soft: #edf2ed;
  --yellow: #19a58f;
  --yellow-soft: #e8f7f3;
  --yellow-dark: #0c6f62;
  --blue: #366f86;
  --blue-soft: #e7f0f3;
  --green: #23815f;
  --green-soft: #e7f5ee;
  --red: #bf4d55;
  --red-soft: #fbeaec;
  --orange: #bf7a2f;
  --shadow: 0 18px 46px rgba(20, 27, 24, 0.07);
  --radius: 10px;
  --research-accent: #19a58f;
  --research-blue: #366f86;
  --research-amber: #bf7a2f;
  --research-lime: #7f9844;
  --research-ink: #101714;
}

html {
  background: var(--bg);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(243, 245, 242, 0.96)),
    repeating-linear-gradient(90deg, rgba(20, 27, 24, 0.035) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(20, 27, 24, 0.026) 0 1px, transparent 1px 72px),
    var(--bg) !important;
  font-family: Aptos, "Helvetica Neue", ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif !important;
}

.shell {
  width: min(1420px, calc(100% - 44px));
}

.research-page {
  padding-top: 22px;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(20, 27, 24, 0.055);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.site-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid #26332e;
  border-radius: 11px;
  color: #eaf6f1;
  background:
    linear-gradient(135deg, rgba(25, 165, 143, 0.34), rgba(54, 111, 134, 0.18)),
    #111814;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.site-brand h1 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.06;
  letter-spacing: 0;
}

.site-brand p,
.section-kicker,
.panel-kicker {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f9f6;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #59635f;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link.active {
  color: #0c6257;
  background: var(--yellow-soft);
  box-shadow: inset 0 0 0 1px rgba(25, 165, 143, 0.14);
}

.nav-link.is-soon {
  color: #9aa29d;
  cursor: default;
}

.nav-link small {
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.site-actions,
.top-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.btn,
.ghost-action {
  border-radius: 10px;
}

.btn,
.ghost-action,
.status-pill,
.updated-pill,
.author-pill {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.btn.primary,
.ghost-action.primary {
  color: #0c6257;
  border-color: rgba(25, 165, 143, 0.24);
  background: var(--yellow-soft);
}

.btn:hover,
.ghost-action:hover {
  border-color: rgba(25, 165, 143, 0.38);
  transform: translateY(-1px);
}

.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  color: #56615c;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.alpha-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.52fr);
  gap: 14px;
  margin-top: 16px;
}

.hero-copy,
.featured-panel,
.lead-panel,
.stat-panel,
.project-card,
.empty,
.panel,
.metric-card {
  border-color: var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  min-height: 238px;
  padding: 26px;
  overflow: hidden;
}

.hero-copy::after {
  content: "ALPHA";
  position: absolute;
  right: 18px;
  bottom: -32px;
  color: rgba(20, 27, 24, 0.045);
  font-size: clamp(80px, 13vw, 162px);
  font-weight: 950;
  letter-spacing: 0;
  pointer-events: none;
}

.hero-copy h2 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0;
  font-size: clamp(32px, 5.2vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 17px 0 0;
  color: #59655f;
  font-size: 14px;
  line-height: 1.78;
  font-weight: 680;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.featured-panel {
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 19px;
}

.featured-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.featured-title {
  margin: 13px 0 0;
  font-size: 29px;
  line-height: 1.02;
  letter-spacing: 0;
}

.featured-copy {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.62;
  font-weight: 720;
}

.featured-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.featured-panel > .ghost-action {
  margin-top: 12px;
}

.featured-metric {
  padding: 11px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: #f8faf8;
}

.featured-metric span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.featured-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.stat-panel {
  min-height: 126px;
  padding: 18px;
}

.stat-panel strong {
  color: var(--research-ink);
}

.toolbar {
  margin-top: 24px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tabs {
  border-radius: 10px;
  background: #f7f9f6;
}

.tab {
  border-radius: 8px;
}

.tab.active {
  color: #0c6257;
  background: var(--yellow-soft);
}

.project-card {
  min-height: 306px;
}

.project-card:hover {
  border-color: rgba(25, 165, 143, 0.34);
  box-shadow: 0 22px 50px rgba(20, 27, 24, 0.09);
}

.coin,
.token-logo {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #0c6257;
  background:
    linear-gradient(135deg, rgba(25, 165, 143, 0.14), rgba(54, 111, 134, 0.08)),
    #f8faf8;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}

.badge,
.round-tag {
  color: #0c6257;
  background: var(--yellow-soft);
}

.badge.upcoming {
  color: #285f73;
  background: var(--blue-soft);
}

.badge.ended,
.badge.archived {
  color: #6b756f;
  background: #edf1ed;
}

.fill,
.ratio-track::before,
.round-progress-fill {
  background: linear-gradient(90deg, var(--research-accent), #7f9844);
}

.spark i.active {
  background: var(--research-accent);
}

.status-pill {
  color: #0c6257;
  border-color: rgba(25, 165, 143, 0.22);
  background: var(--yellow-soft);
}

.status-dot,
.round-progress-marker {
  background: var(--research-accent);
  box-shadow: 0 0 0 4px rgba(25, 165, 143, 0.16);
}

.status-pill[data-state="upcoming"] {
  color: #285f73;
  border-color: rgba(54, 111, 134, 0.2);
  background: var(--blue-soft);
}

.status-pill[data-state="upcoming"] .status-dot {
  background: var(--research-blue);
  box-shadow: 0 0 0 4px rgba(54, 111, 134, 0.14);
}

.funding-hero {
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(25, 165, 143, 0.075), transparent 45%),
    var(--card);
}

.funding-hero::after {
  color: rgba(20, 27, 24, 0.038);
}

.hero-inline-stat {
  border-left-color: var(--research-accent);
}

.ratio-note b {
  color: #0c6257;
}

.countdown-inline {
  border-color: #1c2a25;
  background:
    linear-gradient(145deg, #17231f 0%, #101714 72%);
}

.countdown-inline::after {
  border-color: rgba(25, 165, 143, 0.15);
  box-shadow: 0 0 0 30px rgba(25, 165, 143, 0.035), 0 0 0 60px rgba(54, 111, 134, 0.02);
}

.live-mini {
  color: #08241f !important;
  background: #8fd8ca;
}

.time-unit {
  border-color: rgba(25, 165, 143, 0.13);
}

.progress-labels .progress-mid {
  color: #8fd8ca;
}

.round-progress-marker {
  border-color: #101714;
}

.bar {
  background: linear-gradient(180deg, #5e91a4, var(--research-blue));
  box-shadow: 0 7px 16px rgba(54, 111, 134, 0.16);
}

.bar.is-latest {
  background: linear-gradient(180deg, #76d7c7, var(--research-accent));
  box-shadow: 0 8px 18px rgba(25, 165, 143, 0.28);
}

.result-card.profit {
  border-color: #cce9dd;
  background: var(--green-soft);
}

.profit .result-usd {
  color: var(--green);
}

.flow-dot {
  color: #0c6257;
  background: #d6f4ec;
  box-shadow: 0 0 0 1px rgba(25, 165, 143, 0.34);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .module-nav {
    justify-content: space-between;
    overflow-x: auto;
  }

  .site-actions,
  .top-meta {
    justify-content: flex-start;
  }

  .alpha-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 640px);
  }

  .site-header {
    padding: 12px;
  }

  .site-brand {
    align-items: flex-start;
  }

  .site-mark {
    width: 38px;
    height: 38px;
  }

  .site-brand h1 {
    font-size: 24px;
  }

  .nav-link {
    flex: 1;
    padding-inline: 10px;
  }

  .nav-link small {
    display: none;
  }

  .hero-copy {
    min-height: 0;
    padding: 21px;
  }

  .hero-copy h2 {
    font-size: clamp(32px, 12vw, 48px);
  }

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

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions .ghost-action {
    width: 100%;
  }

  .featured-metrics {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
  }
}
