@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Noto+Serif+KR:wght@600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@700&display=swap');

:root {
  --bg: #1c1b19;
  --surface: #242320;
  --card: #2a2925;
  --text: #f2f1ed;
  --muted: #b6b1a7;
  --primary: #b08c2e;
  --primary-strong: #d4af37;
  --accent: rgba(212,175,55,0.15);
  --ring: rgba(212, 175, 55, 0.35);
  --line: rgba(255,255,255,0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(1200px 800px at 10% -10%, #2a2925 0%, var(--bg) 60%);
  color: var(--text);
  font-family: 'Cormorant Garamond', 'Noto Serif KR', serif;
  line-height: 1.7;
  letter-spacing: 0;
  word-break: keep-all;
  line-break: loose;
}

/* Intro Overlay */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(800px 400px at 50% 30%, rgba(212,175,55,0.12) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, #1a1917 0%, #1c1b19 100%);
  transition: opacity .6s ease, transform .6s ease;
}
.intro-inner { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center; 
  position: relative;
}
.intro-bars { margin-bottom: 12px; }
.intro-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-strong);
  letter-spacing: .01em;
  display: block;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  animation: logoIn .8s ease forwards;
}
.intro-sub {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  opacity: 0;
  transform: translateY(8px);
  animation: subIn .7s ease .18s forwards;
}
body.no-scroll { overflow: hidden; }
body.intro-done .intro-overlay { opacity: 0; transform: scale(.98); pointer-events: none; }

/* Intro text under bars */
.intro-copy {
  margin-top: 16px;
  display: grid;
  gap: 4px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.intro-copy .line1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  opacity: 1 !important;
  transform: none !important;
}
.intro-copy .line2 {
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  color: var(--muted);
  text-shadow: 0 1px 10px rgba(0,0,0,0.4);
  opacity: 1 !important;
  transform: none !important;
}
/* 폰트 임포트 (상단에서 처리) */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 헤더 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(28, 27, 25, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.logo:hover {
  color: #fff;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .3s ease;
  font-family: 'Noto Sans KR', sans-serif;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  box-shadow: 0 4px 20px var(--ring);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--ring);
}

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--primary-strong);
}
.btn.secondary:hover {
  background: var(--primary-strong);
  color: #1c1b19;
}

.btn.ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  background: rgba(255,255,255,0.15);
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, rgba(176,140,46,0.05) 0%, rgba(28,27,25,0.95) 100%);
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-strong);
  letter-spacing: 0;
}
.hero .subtitle {
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 18px);
  margin-bottom: 28px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Steps */
.steps {
  padding: 72px 0;
  text-align: center;
  background: var(--bg);
}
.steps h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  color: var(--primary-strong);
  margin-bottom: 40px;
  letter-spacing: 0;
}

h1, h2 { text-wrap: balance; }
p { word-break: keep-all; overflow-wrap: break-word; }

.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.step-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Features */
.features {
  padding: 72px 0;
  background: linear-gradient(180deg, #201f1b 0%, #1c1b19 100%);
}
.features h2 {
  text-align: center;
  font-size: 30px;
  color: var(--primary-strong);
  margin-bottom: 40px;
  letter-spacing: 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all .25s ease;
}
.feature-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.feature-card .emoji {
  font-size: 32px;
  margin-bottom: 12px;
}

/* Promo */
.promo {
  padding: 72px 0;
  background: linear-gradient(180deg, rgba(212,175,55,0.06) 0%, rgba(28,27,25,0) 100%);
}
.promo h2 {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  color: var(--primary-strong);
  margin-bottom: 12px;
  letter-spacing: 0;
}
.promo-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 36px;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.promo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: transform .25s ease, box-shadow .25s ease;
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.promo-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* FAQ */
.faq {
  padding: 72px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.faq h2 {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  color: var(--primary-strong);
  margin-bottom: 24px;
  letter-spacing: 0;
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  margin-left: auto;
  color: var(--primary-strong);
  font-weight: 700;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p {
  color: var(--muted);
  margin: 10px 0 0 0;
  line-height: 1.7;
}
.faq-list details:focus-within, .faq-list summary:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 10px;
}

/* Contact */
.contact {
  padding: 72px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(176,140,46,0.1) 0%, rgba(28,27,25,1) 100%);
}
.contact h2 {
  font-size: 28px;
  color: var(--primary-strong);
  letter-spacing: 0;
}
.contact-sub {
  color: var(--muted);
  margin-bottom: 20px;
}
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Sound toggle (shown only if autoplay blocked) */
.sound-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  height: 40px;
  padding: 0 12px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: all .25s ease;
}
.sound-toggle.show { opacity: 1; transform: none; pointer-events: auto; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #1a1917;
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* 포커스 */
.btn:focus-visible,
.logo:focus-visible,
.nav-actions a:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px var(--ring);
  border-color: var(--primary);
}

/* 반응형 */
@media (max-width: 640px) {
  .container { padding: 0 12px; }
  .container .logo { font-size: 20px; }
  .hero h1 { font-size: 28px; }
  .hero .subtitle { font-size: 16px; }
  .btn { height: 42px; }
}
