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

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    sans-serif;
  background-color: #1d1d1d;
  color: white;
  overflow-x: hidden;
}

.pc-wrapper {
  min-height: 100vh;
  width: 100%;
  background-color: #1d1d1d;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 48px;
  box-sizing: border-box;
}

.mobile-wrapper {
  display: none; /* 기본적으로 숨김 (PC 우선) */
  min-height: 100vh;
  width: 100%;
  background-color: #1d1d1d;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative; /* Ensure z-index works */
}

.hero-layout {
  --left-column-width: 505px;
  --hero-gap: 0px; /* 갭 없이 붙어서 중앙 정렬 */
  --phone-width: 360px;
  --phone-shell-height: 742px;
  --phone-height: 742px;
  --phone-shadow-offset: 8px;
  --carousel-offset: 8px;
  --poster-offset: 8px;
  --gradient-offset: 8px;
  --poster-width: 347px;
  --poster-height: 726px;
  --poster-gap: 12px;
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  min-height: 900px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--hero-gap);
  padding-top: 80px; /* 페이지 상단 여백 */
}

/* Left Section Container (피그마 기준) */
.left-section {
  flex: 0 0 auto;
  width: var(--left-column-width);
  display: flex;
  flex-direction: column;
  padding: 0;
  align-items: flex-start;
  z-index: 10;
}

/* Main Title - 로고 위 */
.main-title {
  font-size: 21px;
  font-weight: 600; /* 700 -> 600 (SemiBold) 수정 */
  letter-spacing: -1.05px;
  line-height: normal;
  width: 505px; /* Figma Width 적용 */
  margin-bottom: 6px; /* 로고와의 간격 6px */
  color: #ffffff; /* 색상 명시 */
}

.main-title span.highlight {
  color: #ff9408;
}

/* Logo - 피그마: y=463 */
.logo {
  margin-bottom: 0px; /* 피그마: y463(h68) -> y531 (gap 0) */
  width: 336px;
}

.logo img {
  width: 100%;
  height: auto;
}

/* Store Buttons - 피그마: y=531 */
.store-buttons {
  display: flex;
  gap: 10px;
  padding: 23px 0; /* 상하 패딩 23px */
  margin-bottom: 36px; /* QR 섹션과의 간격 36px */
}

.store-btn {
  width: 170px; /* 피그마 기준 170px */
  height: 64px;
  background-color: #0d0d0d;
  border-radius: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  overflow: hidden;
}

.store-btn img {
  width: auto;
  height: 26px; /* 내부 이미지 크기 조정 */
}

/* QR Section - 피그마: y=677 */
.qr-section {
  display: flex;
  gap: 30px; /* 피그마: QR과 텍스트 사이 */
  align-items: center;
  margin-bottom: 230px; /* 피그마: y677(h120) -> y1027 (gap 230) */
}

.qr-code {
  width: 120px; /* 피그마 기준 */
  height: 120px;
  background-color: #ffffff; /* 배경색 흰색 변경 */
  border-radius: 20px;
  overflow: hidden;
  padding: 6px; /* 90% 크기로 맞추기 위한 패딩 */
}

.qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-text {
  font-size: 14px;
  line-height: 22px;
  font-weight: 500; /* Medium */
  letter-spacing: -0.7px;
  width: auto;
}

.qr-text .bold-text {
  font-size: 22px;
  font-weight: 700; /* Bold */
  line-height: 36px;
  display: block;
  margin-top: 0; /* 텍스트 줄바꿈 자연스럽게 */
}

/* Social Links - 피그마: y=1027 */
.social-links {
  margin-top: 0;
  width: 272px; /* 피그마 기준 */
  display: flex;
  align-items: center;
  opacity: 0.5;
  margin-bottom: 34px; /* 피그마: y1027(h23) -> y1084 (gap 34) */
}

