/* ===== CSS 변수 ===== */
:root {
  --bg: transparent;
  --surface: rgba(255, 255, 255, 0.08);
  --surface2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f0eeff;
  --text-muted: #b0a8d8;
  --text-light: #7a70aa;
  --accent: #a78bfa;
  --accent-hover: #8b5cf6;
  --accent-light: rgba(167, 139, 250, 0.15);
  --success: #34d399;
  --error: #f87171;
  --shadow-sm: 0 1px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --radius: 14px;
  --glass: rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.14);
  --glow: rgba(167,139,250,0.25);
}

body.dark {
  --surface: rgba(255, 255, 255, 0.06);
  --surface2: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.09);
  --text: #ede9fe;
  --text-muted: #9d8ec4;
  --text-light: #5c5280;
  --accent: #c4b5fd;
  --accent-hover: #a78bfa;
  --accent-light: rgba(196,181,253,0.12);
  --glow: rgba(196,181,253,0.2);
}

/* ===== 기본 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: #04040f;
  color: var(--text);
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  transition: color 0.3s;
}

/* 우주 캔버스 */
#cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 헤더 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 6, 24, 0.75);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s, border-color 0.3s;
}

.site-header .inner {
  display: flex;
  align-items: center;
  height: 60px;
  gap: 32px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 24px;
  flex: 1;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--accent); }

#theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
#theme-toggle:hover { background: var(--surface2); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  gap: 12px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--accent); }

/* ===== 히어로 ===== */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  background: transparent;
  position: relative;
}

.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 13px 32px;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(91,94,244,0.35);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(91,94,244,0.45);
}
.cta-btn:active { transform: translateY(0); }

/* ===== 섹션 공통 ===== */
.section { padding: 72px 0; }

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
}

/* ===== 피처드 카드 ===== */
.featured-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md), 0 0 30px rgba(167,139,250,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s, transform 0.2s, border-color 0.3s;
  cursor: pointer;
}
.featured-card:hover {
  box-shadow: var(--shadow-lg), 0 0 50px rgba(167,139,250,0.18);
  border-color: rgba(167,139,250,0.3);
  transform: translateY(-2px);
}

.featured-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.featured-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
  line-height: 1.4;
}

.featured-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 680px;
}

/* ===== 섹션 헤더 + 카테고리 탭 ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.section-header .section-title {
  margin-bottom: 0;
}

.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-tab {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cat-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cat-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.no-results {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 40px 0;
}

/* ===== 광고 슬롯 ===== */
.ad-slot {
  padding: 12px 0;
}

.ad-slot--banner {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ad-slot--multiplex {
  padding: 24px 0;
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ad-slot--infeed {
  cursor: default;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  min-height: 100px;
  overflow: hidden;
}

/* ===== 뉴스레터 섹션 ===== */
.newsletter-section {
  padding: 72px 0;
  background: linear-gradient(135deg, rgba(109,40,217,0.55) 0%, rgba(91,33,182,0.45) 100%);
  border-top: 1px solid rgba(167,139,250,0.2);
  border-bottom: 1px solid rgba(167,139,250,0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.newsletter-inner {
  text-align: center;
  max-width: 600px;
}

.newsletter-text h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.newsletter-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  background: rgba(255,255,255,0.95);
  color: #1a1d23;
}

.newsletter-form input::placeholder {
  color: #9ca3af;
}

.newsletter-form button {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: #1a1d23;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}

.newsletter-form button:hover {
  background: #000;
  transform: translateY(-1px);
}

.newsletter-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

.newsletter-status {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  min-height: 1.2em;
}

/* ===== 카드 그리드 ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.3s, transform 0.2s, border-color 0.3s;
  cursor: pointer;
}
.card:hover {
  box-shadow: var(--shadow-md), 0 0 30px rgba(167,139,250,0.15);
  border-color: rgba(167,139,250,0.25);
  transform: translateY(-3px);
}

.card-img {
  height: 140px;
  background-size: cover;
  background-position: center;
}
.card-img.productivity { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.card-img.finance      { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.card-img.health       { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.card-img.money        { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.card-img.tech         { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.card-img.study        { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }

.card-body { padding: 20px; }

.card-body h4 {
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 8px 0 10px;
  line-height: 1.4;
}

.card-body p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 14px;
}

.category-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 9px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

/* ===== 꿀팁 섹션 ===== */
.tips-section {
  padding: 72px 0;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tip-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.2s, border-color 0.3s;
}
.tip-card:hover {
  box-shadow: var(--shadow-md), 0 0 24px rgba(167,139,250,0.12);
  border-color: rgba(167,139,250,0.25);
  transform: translateY(-2px);
}

.tip-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.tip-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tip-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

kbd, code {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: monospace;
  font-size: 0.8rem;
}

/* ===== 소개 섹션 ===== */
.about-section {
  padding: 72px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.about-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-list li {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 160px;
}

.stat {
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px 28px;
  box-shadow: var(--shadow-sm), 0 0 20px rgba(167,139,250,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== 문의 섹션 ===== */
.contact-section {
  padding: 72px 0;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--glass-border);
}

.contact-inner {
  max-width: 680px;
}

.contact-inner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.contact-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group textarea { resize: vertical; }

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

#submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 0.97rem;
  font-weight: 700;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(91,94,244,0.3);
  margin-top: 4px;
}
#submit-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(91,94,244,0.4);
}
#submit-btn:active:not(:disabled) { transform: translateY(0); }
#submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

#form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.2em;
}
#form-status.success { color: var(--success); }
#form-status.error   { color: var(--error); }

/* ===== 푸터 ===== */
.site-footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(8,6,24,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding: 48px 24px 36px;
  align-items: start;
}

.footer-brand .logo {
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 24px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===== 개인정보처리방침 페이지 ===== */
.policy-page {
  padding: 60px 0 80px;
}

.policy-inner {
  max-width: 760px;
}

.policy-header {
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.policy-header h1 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.policy-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.policy-body > * + * {
  margin-top: 1.5rem;
}

.policy-body h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.policy-body h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-top: 1.2rem;
  color: var(--text);
}

.policy-body p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.policy-body ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-body ul li {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.policy-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy-contact {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.policy-contact p {
  font-size: 0.9rem;
  color: var(--text);
}

.policy-footer-nav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ===== 반응형 ===== */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; justify-content: center; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .main-nav { display: none; }
  .menu-btn { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 1.8rem; }
  .featured-card { padding: 24px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .newsletter-form { flex-direction: column; }
  .footer-links { gap: 32px; }
}

@media (max-width: 400px) {
  .tips-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; align-items: center; }
  .footer-links { flex-direction: column; gap: 24px; }
}
