:root {
  color-scheme: light;
  --ink: #181512;
  --muted: #655f55;
  --paper: #f8f4eb;
  --paper-deep: #efe7d8;
  --line: #d8cebd;
  --green: #255d3f;
  --green-deep: #123d2a;
  --rust: #9f3f2f;
  --gold: #c6923e;
  --white: #fffdf8;
  --shadow: 0 22px 50px rgba(42, 34, 25, 0.14);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 36px;
  border-bottom: 1px solid rgba(24, 21, 18, 0.08);
  background: rgba(248, 244, 235, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-header.is-elevated {
  box-shadow: 0 10px 28px rgba(42, 34, 25, 0.08);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0;
}

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

.nav a,
.header-cta {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.header-cta {
  border: 1px solid var(--ink);
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
}

.header-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: 48px;
  min-height: min(760px, calc(100vh - 112px));
  padding: 76px 6vw 56px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

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

.eyebrow,
.section-kicker {
  color: var(--rust);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 830px;
  margin-bottom: 24px;
  font-size: clamp(52px, 8vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

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

.lede {
  max-width: 690px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--ink);
  padding: 0 20px;
  font-weight: 800;
}

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

.button.secondary {
  background: transparent;
}

.hero-panel {
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.panel-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f0eadf;
}

.panel-toolbar span {
  width: 11px;
  height: 11px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.panel-toolbar strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
}

.chat-window {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.bubble {
  padding: 16px;
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}

.bubble.user {
  background: var(--green-deep);
  color: var(--paper);
}

.bubble.assistant {
  background: #fff9eb;
}

.tool-call {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--green);
  color: var(--green-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

section {
  padding: 88px 6vw;
}

.intro-band {
  background: var(--green-deep);
  color: var(--paper);
}

.intro-band .section-kicker,
.intro-band .prose {
  color: #e8dcc6;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: 56px;
  align-items: start;
}

.prose p,
.tools-header p,
.install-copy p,
.final-cta p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.intro-band .prose p {
  color: #eadfce;
}

.trust-section,
.questions-section,
.tools-section,
.limits-section {
  border-bottom: 1px solid var(--line);
}

.trust-diagram {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 38px;
  align-items: stretch;
}

.connector {
  display: none;
}

.node {
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.node span {
  display: block;
  margin-bottom: 34px;
  font-size: 22px;
  font-weight: 850;
}

.node small {
  color: var(--muted);
  font-weight: 650;
}

.node.openkp {
  background: var(--gold);
}

.principles,
.limits-grid,
.question-grid,
.tool-columns {
  display: grid;
  gap: 18px;
}

.principles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.principles article,
.limits-grid article,
.tool-list {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 22px;
}

.principles p,
.limits-grid p,
.tool-list li,
.site-footer p {
  color: var(--muted);
  line-height: 1.55;
}

.question-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
}

blockquote {
  margin: 0;
  min-height: 190px;
  border-top: 3px solid var(--rust);
  background: var(--white);
  padding: 22px;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.3;
}

.tools-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 44px;
  align-items: end;
}

.tool-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}

.tool-list {
  min-height: 300px;
}

.tool-list ul {
  margin: 0;
  padding-left: 20px;
}

.tool-list li + li {
  margin-top: 10px;
}

.install-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 46px;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.install-card {
  align-self: start;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 24px;
}

code {
  padding: 2px 6px;
  background: #eee3d2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.command-block {
  overflow-x: auto;
  margin-bottom: 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.command-block code {
  display: block;
  min-width: max-content;
  padding: 16px;
  background: transparent;
  color: var(--paper);
}

.install-card p {
  color: var(--muted);
  line-height: 1.55;
}

.install-card p:last-child {
  margin-bottom: 0;
}

.limits-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
}

.final-cta {
  text-align: center;
}

.final-cta p {
  max-width: 760px;
  margin: 0 auto 28px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 6vw;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.site-footer p,
.site-footer a {
  color: #d8cdbb;
}

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

  .trust-diagram,
  .question-grid,
  .limits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 18px;
  }

  .header-cta {
    display: none;
  }

  .hero,
  section {
    padding: 62px 22px;
  }

  h1 {
    font-size: 52px;
  }

  .lede {
    font-size: 19px;
  }

  .trust-diagram,
  .question-grid,
  .tool-columns,
  .limits-grid,
  .principles {
    grid-template-columns: 1fr;
  }

  .question-grid blockquote {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .nav a,
  .header-cta,
  .button {
    transition:
      color 160ms ease,
      border-color 160ms ease,
      background 160ms ease,
      transform 160ms ease;
  }

  .button:hover,
  .header-cta:hover {
    transform: translateY(-1px);
  }
}
