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

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

:root {
  --bg: #f5f2ec;
  --bg-soft: #efeae1;
  --panel: #ffffff;
  --ink: #2a241d;
  --ink-soft: #6f665a;
  --line: #e3ddd0;
  --gold: #c9a24b;
  --purple-1: #6a3fd6;
  --purple-2: #b98cff;
  --purple-glow: #8b5cf6;
  --blue-1: #1e6fd9;
  --blue-2: #7fc4ff;
  --blue-glow: #3fa6ff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 50px rgba(42, 36, 29, 0.08);
}

body[data-theme="dark"], body.dark {
  --bg: #16130f;
  --bg-soft: #1e1a14;
  --panel: #211d17;
  --ink: #f3ede1;
  --ink-soft: #b3a996;
  --line: #342e24;
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.4);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans KR', sans-serif;
  overflow-x: hidden;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Landing page (index.html only) ---------- */
.landing-dark {
  background: radial-gradient(120% 90% at 50% 0%, #171126 0%, #0a0812 45%, #060509 100%);
  color: #fff;
}

.landing-dark .lp-orange-1 { color: #ff9a3c; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  gap: 24px;
}
.landing-dark .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 7, 14, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.landing-dark .site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-2), #ff9a3c, transparent);
  opacity: 0.5;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.landing-dark .logo-mark { background: linear-gradient(135deg, var(--purple-1), var(--blue-1)); box-shadow: 0 4px 18px rgba(106,63,214,0.5); }

.logo-mark svg { width: 24px; height: 24px; }

