:root {
  --ink: #101413;
  --muted: #5e6965;
  --paper: #f7f8f3;
  --panel: #ffffff;
  --line: rgba(16, 20, 19, 0.14);
  --orange: #d95f2a;
  --teal: #0f8b8d;
  --blue: #214e8a;
  --plum: #6d3c67;
  --green: #385a44;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(16, 20, 19, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 20, 19, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0, transparent 74%);
}

a {
  color: inherit;
  text-decoration: none;
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 4px;
  background: rgba(16, 20, 19, 0.08);
}

.scroll-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--teal), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 243, 0.88);
  backdrop-filter: blur(16px);
}

.nav,
.section-wrap,
.chapter-inner,
.signal-band,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 44%, rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0.8) 56%, transparent 57%),
    linear-gradient(135deg, var(--orange), var(--teal));
  box-shadow: 0 12px 30px rgba(15, 139, 141, 0.28);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.navlinks a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  color: #f9fbf6;
  background:
    linear-gradient(90deg, rgba(16, 20, 19, 0.94), rgba(16, 20, 19, 0.77) 52%, rgba(16, 20, 19, 0.36)),
    url("https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(247, 248, 243, 1), transparent);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 132px;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--orange);
  font: 600 0.78rem/1 "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb084;
}

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

h1 {
  margin-bottom: 28px;
  max-width: 920px;
  font-size: clamp(4rem, 12vw, 10.6rem);
  line-height: 0.9;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5.5vw, 5.8rem);
  line-height: 0.96;
  font-weight: 800;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.lede {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(249, 251, 246, 0.82);
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

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

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.finale .secondary {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.signal-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: -70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 24px 60px rgba(16, 20, 19, 0.12);
}

.signal-band div {
  min-height: 150px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.signal-band strong,
.signal-band span {
  display: block;
}

.signal-band strong {
  margin-bottom: 12px;
  font-size: 1rem;
}

.signal-band span,
.intro p,
.copy-stack p,
.capability-grid p,
.runtime-lanes p,
.steps p,
.matrix span,
.roadmap li {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

.section-wrap {
  padding: 132px 0;
}

.section-heading {
  max-width: 900px;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 0.74fr;
  gap: 64px;
  align-items: end;
}

.intro p {
  margin-bottom: 0;
}

.chapter {
  min-height: 84vh;
  border-top: 1px solid var(--line);
}

.chapter:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.42);
}

.chapter-inner {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 72px;
  align-items: center;
  min-height: 84vh;
  padding: 84px 0;
}

.chapter-problem {
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.36);
}

.chapter-runtime {
  background:
    linear-gradient(135deg, rgba(33, 78, 138, 0.1), transparent 44%),
    rgba(255, 255, 255, 0.42);
}

.chapter-deploy {
  background:
    linear-gradient(135deg, rgba(109, 60, 103, 0.1), transparent 46%),
    rgba(255, 255, 255, 0.36);
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.copy-stack p {
  margin-bottom: 0;
}

.capability-grid,
.runtime-lanes,
.matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.capability-grid article,
.runtime-lanes article,
.matrix div {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
}

.capability-grid span,
.steps span,
.matrix strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
}

.capability-grid article:nth-child(2),
.runtime-lanes article:nth-child(2) {
  border-top-color: var(--teal);
}

.capability-grid article:nth-child(3),
.runtime-lanes article:nth-child(3) {
  border-top-color: var(--blue);
}

.capability-grid article:nth-child(4) {
  border-top-color: var(--plum);
}

.code-panel {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 20, 19, 0.22);
  border-radius: 8px;
  background: #121816;
  box-shadow: 0 28px 70px rgba(16, 20, 19, 0.18);
}

.code-panel figcaption {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 18px;
  color: #a7c7bd;
  font: 600 0.78rem/1 "IBM Plex Mono", monospace;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 26px;
  color: #f5f0e8;
  font: 500 clamp(0.9rem, 1.7vw, 1.1rem)/1.72 "IBM Plex Mono", monospace;
}

.compact pre {
  font-size: 0.92rem;
}

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

.steps li {
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  padding: 20px 22px;
  background: var(--panel);
}

.steps li:nth-child(2) {
  border-left-color: var(--teal);
}

.steps li:nth-child(3) {
  border-left-color: var(--blue);
}

.command-list {
  display: grid;
  gap: 12px;
}

.command-list code {
  display: block;
  border: 1px solid rgba(16, 20, 19, 0.18);
  border-radius: 8px;
  padding: 18px;
  color: #f5f0e8;
  background: #121816;
  font: 500 0.98rem/1.4 "IBM Plex Mono", monospace;
  overflow-x: auto;
}

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

.roadmap li {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 32px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .navlinks {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-copy {
    padding-top: 74px;
  }

  .signal-band,
  .intro,
  .chapter-inner,
  .capability-grid,
  .runtime-lanes,
  .matrix {
    grid-template-columns: 1fr;
  }

  .signal-band {
    margin-top: -36px;
  }

  .chapter,
  .chapter-inner {
    min-height: auto;
  }

  .chapter-inner,
  .section-wrap {
    padding: 76px 0;
  }
}

@media (max-width: 560px) {
  .nav,
  .section-wrap,
  .chapter-inner,
  .signal-band,
  .footer,
  .hero-copy {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(2.8rem, 12.5vw, 3.1rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }

  .footer {
    flex-direction: column;
  }
}
