:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #57636f;
  --line: #d7dee5;
  --surface: #f7f9fb;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #134e4a;
  --code: #10212b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  font-size: 1.05rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--accent-strong);
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 72px);
  background: #edf5f3;
}

.eyebrow {
  color: var(--accent-strong);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.96;
  margin: 0 0 18px;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--accent);
}

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

.button.secondary {
  color: var(--accent-strong);
  background: transparent;
}

.flow-panel {
  display: grid;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(23, 32, 38, 0.08);
}

.node {
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  font-weight: 800;
}

.arrow {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  padding-left: 16px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 34px clamp(20px, 5vw, 72px);
  background: var(--panel);
}

.quick-grid article,
.content-band,
.doc-layout {
  border-top: 1px solid var(--line);
}

.quick-grid h2,
.content-band h2,
.doc-layout h2 {
  font-size: 1rem;
  margin: 0 0 12px;
}

pre {
  overflow-x: auto;
  margin: 0 0 22px;
  padding: 16px;
  border-radius: 8px;
  background: var(--code);
  color: #e7f6f3;
  line-height: 1.55;
  font-size: 0.9rem;
}

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

.content-band,
.doc-layout {
  padding: clamp(32px, 5vw, 72px);
  max-width: 980px;
}

.doc-layout {
  background: var(--panel);
  min-height: calc(100vh - 70px);
}

.doc-layout h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.doc-layout p,
.doc-layout li,
.feature-list li {
  color: var(--muted);
  line-height: 1.7;
}

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

  nav {
    justify-content: flex-start;
  }

  .hero,
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}
