/* ══════════════════════════════════════════════════════════
   가치담다 PREMIUM v1.0
   플로팅 CTA · 모바일 탭바 · Exit Intent · 언론배너
   Before/After · ROI · 카카오 UI · 다크모드 · 마그네틱
   노이즈 텍스처 · 페이지 전환 · 슬롯머신 · 글리치
   ══════════════════════════════════════════════════════════ */

/* ════════════════════════════════════
   0. CSS 다크모드 변수 오버라이드
   ════════════════════════════════════ */
[data-theme="dark"] {
  --beige:       #111009;
  --cream:       #181410;
  --dark:        #F0EBE2;
  --gray:        #A89F98;
  --gray-border: #2A2522;
  --border:      rgba(255,255,255,0.08);
  --dm-card-bg:  rgba(255,255,255,0.04);
  --dm-card-border: rgba(255,255,255,0.08);
}
[data-theme="dark"] body {
  background: #111009;
  color: #F0EBE2;
}
[data-theme="dark"] .section-beige { background: #111009 !important; }
[data-theme="dark"] .section-cream { background: #181410 !important; }
[data-theme="dark"] .nav {
  background: rgba(17,16,9,.95) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
[data-theme="dark"] .nav-logo-text,
[data-theme="dark"] .nav-link { color: rgba(255,255,255,.8) !important; }
[data-theme="dark"] .svc-card {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.08) !important;
}
[data-theme="dark"] .review-card {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.08) !important;
}
[data-theme="dark"] .review-card p,
[data-theme="dark"] .rv-author strong { color: rgba(255,255,255,.8) !important; }
[data-theme="dark"] .cform-wrap {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.08) !important;
}
[data-theme="dark"] .cform input,
[data-theme="dark"] .cform select,
[data-theme="dark"] .cform textarea {
  background: rgba(255,255,255,.05) !important;
  border-color: rgba(255,255,255,.1) !important;
  color: rgba(255,255,255,.8) !important;
}
[data-theme="dark"] .about-hl,
[data-theme="dark"] .sec-title,
[data-theme="dark"] .ceo-hl,
[data-theme="dark"] .contact-hl { color: rgba(255,255,255,.92) !important; }
[data-theme="dark"] .about-desc,
[data-theme="dark"] .sec-desc,
[data-theme="dark"] .ceo-desc,
[data-theme="dark"] .contact-desc { color: rgba(255,255,255,.55) !important; }
[data-theme="dark"] .astat {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.08) !important;
}
[data-theme="dark"] .astat-num { color: #fff !important; }
[data-theme="dark"] .astat-label,
[data-theme="dark"] .astat-desc { color: rgba(255,255,255,.5) !important; }
[data-theme="dark"] .footer-top { background: #0a0906 !important; }
[data-theme="dark"] .location-sec { background: #0a0906 !important; }

/* 다크모드 전환 트랜지션 */
body,
.section-beige,
.section-cream,
.nav,
.svc-card,
.review-card,
.cform-wrap,
.astat {
  transition: background .4s ease, color .4s ease, border-color .4s ease !important;
}

/* ════════════════════════════════════
   1. 다크모드 토글 버튼
   ════════════════════════════════════ */
.darkmode-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-border);
  background: transparent;
  color: var(--gray);
  font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .25s ease;
  margin-right: 4px;
  flex-shrink: 0;
}
.darkmode-toggle:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: rotate(20deg);
}
[data-theme="dark"] .darkmode-toggle {
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
}

/* ════════════════════════════════════
   2. 고정 플로팅 CTA (우하단)
   ════════════════════════════════════ */
.float-cta-wrap {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.float-cta-wrap.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 잔여 슬롯 배지 */
.fcta-slot-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(17,10,5,.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(232,84,28,.35);
  border-radius: 50px;
  padding: 6px 14px 6px 10px;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
  animation: slotBadgePop .4s cubic-bezier(.34,1.56,.64,1) both;
}
.fcta-slot-badge strong { color: var(--orange); }
.fcta-slot-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: fcPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes fcPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,84,28,.5); }
  50%      { box-shadow: 0 0 0 5px rgba(232,84,28,0); }
}
@keyframes slotBadgePop {
  from { opacity:0; transform:scale(.8) translateY(10px); }
  to   { opacity:1; transform:scale(1)  translateY(0); }
}

