/* ==========================================================================
   SHARPEN — home-v2.css
   index-v2.html 전용: 히어로 슬라이더, 겹침 서비스 카드, AI 검색 진단,
   업종별 탭, 과금 원칙, 프로젝트 필터. style.css 토큰을 그대로 사용합니다.
   ========================================================================== */

/* hidden 속성이 display 지정보다 우선하도록 */
[hidden] {
  display: none !important;
}

/* ---------- Hero slider ---------- */
.hv-hero {
  padding-bottom: clamp(150px, 14vw, 210px);
}
.hv-hero .hero__grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}
.hv-slides {
  display: grid;
  min-width: 0;
}
.hv-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), visibility 0.8s;
}
.hv-slide.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.hv-slide .hero__title {
  font-size: clamp(2.4rem, 5.6vw, 5.25rem);
  line-height: 1.08;
}
.hv-slide .eyebrow {
  margin-bottom: 26px;
}
.hv-slide .hero__desc {
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}
.hv-ctrl {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
}
.hv-ctrl__count {
  font-family: var(--font-en);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  min-width: 58px;
  font-variant-numeric: tabular-nums;
}
.hv-dots {
  display: flex;
  gap: 6px;
}
.hv-dot {
  width: 48px;
  height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.hv-dot i {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
}
.hv-dot[aria-current="true"] i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform-origin: left;
  animation: hvFill 6.5s linear forwards;
}
.hv-hero.is-paused .hv-dot[aria-current="true"] i::after {
  animation-play-state: paused;
}
@keyframes hvFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.hv-pause {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: var(--white);
  font-size: 0.75rem;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}
.hv-pause:hover {
  border-color: var(--white);
}

/* route graphic: 검색 → 홈페이지·콘텐츠 → AI 응대 → 문의 */
.hv-route {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin-left: auto;
  overflow: visible;
}
.hv-route text {
  font-family: var(--font-kr);
  font-size: 16px;
  fill: rgba(255, 255, 255, 0.72);
}
.hv-route .hv-route__dest {
  fill: var(--white);
  font-weight: 600;
  font-size: 17px;
}
.hv-route__line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: hvDraw 2.4s var(--ease) 0.6s forwards;
}
.hv-route__node {
  opacity: 0;
  animation: hvPop 0.5s var(--ease) forwards;
}
.hv-route__node--1 { animation-delay: 0.7s; }
.hv-route__node--2 { animation-delay: 1.4s; }
.hv-route__node--3 { animation-delay: 2.1s; }
.hv-route__node--4 { animation-delay: 2.8s; }
@keyframes hvDraw { to { stroke-dashoffset: 0; } }
@keyframes hvPop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Service cards overlapping the hero ---------- */
.hv-svc {
  position: relative;
  z-index: 5;
  margin-top: calc(-1 * clamp(104px, 10vw, 150px));
}
.hv-svc__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.hv-svc__card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 236px;
  color: var(--text-main);
  box-shadow: 0 22px 48px -30px rgba(10, 10, 10, 0.45);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.hv-svc__card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-line);
}
.hv-svc__tag {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.hv-svc__name {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hv-svc__desc {
  font-size: 0.9375rem;
  color: var(--text-sub);
  line-height: 1.6;
}
.hv-svc__price {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
}
.hv-svc__price span {
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.hv-svc__card:hover .hv-svc__price span {
  transform: translateX(4px);
}
.hv-svc__note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-sub);
}

/* ---------- AI search diagnosis ---------- */
.hv-diag {
  padding-block: clamp(56px, 6vw, 88px) clamp(56px, 7vw, 104px);
}
.hv-diag__box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 44px);
  background: var(--bg-lighter);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hv-diag__form {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}
