/* Matches index.html — site header only (scoped under .nav) */
:root {
  --void: #02040a;
  --cyan: #00f0ff;
  --blue: #0072ff;
  --t0: #ffffff;
  --t2: #a0b0c8;
  --t3: #5a6a85;
  --grad: linear-gradient(135deg, #00f0ff 0%, #00c6ff 50%, #0072ff 100%);
  --glow: 0 0 60px rgba(0, 240, 255, 0.25), 0 0 120px rgba(0, 114, 255, 0.15);
  --glow-sm: 0 0 30px rgba(0, 240, 255, 0.2);
  --b0: rgba(0, 240, 255, 0.2);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --nav-h: 84px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(2, 4, 10, 0.9);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--b0);
  height: 70px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}
.nav-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 3rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav .logo-shield {
  width: 42px;
  height: 42px;
  background: var(--grad);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-sm);
  position: relative;
  transition: 0.3s ease;
}
.nav .logo-shield::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: var(--grad);
  filter: blur(8px);
  opacity: 0;
  z-index: -1;
  transition: 0.3s ease;
}
.nav .logo:hover .logo-shield::after {
  opacity: 0.6;
}
.nav .logo-si {
  width: 32px;
  height: 32px;
  background: var(--void);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav .logo-s {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
}
.nav .logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav .logo-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--t0);
  letter-spacing: 0.5px;
  line-height: 1;
}
.nav .logo-name span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav .logo-sub {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--t3);
  text-transform: uppercase;
}
.nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav .nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--t2);
  border-radius: 8px;
  transition: 0.2s ease;
  position: relative;
}
.nav .nav-link:hover {
  color: var(--t0);
  background: rgba(255, 255, 255, 0.05);
}
.nav .nav-link.active {
  color: var(--cyan);
}
.nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 1.5px;
  background: var(--cyan);
  border-radius: 2px;
}
.nav-cta {
  padding: 10px 22px;
  background: var(--grad);
  color: var(--void);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 100px;
  transition: 0.3s ease;
  box-shadow: 0 4px 24px rgba(0, 114, 255, 0.35);
  margin-left: 8px;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}
.nav-mob {
  display: none;
  background: none;
  border: 1px solid var(--b0);
  color: var(--cyan);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav .nav-links {
    display: none;
  }
  .nav-wrap {
    padding: 0 1rem;
    gap: 0.5rem;
  }
  .nav .logo {
    min-width: 0;
    flex-shrink: 1;
  }
  .nav .logo-text {
    min-width: 0;
  }
  /* Keep CTA visible on mobile — same gradient pill as desktop, sized for narrow screens */
  .nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 14px;
    font-size: clamp(0.7rem, 2.6vw, 0.8125rem);
    font-weight: 700;
    line-height: 1.2;
    border-radius: 100px;
    min-height: 42px;
    box-shadow: 0 4px 22px rgba(0, 114, 255, 0.45);
    -webkit-tap-highlight-color: transparent;
  }
  .nav-mob {
    flex-shrink: 0;
    margin-left: 0.25rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .nav-cta {
    padding: 8px 10px;
    font-size: 0.68rem;
  }
}
