/* ==========================================================================
   custom.css — DCT Wallet 사이트 커스텀 스타일
   --------------------------------------------------------------------------
   원본 템플릿(main_.css)은 절대 수정하지 않습니다. 모든 커스텀 스타일은
   여기에 섹션별로 모읍니다. 섹션 순서는 페이지 흐름과 동일합니다.

   목차
     0. Base / Reset
     1. Layout — Section padding 표준화
     2. Header — Desktop 메뉴 / Mobile 햄버거
     3. Hero (Intro) — 폰 이미지 위치 + 신뢰 배지
     4. Value (How It Works) — 3-Step 그리드 + 빛 흐름 SVG
     5. Features (Compact Cards)
     6. Trust (Compact Cards)
     7. BrandSlider (Marquee)
     8. CTA (Glow Orbs + Particles)
     9. Footer
    10. Floating UI — Back-to-top, Scroll Progress
    11. Reduced Motion (전역 비활성화)
   ========================================================================== */


/* ==========================================================================
   0. Base / Reset
   ========================================================================== */
html { scroll-behavior: smooth; }
html, body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100vw;
}
body > * { max-width: 100vw; }
img { max-width: 100%; height: auto; }


/* ==========================================================================
   1. Layout — Section padding 표준화
   ========================================================================== */
@media (min-width: 1200px) {
  .section-padding { padding-top: 120px; padding-bottom: 120px; }
}
@media (max-width: 1199px) and (min-width: 768px) {
  .section-padding { padding-top: 100px; padding-bottom: 100px; }
}
@media (max-width: 767px) {
  .section-padding { padding-top: 80px; padding-bottom: 80px; }
  .pt-110 { padding-top: 60px !important; }
  .pb-0 { padding-bottom: 0 !important; }
  .work-process-section,
  .testimonial-section,
  .service-section,
  .wcu-section,
  .cta-section { padding-top: 60px; padding-bottom: 60px; }
  .intro-section { padding-top: 24px; }
  .wcu-container-wrapper.style3 { padding-top: 60px !important; }
  .about-content { padding-top: 0 !important; }
}


/* ==========================================================================
   2. Header
   ========================================================================== */

/* 2.1 Desktop 메뉴 폰트 + 간격
   main_.css의 강한 셀렉터(.header-1 .mega-menu-wrapper ...)와 동일 특이성 매칭 */
@media (min-width: 992px) {
  .header-main .main-menu ul li a,
  .header-1 .mega-menu-wrapper .header-main .main-menu ul li a {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.2px;
  }
  .header-main .main-menu ul li,
  .header-1 .mega-menu-wrapper .header-main .main-menu ul li {
    margin-inline-end: 40px;
  }
}

/* 2.2 Mobile 햄버거 메뉴 (meanmenu.js 대체) */
@media (max-width: 1199px) {
  .main-menu {
    transform: translateX(-100%);
    transition: transform .3s ease-out;
  }
  .main-menu.is-open { transform: translateX(0); }

  .main-menu nav { display: none; }
  .main-menu.is-open nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a1227;
    padding: 1rem 1.5rem;
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .main-menu.is-open nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .main-menu.is-open nav ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
  }
}

/* 2.3 Mobile 햄버거 backdrop */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 5, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 998;
}
.mobile-menu-backdrop.is-open { opacity: 1; pointer-events: auto; }


/* ==========================================================================
   3. Hero (Intro)
   ========================================================================== */

/* 3.1 폰 이미지 가시성 강제 (wow.js + main.css padding 충돌 방지) */
.intro-thumb { position: relative; }
.intro-thumb .main-thumb {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 5;
  visibility: visible !important;
  opacity: 1 !important;
}
.intro-thumb .thumbShape1,
.intro-thumb .thumbShape2 { z-index: 1; }

/* 3.2 데스크톱: 폰을 박스 하단에 크게 정렬 + float 애니 */
@media (min-width: 1200px) {
  .intro-section { overflow: hidden; }
  .intro-wrapper.style1 .intro-thumb {
    padding-top: 0 !important;
    margin-bottom: -40px !important;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 720px;
    position: relative;
    z-index: 10;
  }
  .intro-thumb .main-thumb {
    width: 100%;
    max-width: 560px;
    animation: heroFloat 6s ease-in-out infinite;
  }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* 3.3 모바일/태블릿 폰 사이즈 */
@media (max-width: 1199px) {
  .intro-thumb {
    max-width: 380px;
    margin: 30px auto 0;
    text-align: center;
  }
  .intro-thumb .main-thumb { max-width: 100%; height: auto; }
}
@media (max-width: 575px) {
  .intro-thumb { max-width: 260px; margin: 20px auto 0; }
}

/* 3.4 Hero parallax 부드럽게 */
.intro-thumb[data-hero-parallax] {
  transition: transform 0.18s ease-out;
  will-change: transform;
}

/* 3.5 신뢰 배지 (.hero-trust) */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
}
.hero-trust .fa-lock { color: #4da3ff; font-size: 12px; }


/* ==========================================================================
   4. Value (How It Works) — 3-Step 그리드 + 흐르는 빛
   ========================================================================== */

/* 4.1 단계 카드 설명문 */
.work-process-box .desc {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

/* 4.2 3-Step 그리드 (데스크톱 가로, 모바일 세로) */
.value-steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.value-step-cell { display: contents; }
.value-step-cell > .work-process-box { width: 100%; }

.value-step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 60px;
  padding: 0 12px;
}
.value-step-connector__line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(77,163,255,0.1), rgba(77,163,255,0.5), rgba(77,163,255,0.1));
}
.value-step-connector__arrow {
  position: absolute;
  font-size: 22px;
  color: #4da3ff;
  text-shadow: 0 0 12px rgba(77,163,255,0.6);
  animation: connectorPulse 2.4s ease-in-out infinite;
}
@keyframes connectorPulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50%      { opacity: 1;   transform: translateX(4px); }
}

