/* Figma 디자인 적용 - 메인 페이지 (스크롤 레이아웃) */
/* 색상: #40798C(티얼), #9EC1A3(연두), #92E1D5(민트) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* index.php 전용 스타일시트: 루트·문서 가로 고정 (푸터 음수 마진·장식 등으로 생기는 가로 스크롤 방지) */
html:has(body.index-page) {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  overscroll-behavior-x: none;
}

body.index-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden !important;
  overflow-y: auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overscroll-behavior-x: none;
  position: relative;
  /* 메인은 문서 전체 한 줄 스크롤만 (섹션 스냅/부분 스크롤 없음) */
  scroll-snap-type: none;
}
.index-page #wrap {
  min-height: 0;
  overflow: visible;
}

/* 메인 콘텐츠를 세로로 스크롤 가능하게 배치 — 푸터 직전 여백 */
.index-page .main-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding-bottom: clamp(2.5rem, 5vh, 4.5rem);
  width: 100%;
}

/* 메인: 히어로는 세로 ~680px, 서비스·클라이언트·전문가는 ~1024px 밴드 */
.index-page .services-section,
.index-page .clients-section,
.index-page .expert-section {
  box-sizing: border-box;
  min-height: 1024px;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.index-page .hero-section {
  box-sizing: border-box;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

/* ===== 히어로 섹션 (다크 배경 + 오버레이) ===== */
.index-page .hero-section {
  position: relative;
  min-height: 680px;
  display: flex;
  /* align-items: center 는 .container 를 세로 중앙에 붙여 padding/margin 만으로는 위로 못 올림 → 메인은 #wrap.main 에서 flex-start 로 덮음 */
  align-items: flex-start;
  overflow: hidden;
  /* 배경 이미지 404·차단 시에도 흰 글자가 보이도록 다크 폴백 (index.php 인라인 background:#fff 와 병존) */
  background-color: #1f363d;
  background-image: url('/img/hero_sec_image.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.index-page .hero-background {
  display: none !important;
}

.index-page .hero-section.has-bg-image,
.index-page .hero-background.has-bg-image {
  background-size: cover;
  background-position: center;
}

.index-page .hero-overlay {
  display: none !important;
}

.index-page .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.index-page .hero-title {
  margin-top: -0.45rem;
}

.index-page .hero-title .title-eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.78) !important;
  margin: 0 0 0.35rem;
}

.index-page .hero-title .title-main {
  color: #ffffff !important;
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 0.8 !important;
  margin-bottom: 0.3rem;
  white-space: pre-line;
}
.index-page .hero-title .title-highlight { display: none; }

.index-page .hero-subtitle {
  display: none;
}

.index-page .hero-stats,
.index-page .trust-badges {
  display: none;
}

.index-page .hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 3.2rem;
}

.index-page .hero-actions .btn-primary-figma {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, rgba(64, 121, 140, 1) 35%, rgba(146, 225, 213, 1) 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.15rem;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.index-page .hero-actions .btn-primary-figma:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(64, 121, 140, 0.4);
}

/* 플로팅 버튼 (우측) */
.index-page .hero-floating-btns {
  /* Tawk(우측 하단) 위치로 이동: 화면 기준 고정 */
  position: fixed;
  right: 24px;
  bottom: 24px;
  top: auto;
  transform: none;
  /* 푸터 회피 시 bottom 변경을 부드럽게 */
  transition: bottom 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 9999;
  display: flex;
  /* 무료 견적 버튼이 가장 아래(우측하단)에 오도록 */
  flex-direction: column-reverse;
  gap: 0.75rem;
}

.index-page .hero-floating-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  text-decoration: none;
  color: #000;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.2s;
}

.index-page .hero-floating-btn:hover {
  transform: scale(1.05);
}

.index-page .hero-floating-btn.light {
  background: #ffffff;
  border: 1px solid #dfe8ec;
  gap: 0;
}

.index-page .hero-floating-btn.teal {
  background: #295664;
  color: #fff;
}

.index-page .hero-floating-btn.kakao {
  background: #fee500;
  border: 1px solid #e6c200;
  color: #3c1e1e;
  gap: 0;
}

.index-page .hero-floating-btn .float-label {
  display: block;
  text-align: center;
}

.index-page .hero-floating-btn .float-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
}

.index-page .hero-floating-btn.light .float-icon {
  display: none;
}

/* 히어로 비주얼(카드) 숨김 - 다크 풀브리드 레이아웃용 */
.index-page .hero-visual {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  overflow: hidden !important;
}

/* ===== 서비스 섹션 — ~1024px 밴드, 글래스 카드, 배경은 히어로와 동일하게 /img/ + 카드 뒤 레이어 ===== */
.index-page .services-section {
  background-color: #ffffff;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  justify-content: center;
  margin: 0;
  min-height: 1024px;
  overflow: hidden;
  padding: 2.5rem 1.5rem;
  position: relative;
  width: 100%;
}

