:root {
  --ink: #172018;
  --forest: #14231a;
  --forest-deep: #0a130d;
  --paper: #f4f5ef;
  --paper-bright: #fbfcf8;
  --muted: #5d685f;
  --line: #cbd2c8;
  --green: #2d7a4f;
  --green-bright: #63df8d;
  --red: #df593d;
  --yellow: #f1b64a;
  --blue: #89bdd1;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 82px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper-bright);
  color: var(--ink);
  border-radius: 4px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: 82px;
  color: #fff;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.site-header.is-scrolled {
  position: fixed;
  background: rgba(20, 35, 26, 0.97);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 600;
}

.brand strong {
  color: var(--green-bright);
}

.brand i {
  margin-left: 8px;
  color: var(--yellow);
  font-style: normal;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  font-weight: 600;
}

nav a,
.header-cta {
  position: relative;
}

nav a::after,
.header-cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--green-bright);
  transition: right 150ms ease;
}

nav a:hover::after,
.header-cta:hover::after {
  right: 0;
}

.header-cta {
  justify-self: end;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 150ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: clamp(500px, calc(100svh - 96px), 780px);
  display: flex;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero-picture,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-picture {
  z-index: -2;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.hero-scrim {
  background: rgba(10, 19, 13, 0.53);
  z-index: -1;
}

.hero-inner {
  position: relative;
  min-height: inherit;
  padding-top: 132px;
  padding-bottom: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow {
  color: #fff;
}

.eyebrow span {
  display: inline-block;
  margin-right: 10px;
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
}

.section-kicker {
  color: var(--green);
}

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

h1 {
  margin: 0;
  font-size: 88px;
  line-height: 0.98;
  font-weight: 800;
}

.hero-statement {
  margin: 20px 0 0;
  color: var(--green-bright);
  font-size: 38px;
  line-height: 1.08;
  font-weight: 700;
}

.hero-lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.62;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}

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

.button-primary {
  border-color: var(--green-bright);
  background: var(--green-bright);
  color: var(--forest-deep);
}

.button-primary:hover {
  background: #8aeeaa;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.button-secondary:hover {
  background: #fff;
  color: var(--forest);
}

.hero-signal {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.48);
  font-family: var(--mono);
  font-size: 13px;
}

.hero-signal span:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.signal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 5px rgba(99, 223, 141, 0.16);
}

.context-section,
.roadmap-section {
  background: var(--paper);
  padding: 72px 0 86px;
}

.context-intro {
  display: grid;
  grid-template-columns: 0.55fr 1.25fr 0.8fr;
  align-items: start;
  gap: 48px;
}

.context-intro h2,
.section-heading h2,
.principles-grid h2,
.open-source-inner h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 750;
}

.context-intro > p:last-child,
.section-heading > p,
.open-source-inner > div:last-child > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.context-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 58px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.context-list article {
  min-height: 210px;
  padding: 28px 30px 30px 0;
}

.context-list article + article {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.item-number {
  color: var(--red);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.context-list h3,
.principles-list h3,
.roadmap h3 {
  margin: 34px 0 10px;
  font-size: 21px;
}

.context-list p,
.principles-list p,
.roadmap p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.control-section {
  padding: 84px 0 92px;
  background: var(--forest);
  color: #fff;
}

.control-section .section-kicker,
.open-source-section .section-kicker {
  color: var(--green-bright);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: 72px;
  margin-bottom: 42px;
}

.section-heading > p {
  color: rgba(255, 255, 255, 0.68);
}

.terminal {
  overflow: hidden;
  border: 1px solid #405146;
  border-radius: 8px;
  background: var(--forest-deep);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
}

.terminal-bar {
  min-height: 54px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid #29392e;
  color: #c9d5cc;
  font-family: var(--mono);
  font-size: 12px;
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.terminal-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ed624b;
}

.terminal-dots i:nth-child(2) {
  background: var(--yellow);
}

.terminal-dots i:nth-child(3) {
  background: var(--green-bright);
}

.terminal-status {
  justify-self: end;
  padding: 4px 7px;
  border-radius: 3px;
  background: rgba(99, 223, 141, 0.14);
  color: var(--green-bright);
}

.terminal-body {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 54px;
  padding: 36px;
}

pre {
  margin: 0;
  overflow: auto;
  color: #d7e1d9;
  font: 14px/1.78 var(--mono);
}

.key {
  color: var(--yellow);
}

.value {
  color: var(--green-bright);
}

.workflow {
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  min-height: 66px;
  color: #748078;
}

.workflow li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #667169;
  border-radius: 50%;
  font: 600 11px var(--mono);
}

.workflow li:not(:last-child) > span::after {
  content: "";
  width: 1px;
  height: 38px;
  display: block;
  margin-top: 5px;
  background: #3d4a41;
}

.workflow li.done {
  color: #dbe6dd;
}

.workflow li.done > span {
  border-color: var(--green-bright);
  background: var(--green-bright);
  color: var(--forest-deep);
}

.workflow li.active {
  color: #fff;
}

.workflow li.active > span {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--forest-deep);
}

.workflow strong {
  display: block;
  margin-top: 3px;
}

.workflow small {
  display: block;
  margin-top: 5px;
  color: #7f8a82;
  line-height: 1.4;
}

.principles-section {
  padding: 86px 0;
  background: var(--paper-bright);
}

.principles-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 88px;
}

