/* NOVISTA ONE — 공통 테마 v2.0 */
/* OS 다크/라이트 자동 감지 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* 라이트 (기본) */
:root {
  --font-display: 'Outfit', 'Noto Sans KR', sans-serif;
  --font-body: 'Noto Sans KR', 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bg: #fafafa;
  --surface: #ffffff;
  --surface2: #f4f4f6;
  --border: #e8e8ec;
  --border2: #d8d8e0;

  --text-primary: #111118;
  --text-secondary: #44445a;
  --text-muted: #8888a0;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* 다크 (OS 감지) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08090f;
    --surface: #111420;
    --surface2: #161924;
    --border: #1e2236;
    --border2: #252840;

    --text-primary: #f0eeff;
    --text-secondary: #b0a8d0;
    --text-muted: #505070;
  }
}

/* 브랜드 컬러 (테마별) */
.theme-viral   { --brand: #f97316; --brand2: #ea580c; --brand-soft: rgba(249,115,22,0.08); }
.theme-creator { --brand: #6366f1; --brand2: #4f46e5; --brand-soft: rgba(99,102,241,0.08); }
.theme-field   { --brand: #059669; --brand2: #047857; --brand-soft: rgba(5,150,105,0.08); }
.theme-academy { --brand: #9333ea; --brand2: #7e22ce; --brand-soft: rgba(147,51,234,0.08); }
.theme-nova    { --brand: #a855f7; --brand2: #7c3aed; --brand-soft: rgba(168,85,247,0.08); }

/* 타이포그래피 */
.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
}
.t-display-xl { font-size: clamp(2rem, 5vw, 3.2rem); }
.t-display-lg { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.t-display-md { font-size: clamp(1.2rem, 3vw, 1.6rem); }

.t-body   { font-family: var(--font-body); font-size: 0.88rem; line-height: 1.75; color: var(--text-secondary); }
.t-small  { font-family: var(--font-body); font-size: 0.76rem; line-height: 1.6; color: var(--text-muted); }
.t-label  { font-family: var(--font-display); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.t-mono   { font-family: var(--font-mono); }
.t-brand  { color: var(--brand); }

/* 버튼 */
.nv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 22px;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: all 0.18s; text-decoration: none; white-space: nowrap;
}
.nv-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nv-btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.nv-btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.nv-btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.nv-btn-sm { padding: 7px 16px; font-size: 0.74rem; }
.nv-btn-lg { padding: 13px 28px; font-size: 0.9rem; }

/* 카드 */
.nv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.18s, transform 0.18s;
}
.nv-card:hover { border-color: var(--brand); transform: translateY(-2px); }

/* 배지 */
.nv-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px;
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.06em;
}
.nv-badge-live    { background: rgba(34,197,94,0.1);  color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.nv-badge-soon    { background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(0,0,0,0.06); }
.nv-badge-brand   { background: var(--brand-soft); color: var(--brand); }

/* 네비 공통 */
.nv-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 56px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(var(--bg-rgb, 250,250,250), 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .nv-nav { background: rgba(8,9,15,0.94); }
}

/* 탭 공통 */
.nv-tabs {
  position: sticky; top: 56px; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: inherit;
  backdrop-filter: blur(16px);
}
.nv-tabs-inner {
  display: flex; overflow-x: auto; scrollbar-width: none;
  max-width: 1100px; margin: 0 auto; padding: 0 32px;
}
.nv-tabs-inner::-webkit-scrollbar { display: none; }
.nv-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; font-size: 0.76rem; font-weight: 500;
  color: var(--text-muted); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: all 0.15s;
  font-family: var(--font-body); background: none;
  border-top: none; border-left: none; border-right: none;
}
.nv-tab:hover { color: var(--text-secondary); }
.nv-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

/* 레이아웃 */
.nv-wrap  { max-width: 1100px; margin: 0 auto; padding: 40px 32px; }
.nv-panel { display: none; }
.nv-panel.active { display: block; }
.nv-hero  { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.nv-grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.nv-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 수익/스탯 숫자 */
.nv-stat { text-align: center; }
.nv-stat-num { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: var(--text-primary); line-height: 1; }
.nv-stat-num .unit { font-family: var(--font-body); font-size: 0.9rem; color: var(--brand); }
.nv-stat-lbl { font-size: 0.65rem; color: var(--text-muted); margin-top: 4px; }

/* 구분선 */
.nv-divider { height: 1px; background: var(--border); margin: 28px 0; }

/* Coming Soon */
.nv-cs {
  text-align: center; padding: 64px 20px;
}
.nv-cs-icon { font-size: 2.8rem; margin-bottom: 14px; }
.nv-cs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; max-width: 580px; margin: 0 auto 24px; }

/* 알림 신청 */
.nv-notify { display: flex; gap: 7px; max-width: 380px; margin: 0 auto; }
.nv-notify-inp {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-primary); padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.8rem; font-family: var(--font-body); outline: none;
  transition: border-color 0.15s;
}
.nv-notify-inp:focus { border-color: var(--brand); }
.nv-notify-inp::placeholder { color: var(--text-muted); }

/* 반응형 */
@media (max-width: 768px) {
  .nv-nav { padding: 0 16px; }
  .nv-tabs-inner { padding: 0 12px; }
  .nv-wrap { padding: 24px 16px; }
  .nv-hero { grid-template-columns: 1fr; }
  .nv-hero-visual { display: none; }
  .nv-grid3, .nv-grid2 { grid-template-columns: 1fr; }
  .nv-cs-grid { grid-template-columns: 1fr; }
  .t-display-xl { font-size: 1.8rem; }
  .t-display-lg { font-size: 1.4rem; }
}

/* 토스트 */
.nv-toast {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--text-primary); color: var(--bg);
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.78rem;
  z-index: 9999; opacity: 0; transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.nv-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
