/* CCPAtlas — shared visual system
 * Used by landing, docs, and explorer pages for consistent branding. */

:root {
  /* Refined palette — professional financial services aesthetic */
  --ink: #0b1424;
  --ink-2: #1c2434;
  --ink-3: #4a5a75;
  --muted: #5c6a83;
  --muted-2: #8492a9;
  --line: #e4e8f0;
  --line-2: #eef1f7;
  --bg: #ffffff;
  --panel: #f7f9fc;
  --panel-2: #eef2f8;

  /* Accent — deep navy with warmth */
  --accent: #16345a;
  --accent-2: #23568e;
  --accent-3: #0e2440;      /* even deeper, for the header */
  --accent-glow: #16345a1a;
  --accent-soft: #e6ecf5;

  /* Semantic */
  --success: #137752;
  --warn: #b06520;
  --err: #b42318;
  --hilite: #fff4d6;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Header — dark navy across all pages ──────────────────────────────── */
.site-header {
  background: linear-gradient(180deg, var(--accent-3) 0%, var(--accent) 100%);
  border-bottom: 1px solid var(--accent-3);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(11, 20, 36, 0.15);
}
.site-nav {
  max-width: 1500px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.site-brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; color: #fff; font-size: 20px; letter-spacing: -0.015em;
}
.site-brand img { height: 32px; width: auto; }
.site-brand:hover { text-decoration: none; color: #fff; opacity: 0.9; }
.site-nav-links {
  margin-left: auto;
  display: flex; gap: 6px; align-items: center;
}
.site-nav-links a {
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 14px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.site-nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}
.site-nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}
.site-nav-links a.btn {
  background: #fff; color: var(--accent);
  padding: 9px 18px;
  font-weight: 600;
  margin-left: 8px;
}
.site-nav-links a.btn:hover {
  background: var(--accent-soft);
  color: var(--accent-3);
  text-decoration: none;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--panel), var(--panel-2));
  margin-top: 80px;
}
.site-footer-inner {
  max-width: 1500px; margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  color: var(--muted); font-size: 14px;
}
@media (max-width: 800px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
.site-footer h4 {
  color: var(--ink);
  font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.site-footer p { margin: 0 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .legal {
  max-width: 1500px; margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted-2); font-size: 12px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ─── Common components ────────────────────────────────────────────────── */
.container {
  max-width: 1500px; margin: 0 auto;
  padding: 0 24px;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600; font-size: 14px;
  cursor: pointer; border: none;
  font-family: inherit;
  transition: background 0.15s, transform 0.05s;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-2); text-decoration: none; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--panel); }
