/* ============================================================
   매매의정석 랜딩 페이지 — style.css
   🎨 다크 네이비 배경 + 핑크 포인트
============================================================ */

/* ── 0. CSS VARIABLES ──────────────────────────────────────── */
:root {
  --c-bg:         #0f0f1e;
  --c-bg-2:       #161628;
  --c-bg-card:    #ffffff;
  --c-pink:       #e0336a;
  --c-pink-lt:    #f04d80;
  --c-pink-dk:    #b8224f;
  --c-pink-glow:  rgba(224,51,106,0.35);
  --c-text:       #ffffff;
  --c-text-muted: rgba(255,255,255,0.60);
  --c-text-dark:  #111111;
  --grad-bg:      linear-gradient(160deg, #1a1030 0%, #0f0f1e 40%, #1a0a2e 100%);
  --grad-pink:    linear-gradient(135deg, #b8224f 0%, #e0336a 50%, #f04d80 100%);
  --grad-badge:   linear-gradient(135deg, #4a1060 0%, #c0306a 100%);
  --max-w:        600px;
  --r-card:       20px;
  --r-btn:        50px;
  --f-main:       'Pretendard', 'Inter', sans-serif;
}

/* ── 1. RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--f-main);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
strong { font-weight: 700; }

/* ── 2. WRAPPER ─────────────────────────────────────────────── */
.kd-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── 3. HERO 섹션 ────────────────────────────────────────────── */
.kd-hero {
  background: var(--grad-bg);
  padding: 40px 20px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}

/* 배경 글로우 효과 */
.kd-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(224,51,106,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── 4. 헤드라인 블록 ────────────────────────────────────────── */
.kd-headline-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  max-width: var(--max-w);
  width: 100%;
}

.kd-sub-headline {
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.3px;
}

.kd-headline {
  font-family: var(--f-main);
  font-size: clamp(32px, 8.4vw, 44px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-top: -3px;
  /* 핑크~화이트 네온 그라데이션 텍스트 */
  background: linear-gradient(135deg, #ffffff 0%, #ffb3cc 50%, #e0336a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(224,51,106,0.4));
}

.kd-caution-text {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

/* ── 5. 상품 카드 ─────────────────────────────────────────────── */
.kd-product-card {
  background: #ffffff;
  border-radius: var(--r-card);
  overflow: hidden;
  width: 100%;
  max-width: var(--max-w);
  box-shadow:
    0 0 0 1px rgba(224,51,106,0.15),
    0 20px 60px rgba(0,0,0,0.5),
    0 4px 16px rgba(0,0,0,0.3);
  position: relative;
}

/* Trading Indicator 배지 */
.kd-product-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: var(--grad-badge);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 8px 24px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 16px rgba(192,48,106,0.5);
  white-space: nowrap;
}

/* ── 6. 비디오 ──────────────────────────────────────────────── */
.kd-video-wrap {
  width: 100%;
  margin-top: 32px; /* 배지 공간 확보 */
}

.kd-video-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.kd-video-ratio iframe,
#kdYTPlaceholder,
#kdYTPlaceholder iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}

/* 오버레이 */
.kd-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.kd-overlay:hover { background: rgba(0,0,0,0.65); }
.kd-overlay.kd-hidden { display: none; }

.kd-sound-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--grad-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 0 28px var(--c-pink-glow);
  animation: soundPulse 2s ease-in-out infinite;
}
@keyframes soundPulse {
  0%,100% { box-shadow: 0 0 28px var(--c-pink-glow); transform: scale(1); }
  50%      { box-shadow: 0 0 48px rgba(224,51,106,0.65); transform: scale(1.06); }
}
.kd-overlay-text {
  font-size: 15px;
  font-weight: 700;
  color: #ffb3cc;
}
.kd-overlay-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

/* VIP 배지 */
.kd-vip-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 9;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(224,51,106,0.40);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 10px;
  color: #ffb3cc;
  font-weight: 600;
  letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}

/* 진행바 */
.kd-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(0,0,0,0.10);
  position: relative;
  overflow: hidden;
}
.kd-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-pink);
  transition: width 1s linear;
}
.kd-progress-label {
  padding: 10px 14px;
  font-size: 12px;
  color: #888;
  background: #f7f7f7;
  text-align: center;
}
.kd-progress-label.kd-done {
  color: var(--c-pink-dk);
  font-weight: 700;
  background: #fff0f4;
}

