:root {
  --bg: #f6f7f3;
  --paper: #ffffff;
  --ink: #1d2320;
  --muted: #65706b;
  --line: #dfe5de;
  --green: #22745a;
  --green-2: #11533f;
  --gold: #c78a2b;
  --rose: #a6404c;
  --code-bg: #18211d;
  --code-ink: #e7f1ea;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--green-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(223, 229, 222, 0.9);
  background: rgba(246, 247, 243, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: #1f342c;
  color: #f4d78d;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
}

.search {
  flex: 1;
  max-width: 620px;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 11px 14px;
  outline: none;
  box-shadow: 0 8px 26px rgba(30, 42, 35, 0.05);
}

.version {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: var(--paper);
  white-space: nowrap;
}

.layout {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  max-width: 1440px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  overflow: auto;
}

.nav-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav a {
  display: block;
  border-radius: 7px;
  padding: 8px 10px;
  color: #2c3833;
  font-size: 14px;
}

.nav a:hover,
.nav a.active {
  background: #e8efe9;
  text-decoration: none;
}

.content {
  min-width: 0;
  padding: 0 42px 80px;
}

.hero {
  padding: 74px 0 44px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

h1,
h2,
h3 {
  line-height: 1.16;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: 58px;
}

.lead {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 7px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(30, 42, 35, 0.07);
}

.button.primary {
  border-color: #1f6a50;
  background: #1f6a50;
  color: white;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.section {
  padding: 56px 0 0;
}

.page-title {
  padding-top: 64px;
}

.page-title h1 {
  font-size: 48px;
}

.section > h2 {
  margin: 0 0 14px;
  font-size: 34px;
}

.section > p {
  max-width: 860px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 22px;
  box-shadow: 0 10px 35px rgba(30, 42, 35, 0.06);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.card p {
  color: var(--muted);
}

.statline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 16px;
}

.metric strong {
  display: block;
  font-size: 24px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.callout {
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #eaf3ec;
  padding: 16px 18px;
  color: #21362e;
}

.callout.gold {
  border-left-color: var(--gold);
  background: #fbf1df;
}

.callout.rose {
  border-left-color: var(--rose);
  background: #f9e8eb;
}

pre {
  margin: 16px 0;
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-ink);
  overflow: auto;
  padding: 17px 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

code {
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
}

p code,
li code,
td code {
  border: 1px solid #d6ddd6;
  border-radius: 5px;
  background: #edf2ed;
  padding: 1px 5px;
  color: #234b3f;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf3ee;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tr:last-child td {
  border-bottom: 0;
}

.flow {
  counter-reset: flow;
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.flow li {
  counter-increment: flow;
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  min-height: 58px;
  padding: 14px 14px 14px 64px;
}

.flow li::before {
  content: counter(flow);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1f6a50;
  color: white;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  background: #f7e7c8;
  color: #7a531d;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  margin-top: 4px;
  font-weight: 800;
}

.footer {
  margin-top: 58px;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
  }

  .layout {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 22px;
  }

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

  .content {
    padding: 0 22px 60px;
  }

  h1 {
    font-size: 42px;
  }

  .grid.two,
  .grid.three,
  .statline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 12px 16px;
  }

  .version {
    display: none;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 34px;
  }

  .section > h2 {
    font-size: 28px;
  }
}