.principles-grid h2 {
  max-width: 420px;
}

.principles-list article {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.principles-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.principles-list h3 {
  margin: 0;
}

.roadmap-section .section-heading > p {
  color: var(--muted);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap li {
  min-height: 230px;
  padding: 26px 0 0;
  border-top: 4px solid var(--line);
}

.roadmap li.current {
  border-color: var(--red);
}

.roadmap li:nth-child(2) {
  border-color: var(--green);
}

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

.roadmap li > span {
  font: 600 12px var(--mono);
  text-transform: uppercase;
}

.roadmap h3 {
  margin-top: 46px;
}

.roadmap p {
  max-width: 320px;
}

.open-source-section {
  padding: 76px 0;
  background: var(--red);
  color: #fff;
}

.open-source-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 88px;
}

.open-source-inner > div:last-child > p {
  color: rgba(255, 255, 255, 0.88);
}

.button-light {
  margin-top: 24px;
  border-color: #fff;
  background: #fff;
  color: #9f301e;
}

.button-light:hover {
  background: var(--forest);
  color: #fff;
}

footer {
  padding: 34px 0;
  background: var(--forest-deep);
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: #aebbb1;
  font-size: 13px;
}

.footer-inner .brand {
  color: #fff;
  font-size: 19px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner p:last-child {
  justify-self: end;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle {
    display: block;
    grid-column: 2;
  }

  nav {
    position: fixed;
    inset: 82px 0 auto;
    display: none;
    padding: 24px;
    background: var(--forest);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  nav.is-open {
    display: grid;
    gap: 22px;
  }

  nav a {
    width: fit-content;
    font-size: 18px;
  }

  .context-intro {
    grid-template-columns: 1fr 1.5fr;
  }

  .context-intro > p:last-child {
    grid-column: 2;
  }

  .section-heading {
    gap: 42px;
  }

  .terminal-body {
    grid-template-columns: 1fr;
  }

  .workflow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding-top: 6px;
  }

  .workflow li {
    min-height: 0;
    display: block;
  }

  .workflow li > span {
    margin-bottom: 12px;
  }

  .workflow li:not(:last-child) > span::after {
    display: none;
  }

  .principles-grid {
    gap: 56px;
  }
}

@media (max-width: 760px) {
  [id] {
    scroll-margin-top: 70px;
  }

  .shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    height: 70px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .header-cta {
    display: none;
  }

  nav {
    inset: 70px 0 auto;
  }

  .hero {
    min-height: 0;
    display: block;
    background: var(--forest);
    overflow: visible;
  }

  .hero-picture {
    position: relative;
    inset: auto;
    z-index: auto;
    height: min(70svh, 620px);
    min-height: 400px;
    display: block;
    overflow: hidden;
  }

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

  .hero-scrim {
    top: 0;
    bottom: auto;
    z-index: 1;
    height: min(70svh, 620px);
    min-height: 400px;
    background: rgba(10, 19, 13, 0.2);
    pointer-events: none;
  }

  .hero-inner {
    min-height: 0;
    padding-top: 34px;
    padding-bottom: 28px;
    display: block;
  }

  h1 {
    font-size: 58px;
  }

  .hero-statement {
    margin-top: 14px;
    font-size: 30px;
  }

  .hero-lede {
    display: block;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    position: static;
    margin-top: 24px;
  }

  .hero-signal {
    grid-template-columns: auto 1fr;
    margin-top: 30px;
    font-size: 11px;
  }

  .hero-signal span:last-child {
    grid-column: 2;
  }

  .context-section,
  .roadmap-section,
  .control-section,
  .principles-section {
    padding: 58px 0;
  }

  .context-intro,
  .section-heading,
  .principles-grid,
  .open-source-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .context-intro > p:last-child {
    grid-column: auto;
  }

  .context-intro h2,
  .section-heading h2,
  .principles-grid h2,
  .open-source-inner h2 {
    font-size: 36px;
  }

  .context-list {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .context-list article,
  .context-list article + article {
    min-height: 0;
    padding: 24px 0;
    border-left: 0;
  }

  .context-list article + article {
    border-top: 1px solid var(--line);
  }

  .context-list h3 {
    margin-top: 18px;
  }

  .terminal-bar {
    grid-template-columns: 1fr auto;
  }

  .terminal-bar > span:nth-child(2) {
    display: none;
  }

  .terminal-body {
    gap: 34px;
    padding: 22px 16px;
  }

  pre {
    font-size: 11px;
    line-height: 1.7;
  }

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

  .workflow li {
    display: grid;
    grid-template-columns: 34px 1fr;
    min-height: 62px;
  }

  .workflow li:not(:last-child) > span::after {
    display: block;
    height: 34px;
  }

  .principles-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .roadmap {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .roadmap li {
    min-height: 0;
    padding-top: 20px;
  }

  .roadmap h3 {
    margin-top: 24px;
  }

  .open-source-section {
    padding: 58px 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-inner p:last-child {
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 20px;
  }

  .hero {
    min-height: 0;
  }

  .eyebrow {
    font-size: 10px;
  }

  .eyebrow span {
    margin-right: 6px;
    padding: 4px 6px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-statement {
    font-size: 26px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 480px) and (max-height: 650px) {
  h1 {
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .nav-toggle span,
  nav a::after,
  .header-cta::after,
  .button {
    transition: none;
  }
}