/* 그라데이션: contain으로 과확대 방지(원본 비율·잘림 없음), 정렬은 중심보다 살짝 아래 */
.index-page .services-section__bg {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.index-page .services-section__bg-img {
  box-sizing: border-box;
  display: block;
  flex: none;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  min-width: 0;
  object-fit: contain;
  object-position: 50% 72%;
  opacity: 0.88;
  width: 100%;
}

.index-page .services-section__inner {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
  min-height: 0;
  position: relative;
  width: 100%;
  z-index: 1;
}

/* header.css 전역 `header { background:#fff; height:102px; sticky… }` 가
   <header class="services-intro"> 에도 먹어 흰 박스가 생기므로 여기서 무력화 */
.index-page .services-section .services-intro {
  align-items: flex-start;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: auto !important;
  margin: -1.45rem 0 5.5rem;
  /* 48rem(≈768px)이면 히어로(넓은 타이틀 영역) 대비 대문구가 과하게 좁아 보임 → 섹션 이너 폭과 동일하게 */
  max-width: 100%;
  min-height: 0 !important;
  padding-left: clamp(3.8rem, 8.5vw, 7.2rem);
  position: relative !important;
  text-align: left;
  top: auto !important;
  width: 100%;
  z-index: auto !important;
}

.index-page .services-section .services-intro__eyebrow {
  box-sizing: border-box;
  color: #9ec1a3;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  /* 히어로 .title-eyebrow와 동일: 행간·소문구↔대문구 간격 */
  line-height: normal;
  margin: -0.4rem 0 1.25rem;
  padding: 0;
  text-align: left;
  width: fit-content;
  align-self: flex-start;
  transform: translateX(1.4rem);
}

.index-page .services-section .services-intro__heading {
  border: none;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.45rem, 2.1vw + 0.4rem, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  /* 히어로 .title-main과 동일 행간·위치 */
  line-height: 1.24;
  margin: -0.35rem 0 0;
  padding: 0;
  text-align: left;
  width: fit-content;
  align-self: flex-start;
  transform: translateX(1.1rem);
}

.index-page .services-section .services-intro__line {
  display: block;
  line-height: inherit;
  margin: 0;
}

.index-page .services-section .services-intro__line--dark {
  color: #000000;
  margin-bottom: 0;
}

.index-page .services-section .services-intro__line--teal {
  color: #40798c;
}

.index-page .services-section .services-cards-row {
  display: grid;
  flex-shrink: 0;
  gap: clamp(1rem, 2.2vw, 1.75rem);
  grid-template-columns: repeat(3, minmax(0, 280px));
  justify-content: center;
  justify-items: stretch;
  margin-top: clamp(1.5rem, 4vw, 3.25rem);
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.index-page .services-section .services-glass-card {
  -webkit-backdrop-filter: blur(48px) saturate(1.12) brightness(1.02);
  backdrop-filter: blur(48px) saturate(1.12) brightness(1.02);
  background-color: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 40px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset -18px 18px 28px rgba(255, 255, 255, 0.22),
    0 8px 32px rgba(31, 54, 61, 0.08);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  justify-content: flex-start;
  max-width: min(280px, 100%);
  min-height: clamp(300px, 36vh, 400px);
  min-width: 0;
  overflow: visible;
  padding: 2.35rem 1.35rem 2.6rem;
  text-align: center;
  width: 100%;
}

.index-page .services-section .services-glass-card__title {
  color: #40798c;
  flex-shrink: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.4rem, 2vw + 0.65rem, 1.7rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1.65rem;
}

.index-page .services-section .services-glass-card__list {
  color: #000000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 2;
  list-style: none;
  margin: 0;
  padding: 0;
}

.index-page .services-section .services-glass-card__list li {
  color: #1a1a1a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  transform: scale(1);
  transform-origin: center center;
  transition:
    transform 0.42s cubic-bezier(0.25, 0.9, 0.35, 1),
    color 0.32s ease,
    font-weight 0.32s ease,
    text-shadow 0.32s ease;
}

.index-page .services-section .services-glass-card__list li + li {
  margin-top: 0.45rem;
}

/* 번역 카드(3번째): 세부 항목 블록만 살짝 아래로 */
.index-page .services-section .services-cards-row > .services-glass-card:nth-child(3) .services-glass-card__list {
  margin-top: 0.85rem;
}

/* 카드 호버: 세부 항목이 위→아래로 더 띄엄띄엄·눈에 띄게 */
.index-page .services-section .services-glass-card:hover .services-glass-card__list li:nth-child(1) {
  color: #0d3d47;
  font-weight: 600;
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px) scale(1.16);
  transition-delay: 0s;
}

.index-page .services-section .services-glass-card:hover .services-glass-card__list li:nth-child(2) {
  color: #0d3d47;
  font-weight: 600;
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px) scale(1.16);
  transition-delay: 0.08s;
}