.hv-diag__title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-top: 14px;
}
.hv-diag__form .btn {
  min-height: 52px;
}
.hv-diag__result {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.hv-diag__result h3 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}
.hv-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hv-checks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-body);
}
.hv-checks b {
  color: var(--text-main);
}
.hv-checks__n {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.hv-diag__result.is-shown .hv-checks li {
  animation: hvPop 0.4s var(--ease) both;
}
.hv-diag__result.is-shown .hv-checks li:nth-child(2) { animation-delay: 0.15s; }
.hv-diag__result.is-shown .hv-checks li:nth-child(3) { animation-delay: 0.3s; }
.hv-diag__result.is-shown .hv-checks li:nth-child(4) { animation-delay: 0.45s; }
.hv-diag__result.is-shown .hv-checks li:nth-child(5) { animation-delay: 0.6s; }

/* ---------- Industry tabs ---------- */
.hv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.hv-tabs .filter-btn[aria-selected="true"] {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}
.hv-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.hv-panel:not([hidden]) {
  animation: hvPop 0.45s var(--ease);
}
.hv-panel .media-guide {
  aspect-ratio: 1 / 1;
  max-width: 100%;
}
.hv-panel__body {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}
.hv-panel__label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}
.hv-panel__pain {
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 10px;
}
.hv-does {
  counter-reset: hvd;
  border-top: 1px solid var(--text-main);
}
.hv-does li {
  counter-increment: hvd;
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.0625rem;
  color: var(--text-main);
}
.hv-does li::before {
  content: counter(hvd, decimal-leading-zero);
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--accent);
  min-width: 28px;
}
.hv-panel__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.hv-proof small {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-sub);
}
.hv-proof strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}
.hv-panel__price {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}
.hv-panel__act {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* ---------- Pricing principle ---------- */
.hv-pp .h-section {
  font-size: clamp(2rem, 3.8vw, 3.5rem);
}
.hv-pp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hv-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hv-step {
  min-height: 60px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--border-dark);
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.hv-step[aria-selected="true"] {
  color: var(--white);
}
.hv-bar {
  height: 2px;
  background: var(--border-dark);
  margin-top: -2px;
  margin-bottom: 24px;
}
.hv-bar i {
  display: block;
  height: 100%;
  width: 33.33%;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}
.hv-step-body {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hv-step-body:not([hidden]) {
  animation: hvPop 0.4s var(--ease);
}
.hv-step-body b {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
}
.hv-step-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
}
.hv-step-body p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.0625rem;
}

/* ---------- Project filter ---------- */
.hv-filter {
  margin-bottom: 40px;
}

/* ---------- FAQ link ---------- */
.hv-faq-more {
  margin-top: 32px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1439px) {
  .hv-svc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .hv-hero .hero__grid { grid-template-columns: 1fr; }
  .hv-route { max-width: 460px; margin-inline: auto; }
  .hv-svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-diag__form { grid-template-columns: 1fr; }
  .hv-diag__result { grid-template-columns: 1fr; }
  .hv-panel { grid-template-columns: 1fr; }
  .hv-panel .media-guide { aspect-ratio: 16 / 9; }
  .hv-pp { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  /* 기존 고객사 목록이 휴대폰에서 화면 밖으로 넘치던 문제 수정 */
  .client-cat { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .client-names { min-width: 0; }
  .hv-route { display: none; }
  .hv-svc__grid { grid-template-columns: 1fr; }
  .hv-svc__card { min-height: 0; }
  .hv-step { font-size: 0.875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-slide, .hv-panel, .hv-step-body, .hv-checks li { transition: none !important; animation: none !important; }
  .hv-route__line { stroke-dashoffset: 0; animation: none; }
  .hv-route__node { opacity: 1; animation: none; }
  .hv-dot i::after { animation: none !important; }
}

/* ---------- Hero background interaction (hero-bg.js) ---------- */
.hv-bgfx {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hv-hero .hero__grid {
  grid-template-columns: minmax(0, 1fr);
}
.hv-hero .hv-slides {
  max-width: min(100%, 880px);
}
