/* ========================================
   MAIN VISUAL
======================================== */

.main-visual {
  position: relative;

  height: clamp(800px, 47vw, 1200px);

  overflow: hidden;

  background: var(--color-black);
}

.main-visual-bg {
  position: absolute;
  inset: 0;

  background:
    url('/images/main_visual.png')
    center / cover no-repeat;
}

.main-visual-content {
  position: absolute;
  z-index: 2;

  top: 25%;
  left: 50%;

  width: calc(100% - 40px);

  text-align: center;

  transform: translateX(-50%);
}

.main-visual-content p {
  margin-bottom: 8px;

  font-size: var(--font-lg);
  font-weight: 400;
}

.main-visual-content h2 {
  font-size: var(--font-visual);
  font-weight: 600;
  line-height: 1.25;
}

.main-visual-content h2 strong {
  color: var(--color-orange);
  font-weight: 600;
}


/* ========================================
   WHY CS
======================================== */

.why-section {
    padding: clamp(70px, 6vw, 100px) 0
           clamp(20px, 8vw, 20px);

  position: relative;


  overflow: hidden;

  background:
    var(--color-bg)
    url('/images/why_bg.png')
    left center / auto 100% no-repeat;
}

.why-inner {
  min-height: inherit;

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}


/* TITLE */

.why-heading h2 {
  margin-bottom: 10px;

  font-size: var(--font-title);
  font-weight: 700;
}

.why-heading p {
  font-size: var(--font-base);
  color: var(--color-gray-light);
}


/* DIAGRAM */

.why-diagram {
  position: relative;

  width: clamp(430px, 36vw, 570px);
  aspect-ratio: 1 / 1;

  margin-left: auto;
}

.why-item {
  position: absolute;

  width: clamp(130px, 11vw, 175px);
  aspect-ratio: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  border-radius: 50%;

  background: var(--color-gray-dark);
}

.why-item.blue {
  background: var(--color-blue);
}

.why-icon {
  margin-bottom: 10px;

  font-size: var(--font-title-md);
}

.why-item strong {
  font-size: var(--font-lg);
  line-height: 1.25;
}

.why-item01 {
  top: 4%;
  left: 5%;
}

.why-item02 {
  top: 4%;
  right: 5%;
}

.why-item03 {
  bottom: 4%;
  left: 5%;
}

.why-item04 {
  right: 5%;
  bottom: 4%;
}

.why-center {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 120px;

  transform: translate(-50%, -50%);
}


/* ========================================
   PRODUCT
======================================== */

.product-section {
  padding: clamp(70px, 6vw, 100px) 0
           clamp(90px, 8vw, 130px);

  overflow: hidden;

  background: var(--color-blue-dark);
}


/* HEADING */

.product-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.product-heading h2 {
  margin-bottom: 5px;

  font-size: var(--font-title);
  line-height: 1.2;
}

.product-heading p {
  font-size: var(--font-base);
}

