/* site.css — shared styling for ctxmap marketing/content pages (docs, templates, pricing). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1419;
  --bg2: #161e27;
  --surface: #1a2332;
  --ink: #e8edf2;
  --ink2: #9eaab8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --border: rgba(255,255,255,0.08);
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.site-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 60px;
  background: rgba(15,20,25,0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-brand strong { font-size: 16px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink2); font-size: 14px; padding: 6px 12px; border-radius: 6px; transition: color 140ms, background 140ms; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.06); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.btn-ghost {
  display: inline-flex; align-items: center; padding: 7px 16px;
  border: 1px solid var(--border); border-radius: 8px;
  color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; background: transparent;
  transition: background 140ms, border-color 140ms;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); }
.btn-primary {
  display: inline-flex; align-items: center; padding: 7px 16px;
  border: none; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 600;
  text-decoration: none; background: var(--accent); transition: background 140ms;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-lg { padding: 12px 28px; font-size: 15px; border-radius: 10px; }

.page { max-width: 880px; margin: 0 auto; padding: 64px 24px 96px; }
.page-wide { max-width: 1060px; }
.page-head { margin-bottom: 40px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.page h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 760; letter-spacing: -0.02em; margin-bottom: 14px; }
.page .lede { font-size: 18px; color: var(--ink2); max-width: 620px; }

.prose h2 { font-size: 24px; font-weight: 700; margin: 40px 0 12px; letter-spacing: -0.01em; }
.prose h3 { font-size: 17px; font-weight: 650; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink2); font-size: 15px; }
.prose ul, .prose ol { margin: 8px 0 8px 22px; }
.prose li { margin: 4px 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 4px; color: var(--ink); }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin-bottom: 32px; }
.toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink2); margin: 0 0 10px; }
.toc ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 4px 20px; margin: 0; }
.toc a { color: var(--ink); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--accent); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; }
.card .tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.card h3 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink2); line-height: 1.6; flex: 1; }
.card .card-actions { margin-top: 16px; }

.site-footer {
  border-top: 1px solid var(--border); padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-footer p { font-size: 13px; color: var(--ink2); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--ink2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .site-nav { padding: 0 16px; }
  .nav-links { display: none; }
  .site-footer { flex-direction: column; text-align: center; }
}
