:root {
  --bg: #f2eadc;
  --paper: #fff9ee;
  --ink: #17120f;
  --muted: #5f5248;
  --primary: #0f6a47;
  --primary-strong: #084b31;
  --gold: #c1882f;
  --line: rgba(23, 18, 15, 0.12);
  --shadow: 0 14px 40px rgba(44, 28, 10, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Chivo", sans-serif;
  line-height: 1.6;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 18%, rgba(193, 136, 47, 0.24), transparent 45%),
    radial-gradient(circle at 86% 8%, rgba(15, 106, 71, 0.24), transparent 38%),
    radial-gradient(circle at 70% 88%, rgba(120, 84, 44, 0.15), transparent 35%),
    linear-gradient(160deg, #f5eddf 0%, #efe2ce 50%, #f6efe5 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 4vw;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  background: rgba(255, 249, 238, 0.85);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.02em;
}

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

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.menu a:hover {
  color: var(--primary-strong);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
}

main {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding-bottom: 4rem;
}

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 2.5rem;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}

.hero h1 {
  margin: 1rem 0;
  max-width: 16ch;
  font-size: clamp(2rem, 6vw, 4.3rem);
  line-height: 1.05;
  font-weight: 900;
}

.lead {
  max-width: 70ch;
  color: var(--muted);
  font-size: 1.07rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-strong));
  box-shadow: var(--shadow);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-stats li {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  margin-top: 2.4rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.section-head h2,
.section h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.card h3 {
  margin-top: 0;
}

.band {
  background: linear-gradient(140deg, #fef5e6 0%, #f4ead8 100%);
}

.accent-a { border-top: 5px solid #0f6a47; }
.accent-b { border-top: 5px solid #2f7f63; }
.accent-c { border-top: 5px solid #4f8d76; }
.accent-d { border-top: 5px solid #c1882f; }
.accent-e { border-top: 5px solid #8f5f1f; }

.topics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.topic {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.topic h3 {
  margin-top: 0;
  font-size: 1rem;
}

.actions {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.actions li + li {
  margin-top: 0.45rem;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

blockquote {
  margin: 0;
  padding: 1rem;
  border-radius: 14px;
  border-left: 5px solid var(--gold);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-family: "Source Serif 4", serif;
}

.cta {
  text-align: center;
}

.footer {
  width: min(1120px, 92vw);
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
  }

  .menu.open {
    display: flex;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .hero-stats,
  .grid.two,
  .grid.three,
  .quotes,
  .topics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 1.2rem;
  }
}