/* 버튼 그룹 */
.fcta-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fcta-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  text-decoration: none;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  transition: all .25s cubic-bezier(.25,.46,.45,.94);
  cursor: pointer;
  min-width: 52px;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  position: relative;
}
.fcta-btn i { font-size: 1.1rem; }
.fcta-btn--tel {
  background: #fff;
  color: var(--dark);
  border: 1.5px solid var(--gray-border);
}
.fcta-btn--tel:hover { background: #f0f0f0; transform: translateY(-3px); }
.fcta-btn--kakao {
  background: #FEE500;
  color: #3A1D1D;
}
.fcta-btn--kakao:hover { background: #FFD700; transform: translateY(-3px); }
.fcta-btn--main {
  background: linear-gradient(155deg, #F06030 0%, var(--orange) 50%, #D04010 100%);
  color: #fff;
  padding: 12px 18px;
  border-radius: 16px;
  font-size: .72rem;
  min-width: 72px;
  box-shadow:
    0 2px 0 rgba(255,140,80,.4) inset,
    0 8px 28px rgba(232,84,28,.4);
}
.fcta-btn--main:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 0 rgba(255,140,80,.4) inset,
    0 14px 40px rgba(232,84,28,.55);
}
.fcta-label { line-height: 1; }

/* 핑 애니메이션 */
.fcta-ping {
  position: absolute;
  top: -4px; right: -4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  animation: fcPing 1.6s ease-in-out infinite;
}
@keyframes fcPing {
  0%   { transform:scale(1); opacity:.8; }
  70%  { transform:scale(2.2); opacity:0; }
  100% { transform:scale(1); opacity:0; }
}

/* 모바일에서 플로팅 CTA 숨김 (탭바가 대체) */
@media (max-width: 768px) {
  .float-cta-wrap { display: none; }
}

/* ════════════════════════════════════
   3. 모바일 하단 고정 탭바
   ════════════════════════════════════ */
.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(10,8,5,.96);
  backdrop-filter: blur(20px) saturate(1.5);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
@media (max-width: 768px) { .mobile-tabbar { display: flex; } }

.mtb-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  text-decoration: none;
  color: rgba(255,255,255,.35);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color .2s, transform .2s;
  position: relative;
}
.mtb-item i { font-size: 1.1rem; transition: transform .2s; }
.mtb-item:active { transform: scale(.9); }
.mtb-item--active,
.mtb-item:hover { color: rgba(255,255,255,.75); }
.mtb-item--active i,
.mtb-item:hover i { transform: translateY(-2px); }
.mtb-item--call {
  color: #25D366;
  background: rgba(37,211,102,.06);
  border-radius: 12px;
  margin: 0 2px;
}
.mtb-item--kakao {
  color: #FEE500;
  background: rgba(254,229,0,.06);
  border-radius: 12px;
  margin: 0 2px;
}
.mtb-item--cta {
  color: var(--orange);
  background: rgba(232,84,28,.10);
  border-radius: 12px;
  margin: 0 2px 0 4px;
}
.mtb-item--cta::before {
  content: '';
  position: absolute;
  top: -1px; left: 4px; right: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  border-radius: 1px;
}

/* 모바일 탭바 공간 확보 */
@media (max-width: 768px) {
  body { padding-bottom: 70px; }
}

/* ════════════════════════════════════
   4. Exit Intent 팝업
   ════════════════════════════════════ */
.exit-popup-overlay {
  position: fixed; inset: 0;
  z-index: 9998;
  background: rgba(4,3,2,.88);
  backdrop-filter: blur(20px) saturate(1.2);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.exit-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.ep-card {
  background: linear-gradient(160deg, #1a100a 0%, #221510 100%);
  border: 1px solid rgba(232,84,28,.25);
  border-radius: 24px;
  padding: 40px 36px 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  text-align: center;
  transform: scale(.9) translateY(20px);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 32px 80px rgba(0,0,0,.6);
}
.exit-popup-overlay.active .ep-card {
  transform: scale(1) translateY(0);
}
.ep-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.45);
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s;
}
.ep-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.ep-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(232,84,28,.15);
  border: 1px solid rgba(232,84,28,.3);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: .68rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.ep-title {
  font-size: clamp(1.6rem,4vw,2.2rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.ep-desc {
  font-size: .95rem;
  color: rgba(255,255,255,.55);
  line-height: 1.75;
  margin-bottom: 24px;
  word-break: keep-all;
}
.ep-desc strong { color: rgba(255,255,255,.88); font-weight: 800; }

/* 타이머 */
.ep-timer-wrap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.ep-timer-label {
  font-size: .62rem; font-family: 'Montserrat', sans-serif;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.28);
  display: block; margin-bottom: 10px;
}
.ep-timer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ep-timer-unit {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.ep-timer-unit span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem; line-height: 1;
  color: var(--orange);
  min-width: 52px; text-align: center;
}
.ep-timer-unit em {
  font-style: normal;
  font-size: .6rem; font-weight: 700;
  color: rgba(255,255,255,.28);
  letter-spacing: .06em;
}
.ep-timer-sep {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; color: rgba(255,255,255,.2);
  padding-bottom: 12px;
}

/* 슬롯 배지 */
.ep-slot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: .78rem; font-weight: 700;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
}
.ep-slot strong { color: var(--gold); }
.ep-slot-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  animation: fcPulse 1.8s ease-in-out infinite;
}