/* 4.3 모바일에서는 연결선 세로로 */
@media (max-width: 1199px) {
  .value-steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .value-step-connector { min-width: 0; height: 40px; padding: 0; }
  .value-step-connector__line {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(77,163,255,0.1), rgba(77,163,255,0.5), rgba(77,163,255,0.1));
    flex: 0 0 auto;
  }
  .value-step-connector__arrow { transform: rotate(90deg); }
}

/* 4.4 PNG 곡선 위로 흐르는 빛 (workProcessShape1_1.png 1420x226 기준) */
.work-process-wrapper.style1 .shape { pointer-events: none; }
.value-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(77,163,255,0.55));
  overflow: visible;
}
.value-flow-svg circle { filter: blur(0.3px); }
@media (max-width: 1199px) { .value-flow-svg { display: none; } }


/* ==========================================================================
   5. Features — Compact Cards (5열 그리드)
   ========================================================================== */
.features-compact-section { position: relative; }
.features-compact-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 1399px) and (min-width: 992px) {
  .features-compact-grid { gap: 14px; }
}
@media (max-width: 991px) and (min-width: 576px) {
  .features-compact-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 575px) {
  .features-compact-grid { grid-template-columns: 1fr; gap: 14px; }
}

.features-compact-card {
  background: rgba(15, 25, 55, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 16px 20px;
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.features-compact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 123, 255, 0.45);
  background: rgba(20, 35, 75, 0.7);
}
.features-compact-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
}
.features-compact-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.features-compact-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.3;
}
.features-compact-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.features-compact-card__meta img {
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.85;
}
@media (max-width: 575px) {
  .features-compact-card__title { font-size: 16px; }
  .features-compact-card__meta  { font-size: 13px; }
}


/* ==========================================================================
   6. Trust — Compact Cards (3열)
   ========================================================================== */
.trust-compact-section { position: relative; }
.trust-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) and (min-width: 576px) {
  .trust-compact-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-compact-grid > :nth-child(3) { grid-column: 1 / -1; max-width: 50%; margin: 0 auto; }
}
@media (max-width: 575px) {
  .trust-compact-grid { grid-template-columns: 1fr; }
}

.trust-compact-card {
  background: rgba(15, 25, 55, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 32px 26px;
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.trust-compact-card:hover {
  border-color: rgba(0, 123, 255, 0.45);
  background: rgba(20, 35, 75, 0.7);
}
.trust-compact-card__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,123,255,0.18), rgba(0,123,255,0.04));
  border: 1px solid rgba(77,163,255,0.2);
  margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.15);
}
.trust-compact-card__icon img {
  width: 30px; height: 30px;
  filter: brightness(1.4);
}
.trust-compact-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.4;
}
.trust-compact-card__text {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

/* B3 — 카드 정렬 보정 */
.service-box.style1 { min-height: 280px; display: flex; flex-direction: column; }
@media (max-width: 991px) { .service-box.style1 { min-height: auto; } }
@media (min-width: 1200px) {
  .wcu-section .wcu-content { padding-right: 20px; }
}


/* ==========================================================================
   7. BrandSlider (글로벌 가맹점 marquee)
   ========================================================================== */
.brand-marquee-section { padding: 60px 0; position: relative; }
.brand-marquee-label {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.brand-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.brand-marquee__track {
  display: flex;
  gap: 64px;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: brand-marquee-scroll 40s linear infinite;
}
.brand-marquee:hover .brand-marquee__track { animation-play-state: paused; }

.brand-marquee__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: 'Inter', 'SUIT', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  margin-right: 12px;
  transition: color .2s, border-color .25s, background .25s;
}
.brand-marquee__item:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(77,163,255,0.3);
}
.brand-marquee__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4da3ff, #0066ee);
  box-shadow: 0 0 10px rgba(77,163,255,0.6);
  flex-shrink: 0;
}
.brand-marquee__name { font-weight: 600; letter-spacing: 0.5px; }

