/* Measr shared chrome — nav + footer. Single source. Edit here, not per-page. */

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5,8,16,0.85); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--primary-border);
  padding: 16px 0;
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo svg { filter: drop-shadow(0 0 8px rgba(59,130,246,0.4)); }
.nav-wordmark { font-size: 22px; font-weight: 800; background: var(--gradient-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gradient-primary); color: #fff !important; padding: 10px 24px;
  border-radius: 8px; font-weight: 700; font-size: 14px;
  transition: all 0.3s; border: none; cursor: pointer;
}
.nav-cta:hover { box-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow); transform: translateY(-1px); }

/* FOOTER */
footer {
  border-top: 1px solid var(--primary-border); padding: 40px 0; flex-shrink: 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand-text { font-size: 16px; font-weight: 700; background: var(--gradient-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--text-tertiary); font-size: 13px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-tertiary); }

/* MOBILE MENU */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid var(--primary-border);
  border-radius: 8px;
  cursor: pointer;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(5, 8, 16, 0.97);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--primary-border);
  padding: 80px 32px 32px;
  z-index: 105;
  transition: right 0.3s ease;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  display: block;
  padding: 16px 0;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--primary-border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu a.nav-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 32px;
  background: var(--gradient-primary);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  border-bottom: none;
}
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 104;
}
.mobile-overlay.open { display: block; }

/* RESPONSIVE (nav) */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
}
