/* M-DPP: Deneb-like, scientific software tone (Bootstrap companion)
   Keep this as the only custom stylesheet loaded after Bootstrap.
*/

:root{
  /* Neutrals: slightly cooler, “research software” */
  --ink: #0b1220;          /* near-black */
  --muted: #445066;        /* slate */
  --muted2:#66738b;        /* lighter slate */
  --bg: #f6f8fb;           /* soft paper */
  --card: #ffffff;
  --line: rgba(11,18,32,0.10);

  /* Primary accent: controlled blue (less “startup neon”) */
  --primary: #1d4ed8;
  --primary-ink: #0b2a6f;

  /* Secondary accent: restrained teal for “measurement/trace” */
  --accent: #0f766e;

  /* Radii + shadow: Deneb-ish softness */
  --r-sm: 12px;
  --r: 18px;
  --shadow: 0 14px 40px rgba(2,6,23,0.08);
}

/* Global */
body{
  color: var(--ink);
  background: var(--bg);
}

/* Header logo */
.header-logo{
  width: 20%;
  min-width: 100px;
  height: auto;
  padding: 0;
  margin: 0;
}

/* Footer consortium strip */
.footer-consortium-img{
  width: 80%;
  height: auto;
}

/* Top nav: dark grey header */
.site-nav{
  background: rgba(30,34,42,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-nav .nav-link{
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus{
  color: #ffffff;
}
.site-nav .navbar-toggler{
  border-color: rgba(255,255,255,0.25);
}
.site-nav .navbar-toggler-icon{
  filter: invert(1);
}

/* Nav CTA button (light on dark) */
.btn-nav-cta{
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  border: none;
  border-radius: 8px;
}
.btn-nav-cta:hover{
  background: var(--primary);
  color: #ffffff;
}

/* Anchor offset for sticky header */
section[id]{
  scroll-margin-top: 80px;
}

/* HERO: lighten and reduce "paint spill" */
.hero{
  background:
    radial-gradient(1000px 420px at 10% 5%, rgba(29,78,216,0.10), transparent 60%),
    radial-gradient(900px 420px at 90% 0%, rgba(15,118,110,0.08), transparent 60%),
    #ffffff;
  border-bottom: 1px solid var(--line);
}

.hero .lead{
  color: var(--muted);
  max-width: 70ch;
}

/* Cards */
.soft-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* Deneb-like box edges for smaller items */
.border.rounded-3,
.border.rounded-4{
  border-color: var(--line) !important;
}

/* Icon badge */
.icon-badge{
  width:42px;
  height:42px;
  border-radius: 14px;
  background: rgba(29,78,216,0.10);
  display:grid;
  place-items:center;
  font-weight:700;
  color: var(--primary);
}

/* Section kicker */
.section-kicker{
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted2);
}

/* Typography tuning */
h1, h2, h3{
  letter-spacing: -0.02em;
}
.text-secondary{
  color: var(--muted) !important;
}

/* Buttons: remove neon, keep academic */
.btn-primary{
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover{
  background: #1e40af;
  border-color: #1e40af;
}
.btn-outline-secondary{
  color: var(--primary-ink);
  border-color: rgba(11,18,32,0.18);
}
.btn-outline-secondary:hover{
  background: rgba(29,78,216,0.06);
  border-color: rgba(29,78,216,0.25);
  color: var(--primary-ink);
}

/* Make “bg-light” less gray and more consistent with our bg */
.bg-light{
  background: var(--bg) !important;
}

/* Links: controlled */
a{
  color: var(--primary);
}
a:hover{
  color: #1e40af;
}

/* Improve spacing on mobile */
@media (max-width: 576px){
  .display-5{ font-size: 2.1rem; }
  .hero{ padding-top: 2rem; padding-bottom: 2rem; }
}
