/* ============================================================
   CONNECTON GLOBAL — FX / Motion Layer
   커서 · 로더 · 오브 · 마르키 · 스플릿 텍스트 · 글로우
============================================================ */

/* ─── PAGE LOADER ─── */
.page-loader {
  position: fixed;
  inset: 0;
  background: #07070f;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { text-align: center; }
.loader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}
.ll-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #FF6B35, #FF3CAC, #784BA0);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  animation: loaderIconPulse 1.5s ease-in-out infinite;
}
@keyframes loaderIconPulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,107,53,0.4); }
  50%      { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(255,107,53,0); }
}
.ll-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.ll-text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 4px;
  color: #FF6B35;
  margin-top: 4px;
}
.loader-bar-wrap {
  width: 240px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin: 0 auto 16px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF6B35, #FF3CAC, #FFD700);
  border-radius: 2px;
  transition: width 0.05s linear;
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute;
  right: 0; top: -2px;
  width: 8px; height: 7px;
  background: #fff;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
}
.loader-pct {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
}

/* ─── CUSTOM CURSOR ─── */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: #FF6B35;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear, background 0.2s ease, width 0.2s ease, height 0.2s ease;
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(255,107,53,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease-out, width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.cursor-dot.hovered  { width: 12px; height: 12px; background: #FFD700; }
.cursor-ring.hovered { width: 56px; height: 56px; border-color: rgba(255,215,0,0.5); }
.cursor-dot.clicking  { transform: translate(-50%,-50%) scale(0.7); }
.cursor-ring.clicking { transform: translate(-50%,-50%) scale(0.85); border-color: #FF6B35; }

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ─── HERO ORBS ─── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 10s ease-in-out infinite;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,53,0.18) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-duration: 12s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(120,75,160,0.18) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  animation-duration: 9s;
  animation-delay: -3s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,60,172,0.12) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation-duration: 14s;
  animation-delay: -6s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.05); }
  66%      { transform: translate(-20px, 20px) scale(0.96); }
}

