/* 요괴록 랜딩 페이지 — 외부 의존성 0 */
:root {
  --black: #1a1614;
  --paper: #f5f1e8;
  --gold: #d4a017;
  --gold-bright: #f5cf5a;
  --jade: #2e7d5b;
  --azure: #1e5f8e;
  --red: #c0392b;
  --pink: #d96b8a;
  --line: rgba(212, 160, 23, 0.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--black);
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--gold); text-decoration: none; transition: color 120ms; }
a:hover { color: var(--gold-bright); }
h1, h2, h3, h4 { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }

/* ─── HERO ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 160, 23, 0.18), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(46, 125, 91, 0.15), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(217, 107, 138, 0.12), transparent 60%),
    var(--black);
  z-index: 0;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(245, 241, 232, 0.015) 0, rgba(245, 241, 232, 0.015) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, rgba(245, 241, 232, 0.015) 0, rgba(245, 241, 232, 0.015) 1px, transparent 1px, transparent 24px);
  pointer-events: none;
}

.nav {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.brand {
  font-family: 'Noto Serif KR', serif;
  font-size: 26px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.08em;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: rgba(245, 241, 232, 0.7); font-size: 14px; }
.nav-links a:hover { color: var(--paper); }

.hero-inner {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px;
  text-align: center;
  max-width: 880px; margin: 0 auto;
}
.hero-title {
  margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-title-han {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(72px, 14vw, 156px);
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.06em;
  text-shadow:
    0 0 32px rgba(212, 160, 23, 0.5),
    0 0 64px rgba(212, 160, 23, 0.2);
  line-height: 1;
}
.hero-title-kor {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--gold);
  letter-spacing: 0.3em;
  font-weight: 500;
}
.hero-tagline {
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(245, 241, 232, 0.92);
  margin: 8px 0 6px;
  font-weight: 500;
}
.hero-sub {
  font-size: clamp(13px, 1.8vw, 16px);
  color: rgba(245, 241, 232, 0.65);
  max-width: 620px;
  margin: 0 0 36px;
  line-height: 1.8;
}
.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 12px;
}
.hero-note {
  font-size: 12px;
  color: rgba(245, 241, 232, 0.45);
  margin: 8px 0 0;
}

/* ─── BUTTONS ───────────────────────────────────────────────────────── */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition: transform 120ms, box-shadow 120ms;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--black);
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.55);
  color: var(--black);
}
.btn-secondary {
  background: rgba(245, 241, 232, 0.08);
  color: var(--paper);
  border: 1px solid rgba(245, 241, 232, 0.25);
}
.btn-secondary:hover {
  background: rgba(245, 241, 232, 0.15);
  border-color: rgba(245, 241, 232, 0.45);
  color: var(--paper);
}
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ─── SECTIONS ──────────────────────────────────────────────────────── */
section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--paper);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: 0.05em;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 16px auto 0;
}

/* ─── FEATURES ──────────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  background: rgba(245, 241, 232, 0.03);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 200ms, border-color 200ms;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.feature-icon { font-size: 48px; margin-bottom: 16px; }
.feature h3 {
  font-size: 19px; color: var(--gold); margin-bottom: 12px;
  font-family: 'Noto Serif KR', serif; letter-spacing: 0.04em;
}
.feature p {
  font-size: 14px;
  color: rgba(245, 241, 232, 0.75);
  line-height: 1.7;
}

/* ─── STORY ─────────────────────────────────────────────────────────── */
.story {
  background: linear-gradient(180deg, transparent 0%, rgba(46, 125, 91, 0.05) 50%, transparent 100%);
  max-width: 800px;
}
.story-body {
  font-size: 15px;
  color: rgba(245, 241, 232, 0.85);
  line-height: 2;
  margin: 0 0 18px;
  text-align: center;
}
.story-em {
  color: var(--gold);
  font-weight: 500;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}

/* ─── CHARACTERS ────────────────────────────────────────────────────── */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.char {
  background: rgba(245, 241, 232, 0.04);
  border: 1px solid rgba(212, 160, 23, 0.18);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}
.char-attr {
  display: inline-block;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold);
  font-family: 'Noto Serif KR', serif;
  font-size: 22px; font-weight: 700;
  line-height: 44px;
  margin-bottom: 12px;
}
.char h3 {
  font-size: 15px; color: var(--paper); margin-bottom: 6px;
}
.char p {
  font-size: 12px; color: rgba(245, 241, 232, 0.6);
  line-height: 1.6;
  margin: 0;
}
.char-note {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: rgba(245, 241, 232, 0.55);
}