.index-page .services-section .services-glass-card:hover .services-glass-card__list li:nth-child(3) {
  color: #0d3d47;
  font-weight: 600;
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px) scale(1.16);
  transition-delay: 0.16s;
}

.index-page .services-section .services-glass-card:hover .services-glass-card__list li:nth-child(4) {
  color: #0d3d47;
  font-weight: 600;
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px) scale(1.16);
  transition-delay: 0.24s;
}

.index-page .services-section .services-glass-card:hover .services-glass-card__list li:nth-child(5) {
  color: #0d3d47;
  font-weight: 600;
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px) scale(1.16);
  transition-delay: 0.32s;
}

.index-page .services-section .services-glass-card:hover .services-glass-card__list li:nth-child(6) {
  color: #0d3d47;
  font-weight: 600;
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px) scale(1.16);
  transition-delay: 0.4s;
}

.index-page .services-section .services-glass-card:hover .services-glass-card__list li:nth-child(7) {
  color: #0d3d47;
  font-weight: 600;
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px) scale(1.16);
  transition-delay: 0.48s;
}

.index-page .services-section .services-glass-card:hover .services-glass-card__list li:nth-child(8) {
  color: #0d3d47;
  font-weight: 600;
  text-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-1px) scale(1.16);
  transition-delay: 0.56s;
}

@media (prefers-reduced-motion: reduce) {
  .index-page .services-section .services-glass-card__list li {
    transition: none;
  }

  .index-page .services-section .services-glass-card:hover .services-glass-card__list li {
    color: #000000;
    font-weight: 500;
    text-shadow: none;
    transform: none;
    transition-delay: 0s !important;
  }
}

@media (max-width: 900px) {
  .index-page .services-section {
    justify-content: flex-start;
    min-height: 0;
    padding-bottom: clamp(2.5rem, 8vw, 3.75rem);
    padding-top: clamp(2.25rem, 7vw, 3.25rem);
  }

  .index-page .services-section .services-cards-row {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .index-page .services-section .services-glass-card {
    max-width: none;
    min-height: 0;
  }
}

/* ===== 클라이언트/파트너: 바깥 밴드 = 서비스와 동일 min-height, 안쪽 패널만 작은 파란 사각형 ===== */
.index-page .clients-section {
  align-items: center;
  background-color: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  min-height: 1024px;
  overflow: visible;
  padding: clamp(2.2rem, 4.8vh, 3.4rem) 1.5rem;
  position: relative;
  width: 100%;
}

.index-page .clients-section::before,
.index-page .clients-section::after {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.index-page .clients-section::before {
  content: "";
  width: 980px;
  height: 980px;
  border-radius: 9999px;
  top: -240px;
  right: -290px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(228, 242, 243, 1) 0%, rgba(228, 242, 243, 0) 74%);
}

.index-page .clients-section::after {
  content: none;
}

.index-page .clients-intro {
  background: transparent !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
  position: relative;
  top: auto !important;
  z-index: auto !important;
  z-index: 1;
  width: 100%;
  max-width: min(1200px, 100%);
  text-align: right;
  margin: 0 0 clamp(3.2rem, 7.2vh, 4.4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-left: clamp(0.8rem, 2.2vw, 1.8rem);
  padding-right: 0;
  transform: translateX(clamp(-1.2rem, -2.2vw, -2.4rem));
}

.index-page .clients-intro__eyebrow {
  color: #9ec1a3;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: normal;
  margin: -0.4rem 0 1.25rem;
  text-align: right;
  align-self: flex-end;
  width: fit-content;
  transform: translateX(0);
}

.index-page .clients-section__panel {
  background: linear-gradient(90deg, rgba(146, 225, 213, 0.2) 0%, rgba(98, 157, 176, 0.2) 100%);
  border-radius: 36px;
  box-sizing: border-box;
  max-width: min(1040px, 100%);
  padding: clamp(1.3rem, 2.2vw, 1.95rem) clamp(1.25rem, 2.4vw, 2.2rem);
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: clamp(1.85rem, 4.2vh, 3.15rem);
  display: flex;
  justify-content: center;
}

.index-page .clients-heading {
  text-align: right;
  font-size: clamp(1.45rem, 2.1vw + 0.4rem, 2.35rem);
  font-weight: 700;
  color: #1f363d;
  margin: -0.35rem 0 0;
  letter-spacing: -0.03em;
  line-height: 1.24;
  width: fit-content;
  align-self: flex-end;
}

.index-page .clients-heading__line {
  display: block;
  line-height: inherit;
  margin: 0;
}

.index-page .clients-heading__line--teal {
  color: #40798c;
  margin-top: 0;
}

.index-page .clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(0.45rem, 1.4vh, 0.95rem);
  gap: clamp(1rem, 2vw, 1.75rem);
  width: min(920px, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* 데스크톱 리뷰 카드: 댓글형 엇갈림 레이아웃 */
@media (min-width: 1024px) {
  .index-page .clients-section__panel {
    max-width: min(980px, 100%);
    border-radius: 40px;
    padding: clamp(1.2rem, 2vw, 1.65rem) clamp(1rem, 2vw, 1.8rem);
  }

  .index-page .clients-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.55rem, 1.3vh, 0.9rem);
    width: min(860px, 100%);
    margin-top: clamp(0.3rem, 1.1vh, 0.75rem);
  }

  .index-page .clients-grid .client-card {
    border-radius: 20px;
    min-height: 0;
    width: min(74%, 600px);
    padding: clamp(0.72rem, 1.1vw, 0.96rem) clamp(0.85rem, 1.3vw, 1.1rem);
    animation: clientsCommentFloat 4.8s ease-in-out infinite;
  }

  .index-page .clients-grid .client-card:nth-child(1) {
    align-self: center;
    animation-delay: 0s;
  }

  .index-page .clients-grid .client-card:nth-child(2) {
    align-self: flex-end;
    width: min(86%, 700px);
    animation-delay: 0.28s;
  }

  .index-page .clients-grid .client-card:nth-child(3) {
    align-self: flex-start;
    width: min(80%, 640px);
    animation-delay: 0.56s;
  }

  .index-page .clients-grid .client-card:nth-child(4) {
    align-self: flex-end;
    width: min(84%, 680px);
    animation-delay: 0.84s;
  }
}

@keyframes clientsCommentFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(31, 54, 61, 0.08);
  }
  50% {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(64, 121, 140, 0.16);
  }
}

