/* ToolCall Store — design system */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0a0c10;
  --surface: #12151c;
  --surface-2: #1a1f2b;
  --border: #252c3a;
  --border-light: #1e2435;
  --text: #e8edf5;
  --muted: #8892a4;
  --dim: #5a6478;
  --accent: #5b9cf6;
  --accent-green: #3ecf8e;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --code-bg: #0d1117;
  --radius: 8px;
  --radius-lg: 12px;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: #7db1f8; }

code, pre, .mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace; }

::selection { background: rgba(91,156,246,.3); color: #fff; }

/* ---------- Layout ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--border-light); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 16px; max-width: 640px; margin-bottom: 40px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  background: rgba(10,12,16,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--text); letter-spacing: -.01em; }
.nav-logo img { width: 26px; height: 26px; border-radius: 6px; }
.nav-logo:hover { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; font-size: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #061226; }
.btn-primary:hover { background: #6fa9f8; color: #061226; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--dim); background: var(--surface); color: var(--text); }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(91,156,246,.12), transparent 65%);
  pointer-events: none; z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
  max-width: 760px; margin-bottom: 22px;
  background: linear-gradient(180deg, #fff 0%, #c8d2e0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 19px; color: var(--muted); max-width: 620px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-trust { font-size: 13px; color: var(--dim); font-family: 'JetBrains Mono', monospace; }
.hero-trust span { color: var(--muted); }
.hero-code { margin-top: 44px; max-width: 760px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--dim); }
.card-icon {
  width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 16px; background: var(--surface-2); border: 1px solid var(--border);
}
.card h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 14px; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- Code blocks ---------- */
.code, .code-block {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; line-height: 1.7; color: #c9d4e3;
  overflow-x: auto; white-space: pre; tab-size: 2;
}
.code-block .c-key { color: var(--accent); }
.code-block .c-str { color: var(--accent-green); }
.code-block .c-num { color: var(--accent-orange); }
.code-block .c-comment { color: var(--dim); }
.code-block .c-method { color: #c084fc; font-weight: 600; }
.code-block .c-path { color: var(--text); }
.code-arrow { color: var(--accent-green); }
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px; background: var(--surface-2); border: 1px solid var(--border); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0; font-size: 12px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.code-head + .code, .code-head + .code-block { border-radius: 0 0 var(--radius) var(--radius); border-top: 0; }
.code-dots { display: flex; gap: 6px; }
.code-dots i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.code-dots i:nth-child(1){background:#ff5f57;} .code-dots i:nth-child(2){background:#febc2e;} .code-dots i:nth-child(3){background:#28c840;}

/* ---------- Terminal ---------- */
.terminal {
  background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; font-family: 'JetBrains Mono', monospace; font-size: 13px; line-height: 1.7;
  overflow-x: auto; white-space: pre;
}
.terminal .prompt { color: var(--accent-green); }
.terminal .cmd { color: var(--text); }
.terminal .out { color: var(--muted); }

/* ---------- Badges & tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid; line-height: 1.4;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-green { color: var(--accent-green); border-color: rgba(62,207,142,.3); background: rgba(62,207,142,.08); }
.badge-orange { color: var(--accent-orange); border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.08); }
.badge-red { color: var(--accent-red); border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.08); }
.badge-blue { color: var(--accent); border-color: rgba(91,156,246,.3); background: rgba(91,156,246,.08); }

.tag {
  display: inline-block; padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.method-get { color: var(--accent-green); border-color: rgba(62,207,142,.35); background: rgba(62,207,142,.08); }
.method-post { color: var(--accent); border-color: rgba(91,156,246,.35); background: rgba(91,156,246,.08); }
.method-put { color: var(--accent-orange); border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.08); }
.method-delete { color: var(--accent-red); border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.08); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.table th { background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td { color: var(--text); }
.table td code, .table th code { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--accent); background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.table tbody tr:hover { background: rgba(255,255,255,.015); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--accent);
}
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.step-name { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.step .code, .step .code-block { font-size: 12px; padding: 14px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px 22px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 8px 40px rgba(91,156,246,.12); }
.plan-name { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--text); margin-bottom: 6px; }
.plan-price { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 2px; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-desc { font-size: 13px; color: var(--muted); margin-bottom: 18px; min-height: 38px; }
.plan ul { list-style: none; margin: 0 0 22px; flex: 1; }
.plan li { font-size: 13.5px; color: var(--muted); padding: 7px 0 7px 22px; position: relative; border-bottom: 1px solid var(--border-light); }
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: "+"; position: absolute; left: 0; color: var(--accent-green); font-weight: 700; }
.plan .btn { width: 100%; justify-content: center; }

/* ---------- Misc ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.feature-list { list-style: none; }
.feature-list li { padding: 11px 0 11px 30px; position: relative; color: var(--muted); font-size: 14.5px; border-bottom: 1px solid var(--border-light); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.feature-list li strong { color: var(--text); font-weight: 600; }

.note {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 14px 18px; font-size: 14px; color: var(--muted);
}
.note strong { color: var(--text); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Docs layout ---------- */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.doc-nav { position: sticky; top: 88px; }
.doc-nav h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 18px 0 10px; }
.doc-nav a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; }
.doc-nav a:hover { color: var(--text); }
.doc-body h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 44px 0 14px; scroll-margin-top: 88px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 17px; font-weight: 650; margin: 28px 0 10px; }
.doc-body p { color: var(--muted); margin-bottom: 14px; }
.doc-body p code, .doc-body li code { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent); background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.doc-body ul, .doc-body ol { color: var(--muted); margin: 0 0 16px 22px; }
.doc-body li { margin-bottom: 7px; }
.doc-body .code, .doc-body .code-block, .doc-body .table-wrap { margin: 16px 0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-light); padding: 40px 0 56px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--text); }
.footer-logo img { width: 22px; height: 22px; border-radius: 5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-meta { color: var(--dim); font-size: 12.5px; margin-top: 18px; }

/* ---------- Status ---------- */
.status-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-light);
}
.status-row:last-child { border-bottom: 0; }
.status-name { font-weight: 500; }
.status-big {
  display: flex; align-items: center; gap: 14px; padding: 26px;
  background: rgba(62,207,142,.06); border: 1px solid rgba(62,207,142,.25); border-radius: var(--radius-lg);
}
.status-big .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 0 4px rgba(62,207,142,.18); }
.status-big h2 { font-size: 22px; font-weight: 700; }
.status-big p { color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .grid-3, .grid-2, .steps, .price-grid, .price-grid-5, .split, .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 14px; align-items: flex-start;
  }
  .nav-toggle { display: block; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 17px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .price-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Capabilities grid (Fix 3) ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .grid-4 { grid-template-columns: 1fr; } }

.cap-card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cap-card .cap-icon { font-size: 28px; margin-bottom: 12px; }
.cap-card h3 { font-size: 15px; font-weight: 650; margin-bottom: 6px; color: var(--text); }
.cap-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