/* ─── DOWNLOAD ──────────────────────────────────────────────────────── */
.download {
  background: linear-gradient(180deg, transparent 0%, rgba(212, 160, 23, 0.06) 50%, transparent 100%);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto 48px;
}
.store-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  background: var(--black);
  border: 1px solid var(--paper);
  border-radius: 10px;
  color: var(--paper);
  text-decoration: none;
  transition: transform 150ms, background 150ms;
}
.store-btn:hover {
  transform: translateY(-2px);
  background: rgba(245, 241, 232, 0.08);
  color: var(--paper);
}
.store-btn[data-status="coming"] {
  opacity: 0.65;
  cursor: not-allowed;
}
.store-icon {
  font-size: 32px; line-height: 1;
  flex-shrink: 0;
}
.store-btn.ios .store-icon::before { content: ''; display: inline-block; width: 32px; height: 32px; background:
  radial-gradient(circle at 30% 30%, var(--paper), var(--paper) 35%, transparent 36%); }
.store-btn.android .store-icon::before { content: ''; display: inline-block; width: 32px; height: 32px; background:
  conic-gradient(from 0deg at 50% 50%, var(--jade) 0%, var(--jade) 25%, transparent 25%); border-radius: 50%; }
.store-btn.web { border-color: var(--gold); color: var(--gold-bright); }
.store-btn.web .store-icon { color: var(--gold-bright); font-size: 24px; }
.store-line1 {
  font-size: 11px;
  color: rgba(245, 241, 232, 0.55);
  letter-spacing: 0.05em;
}
.store-line2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.store-btn.web .store-line2 { color: var(--gold-bright); }

.prereg {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: rgba(245, 241, 232, 0.04);
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: 12px;
  padding: 28px 24px;
}
.prereg h3 { color: var(--gold); font-size: 18px; margin-bottom: 8px; }
.prereg p { font-size: 13px; color: rgba(245, 241, 232, 0.7); margin: 0 0 14px; }
.prereg-form {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap;
  margin: 12px 0;
}
.prereg-form input {
  flex: 1; min-width: 200px;
  padding: 12px 14px;
  background: var(--black);
  border: 1px solid rgba(245, 241, 232, 0.25);
  color: var(--paper);
  border-radius: 6px;
  font-size: 14px;
}
.prereg-form input:focus { outline: none; border-color: var(--gold); }
.prereg-status {
  font-size: 12px;
  min-height: 18px;
  color: var(--jade);
}
.prereg-status.is-error { color: var(--pink); }
.prereg-privacy {
  font-size: 11px;
  color: rgba(245, 241, 232, 0.45);
  margin-top: 10px;
}

.pwa-hint {
  max-width: 520px; margin: 24px auto 0;
  text-align: center;
  background: rgba(46, 125, 91, 0.08);
  border-left: 3px solid var(--jade);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(245, 241, 232, 0.7);
}
.pwa-hint p { margin: 0; }

/* ─── INFO ──────────────────────────────────────────────────────────── */
.info { max-width: 720px; }
.info-list { display: flex; flex-direction: column; gap: 12px; }
.info-list li {
  padding: 12px 16px;
  background: rgba(245, 241, 232, 0.03);
  border-left: 3px solid var(--jade);
  border-radius: 0 6px 6px 0;
  color: rgba(245, 241, 232, 0.8);
  font-size: 13.5px;
}

/* ─── FOOTER ────────────────────────────────────────────────────────── */
.footer {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--line);
  padding: 48px 24px 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 1100px; margin: 0 auto;
}
.footer h4 {
  color: var(--gold);
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.footer ul li { padding: 4px 0; }
.footer a { color: rgba(245, 241, 232, 0.6); font-size: 13px; }
.footer a:hover { color: var(--paper); }
.footer p { font-size: 13px; color: rgba(245, 241, 232, 0.55); margin: 0; }
.footer-bottom {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: rgba(245, 241, 232, 0.4);
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding: 14px 18px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 12px; }
  section { padding: 56px 18px; }
  .hero-inner { padding: 32px 18px; }
  .feature { padding: 24px 18px; }
  .download-grid { grid-template-columns: 1fr; }
}