.social-track {
  width: 100%; /* 부모 너비(272px)에 맞춤 */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.social-links a {
  height: 23px; /* 아이콘 높이에 맞춤 */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-links img {
  width: auto;
  height: 23px; /* 피그마 기준 높이 23px */
  object-fit: contain;
}

.social-divider {
  width: 1px;
  height: 15px; /* 피그마 기준 높이 15px */
  background-color: rgba(255, 255, 255, 1);
  flex-shrink: 0;
}

/* Right Section - Carousel */
.right-section {
  position: relative;
  flex: 0 0 var(--phone-width);
  width: var(--phone-width); /* 스마트폰 실측 폭 */
  height: var(--phone-height);
  overflow: visible; /* 포스터 우측 오버플로우 노출 */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 44px; /* 피그마 기준 상단 추가 패딩 */
}

.phone-shell {
  position: relative;
  width: var(--phone-width);
  height: var(--phone-height);
  overflow: visible; /* 폰 프레임이 잘리지 않도록 */
  margin: 0 auto;
  z-index: 10; /* 배경 포스터보다 훨씬 높게 */
}

.poster-overflow {
  position: absolute;
  top: 129px; /* 8px + 121px (상단 블러 영역) */
  left: 356px; /* 폰 프레임(360px) + 10px 간격 */
  width: 1394px; /* 피그마 Frame 1 폭 */
  height: 484px; /* 메인 캐러셀과 동일 */
  overflow: hidden; /* 왼쪽 부분 클리핑 */
  pointer-events: none;
  z-index: 1;
}

.poster-overflow-left {
  position: absolute;
  top: 129px; /* 8px + 121px */
  right: 370px; /* 폰 프레임(360px) + 10px 간격 */
  width: 300px; /* 피그마 기준: Frame 1 시작(1166) ~ Phone 시작(1467) 차이 약 301px */
  height: 484px;
  overflow: hidden; /* 오른쪽 부분 클리핑 */
  pointer-events: none;
  z-index: 1;
}

/* Phone Frame - 정확한 피그마 위치 */
.phone-mockup {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--phone-width);
  height: var(--phone-height);
  z-index: 5;
  pointer-events: none;
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Phone Shadow */
.phone-shadow {
  position: absolute;
  left: 11px;
  top: 8px;
  width: 338px;
  height: 726px;
  background-color: #0d0d0d;
  border-radius: 72px;
  box-shadow: 10px 10px 70px 0px rgba(0, 0, 0, 0.75);
  z-index: 3;
}

/* Carousel Container - 폰 내부 중앙 484px */
.carousel-container {
  position: absolute;
  left: 6px;
  top: 8px;
  width: 347px;
  height: 726px;
  overflow: hidden;
  border-radius: 60px;
  z-index: 4;
}

/* 블러 이미지 영역 (상단) */
.blur-track-top {
  position: absolute;
  left: 0;
  top: 0;
  width: 347px;
  height: 116px; /* 121px -> 116px */
  display: flex;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
  z-index: 1;
}

.blur-slide-top {
  min-width: 347px;
  width: 347px;
  height: 116px; /* 121px -> 116px */
  flex-shrink: 0;
  position: relative;
}

.blur-slide-top img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 726px;
  object-fit: cover;
  filter: blur(15px);
}

/* 블러 이미지 영역 (하단) */
.blur-track-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 347px;
  height: 116px; /* 121px -> 116px */
  display: flex;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
  z-index: 1;
}

.blur-slide-bottom {
  min-width: 347px;
  width: 347px;
  height: 116px; /* 121px -> 116px */
  flex-shrink: 0;
  position: relative;
}

.blur-slide-bottom img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 726px;
  object-fit: cover;
  filter: blur(15px);
}

/* 메인 캐러셀 트랙 (중앙 494px) */
.carousel-track {
  position: absolute;
  top: 116px; /* 121px -> 116px */
  left: 0px;
  display: flex;
  height: 494px; /* 484px -> 494px */
  transition: transform 0.6s ease-in-out;
  will-change: transform;
  z-index: 2;
}

