/* =====================================================
   Landing Page Components
   ===================================================== */

/* Hero Section */
.hero-section {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #002224;
  color: var(--color-text-white);
  padding: 80px 1rem 100px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* 세로가 짧은 화면 대응 */
@media (max-height: 700px) {
  .hero-section {
    padding: 70px 1rem 80px;
    justify-content: flex-start;
    padding-top: 100px;
  }
}

@media (max-height: 600px) {
  .hero-section {
    padding: 60px 1rem 70px;
    padding-top: 80px;
  }
}

/* Animated Background Orbs */
.hero-bg-orbs {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* JavaScript controlled random orbs */
.hero-orb-random {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.65;
  pointer-events: none;
  will-change: left, top, transform;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20;
  position: relative;
  margin-top: 50px;
  width: 100%;
}

.hero-logo {
  width: 350px;
  height: auto;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-logo {
    width: 400px;
  }
}

@media (min-width: 768px) {
  .hero-logo {
    width: 500px;
  }
}

@media (min-width: 1024px) {
  .hero-logo {
    width: 554px;
  }
}

/* 세로가 짧은 화면에서 로고 크기 축소 */
@media (max-height: 700px) {
  .hero-logo {
    width: 240px;
    margin-bottom: 0.5rem;
  }
}

@media (max-height: 600px) {
  .hero-logo {
    width: 200px;
    margin-bottom: 0.5rem;
  }
}

.hero-subtitle {
  font-size: var(--text-sm);
  font-weight: 300;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  max-width: 32rem;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: var(--text-base);
    margin-bottom: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: var(--text-lg);
  }
}

/* Hero Form */
.hero-form {
  padding-top: 50px;
  width: 100%;
  max-width: 375px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* 세로가 짧은 화면에서 폼 간격 조정 */
@media (max-height: 700px) {
  .hero-form {
    gap: 6px;
    max-width: 350px;
  }
}

@media (max-height: 600px) {
  .hero-form {
    gap: 4px;
    max-width: 320px;
  }
}

.hero-input-label {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.006em;
}

.hero-input-wrapper {
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 8px 20px;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--Color-white, #FFF);
  position: relative;
}

.hero-input-wrapper.focused {
  box-shadow: 0 0 0 4px #379599;
}

.hero-input-wrapper.error {
  box-shadow: 0 0 0 1px #F87171;
}

.hero-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #6AB0B3;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.006em;
  text-align: center;
  min-width: 0;
}

.hero-input:focus {
  outline: none;
}

.hero-input::placeholder {
  color: #6AB0B3;
}

.hero-input.has-value {
  color: #002224;
  font-weight: 500;
}

.hero-input-clear {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-input-clear img {
  width: 24px;
  height: 24px;
}

/* Hero Dropdown */
.hero-dropdown-container {
  position: relative;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  background: var(--color-mint-hover);
  border-radius: 999px 0 0 999px;
  margin: -8px -20px;
  padding-left: 20px;
}

.hero-dropdown-trigger {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 14px 0 0;
  background-color: transparent;
  border: none;
  border-right: 1px solid rgba(55, 149, 153, 0.25);
  white-space: nowrap;
}

.hero-dropdown-sublabel {
  font-size: 10px;
  font-weight: 400;
  color: #379599;
  letter-spacing: -0.006em;
}

.hero-dropdown-main {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Pretendard', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #002224;
}

/* Hero Autocomplete */
.hero-input-container {
  flex: 1;
  min-width: 0;
  display: flex;
}

.hero-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-height: 300px;
  overflow-y: auto;
}

.hero-autocomplete-loading {
  padding: 16px;
  text-align: center;
  color: #6B7280;
  font-size: 14px;
}

.hero-autocomplete-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid #F3F4F6;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hero-autocomplete-item:last-child {
  border-bottom: none;
}

.hero-autocomplete-item:hover,
.hero-autocomplete-item.highlighted {
  background-color: #F9FAFB;
}

