/* ═══════════════════════════════════════════
   패시브인컴 수익화모델 – main.css
   ═══════════════════════════════════════════ */

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --gold-pale: #F5E9C8;
  --dark: #0D0D0D;
  --dark2: #1A1A1A;
  --dark3: #252525;
  --text: #E8E0D0;
  --text-muted: #8A8070;
  --white: #FAF7F0;
  --accent: #D4572A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── HEADER ─── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 3rem;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.logo {
  font-family: 'Noto Serif KR', serif;
  font-weight: 900; font-size: 1.05rem;
  color: var(--gold); letter-spacing: 0.05em;
  text-decoration: none;
}
#site-header nav a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.82rem; margin-left: 2rem;
  letter-spacing: 0.08em; transition: color 0.2s;
}
#site-header nav a:hover { color: var(--gold); }
.btn-header {
  margin-left: 2rem; background: var(--gold);
  color: var(--dark); border: none;
  padding: 0.55rem 1.4rem; font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.08em;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s;
}
.btn-header:hover { background: var(--gold-light); }
.mobile-menu-btn {
  display: none; background: none; border: none;
  color: var(--gold); font-size: 1.4rem; cursor: pointer;
}
.mobile-nav {
  display: none; position: fixed; top: 60px; left: 0; right: 0;
  background: var(--dark2); z-index: 99;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 1rem 2rem; color: var(--text-muted);
  text-decoration: none; font-size: 0.9rem;
  border-bottom: 1px solid rgba(201,168,76,0.07);
}
.mobile-nav a:hover { color: var(--gold); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 8rem 2rem 5rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(212,87,42,0.05) 0%, transparent 60%),
    linear-gradient(160deg, #0D0D0D 0%, #131310 50%, #0D0D0D 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  max-width: 1100px; width: 100%;
}

/* Book mockup */
.book-wrap {
  display: flex; justify-content: center; align-items: center;
  perspective: 1000px;
}
.book {
  width: 240px; height: 320px; position: relative;
  transform: rotateY(-15deg) rotateX(5deg);
  transform-style: preserve-3d;
  animation: bookFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,0.7));
}
@keyframes bookFloat {
  0%, 100% { transform: rotateY(-15deg) rotateX(5deg) translateY(0); }
  50%       { transform: rotateY(-15deg) rotateX(5deg) translateY(-12px); }
}
.book-cover {
  width: 100%; height: 100%;
  background: linear-gradient(145deg, #1A1608 0%, #2A2010 40%, #1A1608 100%);
  border: 1px solid rgba(201,168,76,0.4);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem 1.5rem; position: relative; overflow: hidden;
}
.book-cover::before {
  content: ''; position: absolute; inset: 8px;
  border: 1px solid rgba(201,168,76,0.2); pointer-events: none;
}
.book-cover::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.book-icon {
  font-size: 2.8rem; margin-bottom: 1rem;
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.5));
}
.book-title-cover {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.15rem; font-weight: 900;
  color: var(--gold); text-align: center;
  line-height: 1.5; letter-spacing: 0.05em;
}
.book-sub-cover {
  font-size: 0.65rem; color: var(--text-muted);
  letter-spacing: 0.12em; margin-top: 0.8rem; text-transform: uppercase;
}
.book-spine {
  position: absolute; left: -18px; top: 0; bottom: 0; width: 18px;
  background: linear-gradient(180deg, #2A2010, #1A1608);
  border-left: 1px solid rgba(201,168,76,0.3);
  transform-origin: right center;
  transform: rotateY(-90deg) translateX(-9px);
}
/* 이미지 모드: 업로드 사진을 책 표지로 */
.book-cover--image {
  padding: 0;
  border: 1px solid rgba(201,168,76,0.4);
  overflow: hidden;
}
.book-cover--image::before,
.book-cover--image::after { display: none; }

/* Hero text */
.hero-text .badge {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold); font-size: 0.7rem;
  letter-spacing: 0.15em; padding: 0.35rem 0.9rem;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-text h1 {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 1.5rem;
}
.hero-text h1 em { font-style: normal; color: var(--gold); }
.hero-text p {
  font-size: 0.95rem; color: var(--text-muted);
  line-height: 1.9; margin-bottom: 2.5rem; max-width: 440px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.btn-primary {
  background: var(--gold); color: var(--dark);
  padding: 1rem 2.2rem; font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.05em; border: none; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: all 0.2s; position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%); transition: transform 0.3s;
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-secondary {
  border: 1px solid rgba(201,168,76,0.4); color: var(--gold);
  padding: 1rem 2rem; font-size: 0.9rem;
  background: transparent; cursor: pointer;
  text-decoration: none; display: inline-block; transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(201,168,76,0.08); }

.price-tag {
  font-family: 'Noto Serif KR', serif;
  font-size: 0.85rem; color: var(--text-muted);
}
.price-tag strong { font-size: 1.6rem; color: var(--white); font-weight: 900; margin-left: 0.3rem; }
.price-tag s { color: var(--text-muted); font-size: 0.9rem; margin-left: 0.4rem; }

/* ─── SECTION SHARED ─── */
section { padding: 6rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 0.7rem; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase; margin-bottom: 0.8rem;
}
.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900; line-height: 1.3; margin-bottom: 1rem;
}
.section-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.9; max-width: 560px; }
.divider { width: 40px; height: 2px; background: var(--gold); margin: 1.5rem 0; }

