html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.navbar {
  width: clamp(260px, 84vw, 420px);
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 14px);
  background: #fff7e6;
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.navbar__brand {
  color: #17141a;
  font-weight: 800;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1;
  flex: none;
}

.navbar__pill {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(23, 20, 26, 0.06);
  border-radius: 999px;
  padding: 4px;
}

.navbar__indicator {
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc(25% - 4px);
  border-radius: 999px;
  background: #2f6df6;
  animation: navSlide 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.navbar__item {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #17141a;
  font-weight: 600;
  font-size: clamp(9.5px, 2.3vw, 11.5px);
  line-height: 1;
  padding: clamp(6px, 1.6vw, 8px) 2px;
}

.navbar__cta {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  padding: clamp(7px, 1.8vw, 9px) clamp(12px, 2.6vw, 15px);
  font-weight: 700;
  font-size: clamp(9.5px, 2.3vw, 11.5px);
  line-height: 1;
}

@keyframes navSlide {
  0% {
    transform: translateX(0%);
  }
  12% {
    transform: translateX(0%);
  }
  25% {
    transform: translateX(100%);
  }
  37% {
    transform: translateX(100%);
  }
  50% {
    transform: translateX(200%);
  }
  62% {
    transform: translateX(200%);
  }
  75% {
    transform: translateX(300%);
  }
  87% {
    transform: translateX(300%);
  }
  100% {
    transform: translateX(0%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .navbar__indicator {
    animation: none !important;
    transform: translateX(0%);
  }
}
