/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-slow), border-color var(--transition-slow), backdrop-filter var(--transition-slow);
}

.nav.scrolled {
  background: rgba(2, 6, 23, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-16));
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}

.nav__logo-tag {
  font-size: 9px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: 450;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.nav__links a:hover { color: var(--text); }
.nav__links a.active { color: var(--cyan); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__menu-btn {
  display: none;
  padding: var(--space-2);
  color: var(--text-muted);
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }
  .nav__actions .btn-ghost { display: none; }
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(2, 6, 23, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

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

.nav-mobile a {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-mobile a:hover { color: var(--cyan); }
