:root {
  --ink: #10231f;
  --muted: #53665f;
  --paper: #f7f9f7;
  --surface: #ffffff;
  --surface-alt: #eef5f2;
  --accent: #0d7567;
  --accent-strong: #075a50;
  --accent-warm: #b86b35;
  --line: rgba(16, 35, 31, 0.14);
  --shadow: 0 18px 44px rgba(16, 35, 31, 0.10);
  --content: min(1160px, calc(100vw - 36px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  width: var(--content);
  margin: 14px auto 0;
  min-height: 54px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 26px rgba(16, 35, 31, 0.12);
  backdrop-filter: blur(16px);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand,
.site-header a,
.button,
.text-link {
  text-decoration: none;
}

.brand {
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 5px #dcefeb;
}

.site-header nav {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-header nav a:hover,
.text-link:hover {
  color: var(--accent-strong);
}

.hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 118px max(22px, calc((100vw - 1160px) / 2)) 72px;
  background: #142722;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.54;
  filter: saturate(0.9);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 26, 23, 0.90) 0%, rgba(12, 26, 23, 0.68) 42%, rgba(12, 26, 23, 0.26) 100%),
    linear-gradient(180deg, rgba(12, 26, 23, 0.2) 0%, rgba(12, 26, 23, 0.84) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  color: #fff;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  margin: 24px 0 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 30px;
}

.hero-actions,
.download-grid article,
.site-footer,
.quick-start {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
  color: var(--ink);
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: 72px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.split-heading {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

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

p {
  color: var(--muted);
  line-height: 1.62;
}

.feature-list,
.download-grid,
.diagram-grid {
  display: grid;
  gap: 16px;
}

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

.feature-list article,
.download-grid article,
.surface-row,
figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-list article,
.download-grid article {
  padding: 22px;
}

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

.surface-row {
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
}

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

.check-list li {
  position: relative;
  padding-left: 24px;
  color: #31443e;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.54em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-warm);
}

.downloads-band,
.diagram-band {
  border-top: 1px solid var(--line);
}

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

.download-grid article {
  align-content: start;
}

.download-grid article p {
  min-height: 78px;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

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

figure {
  margin: 0;
  overflow: hidden;
}

figure img {
  display: block;
  width: 100%;
  background: #fff;
}

figcaption {
  padding: 12px 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.quick-start {
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.quick-start > div {
  max-width: 560px;
}

pre {
  width: min(480px, 100%);
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #e8f5f1;
  background: #10231f;
  border-radius: 8px;
  line-height: 1.55;
}

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

.site-footer {
  width: var(--content);
  margin: 0 auto;
  padding: 28px 0 44px;
  align-items: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    margin-top: 0;
    width: 100%;
    border-radius: 0;
  }

  .hero {
    min-height: 78vh;
    padding-top: 74px;
  }

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

  .surface-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --content: min(100vw - 24px, 1160px);
  }

  .site-header,
  .site-header nav,
  .split-heading,
  .quick-start {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    gap: 10px;
  }

  .hero {
    min-height: 82vh;
    padding-bottom: 46px;
  }

  .hero-image {
    object-position: 56% top;
  }

  .feature-list,
  .download-grid,
  .diagram-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }
}
