@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #f7f0e3;
  --bg-2: #ece3cf;
  --panel: rgba(255, 248, 235, 0.97);
  --ink: #211608;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --accent: #b45309;
  --accent-light: rgba(180, 83, 9, 0.09);
  --green: #059669;
  --line: rgba(24, 24, 27, 0.1);
  --shadow-sm: 0 1px 4px rgba(65, 49, 32, 0.08);
  --shadow: 0 4px 24px rgba(65, 49, 32, 0.1);
  --shadow-lg: 0 20px 60px rgba(65, 49, 32, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─── */
h1, h2, h3, .display { font-family: 'Playfair Display', serif; }
code, pre, .mono { font-family: 'JetBrains Mono', monospace; font-size: 0.875em; }

/* ─── Layout ─── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 240, 227, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; gap: 28px;
}
.wordmark {
  font-family: 'Playfair Display', serif; font-weight: 800;
  font-size: 22px; color: var(--ink); text-decoration: none;
  letter-spacing: -0.03em; flex-shrink: 0;
}
.wordmark em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px;
  font-weight: 500; padding: 6px 12px; border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--accent-light); }
.install-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: #f7f0e3; border: none;
  border-radius: var(--radius-sm); padding: 7px 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  cursor: pointer; transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap; flex-shrink: 0;
}
.install-chip:hover { opacity: 0.85; transform: translateY(-1px); }
.install-chip .dollar { color: var(--accent); }

/* ─── Hero ─── */
.hero {
  padding: 120px 0 100px;
  background:
    radial-gradient(ellipse at 8% 15%, rgba(180, 83, 9, 0.12) 0%, transparent 48%),
    radial-gradient(ellipse at 92% 85%, rgba(5, 150, 105, 0.08) 0%, transparent 48%),
    var(--bg);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(24,24,27,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-light); color: var(--accent);
  border: 1px solid rgba(180, 83, 9, 0.2); border-radius: 999px;
  padding: 4px 14px; font-size: 13px; font-weight: 600; margin-bottom: 28px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); max-width: 14ch; margin-bottom: 24px; line-height: 1.08; }
