.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 10, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.brand-mark {
  width: 38px;
  aspect-ratio: 1;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03)),
    linear-gradient(145deg, rgba(0, 166, 255, 0.18), rgba(255, 45, 85, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-blue), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 7px;
  border-radius: 999px;
}

.brand-mark::before {
  top: 8px;
  left: -10px;
  transform: rotate(-38deg);
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.brand-mark::after {
  bottom: 8px;
  left: -4px;
  transform: rotate(-38deg);
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a.is-active {
  color: #ffffff;
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 166, 255, 0.9), rgba(255, 45, 85, 0.55));
}

.nav-toggle {
  display: none;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  color: #ffffff;
}

@media (max-width: 860px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 4px;
  }

  .nav-links.is-open {
    display: flex;
  }
}
