@font-face {
  font-family: 'Galmuri11';
  src: url('fonts/Galmuri11-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0e0d15;
  --bg-2: #15131e;
  --line: #2a2738;
  --text: #ebe8f3;
  --muted: #a29db5;
  --accent: #ffd23c;
  --accent-ink: #1b1505;
  --pixel: 'Galmuri11', 'Pretendard Variable', sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
}

/* 언어 — 쓰지 않는 쪽 문구를 숨긴다 (home.js가 <html lang>을 바꾼다) */
html[lang="ko"] body [lang="en"],
html[lang="en"] body [lang="ko"] { display: none; }

a { color: inherit; }

img.pixel, .hero, figure img, .skins img, .brand img { image-rendering: pixelated; }

/* ── 상단 ── */
.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pixel);
  font-size: 15px;
  text-decoration: none;
  text-shadow: 0 2px 0 #000;
}
.brand img { border-radius: 6px; }
.links { margin-left: auto; display: flex; gap: 20px; font-size: 14px; }
.links a { text-decoration: none; color: #d6d2e2; text-shadow: 0 1px 0 #000; }
.links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.lang { display: flex; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 4px; overflow: hidden; }
.lang button {
  font: inherit;
  font-size: 13px;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: #d6d2e2;
  cursor: pointer;
}
.lang button.on { background: rgba(255, 255, 255, 0.9); color: #111; }

/* ── 첫 화면 ── */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  background: #1b1730 url('img/hero-l.png') center 70% / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14, 13, 21, 0.35) 0%, rgba(14, 13, 21, 0) 25%, rgba(14, 13, 21, 0) 45%, var(--bg) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px 72px;
  text-align: center;
}
h1 {
  margin: 0 0 18px;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.18;
  color: #fff;
  text-shadow: 0 4px 0 #000;
}
.lead {
  margin: 0 auto 28px;
  max-width: 34em;
  font-size: 18px;
  color: #ddd9e8;
  text-shadow: 0 1px 2px #000;
}
.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn {
  display: inline-block;
  min-width: 140px;
  padding: 12px 20px;
  border: 2px solid rgba(235, 232, 243, 0.55);
  border-radius: 4px;
  background: rgba(14, 13, 21, 0.55);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { border-color: #fff; background: rgba(14, 13, 21, 0.85); }
.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--pixel);
  font-weight: 700;
  box-shadow: 0 3px 0 #a8820c;
}
.btn.primary:hover { background: #ffde66; border-color: #ffde66; }
.note { margin: 16px 0 0; font-size: 13px; color: var(--muted); }

/* ── 본문 ── */
main { max-width: 1040px; margin: 0 auto; padding: 24px 28px 40px; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: center;
  gap: 56px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.feature:first-child { border-top: 0; }
.feature:nth-child(even) figure { order: 2; }
figure { margin: 0; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border: 1px solid var(--line);
}
.num { font-family: var(--pixel); font-size: 13px; color: var(--accent); letter-spacing: 0.08em; }
h2 {
  margin: 6px 0 14px;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
}
.text p { margin: 0; color: #cfcadb; }

.skins {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.skins img { width: min(100%, 720px); height: auto; }
.skins p { margin: 14px 0 0; color: #cfcadb; }

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
blockquote { margin: 0; }
blockquote p { margin: 0 0 14px; color: #cfcadb; }
blockquote .last { margin: 0; font-family: var(--pixel); font-size: 20px; line-height: 1.6; color: #fff; }

.cta {
  padding: 64px 0 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.cta h2 { margin-bottom: 24px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 28px 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.foot strong { color: var(--text); margin-right: 8px; font-family: var(--pixel); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.foot small { margin-left: auto; font-size: 13px; }

/* ── 세로 화면 ── */
@media (max-width: 760px) {
  .hero { background-image: url('img/hero-p.png'); background-position: center bottom; }
  body { font-size: 16px; }
  .top { padding: 12px 16px; gap: 12px; }
  .brand span { display: none !important; }
  .links { gap: 12px; font-size: 13px; }
  .links a[data-doc="qna"], .links a[data-doc="support"] { display: none; }
  .hero-inner { padding: 0 16px 48px; }
  .lead { font-size: 16px; }
  .btn { min-width: 0; flex: 1 1 calc(50% - 10px); padding: 12px 10px; }
  .btn.primary { flex-basis: 100%; }
  main { padding: 8px 16px 24px; }
  .feature, .story { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 40px 0; }
  .feature:nth-child(even) figure { order: 0; }
  .skins { padding: 40px 0; }
  .foot { padding: 24px 16px 32px; }
  .foot small { margin-left: 0; }
}
