:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --ink: #18221d;
  --muted: #5b6861;
  --line: #d8e1da;
  --green: #27684d;
  --green-dark: #10372b;
  --soft: #edf5ef;
  --shadow: 0 20px 45px rgba(16, 55, 43, 0.08);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background:
    linear-gradient(rgba(16, 55, 43, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 55, 43, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 40px 40px;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 244, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}

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

.brand {
  text-decoration: none;
  font-size: 1.05rem;
}

.brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 850;
}

nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 13px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 750;
}

nav a:hover,
.button.secondary {
  background: var(--soft);
}

.hero {
  padding: 70px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

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

h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  letter-spacing: 0.02em;
}

h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3.7rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  max-width: 68ch;
  margin: 18px 0 0;
  color: #334139;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
}

.button.secondary {
  border-color: var(--line);
  color: var(--ink);
}

.system-card,
.metric-grid article,
.card,
.scope,
.footer .wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.system-card {
  overflow: hidden;
}

.system-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: var(--green-dark);
  color: #fff;
}

.system-title span {
  color: #c8dfd3;
}

.system-row {
  margin: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: var(--soft);
}

.system-row span,
.system-row strong {
  display: block;
}

.system-row span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.metric-grid article {
  padding: 18px;
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid strong {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 1.2rem;
}

.metric-grid span,
.card p,
.scope p,
.footer span {
  color: var(--muted);
}

.section {
  padding-top: 64px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.card,
.scope {
  padding: 22px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p,
.scope p {
  margin: 0;
}

.text-link {
  display: inline-flex;
  margin: 14px 12px 0 0;
  color: var(--green);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.note code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #dfece4;
  color: var(--green-dark);
  font-weight: 750;
}

.architecture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.lane {
  min-height: 160px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lane span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.connector {
  height: 2px;
  background: var(--green);
}

.scope {
  background: var(--green-dark);
  color: #fff;
}

.scope .eyebrow,
.scope p {
  color: #c8dfd3;
}

.footer {
  padding: 42px 0;
}

.footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.footer p {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 940px) {
  .site-header {
    position: static;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  nav {
    justify-content: flex-start;
  }

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

  .connector {
    width: 2px;
    height: 34px;
    margin-left: 24px;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding-top: 42px;
  }

  .actions,
  .content-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  nav a,
  .button {
    width: 100%;
  }

  nav a {
    background: var(--soft);
  }

  h1 {
    font-size: clamp(3.6rem, 22vw, 5rem);
  }

  h2 {
    max-width: 100%;
  }

  .system-title,
  .footer .wrap {
    flex-direction: column;
  }
}
