:root {
  color-scheme: dark;
  --bg: #0b0e12;
  --panel: #11161c;
  --panel-alt: #161d25;
  --surface: #1b232d;
  --border: rgba(220, 234, 244, 0.11);
  --border-strong: rgba(220, 234, 244, 0.2);
  --text: #eef4f7;
  --muted: #98a8b5;
  --faint: #6f8090;
  --accent: #3ee0a8;
  --accent-hover: #64ebb9;
  --accent-dim: rgba(62, 224, 168, 0.13);
  --accent-border: rgba(62, 224, 168, 0.42);
  --radius-card: 10px;
  --radius-btn: 8px;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.56;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, pre, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code {
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface);
  color: #cfece0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(11, 14, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.nav-logo { height: 28px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.mobile-nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 9px 8px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  flex-direction: column;
  justify-content: space-between;
}
.mobile-nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--text); }
.mobile-nav-drawer {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 55;
  background: #0b0e12;
  border-bottom: 1px solid var(--border-strong);
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-nav-drawer[hidden] { display: none; }
.mobile-nav-drawer > a { padding: 10px 12px; border-radius: var(--radius-btn); font-size: 15px; font-weight: 600; }
.mobile-nav-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

.btn-primary, .btn-secondary, .mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary {
  height: 38px;
  padding: 0 16px;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #051610;
  font-size: 13px;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  height: 38px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 13px;
}
.btn-secondary:hover { border-color: var(--accent-border); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 14px; }
.mini-btn {
  height: 28px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 11.5px;
}
.mini-btn:hover { border-color: var(--accent-border); color: var(--accent); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.agents-hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% 0%, rgba(62, 224, 168, 0.1), transparent 55%);
}
.hero-top-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: block; }
.agents-hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.035em;
  max-width: 24ch;
  margin-bottom: 16px;
}
.hero-lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 66ch;
  margin-bottom: 28px;
}
.zero-friction-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.zf-item {
  padding: 14px 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.zf-item strong { font-size: 13.5px; color: var(--text); }
.zf-item span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* Setup Tabs & Panel */
.setup-section { padding: 48px 0 64px; border-bottom: 1px solid var(--border); }
.setup-shell {
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  overflow: hidden;
}
.client-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
  background: var(--panel-alt);
  border-bottom: 1px solid var(--border);
}
.client-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.client-tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.client-tab.active {
  background: var(--surface);
  border-color: var(--accent-border);
  color: var(--text);
}
.tab-badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
}
.setup-panel { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 22px; }
.setup-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.setup-panel-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.setup-panel-head p { font-size: 14px; color: var(--muted); max-width: 60ch; }
.transport-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  gap: 3px;
}
.transport-btn {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
}
.transport-btn.active { background: var(--accent-dim); color: var(--accent); }

.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: start;
}
.setup-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.setup-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}
.step-body { display: flex; flex-direction: column; gap: 4px; }
.step-body strong { font-size: 14px; color: var(--text); }
.step-body p { font-size: 13px; color: var(--muted); line-height: 1.48; }

.setup-code-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.code-card {
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: #080b0f;
  overflow: hidden;
}
.code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-alt);
}
.code-label { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-weight: 700; }
.code-body {
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12.2px;
  line-height: 1.55;
  color: #dce9e3;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.code-body code { background: transparent; padding: 0; color: inherit; font-size: inherit; }
.setup-quick-links { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 2px; }

/* Agent Prompt Gallery */
.prompts-section, .tools-section { padding: 64px 0; border-bottom: 1px solid var(--border); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 64ch; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.section-head p { color: var(--muted); font-size: 15px; }

.agent-prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.prompt-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.prompt-card-stage {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #1c242d;
  background-image: conic-gradient(#141a21 25%, transparent 0 50%, #141a21 0 75%, transparent 0);
  background-size: 12px 12px;
  border-bottom: 1px solid var(--border);
}
.prompt-card-stage canvas {
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.prompt-card-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(11, 14, 18, 0.88);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}
.prompt-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prompt-card-body h3 { font-size: 15px; font-weight: 700; }
.prompt-quote {
  font-family: var(--mono);
  font-size: 12px;
  color: #cfece0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 11px;
  line-height: 1.48;
  flex: 1;
}
.prompt-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; }
.prompt-tool-hint { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }

/* 10 MCP Tools Grid */
.mcp-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}
.tool-card {
  padding: 15px 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.tool-pill.free { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border); }
.tool-pill.auth { background: var(--surface); color: var(--muted); border: 1px solid var(--border-strong); }
.tool-card p { font-size: 13px; color: var(--muted); }

.bottom-cta-band {
  padding: 24px 26px;
  border-radius: 12px;
  border: 1px solid var(--accent-border);
  background: linear-gradient(145deg, rgba(62, 224, 168, 0.1) 0%, var(--panel) 65%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.bottom-cta-band h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.bottom-cta-band p { font-size: 14px; color: var(--muted); }
.bottom-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.site-footer { padding: 28px 0 42px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-links a:hover { color: var(--accent); }
.footer-link-btn {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
}
.footer-link-btn:hover { color: var(--accent); }

@media (max-width: 960px) {
  .zero-friction-strip, .setup-grid, .agent-prompt-grid, .mcp-tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container, .nav-inner { padding: 0 16px; }
  .nav-links, .nav-actions .btn-secondary { display: none; }
  .mobile-nav-toggle { display: flex; }
  .setup-panel { padding: 18px 16px; }
  .agents-hero { padding: 34px 0 28px; }
}
