/* ===================================
   한국민속촌 Play - Landing Page
   Korean Traditional + Digital Play
   =================================== */

/* --- Design Tokens --- */
:root {
  /* 한지 & 자연 */
  --hanji: #F5F0E8;
  --hanji-deep: #EDE4D3;
  --muk: #1A1108;
  --muk-light: #3D3225;

  /* 단청 5색 */
  --dancheong-red: #C23B22;
  --dancheong-blue: #2E6B62;
  --dancheong-yellow: #D4A843;
  --dancheong-white: #F2EDE3;
  --dancheong-black: #2C1810;

  /* 기능색 */
  --accent: var(--dancheong-red);
  --accent-hover: #A83220;
  --teal: var(--dancheong-blue);
  --gold: var(--dancheong-yellow);

  /* Typography */
  --font-display: 'Noto Serif KR', serif;
  --font-body: 'Noto Sans KR', sans-serif;

  /* Spacing */
  --section-padding: 5rem 1.5rem;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--muk);
  background-color: var(--hanji);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- 한지 Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 105, 20, 0.015) 2px,
      rgba(139, 105, 20, 0.015) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(139, 105, 20, 0.01) 3px,
      rgba(139, 105, 20, 0.01) 6px
    );
  pointer-events: none;
  z-index: 0;
}

/* --- 단청 Top Border --- */
.dancheong-border {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--dancheong-red) 0%,
    var(--dancheong-red) 20%,
    var(--dancheong-blue) 20%,
    var(--dancheong-blue) 40%,
    var(--dancheong-yellow) 40%,
    var(--dancheong-yellow) 60%,
    var(--dancheong-blue) 60%,
    var(--dancheong-blue) 80%,
    var(--dancheong-red) 80%,
    var(--dancheong-red) 100%
  );
  position: sticky;
  top: 0;
  z-index: 100;
}

/* --- Header --- */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--hanji);
  position: relative;
  z-index: 10;
}

.header-emblem {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.header-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--muk);
  letter-spacing: -0.02em;
}

/* --- Section Dividers (기와 라인) --- */
.giwa-divider {
  width: 100%;
  height: 20px;
  position: relative;
  overflow: hidden;
}

.giwa-divider::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--hanji-deep);
}

.giwa-divider::after {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  color: var(--gold);
  background: var(--hanji);
  padding: 0 1rem;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 2rem;
  padding: 0.3rem 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
}

.hero-app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow:
    0 4px 16px rgba(44, 24, 16, 0.12),
    0 1px 4px rgba(44, 24, 16, 0.08);
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--muk);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muk-light);
  margin-bottom: 2rem;
}

.hero-desc {
  font-size: 0.92rem;
  color: var(--muk-light);
  max-width: 420px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* --- Store Badges --- */
.store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-badges a {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-badges a:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.store-badges img {
  display: block;
}

/* App Store 배지: 기준 높이 (패딩 없는 이미지) */
.store-badges .badge-appstore {
  height: 50px;
}

/* Google Play 배지: PNG에 상하 ~23% 내장 여백 포함. 시각적 콘텐츠 높이를 App Store와 맞춤 */
.store-badges .badge-googleplay {
  height: 65px;
  margin: -7.5px 0;
}

/* --- Screenshots Slider --- */
.screenshots {
  padding: 2rem 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.screenshots-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 1.5rem;
  scrollbar-width: none;
}

.screenshots-track::-webkit-scrollbar {
  display: none;
}

.screenshots-track img {
  flex-shrink: 0;
  width: 220px;
  border-radius: 16px;
  scroll-snap-align: center;
  box-shadow: 0 4px 16px rgba(44, 24, 16, 0.1);
}

@media (min-width: 640px) {
  .screenshots-track img {
    width: 260px;
  }
}

@media (min-width: 1024px) {
  .screenshots-track {
    justify-content: center;
  }

  .screenshots-track img {
    width: 200px;
  }
}

/* --- Features Section --- */
.features {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.features-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.features-heading h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muk);
  letter-spacing: -0.02em;
}

.features-heading p {
  font-size: 0.9rem;
  color: var(--muk-light);
  margin-top: 0.5rem;
}

/* --- Feature Groups --- */
.feature-group {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.feature-group:last-child {
  margin-bottom: 0;
}

.feature-group-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--muk-light);
  margin-bottom: 1rem;
  padding-left: 0.25rem;
  letter-spacing: -0.01em;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--hanji-deep);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--muk);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--muk-light);
  line-height: 1.75;
}

/* --- CTA Bottom --- */
.cta-bottom {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.cta-bottom p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--muk);
  margin-bottom: 1.5rem;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--hanji-deep);
  position: relative;
  z-index: 1;
}

.footer p {
  font-size: 0.78rem;
  color: var(--muk-light);
  opacity: 0.6;
}

.footer a {
  color: var(--muk-light);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 374px) {
  .header-title {
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-desc {
    font-size: 0.82rem;
  }
}

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

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .features-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 4rem 2rem 5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .features {
    padding: 5rem 2rem;
  }
}