.logo-text { line-height: 1.1; }
.logo-text .name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
}
.logo-text .tagline {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.landing-dark .logo-text .name { color: #fff; }
.landing-dark .logo-text .tagline { color: rgba(255,255,255,0.5); }

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

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.main-nav a:hover { opacity: 1; }
.landing-dark .main-nav a {
  position: relative;
  color: rgba(255,255,255,0.75);
  padding-bottom: 4px;
  letter-spacing: 1.5px;
  transition: color 0.2s;
}
.landing-dark .main-nav a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: 0;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--purple-2), #ff9a3c);
  transition: left 0.25s ease, right 0.25s ease;
}
.landing-dark .main-nav a:hover {
  color: #fff;
  text-shadow: 0 0 14px rgba(185,140,255,0.6);
}
.landing-dark .main-nav a:hover::after { left: 0; right: 0; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lp-icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lp-icon-btn svg { width: 16px; height: 16px; }
.lp-icon-btn { transition: border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.lp-icon-btn:hover { border-color: rgba(185,140,255,0.5); color: #fff; box-shadow: 0 0 16px rgba(106,63,214,0.35); }

.dr-profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}
.dr-profile-chip .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: #6b5541;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dr-profile-chip .avatar svg { width: 16px; height: 16px; }
.dr-profile-chip .uname { font-size: 13px; font-weight: 700; color: var(--ink); }
.dr-profile-chip svg.chev { width: 13px; height: 13px; color: var(--ink-soft); }
.landing-dark .dr-profile-chip { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.16); padding: 9px 16px; box-shadow: none; transition: border-color 0.2s, box-shadow 0.2s; }
.landing-dark .dr-profile-chip:hover { border-color: rgba(185,140,255,0.5); box-shadow: 0 0 16px rgba(106,63,214,0.3); }
.landing-dark .dr-profile-chip .uname { color: #fff; }

.lp-signup-btn {
  padding: 10px 20px; border-radius: 999px; border: none; cursor: pointer;
  font-size: 13px; font-weight: 800; color: #fff; white-space: nowrap;
  background: linear-gradient(120deg, var(--purple-1), var(--blue-1));
  box-shadow: 0 10px 24px rgba(106,63,214,0.35);
  transition: filter 0.2s, box-shadow 0.2s, transform 0.2s;
}
.lp-signup-btn:hover { filter: brightness(1.1); box-shadow: 0 10px 30px rgba(106,63,214,0.55); transform: translateY(-1px); }
.landing-dark .dr-profile-chip .uname { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 32px 60px;
  position: relative;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 14px;
}
.landing-dark .eyebrow { color: rgba(255,255,255,0.55); }

.lp-wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: clamp(48px, 9vw, 110px);
  line-height: 1;
  color: #fff;
  margin-bottom: 18px;
}
.lp-wordmark .bang {
  background: linear-gradient(160deg, var(--purple-2), #ff9a3c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lp-tagline {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 48px;
  text-align: center;
  max-width: 560px;
}
.lp-tagline .accent {
  background: linear-gradient(120deg, var(--blue-2), var(--purple-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
}

/* ---------- Full scene artwork ---------- */
/* The real image already contains everything (people sketching left,
   glowing tree center, content thumbnails right) — shown whole, not
   cropped into separate mock panels. Only the bottom CTA row is
   clickable; these labels are non-interactive captions over the art. */
.lp-scene {
  position: relative;
  width: 100%;
  max-width: 1360px;
  margin-bottom: 40px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.lp-scene-img { display: block; width: 100%; height: auto; }

.lp-scene-label {
  position: absolute;
  top: 26px;
  max-width: 260px;
  pointer-events: none;
}
.lp-scene-label.left { left: 30px; }
.lp-scene-label.right { right: 30px; text-align: right; }
.lp-scene-label .t { font-size: clamp(26px, 4.2vw, 44px); font-weight: 800; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.6); }
.lp-scene-label .s { font-size: clamp(12px, 1.4vw, 15px); color: rgba(255,255,255,0.8); margin-top: 6px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }

.hl { font-family: 'Playfair Display', serif; font-style: italic; color: #fff; }

/* ---------- Bottom CTA ---------- */
.lp-cta-row { display: flex; gap: 20px; width: 100%; max-width: 1100px; }
.lp-cta {
  flex: 1; display: flex; align-items: center; gap: 14px; padding: 20px 26px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); cursor: pointer; font-family: inherit;
}
.lp-cta.left { background: linear-gradient(120deg, rgba(106,63,214,0.28), rgba(30,111,217,0.14)); }
.lp-cta.right { background: linear-gradient(120deg, rgba(255,154,60,0.16), rgba(255,106,92,0.24)); flex-direction: row-reverse; text-align: right; }
.lp-cta .ic {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center;
}
.lp-cta .ic svg { width: 20px; height: 20px; color: #fff; }
.lp-cta .arrow {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; margin-left: auto;
  border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center;
}
.lp-cta.right .arrow { margin-left: 0; margin-right: auto; }
.lp-cta .arrow svg { width: 16px; height: 16px; color: #fff; }
.lp-cta .txt { display: flex; flex-direction: column; gap: 2px; }
.lp-cta .t { font-size: 20px; font-weight: 800; color: #fff; }
.lp-cta .t .hl { font-size: 1.15em; }
.lp-cta .s { font-size: 11.5px; color: rgba(255,255,255,0.6); }
.lp-cta:hover { border-color: rgba(255,255,255,0.35); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-header { padding: 18px 20px; }
  .main-nav { display: none; }
  .lp-cta-row { flex-direction: column; }
}

@media (max-width: 640px) {
  .lp-scene-label { position: static; max-width: none; padding: 14px 16px 0; }
  .lp-scene-label.left { padding-bottom: 6px; }
  .lp-scene-label.right { text-align: left; padding-bottom: 16px; }
}

@media (max-width: 480px) {
  .site-header { padding: 16px 16px; gap: 10px; }
  .logo-text .tagline { display: none; }
  .header-actions { gap: 8px; }
  .lp-icon-btn { width: 34px; height: 34px; }
  .landing-dark .dr-profile-chip { padding: 8px 12px; }
  .landing-dark .dr-profile-chip .uname { font-size: 12px; }
  .lp-signup-btn { padding: 9px 14px; font-size: 12px; }
}

/* ---------- Sub pages ---------- */
.sub-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  gap: 18px;
}

.sub-page .eyebrow { margin-bottom: 0; }

.sub-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 5vw, 52px);
}

.sub-page p {
  color: var(--ink-soft);
  max-width: 480px;
}

.back-link {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