.hero-sub { font-size: 18px; color: var(--ink-2); max-width: 52ch; margin-bottom: 40px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Terminal block */
.terminal-block {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #f7f0e3;
  border-radius: var(--radius); padding: 13px 20px;
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
  box-shadow: 0 4px 16px rgba(33, 22, 8, 0.22), 0 1px 3px rgba(33, 22, 8, 0.15);
}
.terminal-block .prompt { color: var(--accent); font-weight: 600; }
.copy-btn {
  background: rgba(255,255,255,0.1); border: none; border-radius: 5px;
  color: rgba(247,240,227,0.7); padding: 3px 8px; font-size: 11px;
  cursor: pointer; transition: background 0.15s; margin-left: 6px;
  font-family: 'Inter', sans-serif;
}
.copy-btn:hover { background: rgba(255,255,255,0.2); color: #f7f0e3; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: 0 2px 8px rgba(33, 22, 8, 0.08); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-accent { background: var(--accent); color: #fff; border: none; }
.btn-accent:hover { opacity: 0.9; }
.btn-dark { background: var(--ink); color: #f7f0e3; }

/* ─── Steps ─── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 56px;
}
.step {
  background: var(--panel);
  padding: 32px 28px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(180, 83, 9, 0.2);
}
.step-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 10px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; margin-bottom: 16px; line-height: 1.55; }
.step-code {
  background: var(--ink); color: #f7f0e3; padding: 10px 14px;
  box-shadow: 0 4px 14px rgba(33, 22, 8, 0.2), 0 1px 3px rgba(33, 22, 8, 0.12);
  border-radius: var(--radius-sm); font-family: 'JetBrains Mono', monospace;
  font-size: 12px; display: block;
}
.step-code .p { color: var(--accent); }

/* ─── Section headers ─── */
.section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; line-height: 1.15; }
.section-sub { color: var(--muted); font-size: 16px; max-width: 52ch; line-height: 1.75; }

/* ─── Agent cards ─── */
.agents-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px; margin-top: 40px;
}
.agent-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.agent-card:hover {
  box-shadow: var(--shadow); transform: translateY(-2px);
  border-color: rgba(180, 83, 9, 0.18);
}
.agent-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.agent-name { font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif; }
.agent-desc { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }
.agent-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.run-cmd {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted);
  background: rgba(24,24,27,0.04); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 6px 10px;
  cursor: pointer; transition: background 0.15s;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.run-cmd:hover { background: rgba(24,24,27,0.08); color: var(--ink); }
.run-cmd-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.pill-tool { background: rgba(24,24,27,0.06); color: var(--ink-2); }
.pill-new { background: rgba(5, 150, 105, 0.1); color: var(--green); }

/* Category colors */
.c-research  { --cc: rgba(14,165,233,0.1);  --ct: #0284c7; }
.c-engineering { --cc: rgba(139,92,246,0.1); --ct: #7c3aed; }
.c-product   { --cc: rgba(234,179,8,0.1);   --ct: #a16207; }
.c-marketing { --cc: rgba(236,72,153,0.1);  --ct: #be185d; }
.c-business  { --cc: rgba(180,83,9,0.1);    --ct: #b45309; }
.c-operations{ --cc: rgba(5,150,105,0.1);   --ct: #059669; }
.c-finance   { --cc: rgba(99,102,241,0.1);  --ct: #4f46e5; }
.pill-cat { background: var(--cc); color: var(--ct); }

/* ─── Filter bar ─── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn {
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(24,24,27,0.06); color: var(--muted); border: 1px solid transparent;
  cursor: pointer; transition: all 0.15s;
}
.filter-btn:hover { color: var(--ink); background: var(--accent-light); }
.filter-btn.active { background: var(--ink); color: #f7f0e3; }

/* ─── Compare table ─── */
.compare-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 48px; align-items: start;
}
.compare-col {
  background: var(--panel);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.compare-col.featured {
  background: var(--ink); color: #f7f0e3;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  padding: 40px 32px;
  margin-top: -10px;
}
.compare-col h3 { font-size: 17px; margin-bottom: 22px; font-family: 'Inter', sans-serif; font-weight: 600; }
.compare-col.featured h3 { color: var(--accent); }
.compare-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin-bottom: 13px; line-height: 1.45; }
.compare-icon { flex-shrink: 0; margin-top: 1px; }
.compare-col:not(.featured) .compare-item { color: var(--muted); }
.compare-col.featured .compare-item { color: rgba(247,240,227,0.85); }
.compare-col.featured .compare-icon { color: var(--accent); font-weight: 700; }

/* ─── Waitlist ─── */
.waitlist-section { background: var(--ink); padding: 88px 0; }
.waitlist-section .section-label { color: var(--accent); }
.waitlist-section .section-title { color: #f7f0e3; }
.waitlist-section p { color: rgba(247,240,227,0.6); margin-bottom: 32px; font-size: 16px; line-height: 1.7; max-width: 46ch; }
.email-form { display: flex; gap: 10px; max-width: 460px; }
.email-input {
  flex: 1; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-sm);
  padding: 11px 16px; color: #f7f0e3; font: inherit; font-size: 14px;
  outline: none; transition: border-color 0.15s;
}
.email-input::placeholder { color: rgba(247,240,227,0.3); }
.email-input:focus { border-color: var(--accent); }
.form-success { display: none; color: var(--green); font-size: 14px; font-weight: 500; margin-top: 12px; }

/* ─── Dashboard screenshot ─── */
.screenshot-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  margin-top: 48px; background: var(--bg-2);
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; font-style: italic;
}
.screenshot-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Features grid */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feature-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature-icon { display: flex; align-items: center; margin-bottom: 16px; }
.feature-icon svg { display: block; flex-shrink: 0; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── Docs layout ─── */
.docs-layout {
  display: grid; grid-template-columns: 230px 1fr; gap: 64px;
  max-width: var(--max); margin: 0 auto; padding: 56px 24px 80px;
  align-items: start;
}
.docs-sidebar { position: sticky; top: 82px; }
.sidebar-group { margin-bottom: 26px; }
.sidebar-group-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; padding: 0 10px;
}
.docs-sidebar a {
  display: block; font-size: 13.5px; color: var(--ink-2); text-decoration: none;
  padding: 5px 10px; border-radius: var(--radius-sm); margin-bottom: 1px;
  transition: background 0.12s, color 0.12s;
}
.docs-sidebar a:hover { background: var(--accent-light); color: var(--accent); }
.docs-sidebar a.active { color: var(--accent); font-weight: 600; background: var(--accent-light); }

.docs-content { min-width: 0; }
.docs-section { margin-bottom: 72px; scroll-margin-top: 82px; }
.docs-section h2 {
  font-size: 30px; margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.docs-section h3 { font-size: 19px; margin: 32px 0 10px; }
.docs-section p { color: var(--ink-2); margin-bottom: 16px; line-height: 1.8; }
.docs-section ul, .docs-section ol { color: var(--ink-2); padding-left: 22px; margin-bottom: 16px; }
.docs-section li { margin-bottom: 7px; line-height: 1.65; }
.docs-section a { color: var(--accent); text-decoration: none; font-weight: 500; }
.docs-section a:hover { text-decoration: underline; }

.code-block {
  background: var(--ink); color: #f7f0e3;
  border-radius: var(--radius); padding: 20px 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  line-height: 1.75; overflow-x: auto; margin: 16px 0;
  position: relative;
}
.code-block .p { color: var(--accent); }
.code-block .kw { color: #93c5fd; }
.code-block .str { color: #86efac; }
.code-block .cm { color: rgba(247,240,227,0.35); }
.code-block .fn { color: #fde68a; }

.inline-code {
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px;
  background: rgba(24,24,27,0.07); padding: 2px 6px;
  border-radius: 5px; color: var(--accent);
}
.docs-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.docs-table th {
  text-align: left; padding: 9px 14px;
  background: rgba(24,24,27,0.04); font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
.docs-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.docs-table code { font-size: 12px; background: rgba(24,24,27,0.06); padding: 2px 6px; border-radius: 4px; }

.callout {
  border-left: 3px solid var(--accent); background: var(--accent-light);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0; font-size: 14px; color: var(--ink-2); line-height: 1.65;
}
.callout strong { color: var(--accent); }

/* ─── Changelog ─── */
.changelog-entry { padding-bottom: 64px; margin-bottom: 64px; border-bottom: 1px solid var(--line); }
.changelog-entry:last-child { border-bottom: none; }
.changelog-version { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.changelog-date { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.changelog-entry h2 { font-size: 28px; margin-bottom: 24px; }
.changelog-list { list-style: none; }
.changelog-list li { display: flex; gap: 12px; font-size: 15px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.5; align-items: flex-start; }
.tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; padding: 2px 7px; border-radius: 4px; flex-shrink: 0; margin-top: 3px;
}
.tag-new { background: rgba(5,150,105,0.1); color: var(--green); }
.tag-fix { background: rgba(239,68,68,0.1); color: #dc2626; }
.tag-imp { background: var(--accent-light); color: var(--accent); }

/* ─── Footer ─── */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.footer-links { display: flex; gap: 2px; flex: 1; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 4px; transition: color 0.12s; }
.footer-links a:hover { color: var(--ink); }
.footer-right { font-size: 13px; color: var(--muted); }

/* ─── Utils ─── */
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.gap-3 { gap: 12px; }

/* ─── Hero grid (2-col with illustration) ─── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 0;
}
.hero-visual {
  position: relative;
}

/* ─── Hero terminal ─── */
.hero-terminal {
  background: #191209;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.07);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
}
.terminal-bar {
  background: #211a0e;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.t-dot {
  width: 12px; height: 12px; border-radius: 50%;
  flex-shrink: 0;
}
.t-red    { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green  { background: #28c840; }
.t-title {
  flex: 1; text-align: center;
  font-size: 11px; color: rgba(247,240,227,0.28);
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
}
.terminal-body {
  padding: 22px 28px 26px;
  color: rgba(247,240,227,0.82);
}
.t-line { margin: 0; }
.t-gap  { height: 10px; }
.t-prompt { color: #b45309; margin-right: 10px; }
.t-amber  { color: #f97316; }
.t-ok     { color: #22c55e; margin-right: 8px; }
.t-muted  { color: rgba(247,240,227,0.32); }
.t-output { color: rgba(247,240,227,0.55); padding-left: 18px; font-style: italic; }
.t-spin   { color: #f97316; margin-right: 8px; }
.t-cursor { color: #f97316; animation: blink 1s step-end infinite; }
.t-cursor-line { animation-fill-mode: forwards; }

/* Sequential fade-in */
.t-line {
  opacity: 0;
  transform: translateY(3px);
  animation: t-appear 0.35s ease forwards;
}
.t-d0 { animation-delay: 0.4s; }
.t-d1 { animation-delay: 1.0s; }
.t-d2 { animation-delay: 1.8s; }
.t-d3 { animation-delay: 2.5s; }
.t-d4 { animation-delay: 3.1s; }
.t-d5 { animation-delay: 3.7s; }
.t-d6 { animation-delay: 4.3s; }
.t-d7 { animation-delay: 4.7s; }
.t-d8 { animation-delay: 5.1s; }
.t-d9 { animation-delay: 5.5s; }

@keyframes t-appear {
  to { opacity: 1; transform: none; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─── Image banner (agents page) ─── */
.img-banner {
  width: 100%; display: block;
  border-radius: var(--radius);
  object-fit: cover;
  height: 220px;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .steps, .compare-grid, .features-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; gap: 32px; }
  .docs-sidebar { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 680px) {
  .agents-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .email-form { flex-direction: column; }
  .hero { padding: 80px 0 60px; }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
  .footer-right { width: 100%; }
}
