/* =========================================================
   UiPartners Theme — Main (2026-10-23 새 디자인)
   절제된 어두운 바탕 + 한 가지 강조색, 큰 글자, 얇은 선
   움직임은 transform·opacity 만 쓴다 (모서리 반경 등은 매 프레임 바꾸지 않음)
   ui2: 제목 위 영문 소제목·그라데이션 글자(히어로 제외)·회전 링을 빼고, 강조는 굵기·크기·색 한 가지로
   ========================================================= */

.ui-page-home { background: var(--ui-bg); }

/* ---------- 공통 ---------- */
.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ui-brand-2);
}
.hm-eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }

.hm-h2 {
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: balance;
}
.hm-lead {
  margin-top: 22px;
  max-width: 560px;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.75;
  color: var(--ui-text-2);
}
.hm-grad { color: var(--ui-brand-2); }
.hm-head { margin-bottom: clamp(40px, 5vw, 72px); }
.hm-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hm-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ui-text); font-weight: 600; font-size: 15px; }
.hm-link .ui-icon { width: 16px; height: 16px; transition: transform .3s var(--ui-ease); }
.hm-link:hover .ui-icon { transform: translateX(4px); }

.js .hm-reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ui-ease-out), transform 1s var(--ui-ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
.js .hm-reveal.is-in { opacity: 1; transform: none; }

/* ---------- 히어로 ---------- */
.hm-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--ui-header-h) + 40px) 0 0;
  overflow: hidden;
  /* 메인만의 색: 여러 색 그라데이션(청록·남색·보라·분홍·호박). 서브 상단은 sub.css 의 청록 빛 */
  background:
    radial-gradient(45% 55% at 12% 88%, rgba(45, 212, 191, .16) 0%, rgba(45, 212, 191, 0) 70%),
    radial-gradient(50% 60% at 55% 62%, rgba(99, 102, 241, .20) 0%, rgba(99, 102, 241, 0) 70%),
    radial-gradient(42% 52% at 88% 18%, rgba(217, 70, 239, .17) 0%, rgba(217, 70, 239, 0) 70%),
    radial-gradient(34% 40% at 95% 85%, rgba(251, 191, 36, .10) 0%, rgba(251, 191, 36, 0) 70%),
    linear-gradient(180deg, #08081c 0%, #06071a 55%, var(--ui-bg) 100%);
}
.hm-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1; background: linear-gradient(to bottom, rgba(5, 7, 13, 0), var(--ui-bg)); pointer-events: none; }
.hm-hero__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
/* 메인 첫 화면: 천천히 떠도는 여러 색 빛 덩어리 (transform 만 움직임) */
.hm-hero__aurora { position: absolute; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
/* 흐림(filter) 없이 부드러운 원형 그라데이션만 — 움직이는 큰 흐림은 매 프레임 다시 계산돼 끊김의 원인 */
.hm-hero__aurora i { position: absolute; width: 56vw; height: 56vw; max-width: 900px; max-height: 900px; border-radius: 50%; opacity: .6; will-change: transform; }
.hm-hero__aurora i:nth-child(1) { left: -8vw; top: 18%; background: radial-gradient(closest-side, rgba(45, 212, 191, .42), rgba(45, 212, 191, .12) 55%, transparent); animation: hm-aurora-a 22s ease-in-out infinite alternate; }
.hm-hero__aurora i:nth-child(2) { right: -10vw; top: -14%; background: radial-gradient(closest-side, rgba(217, 70, 239, .38), rgba(217, 70, 239, .1) 55%, transparent); animation: hm-aurora-b 26s ease-in-out infinite alternate; }
.hm-hero__aurora i:nth-child(3) { left: 38%; bottom: -26%; background: radial-gradient(closest-side, rgba(99, 102, 241, .45), rgba(99, 102, 241, .12) 55%, transparent); animation: hm-aurora-c 30s ease-in-out infinite alternate; }
@keyframes hm-aurora-a { to { transform: translate3d(12vw, -6vh, 0) scale(1.1); } }
@keyframes hm-aurora-b { to { transform: translate3d(-10vw, 10vh, 0) scale(.92); } }
@keyframes hm-aurora-c { to { transform: translate3d(-14vw, -8vh, 0) scale(1.15); } }
.hm-hero__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -38vh;
  width: 120vw;
  height: 70vh;
  margin-left: -60vw;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 196, 255, .22), rgba(111, 108, 255, .08) 55%, transparent 100%);
  will-change: transform;
  animation: hm-breathe 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hm-breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.06); opacity: 1; } }

