/* Navigation: solid, flat, hairline rule. No blur, no glow. */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.nav-inner {
  max-width: var(--max-width, 1240px);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.brand-mark { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; font-weight: 500; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--ink);
  z-index: 999;
  padding: 16px 32px 40px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a:not(.btn) {
  display: block;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.mobile-menu a:not(.btn):hover,
.mobile-menu a:not(.btn).active { color: #fff; }
/* Menu button: wins over any generic ".mobile-menu a" rule, always centered */
.mobile-menu a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 32px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: #121212;
  background: #fff;
  border: 1px solid #fff;
}
.mobile-menu a.btn:hover { background: #b9bdc2; border-color: #b9bdc2; color: #121212; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}