/* ============================================================
   홈(index.html) 전용 스타일
   ============================================================ */
.hero {
  position: relative; width: 100%; height: 480px; overflow: hidden;
}
@media (min-width: 768px) { .hero { height: 540px; } }
@media (min-width: 1080px) { .hero { height: 600px; } }
.hero__bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(120deg, oklch(30% 0.08 250) 0%, oklch(38% 0.1 245) 55%, oklch(34% 0.09 240) 100%);
  background-size: cover; background-position: center;
}
.hero__bg-slideshow { position: absolute; inset: 0; overflow: hidden; background: oklch(30% 0.08 250); }
.hero__bg-slide {
  position: absolute; inset: 0; opacity: 0; transform: scale(1);
  animation: heroSlideCycle 15s ease-in-out infinite;
}
.hero__bg-slide:nth-child(1) { animation-delay: 0s; }
.hero__bg-slide:nth-child(2) { animation-delay: 5s; }
.hero__bg-slide:nth-child(3) { animation-delay: 10s; }

/* 3장이 15초 주기로 순환: 각 이미지는 1초에 걸쳐 서서히 오버레이(크로스페이드)되며 나타나
   약 5초간 천천히 10%까지 확대되다가, 다음 이미지가 나타나는 1초 동안 함께 서서히 사라진다.
   animation-delay로 세 이미지의 위상을 5초씩 어긋나게 만들어 항상 겹쳐서 전환되게 한다. */
@keyframes heroSlideCycle {
  0%      { opacity: 0;   transform: scale(1); }     /* 페이드인 시작 */
  6.67%   { opacity: 1;   transform: scale(1.015); }  /* 1s: 페이드인 완료, 확대 계속 진행 */
  33.33%  { opacity: 1;   transform: scale(1.08); }   /* 5s: 다음 이미지가 겹쳐 나타나기 시작 */
  40%     { opacity: 0;   transform: scale(1.1); }    /* 6s: 페이드아웃 완료, 확대 완료 */
  40.01%  { opacity: 0;   transform: scale(1); }       /* 보이지 않는 동안 조용히 리셋 */
  100%    { opacity: 0;   transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg-slide { animation: none; opacity: 0; }
  .hero__bg-slide:first-child { opacity: 1; }
}
.hero__overlay { position: absolute; inset: 0; background: oklch(35% 0.09 245 / 0.55); }
.hero__content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; gap: 14px; padding: 0 20px; max-width: 90%;
}
@media (min-width: 768px) { .hero__content { padding: 0 var(--container-pad); gap: 20px; max-width: 620px; } }
.hero__title {
  font-family: var(--font-display); font-size: 48px; color: var(--paper); line-height: 1;
  text-transform: uppercase; text-shadow: 0 2px 14px oklch(15% 0.05 255 / 0.35);
}
@media (min-width: 768px) { .hero__title { font-size: 66px; } }
@media (min-width: 1080px) { .hero__title { font-size: 86px; white-space: nowrap; } }
.hero__subcopy { font-size: 18px; font-weight: 700; color: var(--paper); line-height: 1.4; }
@media (min-width: 768px) { .hero__subcopy { font-size: 22px; } }
@media (min-width: 1080px) { .hero__subcopy { font-size: 27px; } }
.hero__cta { margin-top: 6px; padding: 15px 26px; border-radius: 10px; font-size: 15px; }
@media (min-width: 768px) { .hero__cta { margin-top: 10px; padding: 18px 34px; font-size: 18px; } }

.home-intro { padding: 0 var(--container-pad) 32px; position: relative; z-index: 2; }
@media (min-width: 768px) { .home-intro { padding: 0 var(--container-pad) 56px; } }
.home-intro__row {
  max-width: var(--container-max); margin: -36px auto 0; display: flex; flex-direction: column;
  align-items: stretch; gap: 20px; position: relative; z-index: 5;
}
@media (min-width: 768px) { .home-intro__row { flex-direction: row; align-items: center; gap: 32px; margin-top: -70px; } }
.home-intro__badge {
  width: 96px; height: 96px; min-width: 96px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; margin: 20px auto -16px;
  box-shadow: 0 8px 20px oklch(20% 0.05 255 / 0.1); position: relative; z-index: 3;
}
@media (min-width: 768px) { .home-intro__badge { width: 150px; height: 150px; min-width: 150px; margin: 0 -75px 0 0; } }
.home-intro__badge img { width: 85%; height: 85%; object-fit: contain; }
.home-intro__card {
  flex: 1; background: var(--paper); border-radius: 6px; box-shadow: 0 12px 32px oklch(20% 0.05 255 / 0.14);
  padding: 40px 24px 24px; border: 1px solid var(--hair);
}
@media (min-width: 768px) { .home-intro__card { padding: 44px 56px 44px 84px; } }
.home-intro__text { font-size: 15px; line-height: 1.7; margin: 0; font-weight: 500; text-align: left; }
@media (min-width: 768px) { .home-intro__text { font-size: 18px; text-align: center; } }