.index-page .client-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: clamp(0.82rem, 1.2vw, 1.08rem) clamp(0.95rem, 1.4vw, 1.25rem);
  min-height: 82px;
  box-shadow: 0 10px 30px rgba(31, 54, 61, 0.08);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.index-page .client-card-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 0.62rem;
  font-family: inherit;
}

.index-page .client-card-desc {
  font-size: 0.78rem;
  color: rgba(0, 0, 0, 0.72);
  line-height: 1.55;
  margin: 0;
  font-family: inherit;
}

/* ===== 전문가 섹션 ===== */
.index-page .expert-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 900px;
  padding: clamp(5.2rem, 8.5vh, 7rem) 2rem 4.5rem;
  box-sizing: border-box;
  overflow: visible;
}

.index-page .expert-section::before {
  content: "";
  position: absolute;
  width: 980px;
  height: 980px;
  left: -520px;
  top: -280px;
  border-radius: 9999px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(228, 242, 243, 1) 0%, rgba(228, 242, 243, 0) 74%);
  pointer-events: none;
  z-index: 0;
}

.index-page .expert-intro {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 0 0 clamp(2.6rem, 5.6vh, 4.2rem);
  max-width: 100%;
  text-align: left;
  padding-left: clamp(3rem, 6.8vw, 5.8rem);
  background: transparent !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
  top: auto !important;
}

.index-page .expert-intro__eyebrow {
  box-sizing: border-box;
  color: #9ec1a3;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: normal;
  margin: -0.4rem 0 1.25rem;
  padding: 0;
  text-align: left;
  width: fit-content;
  align-self: flex-start;
  transform: translateX(1.1rem);
}