/* CTA */
.ep-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 16px 24px;
  background: linear-gradient(155deg, #F06030 0%, var(--orange) 50%, #D04010 100%);
  color: #fff; font-size: .95rem; font-weight: 800;
  border-radius: 14px; text-decoration: none;
  box-shadow: 0 8px 28px rgba(232,84,28,.4);
  transition: all .25s ease;
  margin-bottom: 12px;
}
.ep-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(232,84,28,.55); }
.ep-skip {
  background: none; border: none;
  font-size: .74rem; color: rgba(255,255,255,.2);
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  transition: color .2s; padding: 8px;
  text-decoration: underline; text-underline-offset: 3px;
}
.ep-skip:hover { color: rgba(255,255,255,.4); }

@media (max-width: 480px) {
  .ep-card { padding: 32px 24px 24px; }
  .ep-timer-unit span { font-size: 1.9rem; min-width: 42px; }
}

/* ════════════════════════════════════
   5. 언론 보도 배너
   ════════════════════════════════════ */
.media-coverage-bar {
  background: linear-gradient(135deg, #0d0906 0%, #1a1008 100%);
  border-top: 1px solid rgba(217,162,75,.12);
  border-bottom: 1px solid rgba(217,162,75,.12);
  padding: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.mcb-label {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 0 24px;
  font-size: .65rem; font-family: 'Montserrat', sans-serif;
  font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(217,162,75,.7);
  border-right: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
  background: rgba(217,162,75,.04);
}
.mcb-track-wrap {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.mcb-track {
  display: flex; align-items: center;
  animation: mcbScroll 28s linear infinite;
  width: max-content;
}
.mcb-track:hover { animation-play-state: paused; }
@keyframes mcbScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.mcb-item {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px;
  border-right: 1px solid rgba(255,255,255,.04);
  white-space: nowrap;
  cursor: default;
  transition: background .2s;
}
.mcb-item:hover { background: rgba(255,255,255,.03); }
.mcb-item--featured {
  text-decoration: none;
  cursor: pointer;
}
.mcb-item--featured:hover { background: rgba(217,162,75,.06); }
.mcb-icon {
  font-size: .85rem;
  color: rgba(217,162,75,.4);
}
.mcb-item--featured .mcb-icon { color: var(--gold); }
.mcb-name {
  font-size: .78rem; font-weight: 700;
  color: rgba(255,255,255,.38);
  letter-spacing: .01em;
}
.mcb-item--featured .mcb-name { color: rgba(255,255,255,.65); }
.mcb-badge {
  font-size: .6rem; font-weight: 800;
  background: rgba(217,162,75,.15);
  border: 1px solid rgba(217,162,75,.3);
  color: var(--gold);
  padding: 2px 8px; border-radius: 4px;
  letter-spacing: .04em;
}

/* ════════════════════════════════════
   6. Before / After 성과 바
   ════════════════════════════════════ */
.ba-sec { padding: 100px 0; }
.ba-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 768px) { .ba-cards { grid-template-columns: 1fr; } }

.ba-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 28px 28px 24px;
  transition: all .3s ease;
}
.ba-card:hover {
  border-color: rgba(232,84,28,.25);
  background: rgba(255,255,255,.06);
  transform: translateY(-3px);
}
.ba-label {
  font-size: .78rem; font-family: 'Montserrat', sans-serif;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 18px;
}
.ba-bar-wrap { margin-bottom: 12px; }
.ba-bar-track {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 10px;
}
.ba-bar-before,
.ba-bar-after {
  position: relative;
  height: 36px;
  border-radius: 8px;
  display: flex; align-items: center;
  overflow: hidden;
  width: 0;
  transition: width 1.4s cubic-bezier(.25,.46,.45,.94);
}
.ba-bar-before { background: rgba(255,255,255,.08); }
.ba-bar-after  {
  background: linear-gradient(90deg, var(--orange), var(--gold));
  box-shadow: 0 2px 16px rgba(232,84,28,.3);
}
.ba-card.animated .ba-bar-before { width: var(--w); }
.ba-card.animated .ba-bar-after  { width: var(--w); }
.ba-bar-before span,
.ba-bar-after  span {
  position: absolute; right: 10px;
  font-size: .72rem; font-weight: 800; white-space: nowrap;
}
.ba-bar-before span { color: rgba(255,255,255,.45); }
.ba-bar-after  span { color: #fff; }
.ba-bar-legend {
  display: flex; gap: 16px;
  font-size: .65rem; font-weight: 700; color: rgba(255,255,255,.3);
}
.ba-before-dot::before,
.ba-after-dot::before {
  content: '●';
  margin-right: 4px; font-size: .5rem;
}
.ba-before-dot::before { color: rgba(255,255,255,.25); }
.ba-after-dot::before  { color: var(--orange); }
.ba-growth {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem; line-height: 1;
  color: var(--orange);
  letter-spacing: .02em;
  margin-top: 8px;
}
.ba-growth strong { font-family: inherit; }
.ba-cta-wrap {
  text-align: center;
  margin-top: 48px;
}

/* ════════════════════════════════════
   7. ROI 계산기
   ════════════════════════════════════ */
.roi-sec { padding: 100px 0; }
.roi-card {
  background: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 28px;
  padding: 48px;
  margin-top: 56px;
  box-shadow: 0 8px 48px rgba(42,37,34,.08), 0 2px 8px rgba(42,37,34,.05);
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
[data-theme="dark"] .roi-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.roi-inputs { display: flex; flex-direction: column; gap: 28px; }
.roi-input-group label {
  display: block;
  font-size: .78rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}
.roi-slider-wrap {
  display: flex; align-items: center; gap: 16px;
}
.roi-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--orange) 0%, var(--orange) 33%, var(--gray-border) 33%);
  outline: none; cursor: pointer;
  transition: background .1s;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 2px 8px rgba(232,84,28,.4);
  border: 3px solid #fff;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 16px rgba(232,84,28,.55);
}
.roi-slider-val {
  min-width: 80px; text-align: right;
  font-size: .9rem; font-weight: 800;
  color: var(--orange);
}

