:root {
  color-scheme: light;
  --bg: #f7f8f3;
  --surface: #ffffff;
  --ink: #16221b;
  --muted: #5c675f;
  --line: #d8ded4;
  --green: #16351f;
  --green-soft: #e8f0e5;
  --blue: #2b6cb0;
  --amber: #b76b12;
  --red: #b2332f;
  --code: #111a16;
  --code-muted: #b7c5ba;
  --shadow: 0 18px 50px rgb(22 34 27 / 12%);
}

* {
  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;
  font-size: 16px;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  background: var(--code);
  color: #eef7f0;
  font-size: 0.92rem;
  line-height: 1.55;
}

code {
  border-radius: 5px;
  background: #edf1ea;
  padding: 0.12rem 0.32rem;
  color: #1d3326;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.site-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  background: #fbfcf8;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-weight: 800;
}

.brand-title {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.nav-label {
  margin: 26px 0 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-link {
  display: block;
  padding: 7px 0;
  color: #2b372f;
  font-weight: 650;
}

.sidebar-actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--green);
  color: #ffffff;
  font-weight: 750;
}

.button.secondary {
  background: transparent;
  color: var(--green);
}

.button:hover {
  text-decoration: none;
}

.content {
  min-width: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.84fr);
  gap: 44px;
  align-items: center;
  padding: 56px min(6vw, 72px) 44px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7f8f3 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  max-width: 820px;
  font-size: 3.2rem;
}

h2 {
  margin-bottom: 18px;
  font-size: 2rem;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

p {
  margin: 0 0 18px;
}

.lead {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.hero-visual {
  margin: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 54px min(6vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section.narrow {
  max-width: 980px;
}

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

.grid > *,
.split > * {
  min-width: 0;
}

.tile {
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.code-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

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

th {
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.82rem;
  text-transform: uppercase;
}

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

.callout {
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  padding: 16px 18px;
  background: #fff8ea;
}

.security-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--surface);
}

.footer {
  padding: 32px min(6vw, 72px);
  color: var(--muted);
}

@media (max-width: 980px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

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

  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .sidebar,
  .hero,
  .section,
  .footer {
    padding-right: 20px;
    padding-left: 20px;
  }

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

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.55rem;
  }
}
