/* ── Reset & Custom Properties ─────────────────────────────────── */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --text: #111111;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--text-secondary);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── Nav ───────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.nav-links a.active {
  color: var(--text);
}

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 128px 24px 96px;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 32px;
  transition: border-color 0.2s;
}

.badge:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.hero h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ── Install Box ───────────────────────────────────────────────── */

.install-box {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg);
}

.install-command {
  flex: 1;
  padding: 14px 16px;
  font-size: 14px;
  font-family: var(--font-mono);
  background: none;
  border: none;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--text);
  display: flex;
  align-items: center;
}

.install-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border: none;
  background: var(--bg-alt);
  border-left: 1px solid var(--border-strong);
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.install-copy:hover {
  color: var(--text);
}

.install-copy .hidden {
  display: none;
}

.hero-meta {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-meta code {
  font-size: 13px;
}

/* ── Agents ────────────────────────────────────────────────────── */

.agents {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 96px 24px;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-inner h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

.agents-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
}

.agents-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.agent-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.agents-list li.agent-untested {
  color: var(--text-muted);
}

/* ── Use Cases ─────────────────────────────────────────────────── */

.use-cases {
  padding: 96px 24px;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.use-case {
  text-align: center;
}

.use-case h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.use-case p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── How It Works ──────────────────────────────────────────────── */

.how-it-works {
  padding: 96px 24px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  text-align: center;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Footer ────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-inner span {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Docs Page ─────────────────────────────────────────────────── */

.docs-layout {
  display: flex;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  gap: 48px;
}

.docs-sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-sidebar a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 12px;
  border-left: 2px solid transparent;
  border-radius: 0;
  transition: color 0.15s, border-color 0.15s;
}

.docs-sidebar a:hover {
  color: var(--text);
}

.docs-sidebar a.active {
  color: var(--text);
  border-left-color: var(--text);
  font-weight: 500;
}

.docs-content {
  flex: 1;
  min-width: 0;
}

.docs-section {
  scroll-margin-top: 88px;
  margin-bottom: 48px;
}

.docs-section:last-child {
  margin-bottom: 0;
}

.docs-content h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.docs-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}

.docs-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.docs-content ul,
.docs-content ol {
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
  line-height: 1.7;
}

.docs-content li {
  margin-bottom: 6px;
}

.docs-content pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 16px;
  line-height: 1.5;
}

.docs-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
}

.docs-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-content a:hover {
  color: var(--text-secondary);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}

.docs-table th,
.docs-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.docs-table th {
  font-weight: 600;
  color: var(--text);
}

.docs-table td {
  color: var(--text-secondary);
}

kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 2px 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero {
    padding: 80px 24px 64px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .docs-layout {
    flex-direction: column;
    gap: 24px;
  }

  .docs-sidebar {
    width: 100%;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
  }

  .docs-sidebar a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 4px 10px;
    font-size: 13px;
  }

  .docs-sidebar a.active {
    border-left: none;
    border-bottom-color: var(--text);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .install-box {
    border-radius: 10px;
  }

  .agents {
    padding: 64px 24px;
  }

  .use-cases {
    padding: 64px 24px;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    padding: 64px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