/* ─── PROOF BAR ─── */
.proof-bar {
  background: var(--dark2);
  border-top: 1px solid rgba(201,168,76,0.1);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  padding: 2rem;
}
.proof-grid {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem;
}
.proof-item { text-align: center; }
.proof-num {
  font-family: 'Noto Serif KR', serif;
  font-size: 2rem; font-weight: 900; color: var(--gold);
}
.proof-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; letter-spacing: 0.05em; }

/* ─── FEATURES ─── */
.features { background: var(--dark2); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px; margin-top: 3.5rem;
  border: 1.5px solid rgba(201,168,76,0.1);
}
.feat-item {
  padding: 2.5rem; background: var(--dark2);
  border: 1px solid rgba(201,168,76,0.07); transition: background 0.3s;
}
.feat-item:hover { background: rgba(201,168,76,0.04); }
.feat-icon { font-size: 1.8rem; margin-bottom: 1.2rem; display: block; }
.feat-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.7rem;
}
.feat-desc { font-size: 0.83rem; color: var(--text-muted); line-height: 1.8; }

/* ─── CONTENTS ─── */
.contents-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start; margin-top: 3rem;
}
.chapter-list { list-style: none; }
.chapter-list li {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid rgba(201,168,76,0.08);
  font-size: 0.87rem;
}
.chapter-num {
  font-family: 'Noto Serif KR', serif;
  font-size: 0.7rem; font-weight: 700; color: var(--gold);
  min-width: 2rem; padding-top: 0.1rem; letter-spacing: 0.05em;
}
.chapter-info strong { display: block; color: var(--white); font-size: 0.88rem; margin-bottom: 0.25rem; }
.chapter-info span { color: var(--text-muted); font-size: 0.78rem; }

/* ─── TESTIMONIALS ─── */
.testimonials { background: var(--dark3); }
.testi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 3.5rem;
}
.testi-card {
  background: var(--dark2); border: 1px solid rgba(201,168,76,0.1);
  padding: 2rem; position: relative;
}
.testi-card::before {
  content: '"'; font-family: 'Noto Serif KR', serif;
  font-size: 4rem; color: var(--gold); opacity: 0.2;
  position: absolute; top: 0.5rem; left: 1rem; line-height: 1;
}
.testi-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 1rem; }
.testi-text { font-size: 0.85rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 1.5rem; }
.testi-author strong { font-size: 0.85rem; color: var(--white); }
.testi-author span { font-size: 0.75rem; color: var(--text-muted); margin-left: 0.4rem; }

/* ─── PRICING ─── */
.pricing { background: var(--dark); }
.pricing-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 3.5rem;
}
.pricing-card {
  border: 1px solid rgba(201,168,76,0.15); padding: 2.5rem;
  position: relative; transition: border-color 0.3s;
}
.pricing-card:hover { border-color: rgba(201,168,76,0.4); }
.pricing-card.featured {
  border-color: var(--gold); background: rgba(201,168,76,0.03);
}
.featured-badge {
  position: absolute; top: -1px; right: 2rem;
  background: var(--gold); color: var(--dark);
  font-size: 0.65rem; font-weight: 700;
  padding: 0.3rem 0.8rem; letter-spacing: 0.1em;
}
.plan-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--gold); margin-bottom: 1.5rem; letter-spacing: 0.05em;
}
.plan-price { font-family: 'Noto Serif KR', serif; margin-bottom: 0.5rem; }
.plan-price .currency { font-size: 1rem; color: var(--text-muted); }
.plan-price .amount {
  font-size: 2.8rem; font-weight: 900; color: var(--white); letter-spacing: -0.02em;
}
.plan-price .original {
  font-size: 0.9rem; color: var(--text-muted);
  text-decoration: line-through; margin-left: 0.5rem;
}
.plan-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2rem; }
.plan-features { list-style: none; margin-bottom: 2.5rem; }
.plan-features li {
  font-size: 0.83rem; color: var(--text); padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; gap: 0.6rem;
}
.plan-features li::before { content: '✓'; color: var(--gold); font-weight: 700; font-size: 0.8rem; }
.plan-features li.muted { color: var(--text-muted); }
.plan-features li.muted::before { content: '–'; color: var(--text-muted); }

