:root {
  --bg: #292524;
  --panel: #211d1c;
  --panel-2: #312b29;
  --line: #443c38;
  --text: #f5f2ee;
  --muted: #b8aea8;
  --faint: #8c817b;
  --accent: #ea580c;
  --accent-2: #ff8a3d;
  --code: #171412;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

code,
pre,
.brand,
h1,
h2,
h3,
.eyebrow,
.metric {
  font-family: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 28px;
  background: rgba(41, 37, 36, 0.88);
  border-bottom: 1px solid rgba(245, 242, 238, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

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

.nav a:hover,
.site-footer a:hover,
.origin a:hover {
  color: var(--accent-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 52px;
  align-items: center;
  max-width: var(--max);
  min-height: calc(100vh - 73px);
  margin: 0 auto;
  padding: 76px 28px 88px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(58px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

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

.install-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--faint);
  font-size: 14px;
}

code {
  color: #ffd0b5;
}

.install-line code,
.command-grid code {
  padding: 4px 7px;
  background: var(--code);
  border: 1px solid var(--line);
}

.terminal {
  overflow: hidden;
  background: var(--code);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  background: #1b1715;
  border-bottom: 1px solid var(--line);
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.terminal-top span:nth-child(2) {
  background: #d97706;
}

.terminal-top span:nth-child(3) {
  background: #78716c;
}

.terminal-top strong {
  margin-left: auto;
  color: var(--faint);
  font: 700 12px/1 "SFMono-Regular", monospace;
}

.terminal-body {
  padding: 22px;
}

.terminal-body p {
  color: var(--muted);
}

.trace {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.trace span:first-child {
  color: var(--text);
  font-weight: 800;
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.agent-grid i {
  padding: 9px 10px;
  background: #231f1d;
  border: 1px solid var(--line);
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.terminal-output {
  margin-bottom: 0;
  color: var(--accent-2) !important;
  font-family: "SFMono-Regular", monospace;
  font-size: 13px;
}

.band {
  border-block: 1px solid var(--line);
  background: #241f1e;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--max);
  margin: 0 auto;
}

.summary-grid div {
  min-height: 142px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.summary-grid div:first-child {
  border-left: 1px solid var(--line);
}

.metric {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 30px;
  font-weight: 900;
}

.summary-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 28px;
  border-bottom: 1px solid rgba(245, 242, 238, 0.08);
}

.split,
.visual-section,
.install {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 54px;
  align-items: start;
}

.prose {
  color: var(--muted);
  font-size: 18px;
}

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

.agents {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.agents article,
.compare article,
.command-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px;
}

.agents p,
.compare p,
.command-grid p,
.visual-section p,
.faq p {
  color: var(--muted);
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compare article {
  position: relative;
  padding: 28px;
}

.compare article.recommended {
  border-color: rgba(234, 88, 12, 0.7);
  background: linear-gradient(180deg, rgba(234, 88, 12, 0.1), rgba(33, 29, 28, 1));
}

.badge {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 4px 8px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge.muted {
  background: var(--panel-2);
  color: var(--muted);
}

ul {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

li + li {
  margin-top: 8px;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.pipeline span {
  display: grid;
  min-height: 86px;
  place-items: center;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.visual-section {
  align-items: center;
}

.visual-section img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--panel);
}

.code-panel {
  background: var(--code);
  border: 1px solid var(--line);
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
}

pre code {
  color: var(--text);
  font-size: 15px;
}

.command-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.command-grid article {
  padding: 18px;
}

.command-grid p {
  margin: 14px 0 0;
  font-size: 14px;
}

.origin a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

.faq {
  max-width: 920px;
}

details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 19px;
}

details p {
  max-width: 760px;
  margin: 14px 0 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 42px 28px 56px;
  color: var(--muted);
}

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

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

  .hero,
  .split,
  .visual-section,
  .install,
  .compare {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

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

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

@media (max-width: 620px) {
  .hero,
  .section {
    padding-inline: 18px;
  }

  .site-header {
    padding-inline: 18px;
  }

  .summary-grid,
  .agents,
  .command-grid,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .summary-grid div,
  .summary-grid div:first-child {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  h1 {
    font-size: 56px;
  }

  .hero-lede {
    font-size: 18px;
  }
}
