:root {
  --bg: #f7f6f2;
  --card: #ffffff;
  --text: #1c1f17;
  --muted: #5f6655;
  --line: #e3e2d9;
  --accent: #4b5320;
  --accent-ink: #ffffff;
  --accent-soft: #eef0e2;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12140e;
    --card: #1b1e15;
    --text: #f1f1ea;
    --muted: #a9ae9c;
    --line: #2c3123;
    --accent: #8a9a4f;
    --accent-ink: #12140e;
    --accent-soft: #22271a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }

.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1120px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 24px 14px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.logo { display: block; width: auto; height: 62px; }
.links { display: flex; align-items: center; gap: 22px; }
.links > a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 600; }
.links > a:not(.btn):hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.btn.ghost { background: transparent; color: var(--accent); }
.btn.big { height: 52px; padding: 0 26px; font-size: 17px; }
.btn:focus-visible, .links a:focus-visible, .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.hero { padding: 72px 0 56px; max-width: 760px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -.02em; font-weight: 600; }
.lead { margin: 22px 0 0; font-size: 20px; color: var(--muted); max-width: 620px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; max-width: 760px;
  background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.stat { background: var(--card); padding: 28px 24px; display: grid; gap: 4px; }
.stat strong { font-family: var(--serif); font-size: 48px; line-height: 1; font-weight: 600; color: var(--accent); }
.stat span { color: var(--muted); font-size: 15px; }

.section { padding: 72px 0 0; }
.section h2 { margin: 0 0 24px; font-family: var(--serif); font-size: 34px; font-weight: 600; letter-spacing: -.01em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; align-items: flex-start; }
.card svg { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--accent-soft); stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .btn { margin-top: 18px; }

.foot {
  max-width: 1120px; margin: 88px auto 0; padding: 24px 24px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}
.foot-links { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { padding-left: 16px; padding-right: 16px; }
  .logo { height: 52px; }
  .links { gap: 8px; }
  .links > a:not(.btn) { display: none; }
  .links .btn { height: 36px; padding: 0 14px; font-size: 14px; }
  main { padding: 0 16px; }
  .hero { padding: 40px 0 36px; }
  .lead { font-size: 18px; }
  .cta .btn { flex: 1 1 100%; }
  .stats, .cards, .cards.two { grid-template-columns: 1fr; }
  .stat { padding: 20px; }
  .stat strong { font-size: 40px; }
  .section { padding-top: 52px; }
  .section h2 { font-size: 28px; }
  .foot { margin-top: 56px; padding-left: 16px; padding-right: 16px; }
}
