:root {
  --bg-top: #2b2148;
  --bg-bottom: #110d1f;
  --text: #f6e3c6;
  --muted: #b9afcf;
  --accent: #e9a86a;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.1);
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg-bottom); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 12%, #fff9 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 32%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 44%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 52%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 70%, #fff5 50%, transparent 51%),
    radial-gradient(60% 40% at 50% 18%, #ffb46b22, transparent),
    linear-gradient(var(--bg-top), var(--bg-bottom) 70%);
  background-attachment: fixed;
}

a { color: var(--accent); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* 상단 내비 */
nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
nav .brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 20px var(--round); }
nav .brand img { width: 32px; height: 32px; }
nav .links a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav .links a:hover { color: var(--text); }

/* 히어로 */
.hero { text-align: center; padding: 48px 0 32px; }
.hero .icon { width: 148px; height: 148px; filter: drop-shadow(0 18px 40px #ffb46b44); }
.hero h1 { font: 800 clamp(44px, 9vw, 72px)/1.05 var(--round); margin: 18px 0 10px; letter-spacing: -0.02em; }
.hero .tagline { font-size: clamp(19px, 3.4vw, 24px); margin: 0; }
.hero .ko { color: var(--muted); margin: 4px 0 0; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-weight: 600;
}
.badge small { color: var(--muted); font-weight: 400; }

/* 가짜 메뉴바: 머그가 달리는 모습 */
.menubar {
  margin: 40px auto 0; max-width: 520px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: flex-end; gap: 18px; padding: 0 18px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line);
  backdrop-filter: blur(10px); color: var(--muted); font-size: 15px;
}
.menubar .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; opacity: 0.6; }

.sprite { display: inline-block; background-repeat: no-repeat; }
.run { width: 60px; height: 44px; background: url(run.png) 0 0 / 480px 44px; animation: run 0.55s steps(8) infinite; }
@keyframes run { to { background-position: -480px 0; } }
.sleep { width: 60px; height: 44px; background: url(sleep.png) 0 0 / 2160px 44px; animation: sleep 3s steps(36) infinite; }
@keyframes sleep { to { background-position: -2160px 0; } }

/* 기능 카드 */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; padding: 48px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.card .art { height: 64px; display: flex; align-items: center; }
.card h3 { font: 700 20px var(--round); margin: 10px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card p + p { margin-top: 6px; }
.ghost { width: 46px; animation: float 2.8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-7px) rotate(-4deg); } }
.candle { width: 46px; animation: flicker 1.6s ease-in-out infinite; transform-origin: 50% 45%; }
@keyframes flicker { 30% { transform: scaleY(1.04) rotate(1.5deg); } 60% { transform: scaleY(0.98) rotate(-1.5deg); } }

/* 본문 문서(개인정보, 지원) */
.doc { max-width: 720px; padding: 24px 0 48px; }
.doc h1 { font: 800 40px/1.15 var(--round); margin: 16px 0 4px; }
.doc .date { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font: 700 21px var(--round); margin: 32px 0 8px; }
.doc ul { padding-left: 20px; }
.doc .ko { color: var(--muted); }
.doc section { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 28px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 12px 0; }
.qa h3 { margin: 0 0 6px; font: 700 18px var(--round); }
.qa p { margin: 0; }
.qa p.ko { margin-top: 4px; }
kbd { font: 600 14px var(--round); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .run, .sleep, .ghost, .candle { animation: none; }
}