.index-page .expert-intro__heading {
  border: none;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(1.45rem, 2.1vw + 0.4rem, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.24;
  margin: -0.35rem 0 0;
  padding: 0;
  text-align: left;
  width: fit-content;
  align-self: flex-start;
  transform: translateX(0.9rem);
}

.index-page .expert-intro__heading-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.index-page .expert-intro__line {
  display: block;
  line-height: inherit;
  margin: 0;
}

.index-page .expert-intro__line--dark {
  color: #000000;
  margin-bottom: 0;
}

.index-page .expert-intro__line--teal {
  color: #40798c;
}

.index-page .expert-summary {
  position: relative;
  z-index: 1;
  margin: clamp(3.1rem, 6.2vh, 4.6rem) auto 0;
  max-width: 980px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(0.82rem, 0.92vw, 0.96rem);
  font-weight: 700;
  line-height: 1.82;
  color: rgba(0, 0, 0, 0.78);
  text-align: center;
}

.index-page .expert-cta-wrap {
  position: relative;
  z-index: 1;
  margin-top: clamp(0.95rem, 2.2vh, 1.45rem);
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.index-page .expert-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 260px;
  padding: 0.5rem 3rem;
  border-radius: 9999px;
  background: #d7ecea;
  border: 1px solid #b8d8d5;
  color: #2f5f6a;
  text-decoration: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(64, 121, 140, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.index-page .expert-cta-btn:hover {
  background: #c7e4e1;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(64, 121, 140, 0.18);
}

.index-page .expert-metric-grid {
  position: relative;
  z-index: 1;
  margin-top: clamp(4.2rem, 8.5vh, 6.2rem);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding-top: 0.7rem;
}

.index-page .expert-metric-card {
  background: #f2f4f6;
  border: 1px solid rgba(31, 54, 61, 0.08);
  border-radius: 9999px;
  width: clamp(142px, 13vw, 178px);
  height: clamp(142px, 13vw, 178px);
  min-height: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.05vw, 1.06rem);
  line-height: 1.4;
  color: #1f363d;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 20px rgba(31, 54, 61, 0.06);
  position: relative;
  animation: expertFloat 4.8s ease-in-out infinite;
}

.index-page .expert-metric-card:nth-child(2),
.index-page .expert-metric-card:nth-child(4) {
  margin-top: 1.7rem;
}

.index-page .expert-metric-card + .expert-metric-card {
  margin-left: -1.05rem;
}

.index-page .expert-metric-card:nth-child(1) { animation-delay: 0s; }
.index-page .expert-metric-card:nth-child(2) { animation-delay: 0.35s; }
.index-page .expert-metric-card:nth-child(3) { animation-delay: 0.7s; }
.index-page .expert-metric-card:nth-child(4) { animation-delay: 1.05s; }

@keyframes expertFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* 반응형 */
@media (max-width: 1024px) {
  body.index-page {
    scroll-snap-type: none;
  }
  .index-page .clients-grid {
    grid-template-columns: 1fr;
  }
  .index-page .expert-grid {
    grid-template-columns: 1fr;
  }
  .index-page .hero-floating-btns {
    /* 모바일/태블릿에서도 우측하단 고정 버튼 유지 */
    display: flex;
  }
  .index-page .hero-section,
  .index-page .services-section,
  .index-page .clients-section,
  .index-page .expert-section {
    min-height: auto;
    scroll-snap-stop: normal;
  }
}

@media (max-width: 768px) {
  /* Figma 메인(#wrap.main) 히어로는 어두운 배경 위 텍스트 — 밝은 컬러 유지 */
  .index-page .hero-title .title-eyebrow {
    font-size: 0.65rem;
    color: rgba(31, 54, 61, 0.62) !important;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .index-page #wrap.main .hero-title .title-eyebrow {
    color: rgba(255, 255, 255, 0.92) !important;
  }
  .index-page .hero-title .title-main {
    font-size: 1.7rem;
    line-height: 0.8 !important;
    margin-bottom: 0.3rem;
  }
  .index-page .clients-heading {
    text-align: center;
  }
}

/* ===== Figma main 스타일 오버라이드 (현재 구조 유지형) ===== */
.index-page #wrap.main {
  background-color: #ffffff;
  min-height: 1024px;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  width: 100%;
}

/* 페이지 전역 ellipse는 Figma .main 과 동일 스펙을 서비스 섹션(.ellipse-7/8)에서 담당 */

.index-page #wrap.main .main-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.index-page #wrap.main > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
}

.index-page #wrap.main .hero-section {
  min-height: 680px;
  height: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-bottom: none;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* flex 자식이 세로 중앙 정렬이면 .hero-content 패딩만으로는 블록 전체가 안 움직임 → 상단 정렬 + 헤더 높이만큼만 띄움 */
.index-page #wrap.main .hero-section > .container {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding-top: 102px;
}

.index-page #wrap.main .hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000000cc;
  opacity: 0.57;
  z-index: 1;
}

.index-page #wrap.main .hero-section > .container,
.index-page #wrap.main .hero-content,
.index-page #wrap.main .hero-text {
  position: relative;
  z-index: 2;
}

.index-page #wrap.main .hero-content {
  max-width: 1440px;
  padding-left: calc(50% - 700px);
  padding-right: 2rem;
  /* 핵심 문구 블록을 살짝 위로 */
  padding-top: 0.15rem;
  margin-top: 0;
}

.index-page #wrap.main .hero-title .title-eyebrow {
  box-sizing: border-box;
  color: #ffffff;
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: normal;
  margin-bottom: 1.45rem;
  margin-top: -0.4rem;
  /* 본문 첫 줄과 왼쪽 정렬 맞춤(시각적으로 살짝 오른쪽으로) */
  padding-left: 0.2em;
  text-align: left;
  width: 100%;
}

