/* JUNIVERSE 랜딩 — 의존성 0, 시스템 폰트, 다크 테마 기본 */

:root {
  --bg:        #060a14;
  --bg-soft:   #0b0f1a;
  --bg-card:   #12151f;
  --border:    #1e2333;
  --text:      #e7e9ee;
  --text-mut:  #9a9faa;
  --text-dim:  #6b6f7a;
  --accent:    #7aa2ff;
  --radius:    14px;
  --maxw:      720px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
          "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── 헤더 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  width: 100%;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.wordmark-mark {
  display: block;
  width: 26px; height: 26px;
  color: var(--accent);
}
.wordmark-text { font-weight: 700; font-size: 14px; color: var(--text); }

/* ── 레이아웃 공통 ── */
main { display: block; }
.apps {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ── 히어로: 밤하늘 + 발광 JUNIVERSE (밤하늘은 라이트모드에서도 다크 유지) ── */
.hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 22px;
  overflow: hidden;
  background:
    radial-gradient(40% 32% at 22% 28%, rgba(86, 72, 168, .20), transparent 70%),
    radial-gradient(46% 40% at 80% 70%, rgba(38, 96, 156, .18), transparent 72%),
    radial-gradient(28% 24% at 60% 20%, rgba(150, 70, 120, .11), transparent 70%),
    radial-gradient(ellipse 120% 95% at 50% 30%,
              #0c1430 0%, #0a1124 40%, #070c1a 72%, #060a14 100%);
}
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
/* 비네팅 — 가장자리를 어둡게 눌러 중앙 집중 + 깊이감 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 78% 72% at 50% 46%,
              transparent 52%, rgba(6, 10, 20, .55) 100%);
}

/* ── 섹션 타이틀 ── */
.section-title {
  margin: 44px 0 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── 앱 ── */
.apps { padding-bottom: 96px; }
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.app-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.app-card:hover { border-color: #34384280; transform: translateY(-2px); }
.app-icon {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 30px;
  border-radius: 13px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.app-icon-img {
  display: block;
  object-fit: cover;
  background: transparent;
  border: 1px solid var(--border);
}
.app-body { min-width: 0; }
.app-name {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 700;
}
.app-name-en {
  margin-left: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
}
.app-desc {
  margin: 8px 0 16px;
  font-size: 15px;
  color: var(--text-mut);
}

/* ── 스토어 핀(아이콘 + 짧은 라벨) ── */
.app-stores { display: flex; flex-wrap: wrap; gap: 8px; }
.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.store-pill svg { width: 16px; height: 16px; flex: 0 0 auto; }
.store-pill:hover { border-color: var(--accent); color: var(--accent); }
.store-pill.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── 푸터 ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 22px 56px;
}
.footer-brand {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.biz-info { margin: 0; }
.biz-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}
.biz-row dt { color: var(--text-dim); }
.biz-row dd { margin: 0; color: var(--text-mut); }
.biz-row dd a { color: var(--accent); text-decoration: none; }
.biz-row dd a:hover { text-decoration: underline; }
.biz-note { color: var(--text-dim); font-size: 12px; }
.footer-copy {
  margin: 26px 0 0;
  font-size: 12px;
  color: var(--text-dim);
}

/* ── 모바일 ── */
@media (max-width: 480px) {
  .app-card { flex-direction: column; gap: 14px; }
  .biz-row { grid-template-columns: 110px 1fr; gap: 8px; }
}

/* ── 라이트모드 선호 시 (다크 친화 + 대비 보정) ── */
@media (prefers-color-scheme: light) {
  :root {
    --bg:       #f7f8fa;
    --bg-soft:  #ffffff;
    --bg-card:  #ffffff;
    --border:   #e3e5ea;
    --text:     #16181d;
    --text-mut: #51555f;
    --text-dim: #8b8f99;
    --accent:   #2f5bd6;
  }
}