.detail-btn {
  min-width: 165px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50px;

  font-size: var(--font-sm);

  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.detail-btn:hover {
  color: var(--color-surface);
  background: var(--color-white);
}


/* SLIDER */

.product-slider {
  position: relative;

  margin-top: 65px;

  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
}

.product-track-wrap {
  overflow: hidden;
}

.product-track {
  display: flex;
  align-items: center;

  transition: transform 0.55s cubic-bezier(.25,.8,.25,1);
}

.product-item {
  flex: 0 0 33.333%;

  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;

  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.product-circle {
  width: clamp(320px, 20vw, 420px);
  aspect-ratio: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  transition:
    background 0.45s ease,
    transform 0.45s ease;
}

.product-item img {
  width: 58%;
  max-height: 190px;

  object-fit: contain;

  transition: transform 0.45s ease;
}


/* 기본 제품 */

.product-item:not(.active) {
  opacity: 0.9;
}

.product-item:not(.active) .product-circle {
  transform: scale(.8);
}

.product-item:not(.active) img {
  transform: scale(.88);
}


/* 가운데 ACTIVE */

.product-item.active .product-circle {
  background: var(--color-blue);

  transform: scale(1);
}

.product-item.active img {
  transform: scale(1);
}


/* 제품명 */

.product-name {
  max-height: 0;

  margin-top: 0;

  overflow: hidden;

  opacity: 0;

  text-align: center;

  font-size: var(--font-lg);
  font-weight: 600;
  line-height: 1.25;

  transform: translateY(10px);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    margin 0.35s ease,
    max-height 0.35s ease;
}

.product-item.active .product-name {
  max-height: 80px;
  max-width: 200px;
  margin-top: 15px;

  opacity: 1;

  transform: translateY(0);
}


/* ARROW */

.product-arrow {
  position: relative;
  z-index: 5;

  font-size: var(--font-title-md);
  font-weight: 200;

  color: rgba(255,255,255,.8);

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.product-arrow:hover {
  color: var(--color-white);
}

.product-prev:hover {
  transform: translateX(-5px);
}

.product-next:hover {
  transform: translateX(5px);
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {

  .why-inner {
    grid-template-columns: 1fr;
    gap: 50px;

    padding: 70px 0;
  }

  .why-heading {
    text-align: center;
  }

  .why-diagram {
    margin: 0 auto;
  }
  .why-section{
     background:
    var(--color-bg)
    url('/images/why_bg.png')
    right center / auto 100% no-repeat;
  }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

  .main-visual {
    height: 560px;
  }

  .main-visual-bg {
    background-position: center;
  }


  /* WHY */

  .why-section {
    min-height: auto;

    background-size: cover;
  }

  .why-diagram {
    width: min(100%, 420px);
  }

  .why-center {
    width: 80px;
  }


  /* PRODUCT */

  .product-heading {
    align-items: flex-start;
  }

  .detail-btn {
    min-width: 110px;
    height: 38px;
  }

  .product-slider {
    grid-template-columns: 35px 1fr 35px;

    margin-top: 50px;
  }

  .product-item {
    flex-basis: 100%;
  }

  .product-circle {
    width: min(70vw, 300px);
  }
  .product-item img {
  width: 38%;
  max-height: 190px;

  object-fit: contain;

  transition: transform 0.45s ease;
}


}

.product-track-wrap {
  min-width: 0;
}

.product-item.active .product-circle {
  background: var(--color-blue);
}

.product-item.active .product-name {
  max-height: 100px;
  margin-top: 15px;
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   REQUESTED MOTION ONLY
======================================== */
.main-visual-bg {
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.08);
}

.main-visual-content p {
  animation: hero-copy-in 1s .15s both cubic-bezier(.2,.75,.25,1);
}

/* Slogan animates separately from the introductory line */
.main-visual-content h2 {
  animation: hero-slogan-in 1.15s .55s both cubic-bezier(.2,.75,.25,1);
}

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-slogan-in {
  from { opacity: 0; transform: translateY(44px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Scroll reveal: same upward entrance as main slogan */
.motion-enabled .why-heading h2,
.motion-enabled .why-heading p,
.motion-enabled .product-heading h2,
.motion-enabled .product-heading p {
  opacity: 0;
  transform: translateY(44px);
  filter: blur(5px);
  transition: opacity 1.15s cubic-bezier(.2,.75,.25,1),
              transform 1.15s cubic-bezier(.2,.75,.25,1),
              filter 1.15s cubic-bezier(.2,.75,.25,1);
}
.motion-enabled .why-heading p,
.motion-enabled .product-heading p { transition-delay: .22s; }

/* Why CS image enters from right */
.motion-enabled .why-diagram {
  opacity: 0;
  transform: translateX(90px);
  transition: opacity 1.15s .18s cubic-bezier(.2,.75,.25,1),
              transform 1.15s .18s cubic-bezier(.2,.75,.25,1);
}
.motion-enabled .why-section.is-visible .why-heading h2,
.motion-enabled .why-section.is-visible .why-heading p,
.motion-enabled .product-section.is-visible .product-heading h2,
.motion-enabled .product-section.is-visible .product-heading p {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.motion-enabled .why-section.is-visible .why-diagram {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .main-visual-content p, .main-visual-content h2 { animation: none; }
  .main-visual-bg { transform: none !important; }
  .motion-enabled .why-heading h2,
  .motion-enabled .why-heading p,
  .motion-enabled .product-heading h2,
  .motion-enabled .product-heading p,
  .motion-enabled .why-diagram { opacity: 1; transform: none; filter: none; transition: none; }
  .product-track { transition: none; }
}