/* 결과 패널 */
.roi-results {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: linear-gradient(135deg, #1a0f08 0%, #221508 100%);
  border-radius: 20px;
  overflow: hidden;
}
.roi-result-item {
  flex: 1; padding: 28px 24px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 8px;
}
.roi-result-item--main { flex: 1.4; }
.roi-result-divider {
  width: 1px;
  background: rgba(255,255,255,.06);
  margin: 16px 0;
}
.roi-result-label {
  font-size: .68rem; font-family: 'Montserrat', sans-serif;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.roi-result-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--orange);
  letter-spacing: .02em;
  transition: all .3s ease;
}
.roi-result-val--sm { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.roi-result-val--gold { color: var(--gold) !important; }

.roi-disclaimer {
  font-size: .72rem; color: var(--gray-light);
  line-height: 1.6; margin-top: -8px;
}
.roi-cta {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 32px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .roi-card { padding: 32px 24px; }
  .roi-results { flex-direction: column; }
  .roi-result-divider { width: 100%; height: 1px; margin: 0 16px; width: calc(100% - 32px); }
}

/* ════════════════════════════════════
   8. 카카오톡 대화 UI 증거
   ════════════════════════════════════ */
.kakao-proof-sec { padding: 100px 0; }
.kp-phone-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}
@media (max-width: 900px) { .kp-phone-wrap { grid-template-columns: 1fr; } }

