/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: calc(24px + env(safe-area-inset-top)) var(--gutter) 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--duration-slow) var(--ease-out);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: all var(--duration-slow) var(--ease-out);
  pointer-events: none;
}

.nav.scrolled::before {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav.scrolled {
  padding: calc(16px + env(safe-area-inset-top)) var(--gutter) 16px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nav-logo-icon::after {
  content: 'U';
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--black);
  line-height: 1;
}

.nav-logo-icon .blue-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.05em;
}

.nav-logo-text span {
  color: var(--blue);
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  position: relative;
  z-index: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  transition: color var(--duration-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

/* CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.nav-cta .btn {
  padding: 10px 22px;
  font-size: 14px;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  position: relative;
  z-index: 1;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--duration-normal) var(--ease-out);
  display: block;
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}
