:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #5d6a63;
  --line: #dfe7e2;
  --paper: #fbfdfb;
  --band: #f0f6f2;
  --teal: #007d7e;
  --green: #4c8a2f;
  --amber: #b66a00;
  --code: #101915;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 33, 28, 0.1);
  background: rgba(251, 253, 251, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
}

.nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 6px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover {
  background: var(--band);
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.button.secondary {
  border-color: rgba(0, 125, 126, 0.28);
  color: var(--teal);
}

.button.ghost {
  background: #ffffff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: min(680px, calc(100vh - 64px));
  align-items: center;
  padding: clamp(48px, 8vw, 108px) clamp(18px, 6vw, 72px);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: clamp(3.6rem, 12vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

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

h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.lede {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.terminal {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 25, 21, 0.18);
  border-radius: 8px;
  background: var(--code);
  box-shadow: 0 28px 70px rgba(23, 33, 28, 0.18);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #d96c56;
}

.terminal-bar span:nth-child(2) {
  background: #d2a93f;
}

.terminal-bar span:nth-child(3) {
  background: #67b66d;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
  background: var(--code);
  color: #d8f4df;
  font-size: 0.92rem;
  line-height: 1.55;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.band {
  padding: clamp(50px, 7vw, 88px) clamp(18px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.band:nth-of-type(even) {
  background: var(--band);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.code-grid,
.command-grid,
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.code-grid > div,
.command-grid article,
.examples-grid article,
.steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
}

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

.steps pre,
.code-grid pre,
.examples-grid pre,
.split pre {
  border-radius: 7px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.split p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.06rem;
}

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

.command-grid p {
  margin: 0;
  color: var(--muted);
}

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

.examples-grid article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.examples-grid pre {
  flex: 1;
  min-height: 180px;
}

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

.pipeline div {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.pipeline span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(76, 138, 47, 0.12);
  color: var(--green);
  font-weight: 800;
}

.pipeline strong,
.pipeline small {
  display: block;
}

.pipeline strong {
  margin-top: 18px;
  font-size: 1.05rem;
}

.pipeline small {
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 28px clamp(18px, 6vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 24px;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

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

  .hero,
  .split,
  .steps,
  .command-grid,
  .examples-grid,
  .pipeline {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }
}

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

  h1 {
    font-size: 3.35rem;
  }

  pre {
    font-size: 0.82rem;
  }
}
