:root {
  color-scheme: light;
  --ink: #18201c;
  --muted: #66706a;
  --line: #d9dfdb;
  --paper: #f7f8f5;
  --panel: #ffffff;
  --green: #236b4b;
  --blue: #255b8a;
  --amber: #bd7b22;
  --code: #17211d;
  --code-muted: #9fb2a8;
  --shadow: 0 24px 60px rgba(24, 32, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

pre {
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 223, 219, 0.9);
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #2d4038;
  border-radius: 6px;
  background: var(--ink);
  color: #f4f8f5;
  font-size: 17px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.hero {
  min-height: calc(100svh - 62px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px) 42px;
  border-bottom: 1px solid var(--line);
}

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

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

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

h1 {
  margin: 0;
  font-size: clamp(60px, 8vw, 118px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: #3f4943;
  font-size: clamp(18px, 2.2vw, 23px);
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 11px 18px;
  font-weight: 760;
}

.button.primary {
  background: var(--green);
  color: white;
}

.button.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.terminal-shot {
  overflow: hidden;
  border: 1px solid #2d4038;
  border-radius: 8px;
  background: var(--code);
  color: #d8eadf;
  box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #101a16;
}

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

.terminal-bar span:nth-child(2) {
  background: var(--amber);
}

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

.terminal-shot pre,
.highlight pre,
.step pre {
  padding: 20px;
  background: var(--code);
  color: #d8eadf;
  font-size: 13px;
  line-height: 1.6;
}

.band {
  padding: 28px clamp(18px, 5vw, 72px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.topology {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 0.5fr) minmax(190px, 1fr) minmax(110px, 0.5fr) minmax(180px, 1fr);
  align-items: center;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.node {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--paper);
  color: var(--muted);
}

.node.center {
  border-color: rgba(35, 107, 75, 0.45);
  background: #edf7f1;
}

.node-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.link {
  height: 2px;
  position: relative;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.link::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  transform: translateY(-50%) rotate(45deg);
}

.link span {
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.content-grid,
.split,
.highlight {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head p,
.split p,
.highlight p {
  color: var(--muted);
  font-size: 17px;
}

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

.step,
.pill {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.step {
  overflow: hidden;
}

.step-index {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin: 18px 18px 0;
  place-items: center;
  border-radius: 6px;
  background: #e8f0ed;
  color: var(--green);
  font-weight: 850;
}

.step h3 {
  padding: 16px 18px 0;
}

.step pre {
  margin-top: 16px;
  min-height: 210px;
}

.split,
.highlight {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.command-list,
.endpoint-list {
  display: grid;
  gap: 10px;
}

.command-row,
.endpoint-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px 16px;
}

.command-row span,
.endpoint-list span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.command-row code,
.endpoint-list code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-size: 13px;
}

.highlight {
  background: #fffaf1;
}

.highlight pre {
  border: 1px solid #2d4038;
  border-radius: 8px;
}

.pill {
  min-height: 130px;
  padding: 20px;
}

.pill strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.pill span {
  color: var(--muted);
}

.endpoint-list div {
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 960px) {
  .hero,
  .split,
  .highlight {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .topology,
  .steps,
  .pill-grid {
    grid-template-columns: 1fr;
  }

  .link {
    width: 2px;
    height: 36px;
    justify-self: center;
  }

  .link::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1px;
    transform: translateX(-50%) rotate(135deg);
  }

  .link span {
    left: calc(50% + 14px);
    top: 8px;
    transform: none;
  }

  .step pre {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  h1 {
    font-size: 58px;
  }

  .command-row,
  .endpoint-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  footer {
    flex-direction: column;
  }
}
