/* ── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: #00C2B2; color: #0B1F4B; }
h1,h2,h3,h4,h5 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -0.02em; }

/* ── Nav links ─────────────────────────────────────────── */
.nav-link { position: relative; color: #495A89; font-weight: 700; font-size: .875rem; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: #00675E; }
.nav-link::after { content:""; position:absolute; left:0; right:100%; bottom:-4px; height:2px; background:#00675E; transition:right .3s; }
.nav-link:hover::after, .nav-link.active::after { right:0; }

/* ── Nav pill — smooth background + border transition ───── */
#hdr > div > div { transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }

/* ── Scrolled header ───────────────────────────────────── */
#hdr.scrolled > div > div { box-shadow: 0 4px 12px rgba(11,31,75,.08), 0 2px 4px rgba(11,31,75,.04); }

/* ── Nav over a dark section ────────────────────────────── */
/* Activated by JS (updateNavTheme) when the pill floats over a dark bg */
#hdr.nav-on-dark > div > div {
  background: rgba(11,31,75,.88);
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
#hdr.nav-on-dark .hdr-logo { color: #fff; }
#hdr.nav-on-dark .nav-link { color: rgba(255,255,255,.72); }
#hdr.nav-on-dark .nav-link:hover,
#hdr.nav-on-dark .nav-link.active { color: #00C2B2; }
#hdr.nav-on-dark .nav-link::after { background: #00C2B2; }

/* ── Placeholder tiles ─────────────────────────────────── */
.ph {
  position: relative; overflow: hidden; border-radius: 16px;
  background: linear-gradient(135deg, #EEF0FF, #E2E7FF);
  display: grid; place-items: center;
}
.ph::before {
  content: attr(data-label); font-family: ui-monospace, monospace;
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: #495A89; opacity: .6; position: relative; z-index: 1;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(73,90,137,.08) 0, rgba(73,90,137,.08) 1px, transparent 1px, transparent 12px);
}

/* ── Reveal animation ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* ── Focus ring ────────────────────────────────────────── */
*:focus-visible { outline: 2px solid #00675E; outline-offset: 2px; }

/* ── Plus-grid bg ──────────────────────────────────────── */
.bg-dots {
  background-image: radial-gradient(circle, rgba(11,31,75,.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Animate pulse (for live badge) ────────────────────── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
