:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  --sky-900: #0c4a6e;
  --bg: #f0f9ff;
  --text: #1e3a5f;
  --text-light: #6b8db5;
  --white: #ffffff;
  --border: #bae6fd;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --pink: #f472b6;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Noto Sans KR', 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --nav-h: 64px;
  --tr: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── 네비게이션 ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(240, 249, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(14, 165, 233, 0.1); }
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 700;
  color: var(--sky-700);
  letter-spacing: 1px;
}
.nav-logo .heart { color: var(--pink); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--text); padding: 4px 0; position: relative;
  transition: var(--tr);
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: var(--tr);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); transition: var(--tr); }

/* ─── 로그인 버튼 (nav) ─── */
.nav-login-btn {
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600)) !important;
  color: #fff !important; padding: 6px 18px !important; border-radius: 8px;
  font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0.5px;
  transition: var(--tr); white-space: nowrap;
}
.nav-login-btn::after { display: none !important; }
.nav-login-btn:hover {
  box-shadow: 0 4px 16px rgba(14,165,233,0.3);
  transform: translateY(-1px); color: #fff !important;
}
.nav-login-btn.logged-in {
  background: linear-gradient(135deg, var(--sky-600), var(--sky-700)) !important;
}
.auth-dropdown {
  display: none; position: absolute; top: 42px; right: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 8px 30px rgba(14,165,233,0.12);
  min-width: 140px; overflow: hidden; z-index: 200;
}
.auth-dropdown.show { display: block; }
.auth-dropdown a {
  display: block; padding: 12px 20px; font-size: 13px; font-weight: 500;
  color: var(--text); transition: var(--tr);
}
.auth-dropdown a:hover { background: var(--sky-50); color: var(--accent); }
.auth-dropdown a::after { display: none !important; }

/* ─── 레이아웃 ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 36px; font-weight: 600; margin-bottom: 12px;
}
.section-header p { color: var(--text-light); font-size: 15px; max-width: 460px; margin: 0 auto; }
.section-label {
  display: inline-block; font-size: 11px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}

/* 버튼 */
.btn {
  display: inline-block; padding: 12px 32px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  border: none; border-radius: 28px; cursor: pointer; transition: var(--tr);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,165,233,0.3); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-white { background: #fff; color: var(--accent); }
.btn-white:hover { background: var(--sky-100); transform: translateY(-2px); }

/* ─── 페이지 히어로 ─── */
.page-hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--sky-100) 0%, var(--bg) 100%);
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 42px; font-weight: 600; margin-bottom: 10px;
  color: var(--sky-800);
}
.page-hero p { color: var(--text-light); font-size: 16px; }

/* ─── 푸터 ─── */
.footer {
  background: var(--sky-900); color: rgba(255,255,255,0.65);
  padding: 48px 0 28px; text-align: center;
}
.footer .logo { font-family: var(--font-heading); font-size: 20px; color: #fff; margin-bottom: 8px; }
.footer .logo .heart { color: var(--pink); }
.footer p { font-size: 13px; margin-bottom: 4px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin: 16px 0; }
.footer-links a { font-size: 13px; transition: var(--tr); }
.footer-links a:hover { color: var(--sky-300); }

/* ─── fade-in ─── */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── 반응형 ─── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); flex-direction: column;
    padding: 20px; gap: 14px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .auth-dropdown {
    position: static; box-shadow: none; border: none; border-radius: 0;
    background: transparent; min-width: auto;
  }
  .auth-dropdown.show { display: flex; gap: 10px; }
  .auth-dropdown a {
    padding: 8px 16px; border-radius: 10px; background: var(--sky-50);
    text-align: center; font-size: 13px;
  }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 28px; }
  .page-hero h1 { font-size: 30px; }
}
