/* ───────────────────────────────────────
   FILE: css/nav.css
   PURPOSE: Fixed nav bar, brand mark, links, CTA, status dots, scroll progress,
            telemetry ticker, and nav glass surface.
   PART OF: Sentinel website stylesheet (split from css/styles.css)
   LAST UPDATED: 2026-06-05
   ─────────────────────────────────────── */

nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, padding .3s;
}
nav.scrolled {
  background: rgba(10,10,8,0.86);
  border-color: var(--border);
  backdrop-filter: blur(10px) saturate(120%);
  padding: 12px 32px;
}

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.36em;
  color: var(--accent);
  text-decoration: none;
}
.nav-brand-mark {
  width: 10px; height: 10px;
  background: var(--accent);
  display: inline-block;
  transform: rotate(45deg);
}
.nav-links {
  display: flex; gap: 32px;
  margin-left: 56px;
  flex: 1;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .15s;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  position: relative; overflow: hidden;
  transition: color .25s;
}
.nav-links a.nav-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .35s var(--ease-out);
  z-index: -1;
}
.nav-links a.nav-cta:hover { color: var(--bg); }
.nav-links a.nav-cta:hover::before { transform: translateY(0); }

.nav-status {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.nav-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s infinite;
}
.nav-sep { color: var(--border); }

.nav-progress {
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px;
}
.nav-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width .08s linear;
  box-shadow: 0 0 12px var(--accent);
}

@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.35 } }
.ticker {
  position: fixed;
  top: 56px;
  left: 0; right: 0;
  height: 26px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  z-index: 90;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.ticker-track {
  display: flex; gap: 48px;
  white-space: nowrap;
  padding: 6px 0;
  animation: tickerScroll 60s linear infinite;
  will-change: transform;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 8px; }
.ticker-track .tk-accent { color: var(--accent); }
.ticker-track .tk-sep { color: var(--border); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* nav diamond — slow rotate */
.nav-brand-mark {
  animation: navMarkRotate 14s linear infinite;
}
@keyframes navMarkRotate {
  from { transform: rotate(45deg); }
  to   { transform: rotate(405deg); }
}

/* nav-status-dot heartbeat — slightly more dramatic */
.nav-status-dot { animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat {
  0%, 60%, 100% { opacity: 1; transform: scale(1); }
  30%           { opacity: 0.35; transform: scale(0.75); }
  45%           { opacity: 1; transform: scale(1.1); }
}

/* ─── NAV GLASS SURFACE (Part 3) ────────────────────────── */
#nav {
  background: rgba(10, 10, 8, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
@supports not ((backdrop-filter: blur(1px)) or
               (-webkit-backdrop-filter: blur(1px))) {
  #nav { background: rgba(10, 10, 8, 0.95); }
}
