/* NAV — fixed bar, scroll progress, mobile overlay */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  transition: background 0.3s ease, border-color 0.3s ease;
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(12px);
}

/* Scroll behavior (required): nav.scrolled */
nav {
  transition: background 400ms ease, backdrop-filter 400ms ease;
}

nav.scrolled {
  background: rgba(7, 7, 10, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  width: 8rem;
  flex-shrink: 0;
}

.nav-center {
  display: none;
  align-items: center;
  position: relative;
  height: 100%;
}

@media (min-width: 768px) {
  .nav-center { display: flex; }
}

.nav-items {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

.nav-items a {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}
.nav-items a:hover { color: #fff; }

.nav-pill {
  position: absolute;
  height: 32px;
  background: var(--bg-raised);
  border: 1px solid var(--border-active);
  border-radius: 9999px;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-right {
  display: none;
  width: 8rem;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-right { display: flex; }
}

#nav-clock {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-dim);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  transition: border-color 0.2s ease;
}
.nav-cta:hover { border-color: var(--fire); }

.nav-cta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fire);
}

.nav-toggle {
  z-index: 50;
  width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}

.scroll-progress-wrap {
  position: fixed;
  top: 64px;
  left: 0;
  height: 1px;
  width: 100%;
  background: var(--border);
  z-index: 40;
}

.scroll-progress {
  height: 100%;
  background: var(--fire);
  width: 0%;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-void);
  z-index: 40;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.mobile-nav-overlay.is-open {
  display: flex;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--ink);
  transition: color 0.2s ease;
}
.mobile-nav-link:hover { color: var(--fire); }
