
:root {
  --navy: #0f172a;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-light: #eff6ff;
  --cyan: #06b6d4;
  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --max-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Navigation ────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-size: 1rem; font-weight: 700; color: white; text-decoration: none; }
.nav-brand .accent { color: #60a5fa; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: #94a3b8; font-size: 0.8125rem; font-weight: 500; text-decoration: none; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: white; text-decoration: none; }
.nav-cta { color: #60a5fa !important; font-weight: 600; }

/* ── Hero ──────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%); color: white; padding: 5rem 1.5rem 4rem; text-align: center; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; max-width: 720px; margin: 0 auto 1rem; line-height: 1.2; }
.hero h1 .accent { color: #60a5fa; }
.hero .subtitle { font-size: 1.125rem; color: #94a3b8; max-width: 580px; margin: 0 auto 2.5rem; }
.hero-stats { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: #60a5fa; }
.hero-stat .label { font-size: 0.6875rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.125rem; }

/* ── Container ─────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3.5rem 0; }
.section-header { margin-bottom: 1.5rem; }
.section-header h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.section-header p { color: var(--text-secondary); font-size: 1rem; max-width: 600px; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Cards ─────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.15s, transform 0.15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-body { padding: 1.25rem; }
.card-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.card-body .subtitle { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.card-body p { font-size: 0.875rem; color: var(--text-secondary); }
.card-meta { display: flex; gap: 0.75rem; font-size: 0.6875rem; color: var(--text-muted); margin-top: 0.5rem; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-link:hover { text-decoration: none; }

/* ── Agent Cards ───────────────────────────────────── */
.agent-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; }
.agent-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.125rem; font-weight: 700; flex-shrink: 0; }
.agent-info { flex: 1; }
.agent-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.125rem; }
.agent-info .role { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 0.375rem; }
.agent-info .desc { font-size: 0.8125rem; color: var(--text-muted); }
.agent-info .skills-count { font-size: 0.6875rem; color: var(--blue); font-weight: 500; margin-top: 0.375rem; }

/* ── Badges & Tags ─────────────────────────────────── */
.badge { display: inline-block; font-size: 0.625rem; font-weight: 600; padding: 0.125rem 0.5rem; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.domain-tag { display: inline-block; font-size: 0.5625rem; font-weight: 600; padding: 0.125rem 0.375rem; border-radius: 9999px; text-transform: uppercase; letter-spacing: 0.03em; }

/* ── Stat Boxes ────────────────────────────────────── */
.stats-row { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.stat-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; flex: 1; min-width: 140px; }
.stat-box .stat-label { font-size: 0.5625rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-box .stat-value { font-size: 1.5rem; font-weight: 700; margin-top: 0.125rem; }
.stat-box .stat-sub { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.125rem; }

/* ── Tables ────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--bg-alt); padding: 0.625rem 1rem; font-size: 0.625rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; text-align: left; font-weight: 600; border-bottom: 1px solid var(--border); }
td { padding: 0.625rem 1rem; font-size: 0.875rem; border-bottom: 1px solid var(--border-light); }
tr:last-child td { border-bottom: none; }
tr:hover { background: var(--bg-alt); }

/* ── Filter Buttons ────────────────────────────────── */
.filters { display: flex; gap: 0.375rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filter-btn { background: var(--bg); border: 1px solid var(--border); border-radius: 9999px; padding: 0.3rem 0.75rem; font-size: 0.6875rem; color: var(--text-secondary); cursor: pointer; font-weight: 500; transition: all 0.1s; }
.filter-btn:hover { border-color: #cbd5e1; }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: white; }

/* ── Expandable / Details ──────────────────────────── */
details { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.5rem; overflow: hidden; }
details summary { padding: 0.75rem 1rem; cursor: pointer; font-weight: 500; font-size: 0.875rem; background: var(--bg); }
details summary:hover { background: var(--bg-alt); }
details[open] summary { border-bottom: 1px solid var(--border-light); }
details .detail-body { padding: 1rem; font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Content Rendering ─────────────────────────────── */
.content { max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
.content h2 { font-size: 1.25rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--text); }
.content h3 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 0.375rem; color: var(--text); }
.content h4 { font-size: 0.9375rem; font-weight: 600; margin: 1rem 0 0.25rem; color: var(--text); }
.content p { margin-bottom: 0.75rem; font-size: 0.875rem; }
.content ul, .content ol { padding-left: 1.25rem; margin: 0.5rem 0; list-style: disc; }
.content ol { list-style: decimal; }
.content li { margin: 0.25rem 0; font-size: 0.875rem; }
.content code { background: var(--bg-alt); border: 1px solid var(--border-light); padding: 0.0625rem 0.3rem; border-radius: 0.25rem; font-size: 0.8125rem; font-family: ui-monospace, monospace; }
.content strong { color: var(--text); }
.content blockquote { border-left: 3px solid var(--blue); padding: 0.5rem 1rem; margin: 0.75rem 0; background: var(--blue-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Full-width grid for agent detail showcase */
.grid-full { grid-template-columns: 1fr; }

/* ── Skill Bars ────────────────────────────────────── */
.skill-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; }
.skill-name { font-size: 0.75rem; color: var(--text-secondary); width: 180px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.skill-fill { height: 100%; border-radius: 3px; }
.skill-num { font-size: 0.6875rem; font-weight: 600; width: 28px; text-align: right; }

/* ── CTA Section ───────────────────────────────────── */
.cta { background: var(--navy); color: white; padding: 3.5rem 1.5rem; text-align: center; }
.cta h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.cta p { color: #94a3b8; max-width: 480px; margin: 0 auto 1.5rem; }
.cta-btn { display: inline-block; background: var(--blue); color: white; padding: 0.75rem 2rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; transition: background 0.15s; }
.cta-btn:hover { background: var(--blue-hover); text-decoration: none; }

/* ── Footer ────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 2rem 1.5rem; text-align: center; font-size: 0.75rem; color: var(--text-muted); }
.footer a { color: var(--text-secondary); }

/* ── Utilities ─────────────────────────────────────── */
.mono { font-family: ui-monospace, monospace; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-muted { color: var(--text-muted); }
.font-semibold { font-weight: 600; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat .num { font-size: 1.5rem; }
  .grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .stats-row { flex-direction: column; }
  .agent-card { flex-direction: column; align-items: center; text-align: center; }
}
