.notfound {
  position: absolute;
  width: 100%;
  top: 25vh;
  text-align: center;
  padding: 0 20px;
}
/* 모바일용 로고와 404 텍스트 */
.notfound__visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.logo {
  max-width: 280px;
  height: auto;
  margin-bottom: 20px;
  opacity: 0.9;
  animation: logoFloat 3s ease-in-out infinite alternate;
}

.error-code {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
}

.digit {
  font-size: 80px;
  font-weight: 800;
  color: #007bff;
  letter-spacing: -1px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: digitPulse 2s ease-in-out infinite alternate;
}

.digit:nth-child(1) {
  animation-delay: 0s;
}

.digit:nth-child(2) {
  animation-delay: 0.3s;
}

.digit:nth-child(3) {
  animation-delay: 0.6s;
}

/* 애니메이션 키프레임 */
@keyframes logoFloat {
  0% {
    transform: translateY(0);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@keyframes digitPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* 애니메이션 정지 클래스 */
.animations-complete .logo {
  animation: none;
  transform: translateY(-3px);
  opacity: 1;
}

.animations-complete .digit {
  animation: none;
  transform: scale(1);
  opacity: 1;
}
.notfound__title {
  font-size: 18px;
  margin-top: 20px;
}
.notfound__content {
  color: var(--gray500);
  font-size: 12px;
  margin-top: 10px;
}
.notfound__button {
  margin-top: 45px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* 네이버 검색 안내 박스 (모바일 버전) */
.search-info {
  background: #f7f7f7;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  border-radius: 5px;
  text-align: left;
}

.search-info__content {
  flex: 1;
}

.search-info p {
  font-size: 12px;
  color: #000;
  line-height: 18px;
  letter-spacing: -0.02em;
  margin: 0;
}

.search-info p strong {
  color: #007bff;
}

/* Apple-style Animations (Mobile Optimized) */
@keyframes slideUpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-slide-up {
  animation: slideUpFadeIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
  will-change: transform, opacity;
}

/* 순차적 등장 애니메이션 */
.notfound__visual.animate-slide-up {
  animation-delay: 0.1s;
}

.notfound__title.animate-slide-up {
  animation-delay: 0.3s;
}

.notfound__content.animate-slide-up {
  animation-delay: 0.5s;
}

.search-info.animate-slide-up {
  animation-delay: 0.7s;
}

.notfound__button.animate-slide-up {
  animation-delay: 0.9s;
}

/* 터치 친화적 버튼 애니메이션 */
.btn-animate {
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(0);
  will-change: transform;
}

.btn-animate:active {
  transform: translateY(1px) scale(0.98);
  transition: all 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 검색 안내 박스 터치 효과 */
.search-info {
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid transparent;
  will-change: transform;
}

.search-info:active {
  background: #f0f4ff;
  border: 1px solid #e3f2fd;
  transform: scale(0.98);
}

/* 부드러운 페이지 로드 */
body {
  animation: fadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* GPU 가속 최적화 */
.animate-slide-up,
.btn-animate,
.search-info {
  backface-visibility: hidden;
  perspective: 1000px;
}