/* 폰 프레임 */
.kp-phone {
  background: #1a1208;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 32px 80px rgba(0,0,0,.4);
  max-width: 360px;
  margin: 0 auto;
}
.kp-phone-bar {
  background: linear-gradient(135deg, #FEE500 0%, #FFD700 100%);
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; font-weight: 800;
  color: #1a1208;
}
.kp-phone-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(0,0,0,.2);
}
.kp-chat-area {
  padding: 16px 14px;
  min-height: 360px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
}

/* 채팅 버블 */
.kp-msg {
  max-width: 80%;
  display: flex; flex-direction: column; gap: 3px;
  opacity: 0;
  transform: translateY(10px);
  animation: msgAppear .4s ease forwards;
}
@keyframes msgAppear {
  to { opacity: 1; transform: translateY(0); }
}
.kp-msg--me { align-self: flex-end; align-items: flex-end; }
.kp-msg--other { align-self: flex-start; align-items: flex-start; }
.kp-msg-sender {
  font-size: .6rem; font-weight: 700;
  color: rgba(255,255,255,.3);
  padding: 0 4px;
}
.kp-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.55;
  word-break: keep-all;
}
.kp-msg--other .kp-bubble {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  border-bottom-left-radius: 4px;
}
.kp-msg--me .kp-bubble {
  background: linear-gradient(135deg, #FEE500, #FFD700);
  color: #1a1208;
  border-bottom-right-radius: 4px;
}
.kp-msg-time {
  font-size: .58rem; color: rgba(255,255,255,.2);
  padding: 0 4px;
}

/* 우측 통계 */
.kp-stats {
  display: flex; flex-direction: column; gap: 16px;
}
.kp-stat-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--cream);
  border: 1px solid var(--gray-border);
  border-radius: 16px;
  padding: 18px 20px;
  transition: all .25s ease;
}
[data-theme="dark"] .kp-stat-item {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.kp-stat-item:hover {
  transform: translateX(4px);
  border-color: rgba(232,84,28,.25);
}
.kp-stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), #D04010);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff; flex-shrink: 0;
}
.kp-stat-body { display: flex; flex-direction: column; gap: 2px; }
.kp-stat-body strong {
  font-size: 1.2rem; font-weight: 900;
  color: var(--dark); letter-spacing: -.03em;
}
[data-theme="dark"] .kp-stat-body strong { color: rgba(255,255,255,.88); }
.kp-stat-body span {
  font-size: .72rem; color: var(--gray);
  font-weight: 600;
}
.kp-cta {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 28px; margin-top: 8px;
}

/* ════════════════════════════════════
   9. 마그네틱 버튼 효과
   ════════════════════════════════════ */
.magnetic {
  transition: transform .4s cubic-bezier(.25,.46,.45,.94) !important;
  will-change: transform;
}

/* ════════════════════════════════════
   10. 커서 파티클 트레일
   ════════════════════════════════════ */
.cursor-trail-particle {
  position: fixed;
  width: 6px; height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  animation: trailFade .6s ease forwards;
}
@keyframes trailFade {
  0%   { opacity: .8; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0;  transform: translate(-50%,-50%) scale(0); }
}

/* ════════════════════════════════════
   11. 텍스트 글리치 + 슬롯머신 효과
   ════════════════════════════════════ */
.glitch-text {
  position: relative;
  display: inline-block;
}
.glitch-text.glitching::before,
.glitch-text.glitching::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
}
.glitch-text.glitching::before {
  color: var(--orange);
  animation: glitch1 .3s ease-in-out 3;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch-text.glitching::after {
  color: var(--gold);
  animation: glitch2 .3s ease-in-out 3;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%  { transform: translateX(0); }
  20% { transform: translateX(-4px) skewX(2deg); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px) skewX(-1deg); }
  80% { transform: translateX(2px); }
  100%{ transform: translateX(0); }
}
@keyframes glitch2 {
  0%  { transform: translateX(0); }
  20% { transform: translateX(4px) skewX(-2deg); }
  40% { transform: translateX(-4px); }
  60% { transform: translateX(2px) skewX(1deg); }
  80% { transform: translateX(-2px); }
  100%{ transform: translateX(0); }
}

