:root {
  color-scheme: light;
  --ink: #152018;
  --muted: #54665a;
  --subtle: #eef4f0;
  --line: #d9e6dd;
  --panel: #ffffff;
  --green: #1a7f37;
  --green-dark: #115c2a;
  --mint: #cfeede;
  --yellow: #f4c84c;
  --blue: #246bfe;
  --shadow: 0 24px 70px rgba(21, 32, 24, 0.13);
  /* Content column: backgrounds stay full-bleed, text stays readable. Wide
     screens get symmetric side padding instead of 200-character lines. */
  --page-max: 1200px;
  --prose-max: 42rem; /* ~65 characters at body size; ch depends on the font */
  --gutter: clamp(18px, 6vw, 88px);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fbf9;
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px max(clamp(18px, 5vw, 72px), (100% - var(--page-max)) / 2);
  background: rgba(248, 251, 249, 0.88);
  border-bottom: 1px solid rgba(217, 230, 221, 0.8);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.hero-actions,
.panel-top,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  border-radius: 8px;
}

.nav {
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav a {
  padding: 8px 0;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100svh - 72px);
  align-items: center;
  padding: clamp(52px, 8vw, 104px) max(var(--gutter), (100% - var(--page-max)) / 2) 44px;
  background:
    radial-gradient(circle at 92% 18%, rgba(244, 200, 76, 0.24), transparent 24rem),
    linear-gradient(135deg, #f8fbf9 0%, #edf8f2 50%, #f7f1db 100%);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.6vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.lede,
.section-heading p {
  max-width: var(--prose-max);
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.26rem);
  line-height: 1.7;
}

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

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
}

.button {
  padding: 0 18px;
}

.button.primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(26, 127, 55, 0.24);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: #9ecfaf;
}

.hero-panel,
.code-card {
  border: 1px solid rgba(217, 230, 221, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: clamp(20px, 3vw, 32px);
}

.panel-top {
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.panel-top img {
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(26, 127, 55, 0.18);
}

.panel-kicker {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.panel-top h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.12;
}

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

.review-flow li,
.command-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.review-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 900;
}

.section {
  padding: clamp(62px, 8vw, 112px) max(var(--gutter), (100% - var(--page-max)) / 2);
}

.section-heading {
  margin-bottom: clamp(26px, 4vw, 44px);
}

.feature-grid,
.docs-grid {
  display: grid;
  /* Five references now: let the column count follow the width instead of
     pinning four and leaving the fifth alone on its own row. */
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.feature-grid article,
.docs-grid a {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-grid article:nth-child(2) {
  border-top-color: rgba(36, 107, 254, 0.45);
}

.feature-grid article:nth-child(3) {
  border-top-color: rgba(244, 200, 76, 0.76);
}

.feature-grid p,
.docs-grid span,
.command-list span,
.metric span {
  color: var(--muted);
  line-height: 1.62;
}

.band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--green-dark);
  color: #ffffff;
}

.metric {
  min-height: 148px;
  padding: clamp(26px, 4vw, 44px) max(clamp(18px, 5vw, 72px), (100% - var(--page-max)) / 2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    var(--green-dark);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.code-card {
  overflow: hidden;
  background: #101813;
  color: #e8f4ec;
}

.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #a8c7b2;
  font-size: 0.88rem;
  font-weight: 750;
}

.copy-button {
  min-height: 34px;
  padding: 0 12px;
  background: #dff7e7;
  color: #0f4c22;
  border: 0;
}

pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
}

code {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, ui-monospace, monospace;
  font-size: 0.91rem;
  line-height: 1.7;
}

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

.command-list div {
  grid-template-columns: minmax(190px, auto) 1fr;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.command-list code {
  color: var(--green-dark);
  font-weight: 850;
}

.docs-section {
  background: var(--subtle);
}

.docs-grid a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.docs-grid a:hover {
  border-color: #9ecfaf;
  transform: translateY(-2px);
}

.docs-grid strong {
  display: block;
  margin-bottom: 28px;
  font-size: 1.3rem;
}

.site-footer {
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: center;
  padding: 26px max(clamp(18px, 5vw, 72px), (100% - var(--page-max)) / 2);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--ink);
  font-weight: 850;
}

.site-footer a:hover {
  color: var(--green);
}

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

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 13ch;
  }

  .feature-grid,
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

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

  .hero {
    padding-top: 38px;
  }

  h1 {
    max-width: 100%;
    font-size: 3.1rem;
  }

  .feature-grid,
  .docs-grid,
  .band {
    grid-template-columns: 1fr;
  }

  .command-list div {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
