:root {
  color-scheme: light;
  --ink: #171a17;
  --ink-soft: #344139;
  --muted: #5d675f;
  --paper: #fbfcfa;
  --surface: #ffffff;
  --surface-strong: #eef4ef;
  --line: #d7dfd7;
  --line-strong: #aebbae;
  --green: #0d6f54;
  --green-dark: #064d3c;
  --amber: #b86412;
  --red: #b8332a;
  --teal: #087d84;
  --code-bg: #121611;
  --code-ink: #edf7ed;
  --shadow: 0 22px 70px rgba(23, 26, 23, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body::selection {
  color: #ffffff;
  background: var(--green);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(20px, 5vw, 72px);
  color: var(--ink);
  background: rgba(251, 252, 250, 0.92);
  border-bottom: 1px solid rgba(215, 223, 215, 0.9);
  backdrop-filter: blur(16px);
}

main {
  padding-top: 68px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: var(--green-dark);
  border-radius: 8px;
  font-size: 0.8rem;
}

.nav-links {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--green-dark);
}

.section {
  padding: 86px 0;
}

.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.band-light {
  background: var(--surface-strong);
}

.band-strong {
  color: #f6fbf6;
  background: #18201a;
}

.narrative-band {
  background: #f6f8f5;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 70vh;
  overflow: hidden;
  color: #ffffff;
  background: #172018;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 15, 11, 0.98) 0%, rgba(10, 15, 11, 0.95) 58%, rgba(10, 15, 11, 0.48) 100%),
    linear-gradient(180deg, rgba(10, 15, 11, 0.2) 0%, rgba(10, 15, 11, 0.56) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(70vh - 68px);
  padding: 46px 0 48px;
}

.proof-line,
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .proof-line {
  color: #b8f0d6;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

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

h1 {
  max-width: 980px;
  font-size: 5rem;
  font-weight: 850;
}

h2 {
  max-width: 780px;
  font-size: 3.2rem;
  font-weight: 820;
}

h3 {
  font-size: 1.18rem;
  font-weight: 780;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: #eff7ef;
  font-size: 1.28rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 760;
  text-decoration: none;
}

.button.primary {
  color: #092118;
  background: #b8f0d6;
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

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

.mission-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(940px, 100%);
  margin: 34px 0 0;
}

.mission-stats div {
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(10, 15, 11, 0.48);
}

.mission-stats dt {
  margin-bottom: 8px;
  color: #b8f0d6;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-stats dd {
  margin: 0;
  color: #f5fbf6;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow),
.split-copy p,
.contract-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.band-strong .section-heading p:not(.eyebrow) {
  color: #cdd8cd;
}

.narrative-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.98fr) minmax(340px, 0.72fr);
  gap: 48px;
  align-items: start;
}

.narrative-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.narrative-flow {
  display: grid;
  gap: 14px;
}

.narrative-flow article {
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: var(--surface);
}

.narrative-flow article:nth-child(2) {
  border-left-color: var(--amber);
}

.narrative-flow article:nth-child(3) {
  border-left-color: var(--teal);
}

.narrative-flow span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.narrative-flow h3 {
  font-size: 1.12rem;
}

.narrative-flow p {
  margin: 12px 0 0;
  color: var(--muted);
}

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

.value-card,
.fit-grid article,
.quickstart-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.value-card {
  min-height: 268px;
  padding: 24px;
}

.value-card p,
.fit-grid p,
.quickstart-step p {
  margin: 14px 0 0;
  color: var(--muted);
}

.split-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 34px;
}

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

.fit-grid article {
  padding: 24px;
}

.fit-index {
  display: block;
  margin-bottom: 52px;
  color: var(--amber);
  font-weight: 850;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.segment {
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  color: #e9f3e9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 720;
  cursor: pointer;
}

.segment.is-active {
  color: #082117;
  border-color: #b8f0d6;
  background: #b8f0d6;
}

.workflow-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
  gap: 20px;
  align-items: stretch;
}

.workflow-narrative,
.code-frame {
  border-radius: 8px;
}

.workflow-narrative {
  padding: 28px;
  color: #f6fbf6;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.workflow-narrative p:not(.eyebrow) {
  color: #dce7dc;
}

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

.outcome-list li {
  position: relative;
  padding-left: 24px;
  color: #f2f8f2;
}

.outcome-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 9px;
  height: 9px;
  content: "";
  background: #b8f0d6;
  border-radius: 50%;
}

.code-stack {
  display: grid;
  gap: 14px;
}

.code-frame {
  overflow: hidden;
  color: var(--code-ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--code-bg);
  box-shadow: var(--shadow);
}

.quickstart-step .code-frame {
  margin-top: 18px;
  border-color: rgba(23, 26, 23, 0.1);
  box-shadow: none;
}

.code-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 0 14px;
  color: #c9d7c9;
  background: rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 760;
}

.copy-button {
  min-width: 62px;
  min-height: 30px;
  color: #f5fbf5;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 760;
  cursor: pointer;
}

.quickstart-step .copy-button {
  color: var(--ink);
  border-color: rgba(23, 26, 23, 0.18);
  background: #eef4ef;
}

pre {
  max-height: 460px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  font-size: 0.88rem;
  line-height: 1.55;
  tab-size: 2;
}

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

.quickstart-step {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(220px, 0.42fr) minmax(360px, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px;
}

.quickstart-step h3 {
  grid-column: 2;
  grid-row: 1;
}

.quickstart-step p {
  grid-column: 2;
  grid-row: 2;
}

.quickstart-step .code-frame {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 100%;
  min-width: 0;
}

.step-number {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  background: var(--green-dark);
  border-radius: 8px;
  font-weight: 850;
}

.contract-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 0.7fr);
  gap: 44px;
  align-items: start;
}

.contract-links {
  display: grid;
  gap: 10px;
}

.contract-links a {
  padding: 16px 18px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 760;
  text-decoration: none;
}

.contract-links a:hover {
  color: #ffffff;
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.site-footer {
  color: #d9e5d9;
  background: #111711;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #b8f0d6;
  font-weight: 760;
}

@media (max-width: 980px) {
  .mission-stats,
  .narrative-layout,
  .value-grid,
  .fit-grid,
  .workflow-panel,
  .contract-section {
    grid-template-columns: 1fr;
  }

  .split-copy,
  .quickstart-step {
    grid-template-columns: 1fr;
  }

  .fit-index {
    margin-bottom: 24px;
  }

  .quickstart-step {
    gap: 12px;
  }

  .quickstart-step h3,
  .quickstart-step p,
  .quickstart-step .code-frame,
  .step-number {
    grid-column: auto;
    grid-row: auto;
  }

  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 2.6rem;
  }
}

@media (min-width: 1240px) {
  h1 {
    font-size: 6rem;
  }
}

@media (max-width: 1240px) {
  .site-header {
    padding-inline: 32px;
  }

  .nav-links {
    gap: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px;
  }

  html {
    scroll-padding-top: 0;
  }

  main {
    padding-top: 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .section {
    padding: 64px 0;
  }

  .section-inner {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: auto;
  }

  .hero-shade {
    background: rgba(10, 15, 11, 0.76);
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero-content {
    min-height: auto;
    padding: 68px 0 60px;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .mission-stats div,
  .value-card {
    min-height: auto;
  }

  .segment {
    flex: 1 1 180px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.55rem;
  }

  .brand {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .workflow-narrative,
  .value-card,
  .fit-grid article,
  .quickstart-step {
    padding: 18px;
  }

  pre {
    padding: 14px;
    font-size: 0.8rem;
  }
}
