/* ===========================
   NAVIGATION
=========================== */
#nav {
  position: fixed; top: 14px; left: 40px; right: 40px; z-index: 1000;
  height: 58px;
  display: flex; align-items: center;
  padding: 0 28px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035) 42%, rgba(255,107,26,0.08)),
    rgba(5, 2, 14, 0.22);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  transition: background 0.45s var(--ease-out), border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
#nav::before {
  content: none;
}
#nav::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 2px;
  height: 1px;
  z-index: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  opacity: 0.5;
  transition: opacity 0.45s var(--ease-out);
}
#nav.scrolled {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.055) 46%, rgba(255,107,26,0.075)),
    rgba(7, 3, 18, 0.46);
  border-color: rgba(255,255,255,0.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.24),
    inset 0 -1px 0 rgba(255,255,255,0.08);
}
#nav.scrolled::after {
  opacity: 0.72;
}
.nav-logo { height: 54px; flex-shrink: 0; }
.nav-logo img { height: 54px; width: auto; }
#nav > * { position: relative; z-index: 1; }
.nav-links {
  display: flex; gap: 32px;
  margin: 0 auto;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 14px; font-weight: 600;
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)),
    linear-gradient(90deg, rgba(107,31,184,0.75) 0%, rgba(255,107,26,0.76) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.26), 0 10px 28px rgba(0,0,0,0.16);
  transition: background-position 0.4s, box-shadow 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover {
  background-position: 100% 50%;
  border-color: rgba(255,255,255,0.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.34), 0 14px 34px rgba(255,107,26,0.2);
  transform: translateY(-1px);
}
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }
@media (max-width: 768px) {
  #nav { top: 12px; left: 14px; right: 14px; height: 58px; padding: 0 14px; border-radius: 16px; }
  #nav::after { left: 16px; right: 16px; top: 2px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }
}
.mobile-menu {
  position: fixed; top: 78px; left: 0; right: 0; z-index: 999;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
    rgba(6, 2, 18, 0.78);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0 0 20px 20px;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  padding: 24px 20px 32px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(-100% - 90px));
  transition: transform 0.4s var(--ease-out), opacity 0.25s ease, visibility 0s linear 0.4s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform 0.4s var(--ease-out), opacity 0.25s ease, visibility 0s;
}
.mobile-menu a {
  font-size: 18px; font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu a:hover { color: #fff; }
.mobile-menu .mobile-cta {
  margin-top: 16px;
  display: inline-block;
  text-align: center;
  font-size: 16px; font-weight: 600;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04)),
    linear-gradient(90deg, rgba(107,31,184,0.72), rgba(255,107,26,0.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 12px 28px rgba(0,0,0,0.18);
  color: #fff;
}

