@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }

    .why-cards {
       display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        gap: 64px;
        /* align-content: space-evenly; */
        max-width: 960px;
        margin: 0 auto;
    }

    .hero {
       /* background: url('../image/HeroImage.png') no-repeat left center / cover; */
       background-position-x: right;
    }
}

@media (max-width: 1085px) {
    .container {
        max-width: 1441px;
    }
}

@media screen and (max-width: 810px) {
  .hero {
    align-items: flex-start; /* ✅ 왼쪽으로 정렬 */
    padding-top: 100px;
    background-position: 80% center;
  }

  .hero-content {
    padding-left: 24px;
    padding-right: 24px;
    text-align: left;
    align-items: flex-start;
    max-width: 600px;
  }

  .hero-content h2 {
    font-size: 48px;
  }

  .hero-content p {
    font-size: 32px;
    margin-bottom: -20px;
  }

  .store-buttons {
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start; /* ✅ 버튼도 왼쪽 정렬 */
  }

  .store-buttons img {
    height: 44px;
    width: auto;
  }
}

@media (max-width: 576px) {
    .br {
        display: block;
    }

    .plus-title {
        line-height: 140%;
        font-size: 28px;
    }
}

@media (max-width: 540px) {
    .download-image > img {
        max-width: 320px;
    }
}

@media (max-width: 409px) {
    .download-image > img {
        max-width: 210px;
    }

    .download-text .subtext {
        font-size: 18px;
    }

    .download-text h2 {
        font-size: 24px;
    }
}

@media (max-width: 402px) {
    .download-text {
        min-width: 100px;
    }
   .download-text h2 {
    font-size: 24px;
   }
}



/* 태블릿+모바일 */
@media (max-width: 810px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 20;
  }
  
  .main-nav ul {
    display: none;
    flex-direction: column;
    gap: 16px;
    background-color: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 64px;
    right: 24px;
    padding: 16px;
    border-radius: 8px;
  }

  .main-nav.open ul {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}



/* ========== 반응형 (모바일: 390px 이하) ========== */
@media screen and (max-width: 390px) {
  .hero {
    padding-top: 20px; /* 네비 여백 */
  }

  .hero-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .hero-content p {
    font-size: 24px;
    margin-bottom: -40px;
  }

  .store-buttons img {
    width: 120px;
    height: 32px;
  }

  .store-buttons {
    flex-direction: column; 
    /* align-items: flex-start;  */
    gap: 0;
  }  

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 8px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .why-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    background-color: #FAFAFA;
  }
}
/* 📱 태블릿 */
@media screen and (max-width: 810px) {
  .why-cards {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 64px;
  }

  .why-section {
    padding: 40px 16px;
  }

  .why-header h2 {
    color: #222;
    text-align: center;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%; /* 54.6px */
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    margin-top: 80px;
    }

  .why-header p {
    color: #424242;
    text-align: center;
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 180%; /* 32.4px */
    letter-spacing: -1px;
    margin-bottom: 60px;
  }


  .why-card h3 {
    font-size: 20px;     /* 기존보다 작게 */
    line-height: 1.5;
    color: #222;
    margin-bottom: -10px;
  }

  .why-card p {
    font-size: 18px;     /* 기존보다 작게 */
    line-height: 1.5;
    color: #666;
    display: block;
  }

}


/* 📱 모바일 */
@media screen and (max-width: 390px) {
  .why-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-card {
    flex: 0 0 auto;
    max-width: 200px;
    scroll-snap-align: start;
    background-color: #ffffff;
    border-radius: 24px;
    text-align: center;
  }

  .why-card h3 {
    font-size: 16px;     /* 기존보다 작게 */
    line-height: 1.5;
    color: #424242;
  }
  
  .why-card p {
    display: none;
  }

  .icon-wrapper img {
    height: 140px;
    width: 140px;
  }

  .why-header h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .why-header p {
    font-size: 16px;
    margin-bottom: -40px;
  }
}

@media (max-width: 810px) {
  .carousel-slide:nth-child(1) img {
    content: url("../carousel/Mobile_1.svg");
  }

  .carousel-slide:nth-child(2) img {
    content: url("../carousel/Mobile_2.svg");
  }

  .carousel-slide:nth-child(3) img {
    content: url("../carousel/Mobile_3.svg");
  }

  .carousel-slide:nth-child(4) img {
    content: url("../carousel/Mobile_4.svg");
  }

  .carousel-slide:nth-child(5) img {
    content: url("../carousel/Mobile_5.svg");
  }

  .carousel-slide img {
    width: auto;
    max-width: 90%;
  }

  .carousel-header h2 {
    font-size: 36px;
  }

  .carousel-header p {
    font-size: 22px;
  }
}

@media (max-width: 390px) {
  .carousel-slide img {
    max-width: 100%;
  }

  .carousel-header h2 {
    font-size: 24px;
  }

  .carousel-header p {
    font-size: 16px;
  }
}




@media (max-width: 810px) {
  .download-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .download-image {
    order: -1; /* 이미지가 텍스트보다 위에 오도록 */
    justify-content: center;
  }

  .download-text {
    order: 2;
  }

  .store-buttons img {
    margin: 10px;
  }

  .download-text .subtext {
    font-size: 22px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .download-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    font-weight: 600;
    line-height: normal;
  }

    .store-buttons {
    justify-content: center; /* ✅ 태블릿에서도 가운데 정렬되게 */
  }

}

/* 📱 모바일 */
@media (max-width: 390px) {
  .download-image {
    /* display: none; 모바일에서는 이미지 숨김 */
  }

  .download-text .subtext {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .download-text h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    font-weight: 600;
    line-height: normal;
  }

}

@media (max-width: 810px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ✅ 이 부분 수정! */
  .footer-brand-social {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

   .footer-slogan {
    text-align: left;
  }

  .footer-contact {
    flex-direction: column;
  }

  .footer-brand {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin-bottom: 40px;
}
  
}


@media (max-width: 390px) {
  .footer {
    text-align: left;
  }

  .footer-slogan {
    font-size: 16px;
}

  .footer-slogan .en {
    display: none;
  }

  .footer-contact {
    font-size: 14px;
  }

  .footer-brand {
    margin-bottom: 20px;

  .footer-brand-social {
    align-items: flex-start;
  }

  .footer-slogan,
  .footer-contact,
  .footer-bottom {
    text-align: left;
  }
}
}