/* ── 7. 상품 카드 하단 정보 ──────────────────────────────────── */
.kd-product-info {
  padding: 24px 24px 28px;
  text-align: center;
  background: #ffffff;
}

.kd-product-title {
  font-size: clamp(20px, 5.5vw, 26px);
  font-weight: 900;
  color: #111111;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.kd-product-divider {
  border: none;
  border-top: 1.5px solid #eeeeee;
  margin: 0 0 14px;
}

.kd-product-desc {
  font-size: 14.5px;
  color: #555555;
  line-height: 1.7;
  font-weight: 500;
}

/* ── 8. REVEAL 애니메이션 ─────────────────────────────────────── */
.kd-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.kd-reveal.kd-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 9. CTA 섹션 ──────────────────────────────────────────────── */
.kd-cta-section {
  background: var(--c-bg-2);
  padding: 48px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 100%;
}

/* 체크 아이콘 */
.kd-check-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 4px 20px var(--c-pink-glow);
}

/* 안내 텍스트 */
.kd-cta-text-block {
  text-align: center;
  max-width: var(--max-w);
}
.kd-cta-sub {
  font-size: 20px;
  color: var(--c-text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.kd-cta-main {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

/* 캡슐 배너 */
.kd-capsule-banner {
  background: #ffffff;
  color: #111111;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  text-align: center;
  max-width: var(--max-w);
  width: 100%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  line-height: 1.5;
}

/* 하이라이트 */
mark.kd-highlight {
  background: rgba(224,51,106,0.18);
  color: var(--c-pink);
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 700;
}

/* 화살표 */
.kd-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--c-pink);
  font-size: 16px;
  animation: arrowBounce 1.4s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%,100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(6px); opacity: 0.65; }
}

/* ── 10. 잠금 안내 ────────────────────────────────────────────── */
.kd-lock-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.18);
  width: 100%;
  max-width: var(--max-w);
  text-align: center;
}
.kd-lock-icon {
  font-size: 20px;
  color: rgba(255,255,255,0.50);
}
.kd-lock-msg {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.kd-lock-prog {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.80);
}
.kd-lock-wrap.kd-done {
  background: rgba(224,51,106,0.10);
  border-color: rgba(224,51,106,0.35);
}
.kd-lock-wrap.kd-done .kd-lock-icon { color: var(--c-pink-lt); }
.kd-lock-wrap.kd-done .kd-lock-msg  { color: #ffb3cc; }
.kd-lock-wrap.kd-done .kd-lock-prog { color: #ffffff; }

/* ── 11. 본문 CTA 버튼 ───────────────────────────────────────── */
.kd-btn-main {
  display: block;
  width: 100%;
  max-width: var(--max-w);
  border-radius: var(--r-btn);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  transition: all 0.3s ease;
  text-align: center;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 잠금 상태 */
.kd-btn-main.kd-locked {
  background: #111111;
  border: 2.5px solid var(--c-pink);
  color: rgba(255,255,255,0.55);
  cursor: not-allowed;
  box-shadow: 0 0 18px var(--c-pink-glow);
}
.kd-btn-main .kd-on  { display: none; }
.kd-btn-main.kd-locked .kd-on  { display: none; }
.kd-btn-main.kd-locked .kd-off { display: flex; align-items: center; gap: 6px; width: 100%; justify-content: center; }

.kd-btn-lock-status {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
}
.kd-btn-lock-status strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--c-pink-lt);
}

/* 활성 상태 */
.kd-btn-main.kd-active {
  background: #111111;
  border: 2.5px solid var(--c-pink);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 0 0 var(--c-pink-glow);
  animation: fbarPulse 2.2s ease-in-out infinite;
}
.kd-btn-main.kd-active .kd-off { display: none; }
.kd-btn-main.kd-active .kd-on  {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 18px;
  font-weight: 900;
}
.kd-btn-main.kd-active:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--c-pink-glow);
}
@keyframes fbarPulse {
  0%,100% { box-shadow: 0 0 0 0 var(--c-pink-glow); }
  50%      { box-shadow: 0 0 24px 4px var(--c-pink-glow); }
}

