/* =====================================================================
   🎨  디자인 / 색상 설정  (다크 테마)
   색을 바꾸고 싶으면 아래 --brand 값(예: #8b5cf6)만 바꿔보세요.
   밝은 테마로 되돌리고 싶으면 알려주세요.
   ===================================================================== */
:root {
  --brand:        #8b5cf6;   /* 메인 색상 (보라) — 어두운 배경용으로 밝게 */
  --brand-dark:   #7c3aed;
  --brand-light:  #221d33;   /* 어두운 보라 톤 (배지 배경) */
  --accent:       #fbbf24;   /* 강조 색상 (가격/배지) */

  --ink:          #f4f2fa;   /* 밝은 글자색 (제목) */
  --ink-soft:     #b9b4cc;   /* 본문 글자색 */
  --ink-faint:    #837e98;   /* 옅은 글자색 */
  --line:         #2a2540;   /* 구분선 */
  --bg:           #0d0b14;   /* 배경 (거의 검정) */
  --bg-alt:       #131020;   /* 섹션 교차 배경 */
  --card:         #1a1729;   /* 카드 배경 */

  --radius:       18px;
  --radius-sm:    12px;
  --shadow:       0 14px 36px -16px rgba(0, 0, 0, .7);
  --shadow-lg:    0 36px 70px -24px rgba(0, 0, 0, .8);
  --maxw:         1120px;

  /* 상품 카드 색상 프리셋 */
  --c-violet: linear-gradient(135deg,#7c3aed,#a855f7);
  --c-blue:   linear-gradient(135deg,#2563eb,#38bdf8);
  --c-green:  linear-gradient(135deg,#059669,#34d399);
  --c-orange: linear-gradient(135deg,#ea580c,#fbbf24);
  --c-pink:   linear-gradient(135deg,#db2777,#f472b6);
  --c-dark:   linear-gradient(135deg,#374151,#6b7280);
}

/* ---------- 기본 리셋 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
               system-ui, "Segoe UI", Roboto, "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; font-weight: 800; }
::selection { background: rgba(139,92,246,.35); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 760px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 12px 28px -8px rgba(139,92,246,.55);
}
.btn-primary:hover { background: #9d72f7; transform: translateY(-2px); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: #c4b5fd; }
.btn-block { width: 100%; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,11,20,.72);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(0,0,0,.9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; }
.logo-emoji { font-size: 22px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; font-size: 15px; color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: #fff; }
.nav .nav-cta {
  background: var(--brand); color: #fff; padding: 9px 18px; border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--brand-dark); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; text-align: center; padding: 90px 0 70px; }
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(139,92,246,.30), transparent 70%),
    radial-gradient(42% 42% at 82% 8%, rgba(245,158,11,.16), transparent 70%),
    radial-gradient(42% 42% at 14% 16%, rgba(56,189,248,.16), transparent 70%);
  z-index: -1;
}
.hero-badge {
  display: inline-block; background: var(--brand-light); color: #c4b5fd;
  font-weight: 700; font-size: 13.5px; padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
  border: 1px solid #332b4d;
}
.hero-title { font-size: clamp(34px, 6vw, 58px); margin-bottom: 18px; }
.hero-subtitle { font-size: clamp(16px, 2.4vw, 20px); color: var(--ink-soft); max-width: 600px; margin: 0 auto 30px; white-space: pre-line; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.pay-methods { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.pay-label { font-size: 13px; color: var(--ink-faint); font-weight: 700; margin-right: 2px; }
.pay-chip { font-size: 13px; font-weight: 700; color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; }

.stats { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 54px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 28px; min-width: 150px; box-shadow: var(--shadow); }
.stat-value { font-size: 28px; font-weight: 800; color: #c4b5fd; }
.stat-label { font-size: 13.5px; color: var(--ink-faint); margin-top: 2px; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: #c4b5fd; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ---------- 상품 필터 ---------- */
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.filter-pill {
  background: var(--card); border: 1.5px solid var(--line); color: var(--ink-soft);
  font-weight: 600; font-size: 14.5px; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  transition: .15s;
}
.filter-pill:hover { border-color: var(--brand); color: #fff; }
.filter-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 상품 그리드 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #3a3357; }
.product-thumb {
  position: relative; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  font-size: 64px; color: #fff; background: var(--c-violet); background-size: cover; background-position: center;
}
.product-thumb.violet { background: var(--c-violet); }
.product-thumb.blue   { background: var(--c-blue); }
.product-thumb.green  { background: var(--c-green); }
.product-thumb.orange { background: var(--c-orange); }
.product-thumb.pink   { background: var(--c-pink); }
.product-thumb.dark   { background: var(--c-dark); }
.product-badge {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: #1a1208;
  font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; letter-spacing: .02em;
}
.product-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 12.5px; font-weight: 700; color: #c4b5fd; margin-bottom: 7px; }
.product-title { font-size: 18.5px; font-weight: 800; margin-bottom: 6px; }
.product-sub { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px; }
.product-features { list-style: none; margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.product-features li { font-size: 14px; color: var(--ink-soft); padding-left: 24px; position: relative; }
.product-features li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: #a78bfa; font-weight: 800; }
.product-foot { margin-top: auto; }
.price-row { display: flex; align-items: baseline; gap: 9px; margin-bottom: 14px; }
.price { font-size: 24px; font-weight: 800; color: var(--ink); }
.price-compare { font-size: 15px; color: var(--ink-faint); text-decoration: line-through; }
.price-off { font-size: 13px; font-weight: 800; color: var(--accent); background: rgba(251,191,36,.14); padding: 2px 8px; border-radius: 6px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn-detail { flex: 0 0 auto; }
.btn-buy { flex: 1; }

/* 결제 링크가 아직 없을 때 표시 */
.buy-pending { background: #211d33; color: var(--ink-faint); border: 1.5px dashed #3a3357; cursor: not-allowed; }
.buy-pending:hover { background: #211d33; transform: none; }

/* ---------- 특징 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); gap: 20px; justify-content: center; }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.feature-ico { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- 후기 ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.stars { color: #fbbf24; font-size: 17px; letter-spacing: 2px; margin-bottom: 12px; }
.review-card blockquote { font-size: 15.5px; color: var(--ink); margin-bottom: 14px; }
.review-card figcaption { font-size: 13.5px; color: var(--ink-faint); font-weight: 600; }

/* ---------- CTA 밴드 ---------- */
.cta-band { background: linear-gradient(135deg, #7c3aed, #4c1d95); color: #fff; text-align: center; padding: 70px 0; border-block: 1px solid #3a2a6e; }
.cta-inner h2 { font-size: clamp(24px, 4vw, 36px); margin-bottom: 10px; }
.cta-inner p { font-size: 17px; opacity: .92; margin-bottom: 26px; }
.cta-band .btn-primary { background: #fff; color: #5b21b6; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.cta-band .btn-primary:hover { background: #ede9fe; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 19px 22px; font-size: 16px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q .chev { transition: transform .25s; color: #a78bfa; flex: 0 0 auto; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 19px; color: var(--ink-soft); font-size: 15px; }

/* ---------- 푸터 ---------- */
.site-footer { background: #08060e; color: #b9b4cc; border-top: 1px solid var(--line); padding: 50px 0 38px; }
.footer-inner { text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 19px; color: #fff; margin-bottom: 18px; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { font-size: 14.5px; color: #b9b4cc; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-note { font-size: 13px; color: #6f6a85; }

/* ---------- 모달 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.66); backdrop-filter: blur(4px); }
.modal-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: var(--shadow-lg); animation: pop .22s ease; }
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(26,23,41,.92); border: 1px solid var(--line); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 15px; color: var(--ink-soft); }
.modal-close:hover { color: #fff; }
.modal-hero { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 84px; color: #fff; }
.modal-content { padding: 24px 26px 28px; }
.modal-content .product-cat { margin-bottom: 8px; }
.modal-content h3 { font-size: 23px; margin-bottom: 8px; }
.modal-content .product-sub { font-size: 15.5px; margin-bottom: 18px; }
.modal-content .product-features { margin-bottom: 22px; }
.modal-content .price-row { margin-bottom: 18px; }
.modal-reviews { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.modal-reviews h4 { font-size: 15px; font-weight: 800; margin-bottom: 14px; color: var(--ink); }
.modal-reviews .review-card { box-shadow: none; padding: 15px 16px; margin-bottom: 10px; }
.modal-reviews .review-card:last-child { margin-bottom: 0; }
.modal-reviews .review-card blockquote { font-size: 14px; margin-bottom: 10px; }
.modal-reviews .stars { font-size: 15px; margin-bottom: 9px; }

/* ---------- 결제(체크아웃) 모달 ---------- */
.checkout-card { max-width: 440px; }
.checkout-body { padding: 30px 26px 26px; }
.co-head { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.co-thumb { width: 58px; height: 58px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff; }
.co-head h3 { font-size: 18px; line-height: 1.35; margin: 3px 0 5px; }
.co-price { font-size: 18px; font-weight: 800; color: var(--brand); }
.co-label { display: block; font-size: 13.5px; font-weight: 800; color: var(--ink); margin: 16px 0 8px; }
.co-input { width: 100%; background: var(--bg-alt); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; font-size: 15px; color: var(--ink); }
.co-input:focus { outline: none; border-color: var(--brand); }
.co-hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 7px; }
.co-methods { display: grid; gap: 9px; }
.co-method { display: flex; justify-content: space-between; align-items: center; background: var(--bg-alt); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.co-method:hover { border-color: var(--brand); }
.co-method .co-check { opacity: 0; color: var(--brand); font-weight: 900; }
.co-method.selected { border-color: var(--brand); background: var(--brand-light); }
.co-method.selected .co-check { opacity: 1; }
.co-pay { margin-top: 22px; }
.co-msg { display: none; margin-top: 12px; font-size: 13.5px; color: #fca5a5; text-align: center; }
.co-msg.show { display: block; }
.co-secure { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 14px; line-height: 1.5; }
.co-secure b { color: #fcd34d; }
.co-success { text-align: center; padding: 14px 4px 4px; }
.co-success-ico { font-size: 54px; line-height: 1; margin-bottom: 12px; }
.co-success h3 { font-size: 21px; margin-bottom: 12px; }
.co-success p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 20px; }
.co-success .btn { margin-bottom: 10px; }

/* ---------- 반응형 ---------- */
@media (max-width: 760px) {
  .nav { position: fixed; top: 66px; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 8px 22px 18px; transform: translateY(-130%); transition: transform .28s ease; box-shadow: 0 24px 34px -22px rgba(0,0,0,.9); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { text-align: center; margin-top: 12px; border-bottom: 0; }
  .hamburger { display: flex; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 50px; }
  .stats { margin-top: 38px; gap: 12px; }
  .stat { padding: 14px 20px; min-width: 130px; }
}
