/* PSI 사이 랜딩·약관 공용 스타일 — 앱과 동일한 다크+퍼플 브랜드 톤 */
:root {
  --bg-primary: #0a0812;
  --bg-secondary: #1a1535;
  --accent: #534ab7;
  --accent-light: #7a6ee0;
  --text-primary: #cecbf6;
  --text-secondary: #a89fff;
  --highlight: #f4c0d1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ── 헤더 ───────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 8, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bg-secondary);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .psi { font-size: 26px; color: var(--accent-light); }
.brand .name { font-size: 17px; font-weight: 700; color: var(--text-primary); }

.lang-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lang-toggle button {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); font-size: 13px; padding: 4px 2px;
}
.lang-toggle button.active { color: var(--highlight); font-weight: 700; }
.lang-toggle .sep { color: var(--bg-secondary); }

/* ── 히어로 ─────────────────────────────────── */
.hero {
  text-align: center;
  padding: 90px 0 70px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(83, 74, 183, 0.25), transparent),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(244, 192, 209, 0.08), transparent);
}
.hero .psi-logo {
  width: 88px; height: 88px; border-radius: 44px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 44px; color: #fff; margin-bottom: 22px;
  box-shadow: 0 0 60px rgba(83, 74, 183, 0.5);
}
.hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.hero .tagline { font-size: 19px; color: var(--text-secondary); margin-bottom: 8px; }
.hero .sub { font-size: 15px; color: var(--text-secondary); opacity: 0.8; max-width: 520px; margin: 0 auto 36px; }

/* 다운로드 배지 (출시 전 Coming Soon) */
.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 10px 22px;
  min-width: 170px;
  text-align: left;
  opacity: 0.85;
  cursor: default;
}
.badge .small { font-size: 11px; color: var(--text-secondary); }
.badge .store { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.badge .soon {
  font-size: 10px; color: var(--highlight); font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-top: 2px;
}

/* ── 섹션 공통 ──────────────────────────────── */
section { padding: 64px 0; }
.section-title { text-align: center; font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.section-sub { text-align: center; font-size: 14px; color: var(--text-secondary); margin-bottom: 42px; }

/* ── 기능 카드 ──────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.feature {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 26px 22px;
}
.feature .icon { font-size: 30px; margin-bottom: 12px; }
.feature h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; }

/* ── 이용 순서 ──────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { text-align: center; padding: 10px 16px; }
.step .num {
  width: 40px; height: 40px; border-radius: 20px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; margin-bottom: 14px;
}
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-secondary); }

/* ── 푸터 ───────────────────────────────────── */
footer {
  border-top: 1px solid var(--bg-secondary);
  padding: 36px 0 48px;
  text-align: center;
}
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { color: var(--text-secondary); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--highlight); }
.copyright { font-size: 12px; color: var(--text-secondary); opacity: 0.6; }

/* ── 문서(약관·개인정보) ─────────────────────── */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.doc h1 { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.doc .effective { font-size: 13px; color: var(--text-secondary); margin-bottom: 36px; }
.doc h2 { font-size: 18px; font-weight: 700; margin: 34px 0 10px; color: var(--text-primary); }
.doc p, .doc li { font-size: 14.5px; color: var(--text-secondary); line-height: 1.75; }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
.doc th, .doc td { border: 1px solid var(--bg-secondary); padding: 9px 12px; text-align: left; color: var(--text-secondary); }
.doc th { background: var(--bg-secondary); color: var(--text-primary); }
.doc .notice {
  background: var(--bg-secondary);
  border-left: 3px solid var(--highlight);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 13.5px;
}
.doc a { color: var(--accent-light); }

/* ── 언어 표시 (ko/en 블록 전환) ──────────────── */
html[data-lang="ko"] .lang-en { display: none; }
html[data-lang="en"] .lang-ko { display: none; }

@media (max-width: 600px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 32px; }
  section { padding: 44px 0; }
}