.carousel-slide {
  min-width: 347px;
  width: 347px;
  height: 494px; /* 484px -> 494px */
  flex-shrink: 0;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Background Posters - 좌측 (이전 슬라이드) - PC */
.bg-posters-left {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  /* gap: var(--poster-gap); 제거 */
  z-index: 1;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
  justify-content: flex-end;
}

/* Background Posters - 우측 (다음 슬라이드) - PC */
.bg-posters-right {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  /* gap: var(--poster-gap); 제거 */
  z-index: 1;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

/* 모바일용 배경 포스터 - 기본 숨김 */
.bg-posters-left-mobile,
.bg-posters-right-mobile {
  display: none;
}

/* 공통 bg-poster 스타일 (기본) */
.bg-poster {
  width: 347px;
  opacity: 0.4;
  filter: brightness(0.6) grayscale(100%);
  flex-shrink: 0;
}

/* 좌측 배경 포스터 개별 스타일 */
.bg-posters-left .bg-poster {
  height: 484px; /* 기본 높이 */
}

/* 우측 배경 포스터 개별 스타일 */
.bg-posters-right .bg-poster {
  height: 484px; /* 기본 높이 */
}

.bg-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient Overlay - 우측에서 좌측으로 페이드아웃 */
.gradient-overlay {
  position: absolute;
  right: 0;
  top: 0;
  width: 400px;
  height: 484px;
  background: linear-gradient(to left, #1d1d1d 0%, transparent 100%);
  pointer-events: none;
  z-index: 4;
}

/* 좌측 배경용 그라데이션 (좌측에서 우측으로) */
.gradient-overlay-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 300px;
  height: 484px;
  background: linear-gradient(to right, #1d1d1d 0%, transparent 100%);
  pointer-events: none;
  z-index: 4;
}

/* Footer - 독립 배치 -> Flex Item (소셜 아래 24px 근사치) */
.footer {
  margin-top: 0;
  width: 100%;
}

.footer-info {
  font-size: 16px;
  letter-spacing: -0.4px;
}

.footer-links {
  display: flex;
  gap: 18px;
  margin-bottom: 15px; /* Figma gap 15px */
  font-weight: 500;
  color: #b6b6b6;
  font-size: 14px;
  letter-spacing: -0.35px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

.footer-contact {
  font-weight: 500; /* Figma: Medium */
  color: #b6b6b6;
  margin-bottom: 15px; /* Figma gap 15px */
  font-size: 14px;
  letter-spacing: -0.35px;
}

.footer-company {
  font-size: 12px;
  color: #777777;
  line-height: 18px;
  font-weight: 400; /* Regular */
  letter-spacing: -0.3px;
}

/* Mobile Styles */
@media (max-width: 1280px) {
  /* 모바일 스크롤바 숨김 (강력 적용) */
  html, body, .mobile-wrapper {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
  
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  .mobile-wrapper::-webkit-scrollbar {
    display: none;
    width: 0 !important;
    height: 0 !important;
    background: transparent; /* Chrome/Safari/Webkit */
    -webkit-appearance: none;
  }

  .pc-wrapper {
    display: none;
  }
  .mobile-wrapper {
    display: flex;
  }
  /* Main Title */
  .main-title-mobile {
    font-size: 28px; /* Figma 값 그대로 28px */
    font-weight: 700;
    letter-spacing: -1.4px; /* Figma 값 그대로 -1.4px */
    line-height: 36px;
    text-align: center;
    margin-bottom: 11px; /* 10.78px -> 11px */
    width: 100%;
    margin-top: 150px;
    padding: 0 20px;
  }
  .main-title-mobile span.highlight {
    color: #ff9408;
  }

  /* Logo */
  .logo-mobile {
    margin-bottom: 84px; /* 정밀 계산 유지 */
    display: flex;
    justify-content: center;
  }
  .logo-mobile img {
    width: 423px; /* Figma 메타데이터 값 423px 그대로 적용 */
    max-width: 100%; /* 화면 밖으로 나가는 것 방지 */
    height: auto;
  }

  /* Store Buttons */
  .store-buttons-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 200px; /* Figma 구조 반영: 높이 200px 컨테이너 */
    justify-content: center; /* 내부 버튼 중앙 정렬 */
    margin-bottom: 62px; /* 컨테이너 끝(823px) ~ Phone(885px) 간격: 62px */
    align-items: center;
    width: 100%;
  }
  .store-btn-mobile {
    width: 360px; /* Figma 값 그대로 360px */
    max-width: 100%;
    height: 84px; /* Figma 값 그대로 84px */
    background-color: #0d0d0d;
    border-radius: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
  }
  .store-btn-mobile img {
    height: 40px; /* 원복 */
    width: auto;
  }

  /* Phone Section */
  .phone-section-mobile {
    position: relative;
    width: 100%;
    max-width: 426px;
    height: 878px; /* 폰 높이 */
    margin-bottom: 128px; /* Figma 데이터 정밀 계산값 복구: 128px */
    display: flex;
    justify-content: center;
    transform: scale(0.85); /* 폰이 너무 커서 배경이 안 보이므로 85% 축소 */
    transform-origin: top center;
  }

  .phone-shell-mobile {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 10;
  }

  .phone-mockup-mobile {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 426px;
    height: 878px;
    pointer-events: none;
    z-index: 5;
  }
  .phone-mockup-mobile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .phone-shadow-mobile {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 410px;
    height: 860px;
    background-color: #0d0d0d;
    border-radius: 72px;
    box-shadow: 10px 10px 70px 0px rgba(0, 0, 0, 0.75);
    z-index: 3;
  }

  .carousel-container-mobile {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 411px;
    height: 859px;
    overflow: hidden;
    border-radius: 70px;
    z-index: 4;
  }

  /* 모바일 상단 블러 트랙 - z-index 1 (가장 뒤) */
  .blur-track-top-mobile {
    position: absolute;
    left: 0;
    top: 0;
    width: 411px;
    height: 143px;
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
    z-index: 1;
  }

  .blur-slide-top-mobile {
    min-width: 411px;
    width: 411px;
    height: 143px;
    flex-shrink: 0;
    position: relative;
  }

  .blur-slide-top-mobile img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 859px;
    object-fit: cover;
    filter: blur(15px);
  }

  /* 모바일 하단 블러 트랙 - z-index 1 (가장 뒤) */
  .blur-track-bottom-mobile {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 411px;
    height: 143px;
    display: flex;
    transition: transform 0.6s ease-in-out;
    will-change: transform;
    z-index: 1;
  }

  .blur-slide-bottom-mobile {
    min-width: 411px;
    width: 411px;
    height: 143px;
    flex-shrink: 0;
    position: relative;
  }

  .blur-slide-bottom-mobile img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 859px;
    object-fit: cover;
    filter: blur(15px);
  }

  /* 모바일 메인 캐러셀 트랙 - z-index 2 (블러 위에) */
  .carousel-track-mobile {
    position: absolute;
    top: 143px;
    left: 0;
    display: flex;
    height: 573px;
    transition: transform 0.6s ease-in-out;
    z-index: 2;
  }

  .carousel-slide-mobile {
    min-width: 411px;
    width: 411px;
    height: 573px;
    flex-shrink: 0;
  }
  .carousel-slide-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Background Posters Mobile */
  .bg-posters-mobile-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    overflow: visible;
    width: 100vw;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* z-index 복구 */
  }

  /* Mask Wrapper Styles */
  .mobile-poster-mask-left {
    position: absolute;
    top: 181px;
    right: 50%;
    margin-right: 180px; /* 폰 축소 고려 180px */
    width: 1000px;
    height: 515px;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
  }

  .mobile-poster-mask-right {
    position: absolute;
    top: 181px;
    left: 50%;
    margin-left: 180px; /* 폰 축소 고려 180px */
    width: 1000px;
    height: 515px;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
  }

  /* Track Styles (Inside Mask) */
  .bg-posters-left-mobile {
    position: absolute; /* 절대 위치로 변경 */
    top: 0;
    right: 0; /* 마스크 오른쪽(폰 옆)에 고정 */
    width: auto;
    display: flex;
    flex-direction: row-reverse; /* 이미지 순서 역순 (폰 쪽이 1번) */
    /* gap: 12px; 제거 */
  }

  .bg-posters-right-mobile {
    position: absolute;
    top: 0;
    left: 0; /* 마스크 왼쪽(폰 옆)에 고정 */
    width: auto;
    display: flex;
    /* gap: 12px; 제거 */
  }
  .bg-poster-mobile {
    width: 367px;
    height: 515px; /* 피그마 기준 */
    opacity: 0.4;
    filter: brightness(0.6) grayscale(100%); /* 완전 흑백 */
    flex-shrink: 0;
  }
  .bg-poster-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gradient-overlay-mobile {
    position: absolute;
    top: 181px; /* 배경 포스터와 동일 */
    left: 50%;
    transform: translateX(-50%);
    width: 1500px;
    height: 515px;
    background: linear-gradient(
      90deg,
      #1d1d1d 0%,
      rgba(29, 29, 29, 0) 30%,
      rgba(29, 29, 29, 0) 70%,
      #1d1d1d 100%
    );
    z-index: 2;
  }

  /* Social Links */
  .social-links-mobile {
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0.5;
    margin-bottom: 46px; /* Footer(y=1960)까지 간격 조정 */
  }
  .social-track-mobile {
    width: 272px; /* 피그마 기준 */
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .social-links-mobile a {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .social-links-mobile a img {
    height: 23px; /* 피그마 기준 */
    width: auto;
  }
  .social-divider-mobile {
    width: 1px;
    height: 15px; /* 피그마 기준 */
    background-color: white;
  }

  /* Footer */
  .footer-mobile {
    width: 100%;
    text-align: center;
    padding-bottom: 40px;
  }
  .footer-links-mobile {
    display: flex;
    justify-content: center;
    gap: 18px; /* 24px -> 18px */
    margin-bottom: 15px; /* 20px -> 15px */
    font-weight: 500; /* 600 -> 500 */
    color: #b6b6b6;
    font-size: 14px;
    letter-spacing: -0.35px;
  }
  .footer-links-mobile a {
    color: inherit;
    text-decoration: none;
  }
  .footer-contact-mobile {
    font-weight: 500; /* 600 -> 500 */
    color: #b6b6b6;
    margin-bottom: 15px; /* 20px -> 15px */
    font-size: 14px;
    letter-spacing: -0.35px;
  }
  .footer-company-mobile {
    font-size: 12px; /* 16px -> 12px */
    color: #777777;
    line-height: 18px; /* 24px -> 18px */
    font-weight: 400;
    letter-spacing: -0.3px;
  }
}

/* DeepLink Page */
.deeplink-page {
  display: none;
  padding: 40px 20px;
  text-align: center;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: #1d1d1d;
}

.deeplink-page.active {
  display: flex;
}

.deeplink-logo {
  margin-bottom: 40px;
}

.deeplink-logo img {
  height: 60px;
  width: auto;
}

.deeplink-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.deeplink-page p {
  font-size: 16px;
  color: #b6b6b6;
  margin-bottom: 10px;
}

.deeplink-page button {
  padding: 18px 60px;
  font-size: 18px;
  font-weight: 600;
  background-color: #ff9408;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 20px;
  transition: transform 0.2s, background-color 0.2s;
}

.deeplink-page button:hover {
  transform: scale(1.02);
  background-color: #e88507;
}

.deeplink-store-buttons {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.deeplink-store-text {
  font-size: 14px;
  color: #777777;
  margin: 0;
}

.deeplink-store-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.deeplink-store-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 54px;
  background-color: #0d0d0d;
  border-radius: 12px;
  transition: transform 0.2s;
}

.deeplink-store-links a:hover {
  transform: scale(1.05);
}

.deeplink-store-links img {
  height: 24px;
  width: auto;
}
