/* 메인 페이지: 풀페이지 히어로 + 수치 섹션
   이 페이지는 화면 폭에 따라 rem 기준이 달라지므로 크기는 px/clamp 로 적는다. */

.hm-hero,
.hm-stats {
  --hm-navy: #004093;
  --hm-ink: #0b1b33;
  --hm-green: #2bb673;
  box-sizing: border-box;
  text-align: left;
  letter-spacing: -0.02em;
}
.hm-hero *,
.hm-stats * {
  box-sizing: border-box;
}
.hm-hero h2,
.hm-hero p,
.hm-stats h2,
.hm-stats p,
.hm-stats ul,
.hm-stats li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ------------------------------------------------------------------ 히어로 */
.hm-hero {
  --hm-hdr: 111px; /* PC 헤더 높이(슬로건 띠 + 메뉴 줄) */
  --hm-gap: clamp(12px, 1.8vw, 28px);
  padding: var(--hm-gap) var(--hm-gap) 0;
}
@media (max-width: 1279px) {
  .hm-hero {
    --hm-hdr: 60px;
  }
}
.hm-hero__card {
  position: relative;
  height: calc(100vh - var(--hm-hdr) - var(--hm-gap) * 2);
  height: calc(100svh - var(--hm-hdr) - var(--hm-gap) * 2);
  min-height: 480px;
  overflow: hidden;
  border-radius: clamp(20px, 3vw, 44px);
  background: #06204a;
  color: #fff;
  isolation: isolate;
}

.hm-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.hm-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
  z-index: 1;
}
.hm-slide__bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(100deg, rgba(3, 18, 48, 0.94) 0%, rgba(0, 44, 104, 0.78) 48%, rgba(0, 64, 147, 0.38) 100%), var(--bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 8s linear;
}
.hm-slide.is-active .hm-slide__bg {
  transform: scale(1);
}

.hm-slide__text {
  position: absolute;
  top: 50%;
  left: clamp(24px, 7.5vw, 140px);
  right: clamp(56px, 12vw, 220px);
  transform: translateY(-54%);
}
.hm-slide__text > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hm-slide.is-active .hm-slide__text > * {
  opacity: 1;
  transform: none;
}
.hm-slide.is-active .hm-slide__text > :nth-child(1) {
  transition-delay: 0.25s;
}
.hm-slide.is-active .hm-slide__text > :nth-child(2) {
  transition-delay: 0.38s;
}
.hm-slide.is-active .hm-slide__text > :nth-child(3) {
  transition-delay: 0.52s;
}
.hm-slide.is-active .hm-slide__text > :nth-child(4) {
  transition-delay: 0.64s;
}
.hm-hero .hm-slide__eyebrow {
  margin-bottom: clamp(18px, 3vh, 36px);
  font-size: clamp(12px, 1.05vw, 16px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #9fd9bd;
}
.hm-hero .hm-slide__title {
  font-size: clamp(32px, 5.4vw, 88px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: #fff;
  word-break: keep-all;
}
.hm-hero .hm-slide__desc {
  max-width: 34em;
  margin-top: clamp(18px, 3vh, 34px);
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  word-break: keep-all;
}
.hm-hero a.hm-slide__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(22px, 4vh, 44px);
  padding: 14px 26px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.hm-slide__link::after {
  content: '';
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.hm-hero a.hm-slide__link:hover,
.hm-hero a.hm-slide__link:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--hm-navy);
}
.hm-slide__link:hover::after {
  transform: translateX(3px) rotate(45deg);
}

/* 오른쪽 세로 점(슬라이드 선택) */
.hm-hero__dots {
  position: absolute;
  top: 50%;
  right: clamp(16px, 4.2vw, 76px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-50%);
}
.hm-hero__dots button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hm-hero__dots button::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.hm-hero__dots button[aria-selected='true']::before {
  background: #fff;
  transform: scale(1.15);
}
.hm-hero__dots button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 50%;
}