.hm-hero__inner { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; will-change: transform, opacity; }

.hm-hero__title {
  font-size: clamp(38px, 6.4vw, 96px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.048em;
  color: #fff;
}
.hm-hero__small { font-size: .72em; }
/* 메인: 제목·설명·버튼 묶음만 조금 아래로 (2026-10-23 사용자 선택).
   배치 크기를 바꾸지 않는 top 이동이라 아래 통계(.hm-hero__foot)는 움직이지 않음.
   높이가 낮은 화면은 통계와 붙지 않게 덜 내림 (650px 이하 0, 740px 이상 20px) */
.hm-hero:not(.hm-hero--sub) > .hm-hero__inner { top: clamp(0px, (100svh - 640px) / 5, 20px); }
.hm-line { display: block; overflow: hidden; padding: 0 .04em .08em 0; margin-bottom: -.06em; }
.hm-line > span { display: inline-block; }
.hm-hero__accent {
  background: linear-gradient(100deg, #ffffff 0%, #99f6e4 22%, #7dd3fc 42%, #a78bfa 62%, #f0abfc 80%, #fcd34d 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hm-hero.is-ready .hm-hero__accent { animation: hm-sheen 2.4s 1.1s var(--ui-ease-out) both; }
@keyframes hm-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

.hm-hero__sub { max-width: 720px; margin-top: 32px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.7; color: var(--ui-text-2); }
.hm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.hm-hero__actions .ui-icon { width: 18px; height: 18px; }

/* 등장 (히어로) */
.js .hm-in { opacity: 0; transform: translate3d(0, 22px, 0); }
.js .hm-line > .hm-in { opacity: 1; transform: translate3d(0, 108%, 0); }
.js .hm-hero.is-ready .hm-in {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s var(--ui-ease-out), transform 1.1s var(--ui-ease-out);
  transition-delay: calc(var(--d) * 120ms + 120ms);
}
.js .hm-hero.is-ready .hm-line > .hm-in { transition-duration: 1.2s; }

.hm-hero__foot { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 36px; }
.hm-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); padding-top: 26px; border-top: 1px solid var(--ui-line); }
.hm-stats__item { display: flex; flex-direction: column-reverse; gap: 4px; }
.hm-stats dt { font-size: 13px; color: var(--ui-text-3); }
.hm-stats dd { margin: 0; display: flex; align-items: baseline; gap: 4px; font-size: 15px; color: var(--ui-text-2); }
.hm-stats b { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }

.hm-scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .04em; color: var(--ui-text-3); }
.hm-scroll__line { position: relative; width: 1px; height: 54px; overflow: hidden; background: var(--ui-line); }
.hm-scroll__line::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: linear-gradient(to bottom, transparent, var(--ui-brand-2)); animation: hm-drop 2.2s var(--ui-ease) infinite; }
@keyframes hm-drop { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- 문장 ---------- */
.hm-statement { padding: clamp(120px, 16vw, 220px) 0; }
.hm-statement__text {
  max-width: 1080px;
  font-size: clamp(28px, 4.1vw, 58px);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -.035em;
  color: #fff;
}
.js .hm-word { opacity: .14; transition: opacity .5s var(--ui-ease); }
.js .hm-word.is-lit { opacity: 1; }

/* ---------- 고정 스크롤 3단 ---------- */
.hm-flow { position: relative; height: 320vh; }
.hm-flow__sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 40px; box-sizing: border-box; overflow: hidden; }
.hm-flow__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hm-flow__copy .hm-h2 { margin-bottom: 40px; }
.hm-flow__steps { display: grid; gap: 6px; }
.hm-flow__step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--ui-line);
  opacity: .68; /* 지나간·다음 단계도 본문은 읽히게 (설명 글 대비 4.5:1 이상) */
  transition: opacity .6s var(--ui-ease);
}
.hm-flow__step.is-active { opacity: 1; }
.hm-flow__num { font-size: 13px; font-weight: 700; color: var(--ui-text-3); padding-top: 4px; font-variant-numeric: tabular-nums; }
.hm-flow__step.is-active .hm-flow__num { color: var(--ui-brand-2); }
.hm-flow__title { font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; letter-spacing: -.02em; color: #fff; }
.hm-flow__body { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--ui-text-2); }
.hm-flow__bar { height: 2px; margin-top: 18px; background: var(--ui-line); overflow: hidden; }
.hm-flow__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ui-brand), #8f8cff); transform-origin: 0 50%; transform: scaleX(var(--fp, 0)); }

