@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #0b1420;
  color: #fff;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }

/* ===================== SITE HEADER ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.site-header-inner {
  max-width: 1920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 24px;
}
.site-logo { grid-column: 1; justify-self: start; }
.site-logo img { width: min(11vw, 176px); }
.site-nav { grid-column: 2; justify-self: center; }
.site-nav-toggle { grid-column: 3; justify-self: end; }
.site-nav ul { display: flex; gap: clamp(20px, 3vw, 48px); list-style: none; }
.site-nav a {
  font-size: clamp(14px, 1.1vw, 20px);
  font-weight: 700;
  color: #fff;
  transition: color .2s ease;
}
.site-nav a:hover { color: #7c6cff; }
.site-nav-toggle { display: none; }
.site-nav-toggle img { width: 32px; }

.site-nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 320px;
  height: 100%;
  background: #14103a;
  padding: 30px 24px;
  z-index: 1001;
  transition: right .3s ease;
}
.site-nav-mobile.is-open { right: 0; }
.site-nav-mobile-close { position: absolute; top: 20px; right: 20px; }
.site-nav-mobile-close img { width: 32px; }
.site-nav-mobile-logo { width: 140px; margin-bottom: 30px; }
.site-nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.site-nav-mobile a { font-size: 20px; font-weight: 700; color: #fff; }

/* ===================== FLOATING QUICK NAV ===================== */
.floating-quick {
  position: fixed;
  top: 50%;
  right: clamp(12px, 2.5vw, 48px);
  transform: translateY(-50%);
  z-index: 500;
}
.floating-quick ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.floating-quick img { width: clamp(70px, 6.5vw, 110px); border-radius: 8px; transition: transform .2s ease; }
.floating-quick a:hover img { transform: scale(1.05); }

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .site-nav-toggle { display: block; }
  .site-header-inner { padding: 14px 20px; }
  .floating-quick { display: none; }
}

/* ===================== ANCHOR SCROLL OFFSET ===================== */
#section1, #section2, #store { scroll-margin-top: 90px; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1080;
  background: #2199d9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5vw;
  width: 100%;
  padding: 0 20px;
}
.hero-title {
  width: min(34.6vw, 664px);
}
.hero-play-btn img {
  width: min(14.3vw, 274px);
  transition: transform .2s ease;
}
.hero-play-btn:hover img { transform: scale(1.05); }

.scroll-indicator {
  position: absolute;
  bottom: 3.5%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}
.scroll-indicator span:first-child {
  display: block;
  font-size: 12px;
  letter-spacing: 3px;
  opacity: .8;
  margin-bottom: 8px;
}
.scroll-indicator .bar-track {
  display: block;
  width: 2px;
  height: 40px;
  margin: 0 auto;
  position: relative;
}
.scroll-indicator .bar {
  display: block;
  width: 2px;
  height: 40px;
  background: #fff;
  opacity: .7;
  transform-origin: top center;
  animation: scrollBarPulse .5s ease-in-out infinite alternate;
}
.scroll-indicator .bar-track::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: url('assets/site-scroll-arrow.png') no-repeat center / contain;
}
@keyframes scrollBarPulse {
  from { transform: scaleY(1); }
  to { transform: scaleY(.75); }
}

/* ===================== SECTION 0 ===================== */
.section0 {
  width: 100%;
  aspect-ratio: 1920 / 819;
  overflow: hidden;
}
.section0-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===================== SECTION 1 & 2 shared layout ===================== */
.section1, .section2 {
  position: relative;
  width: 100%;
  padding: 5.2vw 6.25vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.section2 { padding-bottom: 0; }
.section1-bg, .section2-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.section1-split, .section2-split {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1680px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.3vw;
}

.arrow-btn { flex-shrink: 0; }
.arrow-btn img {
  width: min(3.75vw, 72px);
  transition: opacity .2s ease;
}
.arrow-btn:hover img { opacity: .7; }

.section1-carousel, .section2-carousel {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
}

/* ===================== SECTION 1 & 2 CAROUSEL ===================== */
.section1-carousel { aspect-ratio: 1378 / 777; }
.section2-carousel { aspect-ratio: 1292 / 900; }

.s1-slide, .s2-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease;
}
.s1-slide.is-active, .s2-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.s1-slide img, .s2-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}
.s2-slide .slide-btn {
  position: absolute;
  left: 9.44%;
  width: 36.07%;
  height: auto;
  transition: transform .15s ease;
}
.s2-slide[data-index="0"] .slide-btn, .s2-slide[data-index="1"] .slide-btn { top: 82.89%; }
.s2-slide[data-index="2"] .slide-btn { top: 85.22%; }
.s2-slide .slide-btn:hover { transform: scale(1.03); }
.s2-slide .slide-btn img { width: 100%; height: auto; display: block; border-radius: 0; }

