
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(2, 9, 23, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

nav.scrolled {
  border-bottom-color: var(--border-hover);
  background: rgba(2, 9, 23, 0.95);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
  cursor: none;
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.7; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  text-decoration: none;
  cursor: none;
  transition: color 0.3s var(--ease);
  position: relative;
  opacity: 0.6;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue-bright);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.nav-links a:hover::after { width: 100%; }

.nav-links a.active {
  color: var(--text-primary);
  opacity: 1;
}

.nav-links a.active::after { width: 100%; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.3s, background 0.3s;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black-2);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: none;
  transition: color 0.25s;
}

.mobile-menu a:hover { color: var(--text-primary); }