.hero-autocomplete-title {
  font-family: 'Pretendard', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.hero-autocomplete-title b {
  color: #059669;
}

.hero-autocomplete-address {
  font-family: 'Pretendard', sans-serif;
  font-size: 12px;
  color: #6B7280;
}

.hero-input-hint {
  font-size: 14px;
  font-weight: 400;
  color: #CEE5E6;
  letter-spacing: -0.006em;
  margin: 10px;
  white-space: pre-line;
}

.hero-error {
  color: #f87171;
  font-size: var(--text-xs);
  text-align: center;
}

.hero-button {
  display: flex;
  height: 48px;
  padding: 11px 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  background-color: #AE72F9;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.006em;
  box-shadow: 0px 4px 24px 0px rgba(174, 114, 249, 0.4);
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  /* animation: button-glow 1.5s ease-in-out infinite; */
}

@keyframes button-glow {
  0%, 100% {
    box-shadow: 0px 4px 24px 0px rgba(174, 114, 249, 0.5);
  }
  50% {
    box-shadow: 0px 4px 28px 0px rgba(174, 114, 249, 0.8), 0px 0px 16px 0px rgba(166, 255, 234, 0.4);
  }
}

.hero-divider {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  color: var(--color-text-gray-300);
  font-size: 13px;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(55, 149, 153, 0.25);
}

.hero-manual-card {
  width: 100%;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--color-mint);
  background: rgba(15, 60, 60, 0.5);
  box-shadow: 0 0 12px rgba(55, 149, 153, 0.15), inset 0 0 20px rgba(55, 149, 153, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.hero-manual-card:hover {
  border-color: rgba(55, 149, 153, 1);
  box-shadow: 0 0 20px rgba(55, 149, 153, 0.3), inset 0 0 20px rgba(55, 149, 153, 0.06);
}

.hero-manual-card-title {
  display: block;
  width: 100%;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--color-mint);
  background: var(--color-mint-20);
  color: var(--color-mint);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.006em;
  text-align: center;
}

.hero-manual-button-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-gray-300);
  text-align: center;
  line-height: 1.7;
  white-space: pre-line;
  margin: 0;
}

.hero-button:hover {
  background-color: #9a5ef0;
  animation: none;
  box-shadow: 0px 4px 32px 0px rgba(174, 114, 249, 0.6);
}

.hero-button:active {
  transform: scale(0.98);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: opacity var(--transition-normal);
  cursor: pointer;
  background: none;
  border: none;
  color: #9BCACC;
  z-index: 10;
}

@media (min-width: 640px) {
  .scroll-indicator {
    bottom: 1rem;
  }
}

/* 세로가 짧은 화면에서 스크롤 인디케이터 조정 */
@media (max-height: 700px) {
  .scroll-indicator {
    bottom: 1rem;
    gap: 8px;
  }
}

@media (max-height: 600px) {
  .scroll-indicator {
    bottom: 0.5rem;
    gap: 4px;
  }

  .scroll-indicator-text {
    font-size: 10px;
  }

  .scroll-indicator-icon {
    width: 32px;
    height: 32px;
  }
}

.scroll-indicator:hover {
  opacity: 0.8;
}

.scroll-indicator-text {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.006em;
  color: #9BCACC;
}

.scroll-indicator-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #9BCACC;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* =====================================================
   Welcome Section Components
   ===================================================== */

/* Welcome Section */
.welcome-section {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: #002224;
  color: var(--color-text-white);
  padding: 0;
  position: relative;
}

.welcome-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6rem 1rem 6rem;
  position: relative;
}

/* Star Icon - centered above title */
.welcome-star {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
}

.welcome-star img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.welcome-header {
  text-align: center;
  margin-bottom: 3rem;
  z-index: 1;
}

@media (min-width: 768px) {
  .welcome-header {
    margin-bottom: 4rem;
  }
}

.welcome-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #E5F1F2;
  letter-spacing: -0.006em;
  line-height: 1.19;
}