/* ===================== STORE CTA ===================== */
.store-cta {
  position: relative;
  padding: clamp(60px, 10vw, 140px) 20px;
  background: url('assets/site-cta-bg.jpg') no-repeat center top;
  background-size: cover;
  text-align: center;
}
.store-cta-inner { max-width: 1420px; margin: 0 auto; }
.store-cta-title {
  font-size: clamp(28px, 4vw, 60px);
  font-weight: 900;
  margin-bottom: 40px;
}
.store-cta-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  list-style: none;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.store-cta-btns img { width: clamp(140px, 14vw, 220px); transition: transform .2s ease; }
.store-cta-btns a:hover img { transform: scale(1.04); }

/* ===================== SITE FOOTER ===================== */
.site-footer {
  padding: 40px 20px;
  background: #05070d;
  text-align: center;
}
.site-footer-inner { max-width: 1420px; margin: 0 auto; }
.site-footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 700;
  color: #999;
}
.site-footer-links li { padding: 0 16px; position: relative; }
.site-footer-links li::after {
  content: '';
  position: absolute;
  right: 0;
  top: 2px;
  width: 1px;
  height: 14px;
  background: #666;
}
.site-footer-links li:last-child::after { display: none; }
.site-footer-links a { color: #999; }
.site-footer-links a:hover { color: #ccc; }
.site-footer-copyright {
  font-size: 12px;
  opacity: .5;
  line-height: 1.6;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .section1, .section2 { padding: 40px 24px; }
  .section2 { padding-bottom: 0; }
  .section1-split, .section2-split { gap: 12px; }
  .arrow-btn img { width: 32px; }
}

@media (max-width: 640px) {
  .hero picture, .section0 picture, .section1 picture, .section2 picture,
  .site-nav-toggle picture, .s1-slide picture, .s2-slide picture {
    display: contents;
  }

  .hero { aspect-ratio: 780 / 1200; }
  .section0 { aspect-ratio: 390 / 410; }
  .hero-content { gap: 3vw; }
  .hero-title { width: 78vw; }
  .hero-play-btn img { width: min(38vw, 148px); }

  .section1 { padding: 32px 10px; }
  .section2 { padding: 40px 10px; }
  .section1-split, .section2-split { gap: 0; }
  .section1 .arrow-btn, .section2 .arrow-btn { display: flex; }
  .arrow-btn img { width: 36px; }

  .section1-carousel { aspect-ratio: 605 / 1087; }
  .section2-carousel { aspect-ratio: 623 / 827; }

  .s2-slide .slide-btn { left: 19.8%; width: 60.4%; }
  .s2-slide[data-index="0"] .slide-btn { top: 76.77%; }
  .s2-slide[data-index="1"] .slide-btn { top: 79.04%; }
  .s2-slide[data-index="2"] .slide-btn { top: 81.57%; }

  .store-cta-btns-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .store-cta-btns-wrap .store-cta-btns { display: contents; }
  .store-cta-btns-wrap .btn-google { order: 1; }
  .store-cta-btns-wrap .btn-apple { order: 2; }
  .store-cta-btns-wrap .btn-steam { order: 3; }
  .store-cta-btns-wrap .btn-onestore { order: 4; }
  .store-cta-btns-wrap .btn-bluestacks { order: 5; }
  .site-footer-links { flex-direction: column; gap: 8px; }
  .site-footer-links li::after { display: none; }
}
