* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top right, rgba(255, 145, 0, 0.05), transparent 45%), #0b0b0d;
  color: #f7f7f7;
  -webkit-font-smoothing: antialiased;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 4vw, 3.5rem);
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff9100;
}

.top-nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
  opacity: 0.8;
}

.top-nav a:hover {
  opacity: 1;
}

.ghost-button {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 145, 0, 0.5);
  font-weight: 600;
  transition: all 0.2s ease;
}

.ghost-button:hover {
  border-color: #ff9100;
  box-shadow: 0 0 0 3px rgba(255, 145, 0, 0.25);
}

main {
  flex: 1 1 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem) 4rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3rem, 8vw, 7rem) 0 5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.6rem, 4.8vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1.2rem;
  color: #f5f7fa;
}

.hero-text p {
  margin: 0 0 1.8rem;
  color: rgba(247, 247, 247, 0.78);
  font-size: 1.05rem;
  max-width: 520px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff9100, #ffb347);
  color: #0a0a0c;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.9rem 2.4rem;
  box-shadow: 0 12px 40px rgba(255, 145, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(255, 145, 0, 0.5);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f7fa;
  font-weight: 600;
  transition: background 0.18s ease;
}

.link-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-card {
  background: linear-gradient(145deg, rgba(18, 18, 24, 0.92), rgba(12, 12, 16, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero-card-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

.hero-card-description {
  margin: 0;
  color: rgba(247, 247, 247, 0.7);
  line-height: 1.65;
}

.hero-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.hero-card-metric {
  flex: 1 1 140px;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
}

.metric-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: #f5f7fa;
}

.hero-card-note {
  margin: 0;
  color: rgba(247, 247, 247, 0.65);
  font-size: 0.93rem;
  line-height: 1.6;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.feature-card {
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  padding: 2.2rem;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 145, 0, 0.4);
}

.feature-card h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.feature-card p {
  margin: 0;
  color: rgba(247, 247, 247, 0.7);
  line-height: 1.7;
}

.map-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  position: relative;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
}

.map-section > .section-heading,
.map-section > .map-legend {
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.section-heading span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.section-heading h2 {
  margin: 0.6rem 0 2rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: #f5f7fa;
}

.map-legend {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  background: rgba(12, 12, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 1.6rem clamp(1.2rem, 3vw, 2rem);
  margin-bottom: 1.8rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #f5f7fa;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
}

.legend-dot--green {
  background: #2ecc71;
}

.legend-dot--yellow {
  background: #ffd95a;
  border-color: rgba(255, 145, 0, 0.6);
}

.legend-dot--red {
  background: #ff5252;
  border-color: rgba(255, 80, 80, 0.72);
}

.legend-label {
  white-space: nowrap;
  color: rgba(247, 247, 247, 0.82);
}

.legend-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  padding: 0.1rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

.legend-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: rgba(247, 247, 247, 0.72);
  font-size: 0.95rem;
}

.legend-total-label {
  font-weight: 600;
  color: rgba(247, 247, 247, 0.76);
}

.legend-total-count {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f5f7fa;
}

.legend-dataset {
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.legend-toggle {
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 145, 0, 0.6);
  background: transparent;
  color: #ffb347;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.legend-toggle:hover {
  border-color: #ff9100;
  color: #ff9100;
  box-shadow: 0 0 0 3px rgba(255, 145, 0, 0.2);
}

#map-container {
  width: 100%;
  height: clamp(360px, 60vh, 540px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.leaflet-container {
  background: #050506;
  color: #fff;
}

.map-error {
  margin-top: 1rem;
  padding: 1rem 1.4rem;
  border-radius: 16px;
  background: rgba(255, 82, 82, 0.1);
  border: 1px solid rgba(255, 82, 82, 0.35);
  color: #ff9b9b;
  font-weight: 600;
  text-align: center;
}

.leaflet-control-container .leaflet-control {
  background: rgba(18, 18, 22, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(12, 12, 16, 0.95);
  color: #f5f7fa;
  border-radius: 18px;
}

.cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.4rem;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  align-items: center;
}

.cta-content h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.1rem, 3.5vw, 2.7rem);
}

.cta-content p {
  margin: 0 0 2rem;
  color: rgba(247, 247, 247, 0.7);
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-aside-card {
  background: linear-gradient(160deg, rgba(18, 18, 22, 0.9), rgba(10, 10, 14, 0.95));
  border: 1px solid rgba(255, 145, 0, 0.25);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
}

.cta-aside-card h3 {
  margin: 0 0 1.2rem;
  font-size: 1.3rem;
}

.cta-aside-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.cta-aside-card li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(247, 247, 247, 0.75);
}

.cta-aside-card li::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff9100;
  box-shadow: 0 0 0 4px rgba(255, 145, 0, 0.18);
}

footer {
  padding: 2.4rem clamp(1.5rem, 4vw, 4rem) 3rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 6, 8, 0.9);
}

@media (max-width: 720px) {
  .top-nav {
    display: none;
  }

  .top-bar {
    gap: 1rem;
  }

  .top-bar .ghost-button {
    font-size: 0.8rem;
    padding: 0.65rem 1rem;
  }

  .hero-card {
    order: -1;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .map-section {
    left: 0;
    width: 100%;
    transform: none;
  }

  .map-section > .section-heading,
  .map-section > .map-legend {
    padding: 0 1.2rem;
  }

  #map-container {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}