/* ─── HERO GRID LINES ─── */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 80%);
  animation: gridPan 20s linear infinite;
}
@keyframes gridPan {
  0%   { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}

/* ─── TYPING TEXT ─── */
.typing-text {
  display: inline-block;
  min-height: 1.2em;
  position: relative;
}
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: #FF6B35;
  margin-left: 4px;
  vertical-align: middle;
  animation: cursorBlink 0.7s step-end infinite;
  border-radius: 2px;
}
@keyframes cursorBlink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-title-sub {
  display: inline-block;
  animation: titleSubSlide 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 2s;
  opacity: 0;
  animation-fill-mode: forwards;
}
@keyframes titleSubSlide {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── MARQUEE ─── */
.marquee-wrap {
  overflow: hidden;
  background: rgba(255,107,53,0.06);
  border-top: 1px solid rgba(255,107,53,0.15);
  border-bottom: 1px solid rgba(255,107,53,0.15);
  padding: 14px 0;
  position: relative;
}
.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.marquee-wrap::before {
  left: 0;
  background: linear-gradient(to right, #0A0A0F, transparent);
}
.marquee-wrap::after {
  right: 0;
  background: linear-gradient(to left, #0A0A0F, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
  width: max-content;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.mq-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 28px;
  transition: color 0.3s ease;
}
.marquee-track:hover .mq-item:hover { color: #FF6B35; }
.mq-sep {
  color: rgba(255,107,53,0.4);
  font-size: 0.7rem;
}

/* ─── SPLIT TEXT (글자별 등장) ─── */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split-char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}
.split-char.visible {
  transform: translateY(0);
  opacity: 1;
}

/* ─── GLITCH 효과 (히어로 제목용) ─── */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
.glitch::before {
  left: 2px;
  text-shadow: -1px 0 #FF3CAC;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  animation: glitch1 4s infinite linear;
}
.glitch::after {
  left: -2px;
  text-shadow: 1px 0 #784BA0;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  animation: glitch2 4s infinite linear;
}
@keyframes glitch1 {
  0%,94%,100% { transform: translate(0); }
  95%          { transform: translate(-3px, 1px); }
  97%          { transform: translate(3px, -1px); }
}
@keyframes glitch2 {
  0%,94%,100% { transform: translate(0); }
  95%          { transform: translate(3px, 1px); }
  97%          { transform: translate(-3px, -1px); }
}

/* ─── CARD GLOW ON HOVER ─── */
.why-card:hover,
.country-card:hover,
.case-card:hover,
.testi-card:hover,
.zcp-item:hover {
  box-shadow: 0 0 0 1px rgba(255,107,53,0.3),
              0 20px 60px rgba(255,107,53,0.12),
              0 0 80px rgba(255,107,53,0.05);
}
.country-card.featured:hover {
  box-shadow: 0 0 0 1px rgba(255,215,0,0.4),
              0 20px 60px rgba(255,215,0,0.15),
              0 0 100px rgba(255,215,0,0.07);
}

/* ─── SHINE SWEEP (버튼 광택) ─── */
.btn-primary, .btn-cta-big, .zbb-btn {
  position: relative;
  overflow: hidden;
}
.btn-primary::before,
.btn-cta-big::before,
.zbb-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.18) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0s;
}
.btn-primary:hover::before,
.btn-cta-big:hover::before,
.zbb-btn:hover::before {
  left: 160%;
  transition: left 0.55s ease;
}

/* ─── FLOATING NUMBERS (히어로 배경 장식) ─── */
.hero-floating-nums {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.fn-item {
  position: absolute;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  opacity: 0.04;
  color: #fff;
  animation: fnFloat var(--dur, 12s) ease-in-out infinite;
  animation-delay: var(--del, 0s);
  user-select: none;
}
@keyframes fnFloat {
  0%,100% { transform: translateY(0) rotate(0deg); opacity: 0.04; }
  50%      { transform: translateY(-40px) rotate(5deg); opacity: 0.07; }
}

/* ─── REVEAL LINE (섹션 구분선 애니메이션) ─── */
.reveal-line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #FF6B35, #FF3CAC, transparent);
  margin: 0 auto 40px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}
.reveal-line.expanded { width: 80px; }

/* ─── SECTION ENTER ANIMATIONS (보강) ─── */
[data-aos="fade-up-big"] {
  opacity: 0;
  transform: translateY(60px);
  transition-property: opacity, transform;
}
[data-aos="fade-up-big"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ─── STAT 숫자 네온 글로우 ─── */
.stat-num {
  text-shadow: 0 0 30px rgba(255,107,53,0.3);
}

/* ─── VS CARD GLOW ─── */
.zc-vs-card.connecton {
  animation: connectonCardGlow 3s ease-in-out infinite;
}
@keyframes connectonCardGlow {
  0%,100% { box-shadow: 0 0 30px rgba(255,215,0,0.06), 0 0 0 1px rgba(255,215,0,0.15); }
  50%      { box-shadow: 0 0 60px rgba(255,215,0,0.14), 0 0 0 1px rgba(255,215,0,0.3); }
}

/* ─── FLOAT CARDS (서비스 비주얼) ─── */
.visual-card {
  animation: vcFloat 4s ease-in-out infinite;
}
.visual-card:nth-child(1) { animation-delay: 0s; }
.visual-card:nth-child(2) { animation-delay: 0.6s; }
.visual-card:nth-child(3) { animation-delay: 1.2s; }
@keyframes vcFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF6B35, #FF3CAC, #FFD700);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(255,107,53,0.6);
}

/* ─── SECTION LABEL 등장 애니 강화 ─── */
.section-label {
  animation: labelPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes labelPop {
  from { transform: scale(0.85) translateY(10px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* ─── COUNTRY CARD 3D 틸트 ─── */
.country-card,
.case-card,
.why-card,
.testi-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ─── GLOWING DOT (배지 강화) ─── */
.badge-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(76,175,80,0.2);
  animation: dotHalo 2s ease-in-out infinite;
}
@keyframes dotHalo {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.8); opacity: 0; }
}
.badge-dot { position: relative; }

/* ─── HERO SCROLL 강화 ─── */
.hero-scroll span {
  animation: scrollTextFade 2s ease-in-out infinite;
}
@keyframes scrollTextFade {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}

/* ─── 네온 테두리 아이콘 ─── */
.why-icon,
.zcp-icon,
.ci-icon {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.why-card:hover .why-icon {
  box-shadow: 0 0 20px rgba(255,107,53,0.5);
}
.zcp-item:hover .zcp-icon {
  text-shadow: 0 0 20px rgba(255,215,0,0.8);
  transform: scale(1.15);
}

/* ─── 마르키 역방향 (아래 것) ─── */
.marquee-wrap.reverse .marquee-track {
  animation-direction: reverse;
}

/* ─── PROCESS STEP 라인 연결 애니 ─── */
.connector-line {
  position: relative;
  overflow: hidden;
}
.connector-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #FF6B35, transparent);
  animation: connectorFlow 2s ease-in-out infinite;
}
@keyframes connectorFlow {
  0%   { transform: translateX(-100%); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* ─── LIVE DOT 박동 강화 ─── */
.live-badge-red {
  box-shadow: 0 0 0 0 rgba(255,59,48,0.4);
  animation: blink 1.5s infinite, liveDotGlow 1.5s infinite;
}
@keyframes liveDotGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,59,48,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(255,59,48,0); }
}

/* ─── BTN SUBMIT 셔머 ─── */
.btn-submit {
  position: relative;
  overflow: hidden;
}
.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.12) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: shimmerBtn 2.8s ease infinite;
}
@keyframes shimmerBtn {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* ─── HERO TITLE SUB 색상 보장 ─── */
.hero-title-sub {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

/* ─── FOOTER 하단 글로우 라인 ─── */
.footer::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FF6B35, #FF3CAC, #784BA0, transparent);
  margin-bottom: 0;
  opacity: 0.5;
}

/* ─── SECTION TITLE 언더라인 ─── */
.section-title .gradient-text {
  position: relative;
}
.section-title .gradient-text::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF6B35, #FF3CAC, transparent);
  border-radius: 2px;
  animation: underlineGrow 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.5s;
  transform-origin: left;
}
@keyframes underlineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ─── 제로코스트 배너 골드 파티클 ─── */
.zc-bold-banner .zbb-icon {
  animation: iconWiggle 2s ease-in-out infinite;
}
@keyframes iconWiggle {
  0%,100% { transform: rotate(-5deg) scale(1); }
  50%      { transform: rotate(5deg) scale(1.1); }
}