/* 슬롯머신 숫자 */
.slot-num {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.slot-num-inner {
  display: flex;
  flex-direction: column;
  animation: slotSpin 1.8s cubic-bezier(.25,.46,.45,.94) forwards;
}
@keyframes slotSpin {
  0%   { transform: translateY(0); }
  100% { transform: translateY(calc(-100% + 1.2em)); }
}

/* ════════════════════════════════════
   12. 페이지 전환 와이프 효과
   ════════════════════════════════════ */
.page-transition-wipe {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.page-transition-wipe.wiping-out {
  animation: wipeOut .5s cubic-bezier(.77,0,.18,1) forwards;
}
.page-transition-wipe.wiping-in {
  transform-origin: right;
  animation: wipeIn .5s cubic-bezier(.77,0,.18,1) forwards;
}
@keyframes wipeOut {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}
@keyframes wipeIn {
  from { transform: scaleX(1); transform-origin: right; }
  to   { transform: scaleX(0); transform-origin: right; }
}

/* ════════════════════════════════════
   13. 노이즈 텍스처 오버레이
   ════════════════════════════════════ */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ════════════════════════════════════
   14. 희소성 카운트다운 바 (Hero 하단)
   ════════════════════════════════════ */
.scarcity-bar {
  background: linear-gradient(135deg, #1a0f08 0%, #2a1a0a 100%);
  border-top: 1px solid rgba(232,84,28,.2);
  padding: 12px 0;
  position: relative;
  overflow: hidden;
}
.scarcity-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(232,84,28,.0) 0%,
    rgba(232,84,28,.04) 50%,
    rgba(232,84,28,.0) 100%);
  animation: scarcityShimmer 3s ease-in-out infinite;
}
@keyframes scarcityShimmer {
  0%,100% { opacity: 0; }
  50%      { opacity: 1; }
}
.scarcity-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.scarcity-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700;
  color: rgba(255,255,255,.55);
}
.scarcity-item i { color: var(--orange); font-size: .85rem; }
.scarcity-item strong { color: rgba(255,255,255,.88); }
.scarcity-timer-inline {
  display: flex; align-items: center; gap: 6px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem; color: var(--orange);
  letter-spacing: .08em;
}

/* ════════════════════════════════════
   15. 스크롤 진행 바 (상단)
   ════════════════════════════════════ */
.scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  z-index: 10000;
  transition: width .1s linear;
  box-shadow: 0 0 8px rgba(232,84,28,.5);
}

/* ════════════════════════════════════
   16. 반응형 공통
   ════════════════════════════════════ */
@media (max-width: 768px) {
  .kp-stats .kp-cta { padding: 12px 20px; font-size: .85rem; }
  .ba-card { padding: 22px 18px; }
  .roi-card { padding: 28px 20px; }
}

/* ════════════════════════════════════
   17. BA 그리드 (새 클래스명 보완)
   ════════════════════════════════════ */
.ba-sec { padding: 100px 0; }
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 768px) { .ba-grid { grid-template-columns: 1fr; } }

.ba-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 28px 28px 24px;
  transition: all .35s ease;
}
[data-theme="dark"] .ba-card {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.07);
}
.ba-card:hover {
  border-color: rgba(232,84,28,.28);
  transform: translateY(-3px);
}
.ba-card-label {
  font-size: .72rem; font-family: 'Montserrat', sans-serif;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 18px;
}
[data-theme="light"] .ba-card-label,
body:not([data-theme="dark"]) .ba-card-label {
  color: rgba(42,37,34,.4);
}
.ba-bars { display: flex; flex-direction: column; gap: 10px; }
.ba-bar-row {
  display: flex; align-items: center; gap: 10px;
}
.ba-bar-tag {
  font-size: .62rem; font-weight: 900;
  letter-spacing: .08em;
  padding: 3px 8px; border-radius: 4px;
  flex-shrink: 0; min-width: 28px; text-align: center;
}
.ba-bar-tag--before {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.4);
}
.ba-bar-tag--after {
  background: rgba(232,84,28,.18);
  color: var(--orange);
}
.ba-bar-track {
  flex: 1; height: 30px;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.ba-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 6px;
  transition: width 1.4s cubic-bezier(.25,.46,.45,.94);
}
.ba-bar-fill--before {
  background: rgba(255,255,255,.18);
}
.ba-bar-fill--after {
  background: linear-gradient(90deg, var(--orange), var(--gold));
  box-shadow: 0 0 12px rgba(232,84,28,.3);
}
.ba-card.animated .ba-bar-fill { width: var(--w) !important; }
.ba-bar-val {
  font-size: .78rem; font-weight: 800;
  color: rgba(255,255,255,.7);
  min-width: 52px; text-align: right; flex-shrink: 0;
}
.ba-growth {
  display: flex; align-items: baseline; gap: 7px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem; line-height: 1;
  color: var(--orange);
  margin-top: 14px;
  letter-spacing: .02em;
}
.ba-growth i { font-size: 1.1rem; }

