.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--container-x);
  background: linear-gradient(to bottom, rgba(6, 9, 15, 0.85) 0%, rgba(6, 9, 15, 0.4) 60%, transparent 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease, background .25s ease;
}
.nav.scrolled {
  padding: 10px var(--container-x);
  background: rgba(6, 9, 15, 0.92);
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav-mark-dev { color: var(--fg-2); }
.nav-mark-sigil {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 5px;
  font-weight: 600;
  font-size: 11px;
  box-shadow: 0 0 18px -2px var(--accent);
  position: relative;
  overflow: hidden;
}
.nav-mark-sigil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.18;
  animation: scan 3.5s linear infinite;
}
@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--fg-1);
  position: relative;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--fg-0); background: rgba(255, 255, 255, 0.04); }
.nav-link-active { color: var(--accent); }
.system-online { color: #22c55e; }
.nav-link-num {
  color: var(--fg-3);
  margin-right: 6px;
  font-size: 10px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--bg-0);
  font-weight: 500;
  transition: transform .15s ease, box-shadow .25s ease;
  box-shadow: 0 0 0 0 rgba(0, 217, 255, 0);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px -4px rgba(0, 217, 255, 0.55);
}
.nav-cta::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bg-0);
  animation: pulse 1.6s ease-in-out infinite;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
}