/* 예시 화면 판 */
.hm-stage {
  position: relative;
  margin: 0;
  aspect-ratio: 5 / 4.2;
  border: 1px solid var(--ui-line-2);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015) 45%),
    #0b1120;
  box-shadow: var(--ui-shadow), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
}
.hm-stage::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 196, 255, .18), transparent);
  pointer-events: none;
}
.hm-stage__cap { position: absolute; right: 20px; bottom: 14px; font-size: 12px; color: var(--ui-text-3); }
.hm-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 52px);
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(.985);
  transition: opacity .7s var(--ui-ease-out), transform .9s var(--ui-ease-out);
  pointer-events: none;
}
.hm-scene.is-active { opacity: 1; transform: none; }
.hm-ui { width: 100%; max-width: 480px; }
.hm-ui__label { margin-bottom: 18px; font-size: 13px; color: var(--ui-text-3); }
.hm-ui__search {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px; padding: 12px 16px;
  border: 1px solid var(--ui-line-2); border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  font-size: 14px; color: var(--ui-text-2);
}
.hm-ui__search .ui-icon { width: 18px; height: 18px; color: var(--ui-brand-2); }
.hm-card { border: 1px solid var(--ui-line); border-radius: 18px; background: rgba(255, 255, 255, .035); padding: 22px; }
.hm-card__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--ui-line); }
.hm-card__head b { display: block; font-size: 18px; color: #fff; }
.hm-card__head small { font-size: 13px; color: var(--ui-text-3); }
.hm-avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(140deg, #38c4ff, #6f6cff); color: #fff; font-weight: 700; }
.hm-pill { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgba(61, 214, 198, .14); color: #7ee8db; font-size: 12px; font-weight: 600; white-space: nowrap; }
.hm-card__rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--ui-line); font-size: 14px; }
.hm-card__rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.hm-card__rows span { color: var(--ui-text-3); }
.hm-card__rows b { font-weight: 500; color: var(--ui-text); text-align: right; }
.hm-tags { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.hm-tags i { font-style: normal; padding: 2px 9px; border-radius: 999px; background: var(--ui-brand-soft); color: #9fe3ff; font-size: 12.5px; }

.hm-scene .hm-card__rows li,
.hm-scene .hm-pipe li,
.hm-scene .hm-pipe__list li,
.hm-scene .hm-split__legend li { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .5s var(--ui-ease-out), transform .6s var(--ui-ease-out); }
.hm-scene.is-active .hm-card__rows li,
.hm-scene.is-active .hm-pipe li,
.hm-scene.is-active .hm-pipe__list li,
.hm-scene.is-active .hm-split__legend li { opacity: 1; transform: none; }
.hm-scene.is-active li:nth-child(2) { transition-delay: .08s; }
.hm-scene.is-active li:nth-child(3) { transition-delay: .16s; }
.hm-scene.is-active li:nth-child(4) { transition-delay: .24s; }
.hm-scene.is-active li:nth-child(5) { transition-delay: .32s; }

.hm-pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.hm-pipe li { display: flex; flex-direction: column; gap: 8px; padding: 14px 10px; border: 1px solid var(--ui-line); border-radius: 14px; background: rgba(255, 255, 255, .03); text-align: center; }
.hm-pipe span { font-size: 12px; color: var(--ui-text-3); white-space: nowrap; }
.hm-pipe b { font-size: 24px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.hm-pipe li.is-final { border-color: rgba(56, 196, 255, .5); background: var(--ui-brand-soft); }
.hm-pipe li.is-final b { color: #9fe3ff; }
.hm-pipe__track { position: relative; height: 2px; margin: 22px 6% 22px; background: var(--ui-line-2); }
.hm-pipe__dot { position: absolute; left: 0; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ui-brand); box-shadow: 0 0 0 6px rgba(0, 171, 240, .2), 0 0 24px rgba(56, 196, 255, .8); }
.hm-scene--pipeline.is-active .hm-pipe__dot { animation: hm-travel 3.6s var(--ui-ease) infinite; }
@keyframes hm-travel { 0% { transform: translateX(0); } 80%, 100% { transform: translateX(calc(var(--track, 400px) - 12px)); } }
.hm-pipe__list li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--ui-line); font-size: 14px; }
.hm-pipe__list b { font-weight: 600; color: var(--ui-text); }
.hm-pipe__list span { color: var(--ui-text-3); }
.hm-pipe__list .is-final span { color: #9fe3ff; }

.hm-calc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 22px; padding: 14px 16px; border: 1px solid var(--ui-line); border-radius: 14px; background: rgba(255, 255, 255, .03); font-size: 14px; color: var(--ui-text-2); font-variant-numeric: tabular-nums; }
.hm-calc i { font-style: normal; color: var(--ui-text-3); }
.hm-calc b { font-weight: 700; color: #fff; }

.hm-split__bar { display: flex; gap: 4px; height: 14px; margin-bottom: 18px; }
.hm-split__bar i { flex: 0 0 calc(var(--w) - 3px); border-radius: 4px; background: var(--c, var(--ui-brand)); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s var(--ui-ease-out); }
.hm-split__bar i:nth-child(1) { --c: #38c4ff; }
.hm-split__bar i:nth-child(2) { --c: #6f9bff; transition-delay: .12s; }
.hm-split__bar i:nth-child(3) { --c: #8f8cff; transition-delay: .24s; }
.hm-split__bar i:nth-child(4) { --c: rgba(255, 255, 255, .28); transition-delay: .36s; }
.hm-scene--sales.is-active .hm-split__bar i { transform: scaleX(1); }
.hm-split__legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.hm-split__legend li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ui-text-2); }
.hm-split__legend li i { width: 10px; height: 10px; border-radius: 3px; background: #38c4ff; }
.hm-split__legend li:nth-child(2) i { background: #6f9bff; }
.hm-split__legend li:nth-child(3) i { background: #8f8cff; }
.hm-split__legend li:nth-child(4) i { background: rgba(255, 255, 255, .28); }
.hm-split__legend b { margin-left: auto; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.hm-states { display: flex; gap: 8px; margin-top: 28px; }
.hm-states li { flex: 1; padding: 10px 0; border-radius: 10px; border: 1px solid var(--ui-line); text-align: center; font-size: 13px; color: var(--ui-text-3); }
.hm-states li.is-done { color: var(--ui-text-2); background: rgba(255, 255, 255, .04); }
.hm-states li.is-now { color: #fff; border-color: rgba(56, 196, 255, .55); background: var(--ui-brand-soft); }

/* ---------- AI 업무비서 ---------- */
.hm-agent { position: relative; isolation: isolate; padding: clamp(110px, 13vw, 180px) 0; overflow: hidden; background: #060a14; border-top: 1px solid var(--ui-line); border-bottom: 1px solid var(--ui-line); }
.hm-agent__aura {
  position: absolute; z-index: -1; right: -10vw; top: 10%;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 75, 255, .2), rgba(138, 43, 242, .08) 60%, transparent);
  animation: hm-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes hm-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-6vw, 8vh, 0); } }
.hm-agent__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(40px, 6vw, 96px); align-items: center; }

.hm-chips { display: grid; gap: 10px; margin-top: 36px; }
.hm-chip {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 2px 14px;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .02);
  text-align: left;
  overflow: hidden;
  transition: border-color .4s var(--ui-ease), background .4s var(--ui-ease);
}
.hm-chip:hover { border-color: var(--ui-line-2); background: rgba(255, 255, 255, .04); }
.hm-chip.is-active { border-color: rgba(56, 196, 255, .45); background: rgba(56, 196, 255, .07); }
.hm-chip__label { grid-row: span 2; font-size: 13px; font-weight: 700; color: var(--ui-brand-2); padding-top: 2px; }
.hm-chip__text { font-size: 15.5px; font-weight: 600; color: #fff; }
.hm-chip__desc { font-size: 14px; color: var(--ui-text-3); }
.hm-chip__timer { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--ui-brand), #8f8cff); transform-origin: 0 50%; transform: scaleX(0); }
.hm-chip.is-active .hm-chip__timer { animation: hm-timer var(--dur, 7s) linear forwards; }
.hm-chip.is-held .hm-chip__timer { display: none; } /* 직접 고른 예시: 다음으로 넘어가지 않으므로 타이머 막대 없음 */
.hm-agent.is-paused .hm-chip__timer { animation-play-state: paused; }
@keyframes hm-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hm-trust { display: grid; gap: 10px; margin-top: 28px; }
.hm-trust li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ui-text-2); }
.hm-trust .ui-icon { flex: none; width: 18px; height: 18px; color: var(--ui-brand-2); }
.hm-agent__note { margin-top: 22px; font-size: 13.5px; color: var(--ui-text-3); }

/* 대화 패널 (실제 업무비서처럼 밝은 화면) */
.hm-chat {
  position: relative;
  margin: 0;
  border-radius: 24px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: hidden;
}
.hm-chat .hm-stage__cap { color: #6b7280; bottom: 10px; }
.hm-chat__head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #e5e7eb; }
.hm-chat__head img { width: 28px; height: 28px; }
.hm-chat__head b { font-size: 15px; }
.hm-chat__head span { margin-left: auto; font-size: 12.5px; color: #6b7280; }
.hm-chat__body { position: relative; height: 340px; padding: 20px; background: #f8fafc; }
.hm-msg--user { display: flex; justify-content: flex-end; }
.hm-msg__text {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity .35s var(--ui-ease-out), transform .45s var(--ui-ease-out);
}
.hm-msg__text:empty { display: none; }
.hm-chat.is-sent .hm-msg__text { opacity: 1; transform: none; }
.hm-typing { display: none; gap: 5px; margin-top: 16px; padding: 12px 14px; width: max-content; border-radius: 14px; background: #fff; border: 1px solid #e5e7eb; }
.hm-chat.is-thinking .hm-typing { display: flex; }
.hm-typing i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; animation: hm-dot 1s ease-in-out infinite; }
.hm-typing i:nth-child(2) { animation-delay: .15s; }
.hm-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hm-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.hm-ans {
  position: absolute;
  left: 20px; right: 20px; top: 84px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-size: 13.5px;
  line-height: 1.55;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity .45s var(--ui-ease-out), transform .6s var(--ui-ease-out);
  pointer-events: none;
}
.hm-ans.is-show { opacity: 1; transform: none; }
.hm-ans p + * { margin-top: 10px; }
.hm-ans__h { font-weight: 700; }
.hm-tbl { width: 100%; font-size: 13px; }
.hm-tbl th { padding: 7px 6px; background: #f1f5f9; color: #475569; font-weight: 600; text-align: left; }
.hm-tbl td { padding: 8px 6px; border-bottom: 1px solid #eef2f7; }
.hm-tbl u { color: #1d4ed8; text-decoration: none; font-weight: 600; }
.hm-ans .hm-tbl tr, .hm-ans .hm-sum dd, .hm-ans .hm-doc li { opacity: 0; transition: opacity .4s var(--ui-ease); }
.hm-ans.is-show .hm-tbl tr, .hm-ans.is-show .hm-sum dd, .hm-ans.is-show .hm-doc li { opacity: 1; }
.hm-ans.is-show tr:nth-child(2), .hm-ans.is-show dd:nth-of-type(1), .hm-ans.is-show .hm-doc li:nth-child(1) { transition-delay: .15s; }
.hm-ans.is-show tr:nth-child(3), .hm-ans.is-show dd:nth-of-type(2), .hm-ans.is-show .hm-doc li:nth-child(2) { transition-delay: .3s; }
.hm-ans.is-show tr:nth-child(4), .hm-ans.is-show dd:nth-of-type(3), .hm-ans.is-show .hm-doc li:nth-child(3) { transition-delay: .45s; }
.hm-ans.is-show .hm-doc li:nth-child(4) { transition-delay: .6s; }
.hm-sum { display: grid; grid-template-columns: 78px 1fr; gap: 8px 12px; margin: 0; }
.hm-sum dt { color: #64748b; }
.hm-sum dd { margin: 0; }
.hm-doc { display: grid; gap: 6px; }
.hm-doc li { position: relative; padding: 7px 10px; border-radius: 8px; background: #f8fafc; }
.hm-doc li::after { content: ''; position: absolute; right: 10px; top: 50%; width: 38%; height: 6px; margin-top: -3px; border-radius: 3px; background: #e2e8f0; }
.hm-ans__links { display: flex; gap: 14px; color: #1d4ed8; font-weight: 600; }
.hm-confirm__btns { display: flex; gap: 8px; }
.hm-confirm__btns span { padding: 6px 18px; border-radius: 8px; border: 1px solid #cbd5e1; font-size: 13px; }
.hm-confirm__btns .is-run { border-color: #2563eb; background: #2563eb; color: #fff; font-weight: 700; }
.hm-ans[data-ans="3"].is-show .is-run { animation: hm-press 3.4s 1.2s var(--ui-ease) both; }
@keyframes hm-press { 0%, 40% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } 50% { box-shadow: 0 0 0 6px rgba(37, 99, 235, .25); } 70%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); } }

.hm-chat__input { display: flex; gap: 10px; padding: 14px 16px 34px; border-top: 1px solid #e5e7eb; }
.hm-chat__field { flex: 1; display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 12px; font-size: 14px; color: #111827; overflow: hidden; white-space: nowrap; }
.hm-chat.is-typing .hm-chat__field { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.hm-caret { width: 1.5px; height: 18px; margin-left: 1px; background: #2563eb; animation: hm-blink 1s steps(1) infinite; }
@keyframes hm-blink { 50% { opacity: 0; } }
.hm-chat__send { display: grid; place-items: center; padding: 0 18px; border-radius: 12px; background: #2563eb; color: #fff; font-size: 14px; font-weight: 700; transition: transform .15s var(--ui-ease); }
.hm-chat.is-sending .hm-chat__send { transform: scale(.94); }

/* ---------- 회사에 남는 시스템 (설치 → 보관 → 이관) ---------- */
.hm-own { padding: clamp(110px, 13vw, 180px) 0 clamp(70px, 8vw, 110px); }
.hm-cost { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; }
.hm-cost div { display: flex; flex-direction: column; gap: 4px; }
.hm-cost dt { font-size: 14px; color: var(--ui-text-3); }
.hm-cost dd { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.03em; color: #fff; }
.hm-cost div:nth-child(2) dd { color: var(--ui-brand-2); }
.hm-own__steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); padding-top: 34px; border-top: 1px solid var(--ui-line-2); }
.hm-own__step { position: relative; }
.hm-own__n {
  position: absolute; top: -51px; left: 0;
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--ui-line-2);
  background: var(--ui-bg);
  font-size: 14px; font-weight: 700; color: var(--ui-brand-2);
  font-variant-numeric: tabular-nums;
}
.hm-own__title { font-size: clamp(21px, 1.9vw, 26px); font-weight: 700; letter-spacing: -.025em; color: #fff; }
.hm-own__body { margin-top: 12px; max-width: 34em; font-size: 15.5px; line-height: 1.75; color: var(--ui-text-2); }
.hm-own__links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: clamp(40px, 5vw, 64px); }

/* ---------- 시스템 구성 ---------- */
.hm-modules { padding: clamp(60px, 7vw, 100px) 0 clamp(110px, 13vw, 180px); }
.hm-mods { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 1fr); gap: clamp(36px, 4vw, 56px) 0; } /* 옵션 4칸 + 별도 견적 1칸 = 기본 포함 5칸과 같은 열 */
.hm-mods__group--base { grid-column: 1 / -1; }
.hm-mods__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.hm-mods__head small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ui-text-3); }
.hm-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ui-line); }
.hm-mods__group--opt .hm-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-mods__group--req .hm-tiles { grid-template-columns: minmax(0, 1fr); }
.hm-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 16px 0 0;
  border-bottom: 1px solid var(--ui-line);
  font-size: 15px;
  font-weight: 500;
  color: var(--ui-text);
}
.hm-tile .ui-icon { flex: none; width: 22px; height: 22px; color: var(--ui-text-3); }
.hm-tile small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--ui-text-3); }
.hm-mods__group--opt .hm-tile .ui-icon { color: var(--ui-brand-2); }
.hm-mods__group--req .hm-tile .ui-icon { color: var(--ui-lilac); }
.js .hm-mods .hm-tile { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .7s var(--ui-ease-out), transform .7s var(--ui-ease-out); }
.js .hm-mods.is-in .hm-tile { opacity: 1; transform: none; transition-delay: calc(var(--i) * 35ms); }

/* ---------- 상담 ---------- */
.hm-cta { position: relative; isolation: isolate; padding: clamp(120px, 14vw, 200px) 0; overflow: hidden; text-align: center; border-top: 1px solid var(--ui-line); background: radial-gradient(60% 70% at 50% 110%, rgba(0, 171, 240, .12), rgba(5, 7, 13, 0) 70%), var(--ui-bg); }
.hm-cta__title { max-width: 820px; margin: 0 auto; font-size: clamp(30px, 4.4vw, 56px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; color: #fff; text-wrap: balance; }
.hm-cta .hm-lead { margin: 22px auto 40px; max-width: 680px; }
.ui-cta-mail { margin-top: 18px; font-size: 14.5px; color: var(--ui-text-3); }
.ui-cta-mail a { color: var(--ui-text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ui-line-2); }
.ui-cta-mail a:hover { color: #fff; }
.hm-next { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--ui-line); font-size: 15px; color: var(--ui-text-2); }
.hm-next li { display: inline-flex; align-items: center; gap: 10px; }
.hm-next__n { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--ui-line-2); font-size: 12.5px; font-weight: 700; color: var(--ui-brand-2); font-variant-numeric: tabular-nums; }
.hm-next li + li::before { content: ''; width: 18px; height: 1px; margin-right: 8px; background: var(--ui-line-2); }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  .hm-mods__group--base .hm-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .hm-flow { height: auto; padding: clamp(80px, 12vw, 120px) 0; }
  .hm-flow__sticky { position: static; height: auto; overflow: visible; }
  .hm-flow__grid, .hm-agent__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-flow__step { opacity: 1; }
  .hm-flow__step.is-active .hm-flow__title { color: var(--ui-brand-2); } /* 자동 순환 중인 예시 화면과 같은 단계 표시 */
  .hm-flow__bar { display: none; }
  /* 예시 화면: 높이를 고정하지 않고 가장 긴 장면에 맞춤 (장면은 같은 칸에 겹쳐 둠) */
  .hm-stage { aspect-ratio: auto; height: auto; display: grid; }
  .hm-scene { position: relative; inset: auto; grid-area: 1 / 1; }
  .hm-stage > .hm-stage__cap { position: static; grid-area: 2 / 1; padding: 0 20px 14px; text-align: right; }
  /* AI 업무비서: 제목·설명 → 대화 화면 → 예시 버튼 순서로 (누른 결과가 바로 위에 보이게) */
  .hm-agent__copy { display: contents; }
  .hm-agent__grid { gap: 0; }
  .hm-agent__copy > .hm-h2 { order: 1; }
  .hm-agent__copy > .hm-lead { order: 2; }
  .hm-agent__grid > .hm-chat { order: 3; margin-top: 36px; }
  .hm-agent__copy > .hm-chips { order: 4; margin-top: 20px; }
  .hm-agent__copy > .hm-trust { order: 5; }
  .hm-agent__copy > .hm-agent__note { order: 6; }
  .hm-own__steps { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 0 0 52px; border-top: 0; }
  .hm-own__steps::before { content: ''; position: absolute; left: 16px; top: 8px; bottom: 8px; width: 1px; background: var(--ui-line-2); }
  .hm-own__step { padding-bottom: 36px; }
  .hm-own__step:last-child { padding-bottom: 0; }
  .hm-own__n { top: 0; left: -52px; }
  .hm-mods { grid-template-columns: minmax(0, 1fr); }
  .hm-mods__group--base .hm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .hm-hero__foot { flex-direction: column; align-items: stretch; padding-bottom: 96px; }
  .hm-scroll { display: none; }
  .hm-stats { gap: 22px 28px; }
  .hm-hero__actions .ui-btn { flex: 1 1 auto; justify-content: center; }
  .hm-scene { padding: 22px 18px; }
  .hm-pipe { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .hm-pipe li { padding: 10px 2px; }
  .hm-pipe span { font-size: 11.5px; letter-spacing: -.03em; }
  .hm-pipe b { font-size: 18px; }
  .hm-chip { grid-template-columns: 1fr; padding: 14px 16px; }
  .hm-chip__label { grid-row: auto; }
  .hm-chat__body { height: 360px; padding: 16px; }
  .hm-ans { left: 16px; right: 16px; }
  .hm-mods__group--base .hm-tiles, .hm-mods__group--opt .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-tile { min-height: 56px; font-size: 14px; }
  .hm-cost { gap: 14px 28px; }
  .hm-next { flex-direction: column; align-items: flex-start; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; text-align: left; }
  .hm-next li + li::before { display: none; }
  .hm-cta .ui-cta-buttons .ui-btn { width: min(100%, 320px); }
}

/* 높이가 낮은 PC 화면: 고정 스크롤 3단이 잘리지 않게 */
@media (min-width: 1024px) and (max-height: 860px) {
  .hm-flow__copy .hm-h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 22px; }
  .hm-flow__step { padding: 12px 0; }
  .hm-flow__body { font-size: 14px; line-height: 1.6; }
  .hm-stage { aspect-ratio: 5 / 3.9; }
}
@media (min-width: 1024px) and (max-height: 720px) {
  .hm-flow__step:not(.is-active) .hm-flow__body { display: none; }
}
@media (max-width: 767px) {
  .hm-br { display: none; }
}

/* 움직임 줄이기 설정 */
@media (prefers-reduced-motion: reduce) {
  .hm-hero__glow, .hm-hero__aurora i, .hm-agent__aura, .hm-scroll__line::after, .hm-pipe__dot, .hm-caret, .hm-typing i { animation: none !important; }
  .js .hm-in, .js .hm-line > .hm-in, .js .hm-reveal, .js .hm-mods .hm-tile { opacity: 1; transform: none; transition: none; }
  .js .hm-word { opacity: 1; }
  .hm-hero__accent { background-position: 0 0; }
}