/* ════════════════════════════════════
   18. ROI 계산기 (새 클래스명 보완)
   ════════════════════════════════════ */
.roi-sec { padding: 100px 0; }
.roi-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
  align-items: start;
}
@media (max-width: 900px) { .roi-wrap { grid-template-columns: 1fr; } }

.roi-sliders {
  display: flex; flex-direction: column; gap: 28px;
  background: var(--cream);
  border: 1px solid var(--gray-border);
  border-radius: 24px;
  padding: 36px 32px;
}
[data-theme="dark"] .roi-sliders {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.roi-slider-group { display: flex; flex-direction: column; gap: 12px; }
.roi-label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--gray);
}
.roi-current-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem; color: var(--orange);
  letter-spacing: .05em;
}
.roi-range-hint {
  display: flex; justify-content: space-between;
  font-size: .65rem; color: var(--gray);
  opacity: .55;
}

/* 결과 패널 */
.roi-result {
  background: linear-gradient(145deg, #1a0f08 0%, #241508 100%);
  border-radius: 24px;
  padding: 36px 32px;
  border: 1px solid rgba(232,84,28,.2);
  box-shadow: 0 8px 40px rgba(232,84,28,.12);
}
.roi-result-inner { display: flex; flex-direction: column; gap: 20px; }
.roi-result-item {
  display: flex; flex-direction: column; gap: 4px;
}
.roi-result-item--highlight {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 18px;
  margin-top: 2px;
}
.roi-result-label {
  font-size: .68rem; font-family: 'Montserrat', sans-serif;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.roi-result-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem; line-height: 1;
  color: rgba(255,255,255,.75);
  letter-spacing: .02em;
}
.roi-result-val--big {
  font-size: 3rem;
  color: var(--orange);
  text-shadow: 0 0 24px rgba(232,84,28,.4);
}
.roi-bar-track {
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 3px;
  overflow: hidden;
}
.roi-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: 3px;
  transition: width .8s cubic-bezier(.25,.46,.45,.94);
  box-shadow: 0 0 8px rgba(232,84,28,.4);
}
.roi-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--orange), #D04010);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-size: .85rem; font-weight: 800;
  letter-spacing: .04em;
  transition: all .25s ease;
  box-shadow: 0 4px 20px rgba(232,84,28,.35);
  margin-top: 4px;
}
.roi-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,84,28,.5);
}

/* ════════════════════════════════════
   19. 카카오톡 UI (새 클래스명 보완)
   ════════════════════════════════════ */
.kakao-proof-sec { padding: 100px 0; }
.kp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}
@media (max-width: 900px) { .kp-layout { grid-template-columns: 1fr; } }

.kp-phone-wrap { display: flex; justify-content: center; }
.kp-phone {
  background: #1a1208;
  border-radius: 32px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 24px 72px rgba(0,0,0,.45);
  max-width: 340px;
  width: 100%;
}
.kp-phone-header {
  background: #FEE500;
  padding: 10px 16px 8px;
}
.kp-phone-status {
  display: flex; justify-content: space-between;
  font-size: .6rem; font-weight: 800;
  color: rgba(0,0,0,.5);
  margin-bottom: 8px;
}
.kp-phone-icons { display: flex; gap: 5px; }
.kp-chat-header {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 6px;
}
.kp-chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.1);
  overflow: hidden; flex-shrink: 0;
}
.kp-chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kp-chat-info { display: flex; flex-direction: column; }
.kp-chat-name { font-size: .8rem; font-weight: 900; color: #1a1208; }
.kp-chat-status { font-size: .62rem; color: rgba(0,0,0,.5); }
.kp-chat-area {
  padding: 16px 14px;
  min-height: 320px;
  max-height: 360px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
  background: #1a1208;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.kp-chat-loading {
  display: flex; align-items: center; gap: 5px;
  padding: 12px;
  align-self: flex-start;
}
.kp-chat-loading span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  animation: loadDot 1.4s ease-in-out infinite;
}
.kp-chat-loading span:nth-child(2) { animation-delay: .2s; }
.kp-chat-loading span:nth-child(3) { animation-delay: .4s; }
@keyframes loadDot {
  0%,80%,100% { transform: scale(.8); opacity: .4; }
  40%          { transform: scale(1.1); opacity: 1; }
}
.kp-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .8rem; font-weight: 600;
  line-height: 1.55; word-break: keep-all;
  display: flex; flex-direction: column; gap: 3px;
  opacity: 0; animation: msgAppear .35s ease forwards;
}
.kp-bubble--recv {
  align-self: flex-start;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  border-bottom-left-radius: 4px;
}
.kp-bubble--send {
  align-self: flex-end;
  background: linear-gradient(135deg, #FEE500, #FFD700);
  color: #1a1208;
  border-bottom-right-radius: 4px;
}
.kp-bubble time {
  font-size: .55rem;
  color: rgba(255,255,255,.2);
  display: block;
  align-self: flex-end;
}
.kp-bubble--send time { color: rgba(0,0,0,.3); align-self: flex-end; }
.kp-chat-input-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.05);
}
.kp-input-placeholder {
  flex: 1; font-size: .75rem;
  color: rgba(255,255,255,.2);
}
.kp-send-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange);
  border: none; color: #fff;
  font-size: .7rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* 통계 카드 */
