/* 2026-05-21-v2 Hero 깨끗한 배경 + 강한 파티클 효과 */
/* 수정 범위: 메인 Hero 영역만 보정 */

/* 1. 도로 중앙선/얼룩 없는 새 배경 적용 */
.hero {
  position: relative !important;
  overflow: hidden !important;
  background-image:
    linear-gradient(90deg, rgba(7,11,20,.92) 0%, rgba(7,11,20,.74) 34%, rgba(7,11,20,.42) 62%, rgba(7,11,20,.76) 100%),
    linear-gradient(180deg, rgba(7,11,20,.30) 0%, rgba(7,11,20,.18) 42%, rgba(7,11,20,.70) 100%),
    url("../images/hero/2026-05-21-v2-clean-premium-car-hero.webp") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 36%, rgba(214,178,94,.18), transparent 28%),
    radial-gradient(circle at 72% 34%, rgba(73,160,255,.15), transparent 31%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 45%);
  mix-blend-mode: screen;
  opacity: .9;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,11,20,.44) 0%, rgba(7,11,20,.12) 48%, rgba(7,11,20,.42) 100%),
    radial-gradient(circle at 52% 52%, rgba(214,178,94,.06), transparent 34%);
}

.hero > * {
  position: relative;
  z-index: 4;
}

/* 2. Hero 전체 파티클 캔버스 */
.anyncar-hero-wide-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 1;
}

/* 3. 제목 주변 파티클 강화 */
.anyncar-particle-title {
  position: relative !important;
  isolation: isolate;
}

.anyncar-hero-title-text {
  position: relative;
  z-index: 8;
  display: inline-block;
  text-shadow:
    0 0 22px rgba(255,255,255,.10),
    0 10px 34px rgba(0,0,0,.32);
}

.anyncar-hero-particle-canvas {
  position: absolute;
  left: -120px;
  top: -95px;
  width: calc(100% + 240px);
  height: calc(100% + 190px);
  pointer-events: none;
  z-index: 7;
  mix-blend-mode: screen;
  opacity: 1;
  filter: saturate(1.25) contrast(1.08);
}

.anyncar-particle-title::after {
  content: "";
  position: absolute;
  inset: -38px -64px;
  z-index: 6;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 34%, rgba(214,178,94,.32), transparent 28%),
    radial-gradient(circle at 78% 56%, rgba(76,154,255,.22), transparent 34%);
  filter: blur(2px);
  opacity: .88;
}

/* 4. 통계 박스 뒤 얼룩 방지용 다크 글래스 보정 */
.hero-stats {
  background: rgba(7,11,20,.44) !important;
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.24) !important;
}

.hero-stats .stat {
  background: rgba(255,255,255,.02);
}

.hero-contact-bar {
  position: relative;
  z-index: 6;
}

/* 5. 모바일 Hero 보정 */
@media (max-width: 768px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(7,11,20,.82) 0%, rgba(7,11,20,.50) 42%, rgba(7,11,20,.82) 100%),
      linear-gradient(90deg, rgba(7,11,20,.74) 0%, rgba(7,11,20,.25) 55%, rgba(7,11,20,.70) 100%),
      url("../images/hero/2026-05-21-v2-clean-premium-car-hero.webp") !important;
    background-position: 66% center !important;
  }

  .anyncar-hero-wide-particles {
    opacity: .86;
  }

  .anyncar-hero-particle-canvas {
    left: -55px;
    top: -56px;
    width: calc(100% + 110px);
    height: calc(100% + 112px);
    opacity: .92;
  }

  .anyncar-particle-title::after {
    inset: -22px -28px;
    opacity: .62;
  }

  .hero-stats {
    background: rgba(7,11,20,.56) !important;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .anyncar-hero-wide-particles,
  .anyncar-hero-particle-canvas {
    display: none !important;
  }
}
