:root {
  --green: #2b874b;
  --green-soft: #e8f3ec;
  --text: #2a2c2a;
  --muted: #5f635f;
  --bg: #ffffff;
  --bg-alt: #f5f6f5;
  --line: #e2e4e2;
  --radius: 14px;
  --max: 1080px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #3fae66;
    --green-soft: #1b2e22;
    --text: #e6e8e6;
    --muted: #a3a8a3;
    --bg: #141614;
    --bg-alt: #1b1e1b;
    --line: #2c302c;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .icon { height: 30px; width: auto; }
.brand .wordmark { height: 22px; width: auto; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.site-header nav a:hover { color: var(--green); }

/* Hero */
.hero { padding: 96px 0 88px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.hero-art { justify-self: end; width: 100%; max-width: 380px; }

.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--green);
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  margin-left: 8px;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); filter: none; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }

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

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card p { color: var(--muted); margin-bottom: 0; }
.card .num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 800;
  margin-bottom: 16px;
}
.card ul { margin: 12px 0 0; padding-left: 1.1em; color: var(--muted); }

a.card { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--green); transform: translateY(-2px); }
.card .tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 12px;
}
.card .link { display: inline-block; margin-top: 14px; color: var(--green); font-weight: 600; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.contact-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
}
.contact-box a { font-weight: 700; font-size: 1.15rem; word-break: break-all; }
.contact-box p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

/* Legal pages */
.legal { padding: 64px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }

/* Responsive */
@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero .wrap, .contact { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .site-header nav { display: none; }
  .btn-ghost { margin-left: 0; }
}