/* 오른쪽 아래 큰 번호 */
.hm-hero__count {
  position: absolute;
  right: clamp(56px, 7.5vw, 140px); /* 오른쪽 아래 카카오톡·전화 버튼과 겹치지 않게 */
  bottom: -0.11em;
  z-index: 2;
  font-size: clamp(96px, 17vw, 300px);
  font-weight: 200;
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
  user-select: none;
}

/* 왼쪽 아래 스크롤 안내 */
.hm-hero__scroll {
  position: absolute;
  left: clamp(24px, 7.5vw, 140px);
  bottom: clamp(20px, 4vh, 40px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.7);
}
.hm-hero__scroll::before {
  content: '';
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, #fff 50%, rgba(255, 255, 255, 0.25) 50%);
  background-size: 200% 100%;
  animation: hm-scroll 2.2s ease-in-out infinite;
}
@keyframes hm-scroll {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

@media (max-width: 700px) {
  .hm-slide__text {
    right: 48px;
    transform: translateY(-62%);
  }
  .hm-hero .hm-slide__desc br {
    display: none;
  }
  .hm-hero a.hm-slide__link {
    padding: 12px 22px;
    font-size: 14px;
  }
  .hm-hero__dots {
    right: 8px;
  }
}
@media (max-height: 560px) {
  .hm-hero__scroll {
    display: none;
  }
}

/* ------------------------------------------------------------------ 수치 */
.hm-stats {
  padding: clamp(72px, 10vw, 150px) clamp(20px, 5vw, 60px);
  background: #fff;
}
.hm-stats__inner {
  max-width: 1400px;
  margin: 0 auto;
}
.hm-stats__head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px clamp(32px, 6vw, 96px);
  margin-bottom: clamp(36px, 5vw, 72px);
}
.hm-stats .hm-stats__eyebrow {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--hm-green);
}
.hm-stats .hm-stats__title {
  font-size: clamp(30px, 4.3vw, 64px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: var(--hm-ink);
  word-break: keep-all;
}
.hm-stats .hm-stats__lead {
  padding-bottom: 0.5em;
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 400;
  line-height: 1.7;
  color: #55607a;
  word-break: keep-all;
}

.hm-stats .hm-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}
.hm-stats .hm-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(220px, 21vw, 320px);
  padding: clamp(20px, 2.2vw, 34px);
  border-radius: clamp(18px, 2vw, 28px);
  background: #f3f6fb;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hm-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 34, 68, 0.1);
}
.hm-stats .hm-stat__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 600;
  color: var(--hm-ink);
}
.hm-stat__label span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #9aa5b8;
  font-variant-numeric: tabular-nums;
}
.hm-stats .hm-stat__num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  padding-top: 28px;
  font-size: clamp(44px, 5.2vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--hm-navy);
}
.hm-stat__num small {
  font-size: max(13px, 0.3em);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--hm-green);
}
.hm-stats .hm-stat__desc {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #dde4ee;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 400;
  line-height: 1.6;
  color: #55607a;
  word-break: keep-all;
}
/* 강조 카드 */
.hm-stats .hm-stat--accent {
  background: var(--hm-navy);
}
.hm-stats .hm-stat--accent .hm-stat__label,
.hm-stats .hm-stat--accent .hm-stat__num {
  color: #fff;
}
.hm-stat--accent .hm-stat__label span {
  color: rgba(255, 255, 255, 0.6);
}
.hm-stat--accent .hm-stat__num small {
  color: #8fe0b8;
}
.hm-stats .hm-stat--accent .hm-stat__desc {
  border-top-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 1000px) {
  .hm-stats__head {
    grid-template-columns: 1fr;
  }
  .hm-stats .hm-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .hm-stats .hm-stat {
    min-height: 0;
  }
  .hm-stats .hm-stat__num {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hm-slide,
  .hm-slide__bg,
  .hm-slide__text > *,
  .hm-stat {
    transition: none !important;
  }
  .hm-slide__bg {
    transform: none;
  }
  .hm-hero__scroll::before {
    animation: none;
  }
}
