:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --ink: #151718;
  --muted: #5f6668;
  --line: #d9ddda;
  --panel: #ffffff;
  --panel-2: #eef4f1;
  --terminal: #111415;
  --terminal-line: #2c3332;
  --green: #4bbf7a;
  --blue: #3267d6;
  --red: #d24b45;
  --amber: #c27a1a;
  --shadow: 0 24px 70px rgba(18, 24, 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;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-color: rgba(50, 103, 214, 0.35);
  text-underline-offset: 0.18em;
}

code,
pre,
.brand-mark,
.terminal-shell,
.flow-arrow {
  font-family: "Cascadia Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(21, 23, 24, 0.08);
  background: rgba(247, 247, 242, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.82rem;
}

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

.nav a {
  text-decoration: none;
}

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

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  min-height: calc(100svh - 69px);
  padding: clamp(52px, 8vw, 104px) clamp(20px, 5vw, 72px) clamp(36px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

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

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 5rem, 5rem);
  line-height: 0.98;
  font-weight: 500;
}

h2 {
  margin: 0;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 2.8rem, 2.8rem);
  line-height: 1.08;
  font-weight: 500;
}

h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.25;
}

.lead {
  max-width: 730px;
  margin: 28px 0 0;
  color: #343a3c;
  font-size: 1.28rem;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.secondary {
  background: transparent;
}

.terminal-shell {
  overflow: hidden;
  border: 1px solid #202525;
  border-radius: 8px;
  background: var(--terminal);
  color: #dbe7df;
  box-shadow: var(--shadow);
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--terminal-line);
  background: #171b1c;
}

.terminal-title {
  color: #7f8988;
  font-size: 0.78rem;
  font-weight: 700;
}

.terminal-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.terminal-controls span {
  display: inline-grid;
  min-width: 22px;
  height: 20px;
  place-items: center;
  border: 1px solid #343c3c;
  border-radius: 3px;
  color: #aab3b0;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

.terminal-shell pre {
  min-height: 480px;
  padding: 26px;
  font-size: 0.98rem;
  line-height: 1.72;
}

.prompt {
  color: var(--green);
}

.statement {
  padding: clamp(36px, 7vw, 82px) clamp(20px, 12vw, 168px);
  border-bottom: 1px solid var(--line);
}

.statement p {
  margin: 0;
  max-width: 1080px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.35rem, 2.35rem);
  line-height: 1.25;
}

.section {
  padding: clamp(54px, 8vw, 104px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.target-grid,
.corpus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.target-grid article,
.corpus-grid article,
.download-panel,
.code-panel,
.memory-panel,
.flow-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.target-grid article,
.corpus-grid article {
  min-height: 190px;
  padding: 22px;
}

.target-grid p,
.corpus-grid p {
  margin: 0;
  color: var(--muted);
}

.target-grid code {
  color: #1c4b90;
  font-size: 0.9em;
}

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

.flow-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--panel-2);
}

.flow-node {
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--panel);
}

.flow-node span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.flow-node strong {
  display: block;
  font-size: 1.02rem;
}

.flow-node.targets {
  border-left-color: var(--green);
}

.flow-node.audit {
  border-left-color: var(--amber);
}

.flow-arrow {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.memory-panel {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.memory-panel div {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.memory-panel div:last-child {
  border-bottom: 0;
}

.memory-panel span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-weight: 900;
}

.memory-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.memory-panel p {
  margin: 0;
  color: var(--muted);
}

.install {
  background: #f0f3f4;
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.download-panel {
  padding: 26px;
}

.download-panel p {
  color: var(--muted);
}

.code-panel {
  overflow: hidden;
  background: var(--terminal);
}

.code-panel pre {
  padding: 26px;
  color: #dbe7df;
  font-size: 0.92rem;
  line-height: 1.7;
}

.fine-print {
  color: var(--muted);
  font-size: 0.88rem;
}

.limits-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin-top: 30px;
}

.limits-list p {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--red);
  background: var(--panel);
  color: #3c4244;
}

.closing {
  padding: clamp(58px, 9vw, 112px) clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: var(--paper);
}

.closing h2 {
  max-width: 900px;
}

.closing .button {
  border-color: var(--paper);
}

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

.closing .fine-print {
  margin-top: 28px;
  color: #c4cac8;
}

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

  .terminal-shell pre {
    min-height: 0;
  }

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

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

  .nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .target-grid,
  .corpus-grid {
    grid-template-columns: 1fr;
  }

  .target-grid article,
  .corpus-grid article {
    min-height: 0;
  }

  .terminal-shell pre,
  .code-panel pre {
    padding: 18px;
    font-size: 0.82rem;
  }
}
