:root {
  color-scheme: light;
  --bg: #f8f7f1;
  --ink: #16201b;
  --muted: #536158;
  --line: #d7d0bd;
  --panel: #fffdf5;
  --panel-strong: #f0ead8;
  --green: #1f7a4d;
  --green-dark: #115435;
  --amber: #d89424;
  --coral: #c94d35;
  --teal: #197985;
  --shadow: 0 18px 60px rgba(38, 34, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(248, 247, 241, 0.84);
  border-bottom: 1px solid rgba(22, 32, 27, 0.08);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

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

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #fffef5;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

nav {
  align-items: center;
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.hero {
  min-height: 92svh;
  overflow: hidden;
  padding: 150px clamp(20px, 6vw, 84px) 56px;
  position: relative;
}

#signal-field {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(248, 247, 241, 0.94) 0%, rgba(248, 247, 241, 0.8) 48%, rgba(248, 247, 241, 0.4) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(248, 247, 241, 0) 25%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-copy {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

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

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

h1 {
  font-size: clamp(4rem, 14vw, 9.5rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 24px;
}

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

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

.hero-lede {
  color: #27352e;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  max-width: 690px;
}

.hero-actions,
.hero-metrics,
.command-stack,
.note-river {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 760;
  min-height: 46px;
  padding: 0 18px;
}

.button.primary {
  background: var(--ink);
  color: #fffef5;
}

.button.secondary {
  background: rgba(255, 253, 245, 0.58);
}

.install-line {
  align-items: center;
  background: rgba(255, 253, 245, 0.68);
  border: 1px solid rgba(22, 32, 27, 0.14);
  border-radius: 8px;
  display: inline-flex;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  position: relative;
  z-index: 2;
}

.install-line span {
  color: var(--green);
  font-weight: 900;
}

.hero-metrics {
  bottom: 38px;
  position: absolute;
  z-index: 3;
}

.hero-metrics div {
  border-left: 3px solid var(--green);
  min-width: 150px;
  padding-left: 14px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.25rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

section {
  padding: 92px clamp(20px, 6vw, 84px);
}

.intro-band,
.claim-band,
.agents,
.cta {
  background: var(--ink);
  color: #fffdf5;
}

.intro-band .eyebrow,
.claim-band .eyebrow,
.agents .eyebrow,
.cta .eyebrow {
  color: #a8df9a;
}

.section-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr);
}

.section-grid p {
  color: #dce5d9;
  font-size: 1.15rem;
}

.note-river {
  margin-top: 54px;
}

.note-river span {
  background: rgba(255, 253, 245, 0.1);
  border: 1px solid rgba(255, 253, 245, 0.22);
  border-radius: 999px;
  color: #f5f0dc;
  padding: 10px 14px;
}

.section-heading {
  margin-bottom: 36px;
  max-width: 760px;
}

.terminal {
  background: #101613;
  border: 1px solid rgba(255, 253, 245, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #d8f6cb;
  overflow: hidden;
}

.terminal-bar {
  align-items: center;
  background: #1d2822;
  display: flex;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
}

.terminal-bar span {
  border-radius: 999px;
  display: block;
  height: 11px;
  width: 11px;
}

.terminal-bar span:nth-child(1) {
  background: var(--coral);
}

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

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

.terminal pre {
  margin: 0;
  overflow-x: auto;
  padding: 24px;
  white-space: pre;
}

.pipeline,
.claim-grid,
.case-grid {
  display: grid;
  gap: 16px;
}

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

.pipeline article,
.case-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.step {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #fffef5;
  display: inline-flex;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  margin-bottom: 18px;
  width: 32px;
}

.pipeline p,
.case-grid p,
.agents p {
  color: var(--muted);
}

.claim-band {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
}

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

.claim-grid article {
  border-top: 1px solid rgba(255, 253, 245, 0.22);
  padding-top: 18px;
}

.claim-grid strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.claim-grid span {
  color: #dce5d9;
}

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

.agents {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.85fr);
}

.agents p {
  color: #dce5d9;
  font-size: 1.12rem;
  margin-bottom: 0;
}

.agents code {
  color: #fff4c6;
}

.command-stack {
  align-content: center;
  align-items: stretch;
  flex-direction: column;
  justify-content: center;
}

.command-stack code {
  background: rgba(255, 253, 245, 0.1);
  border: 1px solid rgba(255, 253, 245, 0.22);
  border-radius: 8px;
  display: block;
  padding: 14px 16px;
  width: 100%;
}

.cta {
  min-height: 420px;
  text-align: center;
}

.cta h2 {
  margin: 0 auto 28px;
  max-width: 820px;
}

footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 84px);
}

footer span {
  color: var(--muted);
}

footer a {
  color: var(--green-dark);
  font-weight: 760;
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero {
    min-height: 820px;
    padding-top: 120px;
  }

  .hero-metrics {
    bottom: 28px;
    left: clamp(20px, 6vw, 84px);
    right: clamp(20px, 6vw, 84px);
  }

  .section-grid,
  .claim-band,
  .agents {
    grid-template-columns: 1fr;
  }

  .pipeline,
  .case-grid,
  .claim-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 880px;
  }

  h1 {
    font-size: 4.1rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .pipeline,
  .case-grid,
  .claim-grid {
    grid-template-columns: 1fr;
  }

  .install-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .install-line code,
  .command-stack code {
    overflow-wrap: anywhere;
  }

  section {
    padding-bottom: 70px;
    padding-top: 70px;
  }
}