.index-page #wrap.main .hero-title .title-main {
  color: #ffffff;
  display: block;
  font-size: 41px;
  font-weight: 600;
  line-height: 0.97;
  margin-bottom: 0;
  margin-top: -0.2rem;
  text-align: left;
  white-space: pre-line;
}

.index-page #wrap.main .hero-actions {
  margin-top: 2.8rem;
}

.index-page #wrap.main .hero-quick-request-btn {
  width: 340px;
  height: 56px;
  padding: 10px 30px;
  border-radius: 20px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, #40798C, #92E1D5);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  animation: heroCtaGlow 2.4s ease-in-out infinite alternate;
}

/* translateX 제거: 모바일에서 미세 가로 오버플로·흔들림 유발 가능 */
@keyframes heroCtaGlow {
  0% {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  }
  50% {
    box-shadow: 0 14px 32px rgba(64, 121, 140, 0.55);
  }
  100% {
    box-shadow: 0 14px 32px rgba(146, 225, 213, 0.75);
  }
}

/* 메인: 전문가 섹션 표시 유지 */

/* ===== 모바일 비율 안정화 오버라이드 =====
   max-width:1023px 규칙은 css/index-mobile.css 로 이동 */

@media (max-width: 767px) {
  .index-page .main-content {
    padding-bottom: clamp(3rem, 9vh, 5.5rem);
  }

  /* 섹션 사이 숨 쉴 간격 */
  .index-page .main-content > * + * {
    margin-top: clamp(2rem, 5.5vw, 3rem);
  }

  .index-page .clients-section {
    padding-top: clamp(2.5rem, 7vw, 3.5rem) !important;
    padding-bottom: clamp(2.5rem, 7vw, 3.5rem) !important;
    overflow-x: clip;
    max-width: 100%;
  }

  .index-page .services-section,
  .index-page .expert-section {
    overflow-x: clip;
    max-width: 100%;
  }

  .index-page .clients-intro {
    margin-bottom: clamp(1.85rem, 5vw, 2.5rem) !important;
  }

  .index-page .clients-heading__line--teal {
    margin-top: 0.08rem;
  }

  .index-page .clients-grid {
    margin-top: 0.35rem;
    gap: 0.85rem;
  }

  .index-page .client-card-desc {
    line-height: 1.42;
  }

  .index-page .expert-section {
    min-height: 0 !important;
    padding-top: clamp(2.6rem, 7.5vw, 3.5rem) !important;
    padding-bottom: clamp(2.85rem, 8vw, 4rem) !important;
    padding-left: max(0.9rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.9rem, env(safe-area-inset-right)) !important;
  }

  .index-page .expert-intro {
    margin-bottom: clamp(1.65rem, 4.5vw, 2.25rem) !important;
  }

  .index-page .expert-intro__heading {
    font-size: clamp(1.18rem, 4vw + 0.32rem, 1.52rem) !important;
  }

  .index-page .expert-summary {
    margin-top: clamp(1.5rem, 4vw, 2rem) !important;
    font-size: 0.9rem !important;
    line-height: 1.52 !important;
    font-weight: 600 !important;
  }

  /* flex + 음수 margin 이 가로로 삐져나오지 않도록 그리드로 전환 */
  .index-page .expert-metric-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: clamp(2rem, 5.5vw, 2.75rem) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    align-items: stretch;
    justify-content: stretch;
  }

  .index-page .expert-metric-card + .expert-metric-card {
    margin-left: 0 !important;
  }

  .index-page .expert-metric-card:nth-child(2),
  .index-page .expert-metric-card:nth-child(4) {
    margin-top: 0 !important;
  }

  .index-page .expert-metric-card {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    min-height: clamp(52px, 14vw, 64px);
    aspect-ratio: 1;
    margin: 0 !important;
    animation: none;
    font-size: clamp(0.72rem, 2.4vw + 0.2rem, 0.86rem);
    padding: clamp(0.55rem, 2.5vw, 0.75rem);
    line-height: 1.32;
  }

  .index-page .expert-cta-btn {
    font-size: clamp(0.84rem, 2.2vw, 0.92rem);
    min-width: 0;
    width: min(100%, min(280px, calc(100vw - 2rem)));
    max-width: calc(100vw - 2rem);
    padding: 0.52rem clamp(0.85rem, 4vw, 1.35rem);
    box-sizing: border-box;
  }

  .index-page #wrap.main .hero-section {
    min-height: clamp(500px, 90vh, 680px);
    min-height: clamp(500px, 90dvh, 680px);
    background-position: center 18%;
  }

  .index-page #wrap.main .hero-section::before {
    opacity: 0.36;
  }

  .index-page #wrap.main .hero-section > .container {
    padding-top: 64px;
    padding-bottom: clamp(1.15rem, 4vh, 1.85rem);
  }

  .index-page .hero-floating-btns {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    gap: clamp(0.4rem, 1.8vw, 0.55rem);
  }

  .index-page .hero-floating-btn {
    width: clamp(50px, 15.5vw, 64px);
    height: clamp(50px, 15.5vw, 64px);
    font-size: clamp(0.52rem, 2.5vw, 0.62rem);
  }

  .index-page .hero-floating-btn .float-icon {
    width: clamp(15px, 4.2vw, 19px);
    height: clamp(15px, 4.2vw, 19px);
    font-size: clamp(7px, 2vw, 9px);
  }

  .index-page .clients-section__panel {
    border-radius: clamp(16px, 4vw, 22px);
    padding: clamp(0.85rem, 3vw, 1.05rem) clamp(0.72rem, 2.6vw, 0.95rem);
  }

  .index-page .client-card-title {
    font-size: clamp(0.74rem, 2vw, 0.84rem);
  }

  .index-page .client-card-desc {
    font-size: clamp(0.64rem, 1.75vw, 0.72rem);
    line-height: 1.44;
  }

  .index-page .clients-section::before {
    width: min(110vw, 560px);
    height: min(110vw, 560px);
    right: -42%;
    top: -10%;
  }

  .index-page .expert-section::before {
    width: min(115vw, 520px);
    height: min(115vw, 520px);
    left: -62%;
    top: -16%;
  }
}

