/* Snow Globe homepage */
:root {
  --night-1: #1b1745;
  --night-2: #3a2f86;
  --night-3: #6a55c9;
  --lavender: #f7f5ff;
  --lavender-2: #ece7ff;
  --ink: #221d45;
  --ink-soft: #5b5680;
  --primary: #6b55d6;
  --primary-dark: #4d3bb0;
  --accent: #ffb37a;
  --card: #ffffff;
  --radius: 24px;
  --shadow: 0 18px 40px -18px rgba(44, 32, 120, .35);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--lavender);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  color: #fff;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.lang-switch { display: flex; gap: 4px; background: rgba(255,255,255,.12); padding: 4px; border-radius: 999px; }
.lang-switch a {
  text-decoration: none; font-size: .85rem; padding: 6px 12px; border-radius: 999px; opacity: .8;
}
.lang-switch a[aria-current="page"] { background: #fff; color: var(--night-2); opacity: 1; font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 75% 20%, var(--night-3) 0%, transparent 60%),
              linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 70%, #5a49b8 100%);
  padding: 120px 0 0;
}
#snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.hero-text { padding-bottom: 96px; }
.eyebrow {
  display: inline-block; font-size: .85rem; letter-spacing: .04em; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.02em; }
.hero h1 .glow { color: #ffd9b8; }
.hero p.lead { font-size: 1.15rem; opacity: .88; margin: 0 0 32px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: .85rem; opacity: .7; margin-top: 14px; }

.btn-play {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #fff; color: var(--ink); padding: 12px 22px 12px 16px; border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); transition: transform .15s ease;
}
.btn-play:hover { transform: translateY(-2px); }
.btn-play svg { width: 28px; height: 28px; flex: none; }
.btn-play small { display: block; font-size: .72rem; color: var(--ink-soft); line-height: 1.1; }
.btn-play strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.btn-ghost {
  text-decoration: none; padding: 14px 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,.35);
  font-weight: 600;
}

.phone {
  position: relative; width: min(320px, 80%); margin: 0 auto; aspect-ratio: 540 / 1170;
  border-radius: 40px; padding: 10px; background: #12102b;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.hero .phone { transform: translateY(40px); }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 12px; letter-spacing: -.01em; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }

/* themes */
.themes { padding-top: 140px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.theme {
  margin: 0; background: var(--lavender); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid #fff; transition: transform .2s ease;
}
.theme:hover { transform: translateY(-4px); }
.theme img { width: 100%; height: auto; aspect-ratio: 520 / 640; object-fit: cover; }
.theme figcaption { padding: 4px 18px 20px; text-align: center; }
.theme strong { display: block; font-size: 1.05rem; }
.theme span { color: var(--ink-soft); font-size: .9rem; }

/* features */
.features { background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--lavender); border-radius: var(--radius); padding: 28px 24px;
}
.feature .ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), #9a86ff); color: #fff;
}
.feature .ico svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--ink-soft); }

/* screens */
.screens-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.screen { text-align: center; }
.screen .phone { width: min(260px, 100%); }
.screen h3 { margin: 22px 0 6px; font-size: 1.1rem; }
.screen p { margin: 0 auto; color: var(--ink-soft); max-width: 22em; }

/* download */
.download {
  color: #fff; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--night-2), var(--night-1));
}
.brand img, .download img.icon { object-fit: cover; }
.download img.icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 20px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); }
.download h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 12px; }
.download p { opacity: .85; margin: 0 0 28px; }
.download .cta-row { justify-content: center; }

/* footer */
.site-footer { background: var(--night-1); color: rgba(255,255,255,.7); font-size: .9rem; padding: 28px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 100px; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-text { padding-bottom: 8px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .theme-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screens-row { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 560px) {
  section { padding: 72px 0; }
  .themes { padding-top: 110px; }
  .brand span { display: none; }
  .theme-grid { gap: 12px; }
  .theme figcaption { padding: 2px 10px 14px; }
  .theme span { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .phone { border-radius: 32px; padding: 8px; }
  .phone img { border-radius: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .theme, .btn-play { transition: none; }
}
