:root {
  --primary: #005DDB;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background: #fff;
  color: #0f172a;
}

@media (max-width: 1023px) {
  html, body {
    overflow-y: auto !important;
    height: auto !important;
  }
}

/* ==============================
   PC / 모바일 전환 핵심 로직
   기준: 1024px
============================== */

/* 기본: PC 숨기고 모바일 보이기 */
.pc-version {
  display: none;
}
.mobile-version {
  display: block;
}

.pc-only {
  display: none;
}
@media (min-width: 1024px) {
  .pc-only {
    display: block;
  }
}

/* 1024px 이상: PC 보이고 모바일 숨기기 */
@media (min-width: 1024px) {
  .pc-version {
    display: block;
  }
  .mobile-version {
    display: none;
  }
}

/* ==============================
   이미지 섹션 공통
============================== */
.img-section {
  width: 100%;
  height: 100vh;
  line-height: 0; /* 이미지 아래 공백 제거 */
  overflow: hidden;
}

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

@media (max-width: 1023px) {
  .img-section {
    height: auto;
    background: #fff;
  }

  .img-section img {
    width: 100%;
    height: auto;
    object-fit: unset;
  }
}

.footer-section {
  height: auto; /* 자동 높이 */
}

.footer-section img {
  object-fit: unset; /* cover 덮어쓰기 */
  height: auto;
}

/* ==============================
   Header
============================== */
header {
  display: none; /* 모바일 기본: 숨김 */
}


@media (min-width: 1024px) {
  header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 65%);
    transition: background 0.3s ease;
  }
}

.hero-header .container.nav {
  display: flex;
  align-items: center;
  padding: 25px;
  padding-left: 100px;
  gap: 20px;
}

.hero-header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin-left: 30px;
  font-size: 15px;
  transition: color 0.3s ease;
}


.hero-header.scrolled nav a {
  color: var(--primary);
}

.brand-logo {
  height: 28px;
  width: auto;
}

/* ==============================
   Footer
============================== */
.footer {
  background: #000;
  color: #fff;
  padding: 32px 20px 24px;
}

.footer-text {
  display: flex;
  align-items: center;
  font-size: 12px;
  gap: 10px;
  margin-bottom: 40px;
  color: white;
}

.footer-line {
  flex: 1;
  height: 1px;
  border-top: 0.5px dashed rgba(255,255,255,0.4);
}

.insta-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.insta-link i {
  font-size: 28px;
  color: #fff;
}

.footer-logo {
  display: block;
  margin: 0 auto 16px;
  width: 100px;
}

.footer-divider {
  width: 90%;
  border: none;
  border-top: 1px solid #444;
  margin: 0 auto 12px;
}

.footer-copy {
  font-size: 10px;
  color: #bbb;
  text-align: center;
}

/* ==============================
   리뷰 캐러셀
============================== */
.carousel-section {
  background: #005DDB;
  padding: 60px 0;
  overflow: hidden;
}

.carousel-section {
  display: none; /* 모바일 기본: 숨김 */
  background: #005DDB;
  padding: 60px 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .carousel-section {
    display: block; /* PC에서만 표시 */
  }
}
 
.carousel-wrapper {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
 
.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: carousel-scroll 20s linear infinite;
  padding: 0 20px;
}

/* 카드 3개 기준. 카드 추가 시:
   카드 너비(300px) + gap(20px) = 320px
   3개 → 320*3=960 / 4개 → 320*4=1280 으로 변경 */
@keyframes carousel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-520px * 3)); }
}
 
.carousel-card {
  flex-shrink: 0;
  width: 44vw;
  height: 24vw;
}
 
.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.carousel-overlay-section {
  display: none;
}
@media (min-width: 1024px) {
  .carousel-overlay-section {
    display: block;
    position: relative;
  }
}
.carousel-overlay-section .carousel-wrapper {
  position: absolute;
  bottom: 20%;
  left: 0;
  width: 100%;
}

/* =====================
    다운로드 버튼
=======================*/

.fixed-download {
  display: flex; /* 모바일도 표시 */
  position: fixed;
  bottom: 30vw;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}


@media (min-width: 1024px) {
  .fixed-download {
    display: flex;
    position: fixed;
    bottom: 3vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
  }
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  background: #fff;
  color: #005DDB;
  width: 70vw;
  height: 11vw;
  font-weight: 700;
  font-size: 21px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 93, 219, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
 
@media (min-width: 1024px) {
  .download-btn {
    width: 18vw;
    height: 4vw;
    font-size: 24px;
  }
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 93, 219, 0.35);
}

/* ==============================
   스토어 선택 팝업
============================== */
.store-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
}
 
.store-popup.show {
  display: flex;
}
 
.store-popup a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: #005DDB;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s ease;
}
 
.store-popup a:hover {
  background: #f0f4ff;
}
 
.store-popup i {
  font-size: 18px;
}
 