:root {
  --brand: #0b6e4f;
  --brand-deep: #084c37;
  --brand-mid: #149067;
  --accent: #d4f06a;
  --accent-ink: #1a2e12;
  --ink: #12201a;
  --muted: #5a6e64;
  --paper: #f3f6f2;
  --paper-2: #e8eee8;
  --line: rgba(18, 32, 26, 0.1);
  --white: #ffffff;
  --font-display: "Outfit", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* ——— Topbar ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(243, 246, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  border-radius: 8px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--brand-deep);
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.top-nav a:hover { color: var(--brand-deep); }

.nav-cta {
  padding: 10px 18px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  border-radius: 8px;
}

.nav-cta:hover { background: var(--brand-deep); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.25s var(--ease);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn-primary:hover { background: #e4f88a; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-on-dark {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 48px 0 72px;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(8, 76, 55, 0.94) 0%, rgba(11, 110, 79, 0.78) 42%, rgba(18, 32, 26, 0.55) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(212, 240, 106, 0.18), transparent 55%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(160deg, #0b6e4f 0%, #084c37 45%, #1a3328 100%);
  background-size: cover, cover, 60px 60px, cover;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.06) translate(-1.5%, 1%); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-bottom: 8px;
}

.hero-brand {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-trust {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

/* ——— Promise strip ——— */
.promise {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 28px 0;
}

.promise-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
}

.promise-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.02em;
}

.promise-sub {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.85;
}

/* ——— Sections ——— */
.section-head {
  margin-bottom: 40px;
  max-width: 36em;
}

.section-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  color: var(--brand-deep);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255, 255, 255, 0.72); }

.services {
  padding: 80px 0 40px;
  background: var(--white);
}

.benefit-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.benefit {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.benefit-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--brand);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.benefit-body h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.benefit-body p {
  margin: 0;
  color: var(--muted);
  max-width: 48em;
}

/* ——— How it works ——— */
.how {
  padding: 80px 0;
  background:
    linear-gradient(165deg, #0b6e4f 0%, #084c37 100%);
  color: #fff;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  border-radius: 8px;
}

.step h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.how-punch {
  margin: 48px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.02em;
  color: var(--accent);
}

/* ——— Reviews ——— */
.reviews {
  padding: 80px 0;
  background: var(--paper);
}

.quote {
  margin: 0 0 28px;
  padding: 0;
  max-width: 40em;
  border: 0;
}

.quote p {
  margin: 0 0 16px;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.quote footer,
.quote-sm footer {
  font-size: 14px;
  color: var(--muted);
  font-style: normal;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.quote-sm {
  margin: 0;
  padding: 20px 0 0;
}

.quote-sm p {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--ink);
}

/* ——— Coverage / map ——— */
.coverage {
  padding: 72px 0 80px;
  background: var(--white);
}

.coverage-stat {
  font-weight: 600;
  color: var(--brand) !important;
}

.coverage-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  align-items: stretch;
}

.map-panel,
.partner-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.map-box {
  width: 100%;
  height: 420px;
  background: #dfe8e2;
}

.map-box.map-ready {
  z-index: 1;
  height: 420px;
}

.map-box.map-static {
  display: flex;
  align-items: stretch;
  background:
    radial-gradient(120% 90% at 20% 10%, #f4faf7 0%, transparent 55%),
    linear-gradient(160deg, #e7efe9 0%, #d8e4dc 100%);
}

.map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-district {
  cursor: pointer;
  transition: fill 0.18s ease;
}

.map-label {
  fill: #2a3d34;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.78;
  user-select: none;
}

.map-marker {
  cursor: pointer;
  transition: r 0.15s ease, opacity 0.15s ease;
}

.map-marker.is-active {
  r: 7;
}

.map-fallback-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.map-fallback-msg span { font-size: 12px; opacity: 0.85; }

.map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #fafcfb;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 13px;
  color: var(--muted);
}

.swatch {
  display: inline-block;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: middle;
  border: 1px solid transparent;
}

.swatch.partner {
  background: #1f7a5c;
  border-color: #145a43;
}

.swatch.default {
  background: #e8f0ec;
  border-color: #b8c9c0;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

.dot.street { background: #1f7a5c; }
.dot.community { background: #2f6fed; }

.map-tip {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.partner-head {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  background: #fafcfb;
}

.partner-list {
  max-height: 420px;
  overflow: auto;
}

.district-group { padding: 8px 0; }

.district-title {
  padding: 8px 16px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.partner-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: background 0.15s;
}

.partner-item:hover,
.partner-item.active { background: rgba(11, 110, 79, 0.08); }

.partner-name { font-size: 14px; font-weight: 600; }

.partner-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.muted { color: var(--muted); }

/* ——— Final CTA ——— */
.cta-band {
  padding: 88px 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(212, 240, 106, 0.15), transparent 50%),
    linear-gradient(135deg, #084c37 0%, #0b6e4f 50%, #12201a 100%);
  color: #fff;
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: -0.02em;
}

.cta-inner > p {
  margin: 0 auto 28px;
  max-width: 32em;
  color: rgba(255, 255, 255, 0.82);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cta-note {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ——— Footer ——— */
.footer {
  background: #0a1a14;
  color: rgba(255, 255, 255, 0.65);
  padding: 40px 0 48px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.brand-footer .brand-text { color: #fff; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

.footer-nav a:hover { color: #fff; }

.footer-copy {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
}

/* ——— Reveal motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .coverage-layout { grid-template-columns: 1fr; }
  .map-box { height: 320px; }
  .partner-list { max-height: 260px; }
  .quote-grid { grid-template-columns: 1fr; }
  .benefit { grid-template-columns: 56px 1fr; gap: 12px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .top-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .top-nav.is-open { display: flex; }

  .top-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }

  .top-nav .nav-cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding: 40px 0 56px;
    align-items: flex-start;
  }

  .services,
  .how,
  .reviews,
  .coverage { padding: 56px 0; }

  .cta-band { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover { transform: none; }
}
