/* ═══════════════════════════════════════════════
   MILLIGRAM — Unified Navigation & Footer
   Shared across all pages. One file, one truth.
   ═══════════════════════════════════════════════ */

/* ─── NAV ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  background: rgba(10,10,15,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.site-header.hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #F0F0F8;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}
.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  color: rgba(238,238,242,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #F0F0F8;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: #00FF88;
  color: #0A0A0F;
  font-weight: 600;
  font-size: 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  opacity: 0.88;
  color: #0A0A0F;
  text-decoration: none;
}
.nav-cta svg { width: 14px; height: 14px; }

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-mobile-toggle span {
  display: block;
  height: 2px;
  background: #F0F0F8;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10,10,15,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-nav-overlay a {
  font-size: 20px;
  font-weight: 600;
  color: #F0F0F8;
  text-decoration: none;
}
.mobile-nav-overlay .nav-cta {
  margin-top: 16px;
  padding: 14px 36px;
  font-size: 16px;
  background: #00FF88;
  color: #0A0A0F;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0,255,136,0.15);
}

/* ─── FOOTER ─── */
.site-footer {
  padding: 48px 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.site-footer .footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 12px;
  color: #F0F0F8;
  text-decoration: none;
}
.site-footer .footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.site-footer .footer-tagline {
  font-size: 14px;
  color: rgba(238,238,242,0.55);
  max-width: 260px;
  line-height: 1.55;
}
.site-footer .footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(238,238,242,0.3);
  margin-bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
}
.site-footer .footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(238,238,242,0.55);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}
.site-footer .footer-col a:hover { color: #F0F0F8; }

.site-footer .footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(238,238,242,0.55);
  text-decoration: none;
  margin-top: 16px;
  transition: color 0.2s;
}
.site-footer .footer-social:hover { color: #F0F0F8; }
.site-footer .footer-social svg { width: 18px; height: 18px; }

.site-footer .footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.site-footer .footer-disclaimer {
  font-size: 11px;
  color: rgba(238,238,242,0.3);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta.desktop-only { display: none; }
  .nav-mobile-toggle { display: flex; }

  .site-footer .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .site-footer .footer-tagline { max-width: 100%; margin: 0 auto; }
  .site-footer .footer-col { display: none; }
  .site-footer .footer-links-inline {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    margin-bottom: 24px;
  }
  .site-footer .footer-links-inline a {
    font-size: 13px;
    color: rgba(238,238,242,0.55);
    text-decoration: none;
  }
  .site-footer .footer-links-inline a:hover { color: #F0F0F8; }
  .site-footer .footer-social { justify-content: center; }
}

/* ─── PRINT ─── */
@media print {
  .site-header,
  .mobile-nav-overlay,
  .site-footer { display: none !important; }
}