.kp-stats {
  display: flex; flex-direction: column; gap: 16px;
}
.kp-stat-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--cream);
  border: 1px solid var(--gray-border);
  border-radius: 16px;
  padding: 18px 20px;
  transition: all .25s ease;
}
[data-theme="dark"] .kp-stat-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.kp-stat-card:hover { transform: translateX(4px); border-color: rgba(232,84,28,.25); }
.kp-stat-card--gold .kp-stat-icon {
  background: linear-gradient(135deg, var(--gold), #B8852A);
}
.kp-stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), #D04010);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff; flex-shrink: 0;
}
.kp-stat-body { display: flex; flex-direction: column; gap: 2px; }
.kp-stat-num {
  font-size: 1.2rem; font-weight: 900;
  color: var(--dark); letter-spacing: -.03em;
  display: block;
}
[data-theme="dark"] .kp-stat-num { color: rgba(255,255,255,.88); }
.kp-stat-desc {
  font-size: .72rem; color: var(--gray);
  font-weight: 600;
}
.kp-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 24px;
  background: #FEE500;
  color: #1a1208;
  border-radius: 14px;
  text-decoration: none;
  font-size: .88rem; font-weight: 900;
  transition: all .25s ease;
  margin-top: 4px;
  box-shadow: 0 4px 20px rgba(254,229,0,.25);
}
.kp-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(254,229,0,.4);
  background: #FFD700;
}

/* MCB 새 클래스명 보완 */
.mcb-item { text-decoration: none; }
.mcb-logo { font-size: 1.1rem; }
.mcb-desc {
  font-size: .65rem; color: rgba(255,255,255,.25);
  font-style: italic;
}

/* ════════════════════════════════════
   20. 커서 호버/클릭 상태
   ════════════════════════════════════ */
.cursor.hovering  { transform: translate(-50%, -50%) scale(2); }
.cursor.clicking  { transform: translate(-50%, -50%) scale(0.7); }
.cursor-ring.hovering { transform: translate(-50%, -50%) scale(1.8); opacity: .6; }

/* ════════════════════════════════════
   21. 글리치 확장 — hc--num에 적용
   ════════════════════════════════════ */
.hc--num.glitching,
.hbt--line1.glitching,
.hbt--line2.glitching {
  position: relative;
}
.hc--num.glitching::before,
.hbt--line1.glitching::before,
.hbt--line2.glitching::before {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  color: var(--orange); opacity: .6;
  animation: glitch1 .3s ease-in-out 3;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
}
.hc--num.glitching::after,
.hbt--line1.glitching::after,
.hbt--line2.glitching::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0;
  color: var(--gold); opacity: .5;
  animation: glitch2 .3s ease-in-out 3;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

/* ════════════════════════════════════
   22. 페이지 전환 와이프 (JS 클래스명 수정)
   ════════════════════════════════════ */
.page-transition-wipe.wipe-out {
  animation: wipeOut .45s cubic-bezier(.77,0,.18,1) forwards;
}
.page-transition-wipe.wipe-in {
  transform-origin: right;
  transform: scaleX(1);
  animation: wipeIn .45s cubic-bezier(.77,0,.18,1) forwards;
}