.home-stats { position: relative; width: 100%; height: 900px; margin-top: 32px; }
@media (min-width: 768px) { .home-stats { height: 760px; margin-top: 56px; } }
.home-stats__bg { position: absolute; inset: 0; }
.home-stats__row { position: absolute; inset: 0; display: flex; flex-direction: column; }
@media (min-width: 768px) { .home-stats__row { flex-direction: row; } }
.home-stats__col {
  position: relative; flex: 1; border-top: 1px solid oklch(98% 0.004 90 / 0.35); cursor: pointer; overflow: hidden;
}
.home-stats__col:first-child { border-top: none; }
@media (min-width: 768px) {
  .home-stats__col { border-top: none; border-left: 1px solid oklch(98% 0.004 90 / 0.35); }
  .home-stats__col:first-child { border-left: none; }
}
/* 기본 상태(모바일/터치 포함): navy 반투명 오버레이로 4분할 구분을 유지하면서
   숫자·설명은 항상 충분히 읽히도록 완전 노출한다. */
.home-stats__overlay {
  position: absolute; inset: 0; background: oklch(22% 0.05 255 / 0.4);
  transition: background 300ms ease; pointer-events: none;
}
.home-stats__content {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
@media (min-width: 768px) { .home-stats__content { padding: 22px; } }

/* 상단 accent 라인 — hover 시에만 자연스럽게 자라나는 절제된 표시 */
.home-stats__content::before {
  content: ''; display: block; height: 2px; width: 0; background: var(--amber);
  transition: width 300ms ease; margin-bottom: 2px;
}

.home-stats__number {
  font-size: 22px; font-weight: 800; color: var(--paper);
  opacity: 1; transform: scale(1); transform-origin: left top;
  transition: opacity 300ms ease, transform 300ms ease;
}
@media (min-width: 768px) { .home-stats__number { font-size: 26px; } }
.home-stats__label {
  font-size: 11px; color: oklch(92% 0.01 255); line-height: 1.4; max-width: 160px;
  opacity: 1; transition: opacity 300ms ease;
}
@media (min-width: 768px) { .home-stats__label { font-size: 12px; } }

/* Hover 인터랙션은 실제 hover가 가능한 데스크톱 포인터 환경에서만 적용.
   기본 상태를 절제된 톤으로 낮추는 것도 이 미디어쿼리 안에서만 적용해서,
   모바일/터치에서는 항상 완전히 읽히는 상태를 유지한다. */
@media (hover: hover) and (pointer: fine) {
  .home-stats__number { opacity: 0.62; }
  .home-stats__label { opacity: 0.62; }

  .home-stats__col:hover .home-stats__overlay { background: oklch(24% 0.07 255 / 0.82); }
  .home-stats__col:hover .home-stats__content::before { width: 32px; }
  .home-stats__col:hover .home-stats__number { opacity: 1; transform: scale(1.1); }
  .home-stats__col:hover .home-stats__label { opacity: 1; }
}

.home-carousel {
  position: relative; padding: 48px 20px 40px; max-width: 1320px; margin: 0 auto; overflow: hidden;
}
@media (min-width: 768px) { .home-carousel { padding: 88px var(--container-pad) 64px; } }
.home-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%;
  border: none; background: transparent; color: oklch(35% 0.02 260); font-size: 22px; font-weight: 700;
  cursor: pointer; z-index: 5;
}
@media (min-width: 768px) { .home-carousel__arrow { width: 48px; height: 48px; font-size: 28px; } }
.home-carousel__arrow--left { left: 4px; }
.home-carousel__arrow--right { right: 4px; }
@media (min-width: 768px) { .home-carousel__arrow--left { left: 8px; } .home-carousel__arrow--right { right: 8px; } }

.home-carousel__track { display: flex; width: 200%; transform: translateX(0%); transition: transform 420ms ease; }
.home-carousel__slide { width: 50%; flex-shrink: 0; padding: 0 32px; overflow: hidden; }
@media (min-width: 768px) { .home-carousel__slide { padding: 0 56px; } }
.home-carousel__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; min-width: 0; }
@media (min-width: 768px) { .home-carousel__inner { flex-direction: row; gap: 56px; } }
.home-carousel__text-col { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.home-carousel__heading { font-size: 22px; font-weight: 800; line-height: 1.4; }
@media (min-width: 768px) { .home-carousel__heading { font-size: 30px; } }
.home-carousel__body { font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
@media (min-width: 768px) { .home-carousel__body { font-size: 16px; } }
.home-carousel__cta {
  display: inline-block; margin-top: 4px; background: var(--coral); color: var(--paper);
  font-size: 14px; font-weight: 700; padding: 13px 24px; border-radius: 3px; align-self: flex-start;
}
.home-carousel__media-row { flex: 1; display: flex; gap: 8px; width: 100%; min-width: 0; }
.home-carousel__media-half { flex: 1; aspect-ratio: 3/4; min-width: 0; height: auto; }

.home-carousel__video {
  flex: 1; width: 100%; aspect-ratio: 16/9; background: oklch(15% 0.01 260); border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; position: relative;
}
.home-carousel__play {
  width: 0; height: 0; border-top: 16px solid transparent; border-bottom: 16px solid transparent;
  border-left: 26px solid var(--paper); margin-left: 6px;
}
.home-carousel__video-caption { font-family: monospace; font-size: 11px; color: oklch(70% 0.01 260); letter-spacing: 0.03em; }

.home-carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
@media (min-width: 768px) { .home-carousel__dots { margin-top: 36px; } }
.home-carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hair); cursor: pointer; border: none; padding: 0; }
.home-carousel__dot.is-active { background: var(--blue); }
