:root {
  /* Light, warm palette */
  --bg: #faf6ed; /* 약간 누리끼리한 화이트 */
  --panel: #ffffff;
  --border: #e6e0d5;
  --text: #1a1e26;
  --muted: #6b7280;
  --primary: #3b82f6;
  --shadow: 0 8px 22px rgba(160, 140, 100, 0.18);
  --cta-h: 80px;
  --cta-w: 360px;
  --badge-h: 80px; /* Google Play badge height */
  --header-offset: 96px; /* fixed 헤더 높이 보정 */
}

/* Language-specific badge tuning */
/* (removed KO-only override to keep consistency across locales) */

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(32px + var(--header-offset)) 32px 32px;
}
.head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  z-index: 50;
}
.lang-switch { display: inline-flex; gap: 6px; }
.lang-switch .lang, .lang-switch a { appearance: none; border: 1px solid var(--border); background: var(--panel); color: var(--text); height: 32px; padding: 0 10px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; -webkit-tap-highlight-color: rgba(248,113,113,0.2); display: inline-flex; align-items: center; text-decoration: none; }
.lang-switch .lang:hover, .lang-switch a:hover { background: #fff1f2; border-color: #fecdd3; color: #9f1239; }
.lang-switch .lang:active, .lang-switch a:active { background: #fecaca; border-color: #fca5a5; color: #7f1d1d; }
.lang-switch .lang:focus, .lang-switch .lang:focus-visible, .lang-switch a:focus, .lang-switch a:focus-visible { outline: 2px solid #fca5a5; outline-offset: 2px; }
.lang-switch .lang.active, .lang-switch a.active { background: #ef4444; color: #fff; border-color: #ef4444; }
.lang-switch .lang.active:hover, .lang-switch a.active:hover { background: #f87171; border-color: #f87171; color: #fff; }
.head .nav {
  display: flex;
  gap: 10px;
}
.btn.sm {
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
}
.brand {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.brand .logo {
  display: block;
  height: 3em;
  width: auto;
}

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 88px 0 40px;
  text-align: center;
}
.text {
  max-width: 620px;
  margin-inline: auto;
}
.media {
  display: flex;
  justify-content: center;
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 6px;
}
.hero h2 {
  margin: 0 0 12px;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero .sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 19px;
}
.hero .hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.media img {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--panel);
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--cta-h);
  padding: 0 18px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  transition: transform 0.06s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--primary);
  color: #ffffff;
  border-color: transparent;
}
.btn.ghost {
  background: var(--primary);
  color: #ffffff;
  border-color: transparent;
}
/* Discord CTA */
.btn.discord {
  background: #5865F2; /* Discord Blurple */
  color: #ffffff;
  border-color: transparent;
  height: 56px;
}
.btn.discord:hover { background: #6b76f7; }
.btn.discord:active { transform: translateY(1px); }
.btn .ico { display: inline-block; margin-right: 8px; }

/* Google Play badge */
.play-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  width: 100%;
  max-width: var(--cta-w);
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
}
.play-badge img {
  display: block;
  height: var(--badge-h);
  width: auto;
  object-fit: contain;
  user-select: none;
  transition: transform 200ms ease;
}
.play-badge:hover img {
  transform: scale(1.02);
}
.actions .btn {
  width: 100%;
  max-width: var(--cta-w);
}

.link {
  color: #2563eb;
  text-decoration: underline;
}
.more {
  margin: 8px 0 0;
  color: var(--muted);
}

.features {
  padding: 56px 0 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.checks li {
  position: relative;
  padding-left: 28px;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: 700;
}

/* Privacy split section */
.split {
  display: grid;
  gap: 20px;
  align-items: start;
}
.split-text {
  order: 2;
}
.split-media {
  order: 1;
}
.split-text .h {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.split-text .lead {
  color: var(--text);
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}
.note {
  color: var(--muted);
  margin-top: 8px;
  font-size: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid #fed7aa;
}
.pill::before {
  content: "◆";
  font-size: 10px;
  transform: scale(0.9);
}
.callout {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
}
.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: 700;
}
.split-media {
  display: flex;
  justify-content: center;
}
.split-media img {
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.cards li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: grid;
}
.cards strong {
  font-size: 16px;
}
.cards span {
  color: var(--muted);
  font-size: 14px;
}

.foot {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
}
.foot > * { display: inline-flex; align-items: center; }
.foot .sep { color: var(--muted); opacity: 0.6; }
.foot small { color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; padding: 2px 0; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* Pre-footer Discord CTA */
.discord-cta { display: flex; align-items: center; justify-content: center; padding: 12px 0 20px; }
.discord-cta .btn { width: 100%; max-width: var(--cta-w); }
.discord-divider { border: 0; border-top: 1px solid var(--border); margin: 24px 0 12px; }

/* Mobile-friendly footer layout */
@media (max-width: 520px) {
  .foot { flex-direction: column; gap: 6px; text-align: center; }
  .foot .sep { display: none; }
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 0.618fr 1fr;
    text-align: left;
  }
  /* Place subtitle and badge on the same row */
  .hero .text { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 8px; }
  .hero .text > .eyebrow,
  .hero .text > h2 { flex: 1 1 100%; }
  .hero .text > .sub { flex: 0 1 auto; margin: 0; }
  /* Force the actions to a new line under the subtitle on desktop */
  .hero .text > .actions { flex: 1 1 100%; margin-top: 8px; display: flex; align-items: center; }
  .hero .text .play-badge { width: auto; }
  .actions {
    justify-content: flex-start;
    flex-direction: row;
  }
  .text {
    margin-inline: 0;
  }
  .hero h2 {
    font-size: 60px;
  }
  .media img {
    max-width: 460px;
  }
  .actions .btn {
    width: var(--cta-w);
  }
  .split {
    grid-template-columns: 1fr 0.8fr;
  }
  .split-text {
    order: 1;
  }
  .split-media {
    order: 2;
  }
  .split-media img {
    max-width: 420px;
  }
  .split-text {
    padding-right: 24px;
  }
  .split.image-left .split-media {
    order: 1;
  }
  .split.image-left .split-text {
    order: 2;
    padding-right: 0;
    padding-left: 24px;
  }
}

/* Reveal on scroll */
body.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(12px);
}
body.reveal-ready .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 420ms ease, transform 420ms ease;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.reveal-ready .reveal,
  body.reveal-ready .reveal.in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .play-badge img {
    transition: none !important;
  }
}

/* Language suggest banner */
.lang-banner { position: fixed; left: 0; right: 0; top: var(--header-offset); z-index: 49; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px; background: var(--panel); border-bottom: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.lang-banner .msg { color: var(--text); font-weight: 600; font-size: 14px; }
.lang-banner .btn.sm { height: 34px; padding: 0 12px; border-radius: 8px; }
.lang-banner .btn.alt { background: transparent; color: var(--text); }
@media (max-width: 520px) {
  .lang-banner { gap: 8px; padding: 8px 10px; }
  .lang-banner .msg { font-size: 13px; text-align: center; }
}
