:root {
  --pine: #163d2b;
  --moss: #3c7a4f;
  --leaf: #72b66f;
  --mint: #dff4df;
  --sky: #cfe9f2;
  --ink: #14201a;
  --muted: #66736b;
  --paper: #fbfcf7;
  --white: #ffffff;
  --line: rgba(20, 32, 26, 0.12);
  --shadow: 0 24px 80px rgba(22, 61, 43, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(to bottom, rgba(11, 28, 20, 0.68), rgba(11, 28, 20, 0));
}

.brand,
.nav-links,
.hero-actions,
.map-controls,
.waitlist-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
}

.nav-links {
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.nav-cta {
  justify-self: end;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 130px clamp(20px, 6vw, 88px) 90px;
  color: var(--white);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(9, 25, 17, 0.86) 0%, rgba(9, 25, 17, 0.58) 42%, rgba(9, 25, 17, 0.14) 100%),
    linear-gradient(0deg, rgba(9, 25, 17, 0.72) 0%, rgba(9, 25, 17, 0) 46%);
}

.hero-content {
  position: relative;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--moss);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: var(--pine);
  background: var(--mint);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-status {
  position: absolute;
  right: clamp(20px, 6vw, 88px);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(9, 25, 17, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 800;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #83e58b;
  box-shadow: 0 0 0 7px rgba(131, 229, 139, 0.18);
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: clamp(24px, 4vw, 46px);
  background: var(--paper);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--pine);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-weight: 800;
}

.product-section,
.map-section,
.privacy-section,
.join-section {
  padding: clamp(64px, 10vw, 132px) clamp(20px, 6vw, 88px);
}

.product-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) 1.14fr;
  gap: clamp(34px, 6vw, 92px);
  align-items: start;
}

.section-copy p,
.map-copy p,
.join-content p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.64;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature,
.privacy-list article {
  min-height: 250px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 38px rgba(22, 61, 43, 0.07);
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--moss);
  font-weight: 900;
}

.feature p,
.privacy-list p {
  color: var(--muted);
  line-height: 1.55;
}

.map-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(32px, 5vw, 76px);
  background: #eef7ee;
}

.map-controls {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.map-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(22,61,43,.08);
  border: 1px solid rgba(22,61,43,.14);
  font-size: 13px;
  font-weight: 700;
  color: var(--moss);
}

@keyframes shimmer {
  0%   { opacity: .4; }
  50%  { opacity: 1; }
  100% { opacity: .4; }
}

.stat-loading {
  animation: shimmer 1.4s ease-in-out infinite;
  color: var(--muted) !important;
}

.segmented {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1px solid rgba(22, 61, 43, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--pine);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.segmented.active {
  color: var(--white);
  background: var(--pine);
}

.map-panel {
  overflow: hidden;
  border-radius: 8px;
  background: #f7fbf8;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-toolbar,
.map-legend,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-toolbar {
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--pine);
  font-weight: 900;
}

.geomap {
  position: relative;
  height: min(62vh, 620px);
  min-height: 420px;
  overflow: hidden;
  background: #e8f0eb;
}

/* Leaflet tooltip */
.cq-tooltip {
  background: rgba(22,61,43,.9) !important;
  border: 1px solid rgba(22,61,43,.2) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  padding: 5px 10px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.3) !important;
}
.cq-tooltip::before { display: none !important; }

/* Leaflet dark tile override */
.geomap .leaflet-control-attribution {
  background: rgba(0,0,0,.5);
  color: rgba(255,255,255,.5);
  font-size: 10px;
}

.geomap .leaflet-control-zoom a {
  background: rgba(22,61,43,.9);
  color: var(--mint);
  border-color: rgba(255,255,255,.12);
}

.geomap .leaflet-control-zoom a:hover {
  background: var(--pine);
}

.map-bubble {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--leaf) var(--intensity), var(--pine));
  box-shadow: 0 18px 50px rgba(22, 61, 43, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.map-bubble::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  min-width: 128px;
  translate: -50% 8px;
  opacity: 0;
  pointer-events: none;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(22, 61, 43, 0.94);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  transition: opacity 160ms ease, translate 160ms ease;
}

.map-bubble:hover::after,
.map-bubble:focus-visible::after {
  opacity: 1;
  translate: -50% 0;
}

.map-legend {
  gap: 12px;
  padding: 16px 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.legend-ramp {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d7ecd2, #72b66f, #163d2b);
}

.privacy-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(32px, 5vw, 76px);
}

.privacy-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.privacy-list article {
  min-height: 210px;
}

.join-section {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  background: var(--pine);
  color: var(--white);
}

.join-content p {
  color: rgba(255, 255, 255, 0.76);
}

.waitlist {
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.waitlist label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.waitlist-row {
  gap: 8px;
}

.waitlist input {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font: inherit;
}

.form-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.site-footer {
  gap: 16px;
  padding: 24px clamp(20px, 6vw, 88px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .metrics-band,
  .product-section,
  .map-section,
  .privacy-section,
  .join-section {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .privacy-list {
    grid-template-columns: 1fr;
  }

  .feature,
  .privacy-list article {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 88vh;
    padding: 112px 20px 72px;
  }

  .hero-status {
    left: 20px;
    right: 20px;
    bottom: 18px;
  }

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

  .waitlist-row,
  .auth-row {
    flex-direction: column;
  }

  .waitlist .button {
    width: 100%;
  }

  .geomap {
    min-height: 360px;
  }

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