:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-alt: #eef7f3;
  --text: #131826;
  --muted: #5a6174;
  --accent: #0f7c5c;
  --accent-dark: #0a5a41;
  --border: #dfe3ea;
  --shadow: 0 18px 30px rgba(13, 26, 45, 0.08);
  font-size: 16px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #dff8ef, var(--bg) 45%);
  line-height: 1.6;
}

h1,
h2,
h3,
.stack-card h3,
.spotlight-grid h3,
.walkthrough__content h3 {
  font-family: 'Fraunces', 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(15, 124, 92, 0.12), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(31, 35, 57, 0.15), transparent 35%);
  z-index: -1;
  pointer-events: none;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem clamp(1.5rem, 4vw, 5rem);
  background: rgba(246, 247, 249, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.site-nav a {
  font-weight: 600;
  color: var(--text);
}

.site-nav__links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  color: var(--accent);
}

.nav-contact {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -1000px;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 10;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.hero {
  padding: 4rem clamp(1.5rem, 4vw, 6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
  background: radial-gradient(circle at top left, #d8f6eb, var(--bg));
}

.hero__content h1 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero__content .lede {
  font-size: 1.1rem;
  max-width: 52ch;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero__bullets {
  margin: 1.2rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.hero__bullets li {
  margin-bottom: 0.2rem;
}

.hero__status {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.status-card {
  background: var(--panel);
  padding: 1.2rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.status-label {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.status-value {
  margin: 0.4rem 0 0;
  font-size: 1.4rem;
  font-weight: 600;
}

main {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-bottom: 4rem;
}

.panel,
.section {
  margin: 0 auto;
  width: min(1100px, 92vw);
  background: var(--panel);
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.panel--metrics {
  width: min(1100px, 92vw);
  background: rgba(255, 255, 255, 0.9);
}

.panel--wide {
  width: min(1300px, 98vw);
}

.walkthrough {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr;
  gap: 1.2rem;
}

.walkthrough__tabs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.walkthrough__button {
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  transition: border 0.2s ease, background 0.2s ease;
}

.walkthrough__button--active {
  border-color: var(--accent);
  background: rgba(15, 124, 92, 0.12);
}

.walkthrough__content {
  border: 1px solid rgba(15, 124, 92, 0.2);
  border-radius: 1.2rem;
  padding: 1.5rem;
  background: linear-gradient(130deg, rgba(15, 124, 92, 0.08), rgba(255, 255, 255, 0.95));
}

.walkthrough__content h3 {
  margin-top: 0;
}

.walkthrough__content ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.stack-card {
  border-radius: 1.2rem;
  border: 1px solid rgba(19, 24, 38, 0.08);
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 40px rgba(15, 124, 92, 0.08);
}

.stack-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.spotlight-grid article {
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(12, 16, 28, 0.85);
  color: #f0f4f0;
  padding: 1.2rem;
  min-height: 200px;
}

.spotlight-grid button {
  margin-top: 0.75rem;
  border-color: rgba(255, 255, 255, 0.6);
  color: #f0f4f0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.metric-card {
  border: 1px solid rgba(15, 124, 92, 0.15);
  border-radius: 1rem;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(15, 124, 92, 0.08), rgba(255, 255, 255, 0.7));
}

.metric-card__label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.metric-card__value {
  font-size: 2rem;
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.metric-card__tag {
  display: inline-flex;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--accent-dark);
}

.panel--map {
  background: #0f111a;
  color: #fff;
  box-shadow: 0 32px 60px rgba(8, 20, 33, 0.55);
  border: none;
}

.section--alt {
  background: var(--panel-alt);
}

.panel__header,
.section > div:first-of-type {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.panel__header h2,
.section h2 {
  font-family: 'Fraunces', 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  margin: 0.2rem 0 0.6rem;
}

.panel__cta {
  display: flex;
  gap: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.badge--neutral {
  background: #e8eaf1;
  color: var(--muted);
}

.badge--positive {
  background: rgba(23, 197, 138, 0.18);
  color: #8df4ba;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 15px 35px rgba(15, 124, 92, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--subtle {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 124, 92, 0.2);
  color: var(--accent-dark);
}

.btn--icon {
  border: none;
  background: rgba(15, 124, 92, 0.12);
  color: var(--accent-dark);
  padding: 0.35rem 0.8rem;
  border-radius: 0.6rem;
  font-weight: 600;
  cursor: pointer;
}

.btn--icon:hover,
.btn--icon:focus-visible {
  background: var(--accent);
  color: #fff;
}

.btn--pin {
  border: 1px solid rgba(15, 124, 92, 0.35);
}

.btn--pin--active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--muted);
}

.field input[type='search'],
.field select {
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  font-size: 1rem;
}

.field select {
  background: #fff;
}

.search-help {
  margin-bottom: 1.5rem;
  background: rgba(15, 124, 92, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(15, 124, 92, 0.3);
}

.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.example-chip {
  border: none;
  border-radius: 999px;
  background: #fff;
  padding: 0.45rem 1rem;
  font-weight: 600;
  color: var(--accent-dark);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 124, 92, 0.15);
}

.example-chip:hover,
.example-chip:focus-visible {
  background: var(--accent);
  color: #fff;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.4rem 0.95rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.chip--active {
  background: rgba(15, 124, 92, 0.12);
  color: var(--accent-dark);
  border-color: var(--accent);
}

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

.region-note {
  margin: 0 0 1rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.dataset-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.dataset-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #fff;
}

.region-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.region-pill {
  background: rgba(15, 124, 92, 0.12);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.region-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.region-pill {
  background: rgba(15, 124, 92, 0.12);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.dataset-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.dataset-card p {
  margin: 0;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background: rgba(15, 124, 92, 0.08);
  color: var(--accent-dark);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.dataset-card a {
  font-weight: 600;
}

.dataset-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.dataset-card__actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.project-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  border: 1px solid rgba(15, 124, 92, 0.2);
  border-radius: 1.2rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.project-board__list {
  border-radius: 1rem;
  border: 1px dashed rgba(15, 124, 92, 0.4);
  padding: 1rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.board-pill {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.8rem;
  background: rgba(15, 124, 92, 0.08);
}

.board-pill p {
  margin: 0;
  font-weight: 600;
}

.board-pill span {
  font-size: 0.85rem;
  color: var(--muted);
}

.board-pill__actions {
  display: flex;
  gap: 0.4rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.site-footer {
  margin: 4rem auto 2rem;
  width: min(900px, 90vw);
  text-align: center;
  color: var(--muted);
}

.site-footer a {
  font-weight: 600;
}

.map-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

#mapView {
  min-height: 360px;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-key {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.map-key h3 {
  margin-top: 0;
}

.map-key ul {
  padding-left: 1.1rem;
}

.small-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.error {
  color: #c53030;
  font-weight: 600;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(19, 24, 38, 0.95);
  color: #fff;
  padding: 0.75rem 1.2rem;
  border-radius: 0.6rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

thead {
  background: var(--panel-alt);
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--border);
}

tbody tr:hover {
  background: rgba(15, 124, 92, 0.06);
}

@media (max-width: 600px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .panel,
  .section {
    padding: 1.2rem;
  }

  #mapView {
    min-height: 280px;
  }

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