/* ── 버튼 위 안내 문구 ───────────────────────────────────────── */
.kd-btn-guide {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  color: rgba(255,255,255,0.70);
  max-width: var(--max-w);
  margin-bottom: -6px;
}
.kd-btn-guide strong {
  font-weight: 800;
  color: var(--c-pink-lt);
}

/* ── 12. 주의사항 박스 ────────────────────────────────────────── */
.kd-warning-box {
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  width: 100%;
  max-width: var(--max-w);
}
.kd-warning-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.70);
  margin-bottom: 6px;
}
.kd-warning-body {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ── 13. FOOTER ──────────────────────────────────────────────── */
.kd-footer {
  padding: 32px 20px 120px;
  background: #0a0a18;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.kd-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.kd-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,50,50,0.08);
  border: 1px solid rgba(255,50,50,0.22);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,100,100,0.90);
  transition: all 0.2s;
}
.kd-yt-btn:hover {
  background: rgba(255,50,50,0.15);
  border-color: rgba(255,50,50,0.35);
}

.kd-footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.kd-footer-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.kd-footer-links a:hover { opacity: 1; }

.kd-footer-disc {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  line-height: 1.7;
}

.kd-privacy-box,
.kd-terms-box {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  margin-top: 8px;
}
.kd-privacy-box h3,
.kd-terms-box h3 {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
}
.kd-privacy-box p,
.kd-terms-box p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ── 14. 플로팅 CTA 버튼 ─────────────────────────────────────── */
.kd-fbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10,10,24,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.kd-btn-fbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  border-radius: var(--r-btn);
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.3px;
  transition: all 0.3s ease;
  color: #ffffff;
}

/* 잠금 상태 */
.kd-btn-fbar[aria-disabled="true"] {
  background: #1e1e30;
  border: 2.5px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.40);
  cursor: not-allowed;
}
.kd-btn-fbar[aria-disabled="true"] .kd-fbar-arrow { color: rgba(255,255,255,0.20); }

/* 활성 상태 */
.kd-btn-fbar[aria-disabled="false"] {
  background: #111111;
  border: 2.5px solid var(--c-pink);
  color: #ffffff;
  cursor: pointer;
  animation: fbarPulse 2.2s ease-in-out infinite;
}
.kd-btn-fbar[aria-disabled="false"] .kd-fbar-arrow { color: rgba(255,255,255,0.70); }
.kd-btn-fbar[aria-disabled="false"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--c-pink-glow);
}

.kd-fbar-lock-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kd-fbar-lock-icon {
  font-size: 14px;
  opacity: 0.6;
}
.kd-fbar-arrow {
  font-size: 16px;
  flex-shrink: 0;
}

/* ── 15. TOAST ────────────────────────────────────────────────── */
.kd-unlock-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 300;
  background: #111111;
  border: 1.5px solid var(--c-pink);
  border-radius: 50px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 8px 32px var(--c-pink-glow);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s, transform 0.3s;
}
.kd-unlock-toast i { color: var(--c-pink-lt); }
.kd-unlock-toast.kd-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 16. SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0f0f1e; }
::-webkit-scrollbar-thumb { background: rgba(224,51,106,0.30); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(224,51,106,0.55); }

/* ── 17. SELECTION ────────────────────────────────────────────── */
::selection {
  background: rgba(224,51,106,0.25);
  color: #ffffff;
}

/* ── 18. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 400px) {
  .kd-headline { font-size: 31px; }
  .kd-btn-main { font-size: 15px; padding: 16px 18px; }
  .kd-btn-fbar { font-size: 16px; padding: 14px 20px; }
  .kd-cta-main { font-size: 22px; }
}

@media (min-width: 640px) {
  .kd-hero { padding: 56px 32px 48px; }
  .kd-cta-section { padding: 56px 32px 48px; }
}

@media (min-width: 768px) {
  .kd-fbar { display: none; }
  .kd-footer { padding-bottom: 48px; }
}