/* ─── ORDER FORM ─── */
#order { background: var(--dark2); }
.order-wrap {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 4rem; align-items: start; margin-top: 3rem;
}
.order-info .info-box {
  background: rgba(201,168,76,0.05); border: 1px solid rgba(201,168,76,0.2);
  padding: 1.8rem; margin-top: 2rem;
}
.order-info .info-box h4 {
  font-family: 'Noto Serif KR', serif;
  font-size: 0.9rem; font-weight: 700; color: var(--gold); margin-bottom: 1rem;
}
.bank-info { list-style: none; }
.bank-info li {
  display: flex; justify-content: space-between;
  font-size: 0.83rem; padding: 0.5rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.08);
}
.bank-info li:last-child { border: none; }
.bank-info li span:first-child { color: var(--text-muted); }
.bank-info li span:last-child { color: var(--white); font-weight: 500; }
.bank-copy {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.1rem; font-weight: 900;
  color: var(--gold); letter-spacing: 0.05em; cursor: pointer;
  border: 1px dashed rgba(201,168,76,0.3); background: none;
  display: block; margin-top: 1rem; width: 100%;
  padding: 0.8rem; text-align: center; transition: background 0.2s;
}
.bank-copy:hover { background: rgba(201,168,76,0.06); }

.form-group { margin-bottom: 1.4rem; }
.form-label {
  display: block; font-size: 0.78rem; color: var(--text-muted);
  letter-spacing: 0.08em; margin-bottom: 0.5rem; text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15); color: var(--text);
  padding: 0.85rem 1rem; font-size: 0.88rem;
  font-family: 'Noto Sans KR', sans-serif;
  outline: none; transition: border-color 0.2s; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); }
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C9A84C' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-select option { background: #1A1A1A; }
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.order-note {
  font-size: 0.78rem; color: var(--text-muted);
  line-height: 1.8; margin: 1.5rem 0; padding: 1rem;
  background: rgba(255,255,255,0.02); border-left: 2px solid var(--gold);
}
.btn-order {
  width: 100%; background: var(--gold); color: var(--dark);
  padding: 1.1rem; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.05em; border: none; cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif; transition: background 0.2s;
}
.btn-order:hover { background: var(--gold-light); }
.btn-order:disabled { opacity: 0.6; cursor: not-allowed; }

/* Form message */
.form-message {
  padding: 0.9rem 1rem; margin-bottom: 1.2rem;
  font-size: 0.85rem; line-height: 1.6;
}
.form-message.success { background: rgba(100,200,100,0.1); border: 1px solid rgba(100,200,100,0.3); color: #7fca7f; }
.form-message.error   { background: rgba(212,87,42,0.1);  border: 1px solid rgba(212,87,42,0.3);  color: #e07050; }

/* ─── MODAL ─── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.85); z-index: 999;
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--dark2); border: 1px solid rgba(201,168,76,0.3);
  padding: 3rem; max-width: 480px; width: 90%; text-align: center;
}
.modal-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.modal h3 {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.4rem; font-weight: 900; color: var(--gold); margin-bottom: 1rem;
}
.modal p { font-size: 0.87rem; color: var(--text-muted); line-height: 1.9; }
.modal-close {
  margin-top: 2rem; background: var(--gold); color: var(--dark);
  border: none; padding: 0.8rem 2rem; font-size: 0.85rem; font-weight: 700;
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
}

/* ─── FAQ ─── */
.faq { background: var(--dark); }
.faq-list { margin-top: 3rem; max-width: 720px; }
.faq-item { border-bottom: 1px solid rgba(201,168,76,0.1); }
.faq-q {
  width: 100%; background: none; border: none;
  color: var(--text); font-size: 0.9rem;
  font-family: 'Noto Sans KR', sans-serif;
  text-align: left; padding: 1.4rem 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-q:hover { color: var(--gold); }
.faq-arrow { color: var(--gold); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  font-size: 0.83rem; color: var(--text-muted);
  line-height: 1.9; padding: 0 0 1.4rem; display: none;
}
.faq-item.open .faq-a { display: block; }

/* ─── FOOTER ─── */
#site-footer {
  background: #080808; border-top: 1px solid rgba(201,168,76,0.1);
  padding: 3rem 2rem; text-align: center;
}
.footer-logo {
  font-family: 'Noto Serif KR', serif;
  font-size: 1rem; font-weight: 900; color: var(--gold); margin-bottom: 1rem;
}
.footer-links { margin-bottom: 1.5rem; }
.footer-links a {
  color: var(--text-muted); font-size: 0.78rem;
  text-decoration: none; margin: 0 1rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.75rem; color: #444; }

/* ─── SCROLL ANIMATIONS ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--gold); color: var(--dark);
  padding: 0.8rem 1.8rem; font-size: 0.85rem; font-weight: 700;
  transition: transform 0.3s; z-index: 200; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  #site-header { padding: 1rem 1.5rem; }
  #site-header nav { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .book-wrap { order: -1; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .contents-wrap { grid-template-columns: 1fr; }
  .order-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
}
