.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  /* 히어로 위에서는 반투명, 스크롤 후엔 흰 배경 */
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background var(--t-normal);
}

.nav.on-hero {
  background: rgba(255, 255, 255, 0.30);
  border-bottom-color: transparent;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav__logo img {
  height: 28px;
  width: auto;
}

.nav__logo-text {
  font-size: 15px;
  font-weight: 700;
  color: #8E91F3;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  padding: 6px 18px;
  border-radius: var(--r-full);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
  user-select: none;
}

.nav__link:hover:not(.nav__link--active) {
  background: rgba(0, 0, 0, 0.05);
}

/* Active state: selected.png 이미지를 배경으로 */
.nav__link--active {
  color: #ffffff !important;
  background-image: url('../images/common/selected.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* 히어로 위에서도 비활성 링크는 기본 텍스트색 유지 */
.nav.on-hero .nav__link:not(.nav__link--active) {
  color: var(--c-text);
}

.nav.on-hero .nav__link:hover:not(.nav__link--active) {
  background: rgba(0, 0, 0, 0.06);
}