@media (min-width: 640px) {
  .welcome-title {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .welcome-title {
    font-size: 2.5rem;
  }
}

.welcome-subtitle {
  color: #9BCACC;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.006em;
  line-height: 1.19;
}

@media (min-width: 640px) {
  .welcome-subtitle {
    font-size: var(--text-base);
  }
}

@media (min-width: 768px) {
  .welcome-subtitle {
    font-size: 1.5rem;
  }
}

/* Feature Cards Grid */
.feature-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 1144px;
  margin: 0 auto;
  z-index: 1;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .feature-grid {
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .feature-grid {
    flex-direction: row;
    gap: 24px;
    justify-content: center;
    padding: 0 1rem;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    gap: 32px;
    padding: 0;
  }
}

/* Feature Card */
.feature-card {
  position: relative;
  background-color: #01393B;
  border-radius: 40px;
  padding: 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  width: 100%;
  flex: 1;
}

@media (min-width: 768px) {
  .feature-card {
    flex: 1;
    max-width: 280px;
    min-height: 340px;
    padding: 24px 24px;
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .feature-card {
    max-width: 500px;
    min-height: 440px;
    padding: 24px 24px;
    gap: 16px;
  }
}

.feature-number-badge {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid #9BCACC;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .feature-number-badge {
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 1024px) {
  .feature-number-badge {
    width: 40px;
    height: 40px;
  }
}

.feature-number-badge span {
  font-size: 16px;
  font-weight: 600;
  color: #9BCACC;
  letter-spacing: -0.006em;
}

@media (min-width: 1024px) {
  .feature-number-badge span {
    font-size: 20px;
  }
}

.feature-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #E5F1F2;
  letter-spacing: -0.006em;
  line-height: 1.19;
}

@media (min-width: 768px) {
  .feature-card-title {
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  .feature-card-title {
    font-size: 24px;
  }
}

.feature-icon-box {
  width: 100px;
  height: 100px;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .feature-icon-box {
    width: 120px;
    height: 120px;
    border-radius: 36px;
  }
}

@media (min-width: 1024px) {
  .feature-icon-box {
    width: 160px;
    height: 160px;
    border-radius: 40px;
  }
}

.feature-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card-description {
  font-size: 14px;
  font-weight: 400;
  color: #E5F1F2;
  letter-spacing: -0.006em;
  line-height: 1.45;
  white-space: pre-line;
}

@media (min-width: 768px) {
  .feature-card-description {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .feature-card-description {
    font-size: 16px;
  }
}

/* Legacy feature-item styles (for backward compatibility) */
.feature-item {
  position: relative;
  background-color: #01393B;
  border-radius: 2.5rem;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .feature-item {
    width: 360px;
    min-height: 440px;
    padding: 1.5rem 2.5rem;
  }
}

.feature-number {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  border: 1px solid #9BCACC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #9BCACC;
  letter-spacing: -0.006em;
  line-height: 1.19;
}

.feature-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: #E5F1F2;
  letter-spacing: -0.006em;
  line-height: 1.19;
}

@media (min-width: 768px) {
  .feature-title {
    font-size: 1.5rem;
  }
}

.feature-icon {
  width: 160px;
  height: 160px;
  border-radius: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-description {
  color: #E5F1F2;
  font-size: var(--text-sm);
  line-height: 1.45;
  letter-spacing: -0.006em;
  white-space: pre-line;
}

@media (min-width: 768px) {
  .feature-description {
    font-size: var(--text-base);
  }
}

/* Welcome Button */
.btn-start {
  padding: 0.625rem 3rem;
  border-radius: var(--radius-full);
  background-color: #AE72F9;
  color: var(--color-text-white);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  margin: 0 auto;
  letter-spacing: -0.006em;
  line-height: 1.19;
}

@media (min-width: 768px) {
  .btn-start {
    padding: 0.75rem 3.5rem;
  }
}

.btn-start:hover {
  background-color: #9570f0;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(174, 114, 249, 0.3);
}

.btn-start:active {
  transform: scale(0.95);
}

/* Legacy buttons - keep for other sections */
.welcome-buttons {
  display: flex;
  gap: 1rem;
}

.btn-ghost {
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-gray-700);
  background-color: transparent;
  color: var(--color-text-white);
  font-weight: 700;
  font-size: var(--text-xs);
  transition: all var(--transition-normal);
  cursor: pointer;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .btn-ghost {
    font-size: var(--text-sm);
  }
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-cta {
  padding: 0.75rem 2.5rem;
  border-radius: var(--radius-full);
  background-color: var(--color-purple);
  color: var(--color-text-white);
  font-weight: 700;
  font-size: var(--text-xs);
  box-shadow: var(--shadow-purple);
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .btn-cta {
    font-size: var(--text-sm);
  }
}

@media (min-width: 768px) {
  .btn-cta {
    padding: 0.75rem 3.5rem;
  }
}

.btn-cta:hover {
  background-color: var(--color-purple-hover);
}

.btn-cta:active {
  transform: scale(0.95);
}

/* =====================================================
   Display Section Components
   ===================================================== */

/* Display Section */
.display-section {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: #002224;
  color: var(--color-text-white);
  position: relative;
  overflow: hidden;
}

.display-section .content-safe-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 16px 0 16px;
}

/* Display Frames Container */
.display-frames {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 72rem;
}

@media (min-width: 640px) {
  .display-frames {
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .display-frames {
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .display-frames {
    gap: 2rem;
  }
}

/* Display Frame - 가로 크기는 feature-card와 일치, 세로는 9:16 비율 */
.display-frame {
  display: flex;
  aspect-ratio: 9 / 16;
  border-radius: 2.5rem;
  overflow: hidden;
  position: relative;
  transition: all var(--transition-normal);
}

@media (min-width: 768px) {
  .display-frame {
    width: 280px;
  }
}

@media (min-width: 1024px) {
  .display-frame {
    width: 360px;
  }
}

.display-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.display-video {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 2.5rem;
  pointer-events: none;
}

.display-frame-hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .display-frame-hidden-mobile {
    display: flex;
  }
}

/* Legacy Video Frames - Keep for backward compatibility */
.video-frames {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 72rem;
}

@media (min-width: 640px) {
  .video-frames {
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  .video-frames {
    gap: 2.5rem;
    margin-bottom: 4rem;
  }
}

@media (min-width: 1024px) {
  .video-frames {
    gap: 3.5rem;
  }
}

/* Phone Frame */
.phone-frame {
  display: flex;
  width: 135px;
  aspect-ratio: 9/16;
  border-radius: 24px;
  background-color: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

@media (min-width: 640px) {
  .phone-frame {
    width: 190px;
    border-radius: 40px;
  }
}

@media (min-width: 768px) {
  .phone-frame {
    width: 230px;
    border-radius: 48px;
  }
}

@media (min-width: 1024px) {
  .phone-frame {
    width: 280px;
  }
}

.phone-frame.hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .phone-frame.hidden-mobile {
    display: flex;
  }
}

.phone-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.phone-video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180%;
  height: 100%;
  object-fit: cover;
}

.phone-bezel {
  position: absolute;
  inset: 0;
  border: 6px solid #20282b;
  border-radius: 24px;
  pointer-events: none;
  z-index: 20;
}

@media (min-width: 640px) {
  .phone-bezel {
    border-width: 10px;
    border-radius: 40px;
  }
}

@media (min-width: 768px) {
  .phone-bezel {
    border-radius: 48px;
  }
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 25%;
  height: 12px;
  background-color: #20282b;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 30;
  opacity: 0.8;
}

@media (min-width: 640px) {
  .phone-notch {
    height: 20px;
  }
}

/* Display Button */
.display-button {
  padding: 0.625rem 3rem;
  border-radius: var(--radius-full);
  background-color: #AE72F9;
  color: var(--color-text-white);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: -0.006em;
  line-height: 1.19;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .display-button {
    padding: 0.75rem 3.5rem;
  }
}

.display-button:hover {
  background-color: #9570f0;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(174, 114, 249, 0.3);
}

.display-button:active {
  transform: scale(0.95);
}

/* =====================================================
   Login Section Components
   ===================================================== */

/* Login Container */
.login-container {
  width: 100%;
  height: 100dvh;
  background-color: #002224;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-white);
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .login-container {
    padding: 1.5rem;
  }
}

/* Login Back Button */
.login-back-btn {
  position: absolute;
  top: 0.875rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid #694596;
  background-color: transparent;
  color: #CFABFB;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.006em;
  line-height: 1.19;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.login-back-btn img {
  width: 20px;
  height: 20px;
}

.login-back-btn:hover {
  background-color: rgba(105, 69, 150, 0.1);
  border-color: #8662C7;
}

.login-back-btn:active {
  transform: scale(0.95);
}

/* Login Content */
.login-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4rem;
  max-width: 600px;
}

@media (min-width: 768px) {
  .login-content {
    gap: 5rem;
  }
}

/* Login Logo */
.login-logo {
  width: 350px;
  height: auto;
}

@media (min-width: 768px) {
  .login-logo {
    width: 554px;
  }
}

.login-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Kakao Button */
.btn-kakao {
  width: 100%;
  max-width: 250px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-full);
  background-color: #FEE500;
  color: rgba(0, 0, 0, 0.85);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: 0;
  line-height: 1.19;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .btn-kakao {
    max-width: 296px;
    padding: 0.9375rem 1rem;
  }
}

.btn-kakao:hover {
  background-color: #FDDC00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(254, 229, 0, 0.3);
}

.btn-kakao:active {
  transform: scale(0.95);
}

.btn-kakao:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-kakao:disabled:hover {
  background-color: #FEE500;
  transform: none;
  box-shadow: none;
}

/* Login Error */
.login-error {
  color: #FF6B6B;
  font-size: 14px;
  text-align: center;
  padding: 12px 16px;
  background-color: rgba(255, 107, 107, 0.1);
  border-radius: 8px;
  margin-bottom: 16px;
  max-width: 296px;
  width: 100%;
}

/* Legacy styles - keep for backward compatibility */
.login-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--color-text-white);
}