@keyframes brand-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 767px) {
  .brand-marquee-section { padding: 40px 0; }
  .brand-marquee__track  { gap: 36px; animation-duration: 28s; }
  .brand-marquee__item   { font-size: 16px; padding: 10px 16px; }
}


/* ==========================================================================
   8. CTA (Glow Orbs + Particles)
   ========================================================================== */
.cta-glow { position: relative; overflow: hidden; }
.cta-glow > .container,
.cta-glow > .shape3 { position: relative; z-index: 2; }

.cta-glow__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
.cta-glow__orb--1 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0, 123, 255, 0.7), rgba(0, 123, 255, 0));
  top: -100px; left: -80px;
  animation: orbDrift1 14s ease-in-out infinite;
}
.cta-glow__orb--2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.55), rgba(0, 212, 255, 0));
  bottom: -120px; right: -60px;
  animation: orbDrift2 16s ease-in-out infinite;
}
@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, 30px) scale(1.1); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, -30px) scale(1.15); }
}

.cta-glow__particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.7), transparent),
    radial-gradient(2px 2px at 35% 80%, rgba(77,163,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 90% 50%, rgba(77,163,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 10% 60%, rgba(255,255,255,0.5), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  animation: particleTwinkle 6s ease-in-out infinite;
}
@keyframes particleTwinkle {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 0.85; }
}

/* CTA 모바일 버튼 풀폭 */
@media (max-width: 575px) {
  .cta-buttons {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100%;
  }
  .cta-buttons .theme-btn { width: 100%; justify-content: center; }
}


/* ==========================================================================
   9. Footer
   ========================================================================== */
@media (max-width: 767px) {
  .footer-section .footer-widget { margin-bottom: 32px; }
  .footer-section .footer-widget:last-child { margin-bottom: 0; }
}


/* ==========================================================================
   10. Floating UI — Back-to-top + Scroll Progress
   ========================================================================== */

/* 10.1 Scroll progress bar (페이지 상단) */
#scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #4da3ff 0%, #007bff 50%, #00d4ff 100%);
  box-shadow: 0 0 10px rgba(77, 163, 255, 0.6);
  z-index: 9999;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* 10.2 Back-to-top 버튼 */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #007bff, #0056d6);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,123,255,0.4);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s, box-shadow .2s;
  z-index: 997;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover {
  background: linear-gradient(135deg, #1a8bff, #0066ee);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 123, 255, 0.6);
}
.back-to-top:hover svg { animation: arrowBounce 0.6s ease infinite; }
.back-to-top:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@media (max-width: 767px) {
  .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; font-size: 16px; }
}


/* ==========================================================================
   11. Reduced Motion (전역 비활성화)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .intro-thumb .main-thumb,
  .value-step-connector__arrow,
  .cta-glow__orb,
  .cta-glow__particles,
  .brand-marquee__track,
  .back-to-top:hover svg {
    animation: none !important;
  }
  .features-compact-card,
  .trust-compact-card,
  .intro-thumb[data-hero-parallax],
  .back-to-top,
  .back-to-top:hover {
    transform: none !important;
    transition: none !important;
  }
  .value-flow-svg { display: none; }
  .brand-marquee  { -webkit-mask-image: none; mask-image: none; }
  #scroll-progress-bar { transition: none !important; }
}


/* ==========================================================================
   12. Spend page pricing cards — 흰색 테두리 제거 + 카드 동일 높이
   ========================================================================== */
.pricing-section-3 {
  background-image: none !important;
  background-color: transparent !important;
}
.pricing-section-3 .row { align-items: stretch; }
.pricing-section-3 .pricing-card.style1 {
  height: 100%;
  border-color: transparent !important;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}
.pricing-section-3 .pricing-card.style1 .pricing-card-body {
  flex: 1 1 auto;
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
}

/* ==========================================================================
   13. Hero 핸드폰 이미지 — 손목 절단 느낌 완화 (데스크탑만)
   .fix(overflow:hidden) 안에서 아래로 밀어 손목이 영역 밖으로 자연스럽게 사라지게
   ========================================================================== */
@media (min-width: 768px) {
  .intro-wrapper.style1 .intro-thumb .main-thumb {
    top: 40px;
    margin-bottom: -40px;
  }
}
@media (min-width: 1200px) {
  .intro-wrapper.style1 .intro-thumb .main-thumb {
    top: 60px;
    margin-bottom: -60px;
  }
}

/* ==========================================================================
   14. 한국어 줄바꿈 — 단어 단위로만 끊기 (영어/일본어는 영향 없음)
   "디지털 자산을 누구나, 어디서" / "나." 같이 단어 중간 끊김 방지
   ========================================================================== */
html[lang="ko"] body {
  word-break: keep-all;
  overflow-wrap: break-word;
}