/* index.php 인라인 !important 규칙까지 덮는 최종 모바일 — 메인 히어로는 clamp로 단계별 스케일 */
@media (max-width: 768px) {
  html {
    font-size: clamp(14px, 3.6vw, 16px);
  }

  body.index-page {
    font-size: 1rem;
  }

  .index-page #wrap.main .hero-content {
    grid-template-columns: 1fr !important;
    gap: 0.72rem !important;
    padding-left: max(0.75rem, env(safe-area-inset-left)) !important;
    padding-right: max(0.75rem, env(safe-area-inset-right)) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .index-page #wrap.main .hero-title {
    margin-bottom: 0.25rem !important;
  }

  .index-page #wrap.main .hero-title .title-eyebrow {
    font-size: clamp(0.6rem, 2vw + 0.26rem, 0.76rem) !important;
    margin-top: clamp(0.35rem, 1.5vh, 0.72rem) !important;
    margin-bottom: clamp(0.55rem, 1.85vh, 0.92rem) !important;
    line-height: 1.28 !important;
    letter-spacing: 0.025em !important;
    color: rgba(255, 255, 255, 0.92) !important;
    text-align: left !important;
  }

  /* 모바일 티어(≤768): 히어로 대문구는 0.97 유지, 서비스·리뷰·전문가 대문구는 1.16(아래 블록) */
  .index-page #wrap.main .hero-title .title-main {
    font-size: clamp(1.1rem, 4.2vw + 0.36rem, 1.58rem) !important;
    line-height: 0.97 !important;
    font-weight: 650 !important;
    margin-bottom: 0.2rem !important;
    text-align: left !important;
  }

  /* 소문구 행간·간격 (≤768) */
  .index-page .services-section .services-intro__eyebrow,
  .index-page .clients-intro__eyebrow,
  .index-page .expert-intro__eyebrow {
    margin-top: clamp(0.4rem, 1.6vh, 0.8rem) !important;
    margin-bottom: clamp(0.6rem, 2vh, 1rem) !important;
    line-height: 1.28 !important;
  }

  .index-page .services-section .services-intro__heading,
  .index-page .clients-heading,
  .index-page .expert-intro__heading {
    line-height: 1.16 !important;
    margin-top: 0 !important;
    margin-bottom: 0.2rem !important;
  }

  .index-page #wrap.main .hero-subtitle {
    font-size: clamp(0.84rem, 2vw + 0.55rem, 0.94rem) !important;
    line-height: 1.45 !important;
    margin-bottom: 0.85rem !important;
  }

  .index-page #wrap.main .hero-stats {
    gap: 0.55rem !important;
    margin-bottom: 1.1rem !important;
  }

  .index-page #wrap.main .stat-item {
    min-width: 82px !important;
    max-width: 110px !important;
    padding: 0.72rem 0.55rem !important;
    border-width: 1px !important;
    border-radius: 10px !important;
  }

  .index-page #wrap.main .stat-number {
    font-size: clamp(1.05rem, 2.8vw + 0.5rem, 1.2rem) !important;
    margin-bottom: 0.2rem !important;
  }

  .index-page #wrap.main .stat-label {
    font-size: clamp(0.62rem, 1.5vw + 0.45rem, 0.72rem) !important;
    line-height: 1.3 !important;
  }

  .index-page #wrap.main .hero-actions {
    margin-top: clamp(1.05rem, 3.4vh, 1.75rem) !important;
    justify-content: flex-start !important;
  }

  .index-page #wrap.main .hero-quick-request-btn {
    width: min(100%, calc(100vw - 2rem)) !important;
    max-width: min(100%, min(256px, calc(100vw - 2rem))) !important;
    box-sizing: border-box !important;
    min-height: 42px !important;
    padding: 0.6rem 0.92rem !important;
    font-size: clamp(0.76rem, 2vw + 0.4rem, 0.9rem) !important;
    border-radius: 11px !important;
    line-height: 1.25 !important;
  }

  .index-page .services-section .services-glass-card__list {
    font-size: clamp(0.78rem, 1.9vw + 0.42rem, 0.88rem) !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 480px) {
  .index-page .main-content > * + * {
    margin-top: clamp(1.75rem, 5vw, 2.65rem);
  }

  .index-page #wrap.main .hero-section {
    background-position: center 15%;
  }

  /* ≤480: 대문구 글자만 축소, 행간은 상위 모바일 티어(0.97) 유지 */
  .index-page #wrap.main .hero-title .title-main {
    font-size: clamp(1rem, 4.5vw + 0.32rem, 1.38rem) !important;
  }

  .index-page #wrap.main .hero-title .title-eyebrow {
    margin-top: clamp(0.32rem, 1.3vh, 0.65rem) !important;
    margin-bottom: clamp(0.5rem, 1.65vh, 0.85rem) !important;
    font-size: clamp(0.58rem, 1.9vw + 0.24rem, 0.72rem) !important;
  }

  .index-page .services-section .services-intro__eyebrow,
  .index-page .clients-intro__eyebrow,
  .index-page .expert-intro__eyebrow {
    margin-top: clamp(0.35rem, 1.4vh, 0.7rem) !important;
    margin-bottom: clamp(0.55rem, 1.8vh, 0.9rem) !important;
  }

  .index-page #wrap.main .hero-actions {
    margin-top: clamp(1rem, 3.2vh, 1.65rem) !important;
    justify-content: flex-start !important;
  }

  .index-page #wrap.main .hero-subtitle {
    font-size: clamp(0.8rem, 2.1vw + 0.5rem, 0.9rem) !important;
    line-height: 1.42 !important;
  }

  .index-page #wrap.main .hero-quick-request-btn {
    width: min(100%, calc(100vw - 1.75rem)) !important;
    max-width: min(100%, min(240px, calc(100vw - 1.75rem))) !important;
    box-sizing: border-box !important;
    min-height: 40px !important;
    padding: 0.55rem 0.85rem !important;
    font-size: clamp(0.74rem, 1.95vw + 0.38rem, 0.88rem) !important;
  }

  .index-page .services-section .services-intro__heading,
  .index-page .clients-heading,
  .index-page .expert-intro__heading {
    font-size: clamp(1.12rem, 3.8vw + 0.3rem, 1.42rem) !important;
  }

  .index-page .expert-metric-card {
    font-size: clamp(0.68rem, 2.2vw + 0.15rem, 0.8rem) !important;
    padding: clamp(0.45rem, 2.2vw, 0.65rem) !important;
  }
}

