:root {
  --card: rgba(9, 20, 33, 0.76);
  --line: rgba(166, 222, 190, 0.18);
  --ink: #edf7f3;
  --muted: #a8c1b6;
  --accent: #78d98f;
  --accent-3: #e5f8a4;
  --shadow: 0 28px 80px rgba(2, 7, 16, 0.45);
  --r-lg: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(49, 121, 94, 0.24), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(80, 172, 119, 0.18), transparent 26%),
    linear-gradient(180deg, #07111d 0%, #091523 46%, #06101a 100%);
  color: var(--ink);
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.65;
  padding: 1.4rem clamp(1.1rem, 4vw, 2.4rem) 3rem;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.aurora-a {
  background: radial-gradient(circle at 22% 30%, rgba(82, 179, 114, 0.24), transparent 34%);
}

.aurora-b {
  background: radial-gradient(circle at 80% 68%, rgba(98, 196, 148, 0.14), transparent 28%);
}

.grid-fade {
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(168, 193, 182, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 193, 182, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1), transparent 82%);
}

.topbar,
.page {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(120, 217, 143, 0.26), rgba(229, 248, 164, 0.3));
  color: var(--accent-3);
  box-shadow: 0 18px 44px rgba(59, 177, 113, 0.22);
}

.name,
.hero-copy h1,
.hero-card h2,
.card-head h3,
.source-card h3,
.focus-note strong {
  font-family: 'Space Grotesk', sans-serif;
}

.name {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.links,
.hero-actions,
.hero-tags,
.control-row,
.focus-pills,
.source-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.link,
.pill,
.ghost,
.control-btn,
.focus-pill {
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.link {
  color: var(--muted);
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.pill,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
}

.pill {
  background: linear-gradient(135deg, rgba(89, 197, 121, 0.95), rgba(139, 232, 140, 0.92));
  color: #04210f;
  box-shadow: 0 18px 44px rgba(59, 177, 113, 0.28);
}

.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.08);
}

.page {
  max-width: 1220px;
  margin: 0 auto;
}

.hero,
.showcase {
  display: grid;
  gap: 1.4rem;
}

.hero {
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  align-items: stretch;
  margin-bottom: 1.8rem;
}

.hero-copy,
.hero-card,
.panel-card,
.source-card,
.globe-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy {
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

.eyebrow,
.mini-label {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--muted);
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.08;
  margin: 0.7rem 0 0.9rem;
  max-width: 11ch;
}

.lede,
.body-copy,
.hero-card p,
.focus-note p,
.legend-note,
.fine-print,
.source-card p,
.stats dt {
  color: var(--muted);
}

.hero-actions {
  margin: 1.5rem 0 1rem;
}

.hero-tags span {
  padding: 0.52rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d5ece0;
  font-weight: 700;
  font-size: 0.86rem;
}

.hero-card {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.mini-row {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.mini-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-3), var(--accent));
  box-shadow: 0 0 0 8px rgba(120, 217, 143, 0.12);
  margin-top: 0.45rem;
  flex: 0 0 auto;
}

.hero-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.stats {
  display: grid;
  gap: 0.9rem;
}

.stats div {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stats dt {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.28rem;
}

.stats dd {
  font-weight: 700;
  color: var(--ink);
}

.showcase {
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.8fr);
  align-items: start;
  margin-bottom: 1.5rem;
}

.globe-shell {
  padding: 1rem;
}

.globe-stage {
  position: relative;
  min-height: 680px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 50%, rgba(64, 117, 116, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(3, 8, 16, 0.96), rgba(8, 18, 29, 0.96));
}

.globe-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(120, 217, 143, 0.1), transparent 26%),
    radial-gradient(circle at center, transparent 58%, rgba(4, 10, 18, 0.84) 100%);
  pointer-events: none;
}

.globe-mount {
  width: 100%;
  height: 680px;
  touch-action: none;
}

.stage-badge,
.status-chip {
  position: absolute;
  left: 1rem;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-weight: 800;
  font-size: 0.82rem;
  backdrop-filter: blur(10px);
}

.stage-badge {
  bottom: 1rem;
  background: rgba(6, 20, 16, 0.7);
  border: 1px solid rgba(120, 217, 143, 0.22);
  color: #dff8e7;
}

.status-chip {
  top: 1rem;
  background: rgba(7, 17, 29, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.status-chip.ready {
  color: #dff8e7;
  border-color: rgba(120, 217, 143, 0.28);
}

.panel {
  display: grid;
  gap: 1rem;
}

.panel-card,
.source-card {
  padding: 1.3rem;
}

.card-head h3,
.source-card h3 {
  font-size: 1.55rem;
  margin: 0.45rem 0 0.35rem;
}

.control-row {
  margin-top: 1rem;
}

.control-btn {
  cursor: pointer;
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 0.84rem 1rem;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  border-color: rgba(255, 255, 255, 0.08);
}

.control-btn.active,
.focus-pill.active {
  background: linear-gradient(135deg, rgba(100, 212, 123, 0.22), rgba(174, 241, 154, 0.2));
  border-color: rgba(120, 217, 143, 0.32);
  color: #f1fff4;
}

.focus-pills {
  margin-top: 0.95rem;
}

.focus-pill {
  cursor: pointer;
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  padding: 0.75rem 0.92rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
}

.focus-note {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.focus-note strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.06rem;
}

.legend-bar {
  height: 18px;
  border-radius: 999px;
  margin: 1rem 0 0.8rem;
  background: linear-gradient(90deg, #132338 0%, #21544f 22%, #3b8a62 44%, #55c66c 70%, #bdf483 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.legend-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.legend-scale div {
  font-size: 0.82rem;
  color: var(--muted);
}

.legend-scale strong {
  display: block;
  color: var(--ink);
}

#legendCard.is-hidden .legend-bar,
#legendCard.is-hidden .legend-scale,
#legendCard.is-hidden .legend-note {
  display: none;
}

.source-card {
  display: grid;
  gap: 0.6rem;
}

.source-links a {
  color: #d7f8dc;
  font-weight: 800;
}

.fine-print {
  font-size: 0.9rem;
}

.link:hover,
.pill:hover,
.ghost:hover,
.control-btn:hover,
.focus-pill:hover {
  transform: translateY(-1px);
}

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

@media (max-width: 720px) {
  body {
    padding-top: 1rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .globe-stage,
  .globe-mount {
    min-height: 460px;
    height: 460px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .control-row,
  .hero-actions,
  .links {
    width: 100%;
  }

  .control-btn,
  .hero-actions a,
  .links a {
    width: 100%;
  }

  .legend-scale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