@media (min-width: 640px) {
  .login-title {
    font-size: var(--text-4xl);
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 768px) {
  .login-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .login-title {
    font-size: 3.75rem;
  }
}

.login-subtitle {
  font-size: 9px;
  font-weight: 300;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

@media (min-width: 640px) {
  .login-subtitle {
    font-size: 10px;
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) {
  .login-subtitle {
    font-size: var(--text-xs);
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .login-subtitle {
    font-size: var(--text-sm);
  }
}

/* =====================================================
   Loading Section Components
   ===================================================== */

/* Loading Container */
.loading-container {
  width: 100%;
  height: 100vh;
  background-color: #002224;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-white);
  padding: 0 1.5rem;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  max-width: 600px;
}

/* Loading Logo */
.loading-logo {
  width: 300px;
  height: auto;
}

.loading-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Loading Section */
.loading-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.loading-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.006em;
  line-height: 1.19;
  color: #FFFFFF;
  text-align: center;
}

/* Loading Progress Bar */
.loading-progress-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  width: 240px;
}

.loading-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress-fill {
  height: 100%;
  background: #a6ffea;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.loading-progress-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

/* Loading Spinner Wrapper */
.loading-spinner-wrapper {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.loading-spinner-icon {
  width: 100%;
  height: 100%;
  animation: spin 2s linear infinite;
}

/* Legacy Loading Spinner - Keep for backward compatibility */
.loading-spinner {
  position: relative;
  margin-bottom: 2rem;
}

.loading-ring {
  width: 4rem;
  height: 4rem;
  border: 4px solid rgba(166, 130, 255, 0.2);
  border-top-color: var(--color-purple);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

.loading-dot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-dot-inner {
  width: 1rem;
  height: 1rem;
  background-color: var(--color-purple);
  border-radius: var(--radius-full);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  box-shadow: 0 0 15px var(--color-purple);
}

.loading-text {
  text-align: center;
}

.loading-text > * + * {
  margin-top: 0.5rem;
}

.loading-description {
  color: var(--color-text-gray-400);
  font-size: var(--text-sm);
  font-weight: 300;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@media (min-width: 640px) {
  .loading-description {
    font-size: var(--text-base);
  }
}