/* 초소형 기기·큰 폰트 설정 대비 */
@media (max-width: 360px) {
  .index-page #wrap.main .hero-title .title-main {
    font-size: clamp(0.92rem, 5vw + 0.24rem, 1.22rem) !important;
  }

  .index-page .services-section .services-intro__heading,
  .index-page .clients-heading,
  .index-page .expert-intro__heading {
    font-size: clamp(1.02rem, 3.4vw + 0.25rem, 1.28rem) !important;
  }

  .index-page .hero-floating-btn {
    width: clamp(48px, 14vw, 56px);
    height: clamp(48px, 14vw, 56px);
  }
}

/* ===== 웹(PC) 타이틀 행간 강제 고정 =====
   히어로 제외 3개 섹션의 대문구가 다른 규칙에 의해 좁아 보이지 않도록
   데스크톱 구간에서 최종 우선순위로 잠근다. */
@media (min-width: 1024px) {
  body.index-page .services-section .services-intro__heading,
  body.index-page .clients-heading,
  body.index-page .expert-intro__heading {
    line-height: 1.36 !important;
  }

  body.index-page .services-section .services-intro__line,
  body.index-page .clients-heading__line,
  body.index-page .expert-intro__line {
    display: block;
    line-height: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.index-page .services-section .services-intro__line--dark,
  body.index-page .clients-heading__line--teal,
  body.index-page .expert-intro__line--dark {
    margin: 0 !important;
  }
}

