/* ─────────────────────────────────────────
   CordexPilot — Shared Nav Styles
   Link in every page: <link rel="stylesheet" href="/nav.css">
───────────────────────────────────────── */

/* BASE NAV */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 20px 0;
  transition: background .35s, padding .35s, border-color .35s;
}

#nav.scrolled {
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 13px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 34px; height: 38px; }

.logo-wordmark {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #EEF3FF;
}
.logo-wordmark em {
  color: #54C5F8;
  font-style: normal;
}

/* DESKTOP LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(200, 215, 255, 0.42);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a:hover {
  color: #EEF3FF;
}

/* Active underline */
.nav-links a.active {
  color: #54C5F8;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: #54C5F8;
  border-radius: 1px;
}

/* CTA button */
.nav-links .nav-cta {
  background: #54C5F8 !important;
  color: #040810 !important;
  font-weight: 700 !important;
  padding: 9px 22px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  letter-spacing: 0.2px;
  transition: opacity .2s, transform .2s !important;
}
.nav-links .nav-cta:hover {
  opacity: .88;
  transform: translateY(-1px);
  color: #040810 !important;
}
.nav-links .nav-cta::after { display: none; }

/* HAMBURGER */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 201;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #EEF3FF;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* MOBILE DRAWER */
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 280px; height: 100vh;
  background: #0C1220;
  border-left: 1px solid rgba(255,255,255,0.07);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  z-index: 199;
  padding: 88px 28px 40px;
  display: flex;
  flex-direction: column;
}

.nav-drawer.open {
  transform: translateX(0);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-links a {
  display: block;
  text-decoration: none;
  color: rgba(200,215,255,0.6);
  font-size: 17px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  transition: background .2s, color .2s;
}

.drawer-links a:hover {
  background: rgba(255,255,255,0.04);
  color: #EEF3FF;
}

.drawer-links .drawer-cta {
  background: #54C5F8 !important;
  color: #040810 !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700 !important;
  margin-top: 12px;
  text-align: center;
  border-radius: 10px;
}
.drawer-links .drawer-cta:hover {
  opacity: .88;
  background: #54C5F8 !important;
  color: #040810 !important;
}

/* Overlay behind drawer */
.nav-drawer.open::before {
  content: '';
  position: fixed;
  inset: 0;
  right: 280px;
  background: rgba(0,0,0,0.5);
  z-index: -1;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 480px) {
  .nav-drawer { width: 100%; border-left: none; }
  .nav-drawer.open::before { display: none; }
}
