/* AICreator Hero Slider (TASK-001) — 독립 CSS, 기존 index.html 클래스와 충돌 방지를 위해 hs- 프리픽스 사용 */

.hs-root {
  --hs-bg-0: #05060a;
  --hs-bg-1: #0a0d14;
  --hs-bg-2: #101522;
  --hs-text: #f8fafc;
  --hs-text-dim: rgba(248, 250, 252, 0.72);
  --hs-text-faint: rgba(248, 250, 252, 0.45);
  --hs-border: rgba(255, 255, 255, 0.12);
  --hs-glass: rgba(255, 255, 255, 0.05);
  --hs-accent-a: #5b7cff;
  --hs-accent-b: #8b5cf6;
  --hs-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hs-px: 0; /* TASK-003 Parallax: pointermove로 갱신되는 정규화 좌표(-1~1) */
  --hs-py: 0;

  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  background: var(--hs-bg-0);
  color: var(--hs-text);
  overflow: hidden;
  font-family: 'Noto Sans KR', sans-serif;
}

.hs-root * { box-sizing: border-box; }

/* 슬라이드별 accent 토큰(TASK-002 §5) — 기존 --hs-accent-a/b(브랜드 공용, 버튼 등)는 그대로 두고
   슬라이드 전용 강조색만 로컬 변수로 추가한다(중복 생성 대신 통합). */
.hs-slide[data-theme="vision"]      { --accent: #6c63ff; --accent-2: #14b8ff; background: var(--hs-bg-0); }
.hs-slide[data-theme="brain"]       { --accent: #9b5cff; --accent-2: #ff4fd8; background: var(--hs-bg-1); }
.hs-slide[data-theme="workflow"]    { --accent: #14d9ff; --accent-2: #4977ff; background: var(--hs-bg-0); }
.hs-slide[data-theme="publishing"]  { --accent: #18e0b4; --accent-2: #14a8ff; background: var(--hs-bg-1); }
.hs-slide[data-theme="grow"]        { --accent: #1fd18a; --accent-2: #14a8ff; background: var(--hs-bg-0); }
.hs-slide[data-theme="cta"]         { --accent: #6ea8ff; --accent-2: #ffffff; background: var(--hs-bg-2); }

/* ── Layer 2: Aurora / Layer 3: Grid+Noise (TASK-002 §4,§7) ────── */
.hs-layer-aurora {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  transform: translate3d(calc(var(--hs-px, 0) * 2px), calc(var(--hs-py, 0) * 2px), 0); /* Parallax Layer1 */
  background:
    radial-gradient(circle at 22% 28%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 40%),
    radial-gradient(circle at 78% 24%, color-mix(in srgb, var(--accent-2) 26%, transparent), transparent 42%),
    radial-gradient(circle at 55% 80%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 45%);
}
.hs-slide[data-theme="brain"] .hs-layer-aurora { background:
    radial-gradient(circle at 78% 22%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 40%),
    radial-gradient(circle at 16% 78%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 42%); }
.hs-slide[data-theme="workflow"] .hs-layer-aurora { background:
    radial-gradient(circle at 16% 22%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 40%),
    radial-gradient(circle at 84% 76%, color-mix(in srgb, var(--accent-2) 26%, transparent), transparent 42%); }
.hs-slide[data-theme="publishing"] .hs-layer-aurora { background:
    radial-gradient(circle at 80% 26%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 40%),
    radial-gradient(circle at 15% 80%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 42%); }
.hs-slide[data-theme="grow"] .hs-layer-aurora { background:
    radial-gradient(circle at 20% 26%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 40%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 42%); }
.hs-slide[data-theme="cta"] .hs-layer-aurora { background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 60%); }

.hs-layer-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  transform: translate3d(calc(var(--hs-px, 0) * 6px), calc(var(--hs-py, 0) * 6px), 0); /* Parallax Layer2 */
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 85%);
}

.hs-layer-noise {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.035; mix-blend-mode: overlay;
  transform: translate3d(calc(var(--hs-px, 0) * 12px), calc(var(--hs-py, 0) * 12px), 0); /* Parallax Layer3 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 767px) { .hs-layer-noise { display: none; } }

/* Swiper 뼈대 */
.hs-root .swiper { width: 100%; height: 100%; }
.hs-root .swiper-slide { width: 100%; height: 100%; }

.hs-slide-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 max(24px, 4vw);
  padding-top: 72px;
}
.hs-slide-grid {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hs-slide[data-theme="cta"] .hs-slide-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 12px; }
/* CTA 슬라이드는 텍스트+비주얼이 세로로 쌓여 다른 슬라이드보다 높이가 크게 필요함 —
   .hs-visual의 공용 고정 높이(440px)를 그대로 쓰면 1366x768/1280x720 같은 흔한 노트북
   해상도에서 위쪽 eyebrow가 헤더 뒤로 밀려들어가고 아래쪽이 잘리는 문제가 있었음(버그 리포트로 확인). */
.hs-slide[data-theme="cta"] .hs-visual { height: auto; min-height: 0; }

.hs-text {
  max-width: 620px;
  transform: translate3d(calc(var(--hs-px, 0) * 20px), calc(var(--hs-py, 0) * 20px), 0); /* Parallax Layer4 */
}
.hs-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hs-accent-a);
  margin-bottom: 18px;
}
.hs-title {
  font-size: clamp(2.6rem, 5.4vw, 5.4rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* Split Text Reveal(TASK-003 §Hero순서-4) — 단어 단위로 감싸 위→아래 클리핑 리빌 */
.hs-word { display: inline-block; overflow: hidden; vertical-align: top; }
.hs-word-inner { display: inline-block; transform: translateY(115%); }
.hs-desc {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--hs-text-dim);
  max-width: 560px;
  margin: 0 0 34px;
  word-break: keep-all;
}
.hs-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hs-slide[data-theme="cta"] .hs-ctas { justify-content: center; }

.hs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  min-height: 44px;
  transition: transform 0.18s var(--hs-ease), box-shadow 0.18s var(--hs-ease), border-color 0.18s var(--hs-ease), background 0.18s var(--hs-ease);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.hs-btn:active { transform: scale(0.97); }
.hs-btn-primary {
  background: linear-gradient(120deg, var(--hs-accent-a), var(--hs-accent-b));
  color: #05070d;
  box-shadow: 0 8px 30px rgba(91,124,255,0.35);
}
.hs-btn-primary:hover { box-shadow: 0 10px 38px rgba(91,124,255,0.5); }
.hs-btn-ghost {
  background: transparent; border-color: rgba(255,255,255,0.28); color: var(--hs-text);
}
.hs-btn-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.hs-btn:focus-visible { outline: 2px solid var(--hs-accent-a); outline-offset: 3px; }

.hs-glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid var(--hs-border);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.30);
}
@supports not (backdrop-filter: blur(1px)) {
  .hs-glass { background: rgba(15, 17, 26, 0.86); }
}

/* ── Visual: 공통 wrap ─────────────────────────────── */
.hs-visual { position: relative; height: 440px; display: flex; align-items: center; justify-content: center; }

/* Slide 1 — AI Core (CSS + SVG, Canvas/3D 금지) */
.hs-core { position: relative; width: 340px; height: 340px; }
.hs-core-ball {
  position: absolute; inset: 0; margin: auto; width: 42%; height: 42%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, var(--accent) 45%, var(--accent-2) 100%);
  box-shadow: 0 0 90px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 160px color-mix(in srgb, var(--accent-2) 35%, transparent);
  animation: hs-breathe 4.5s ease-in-out infinite;
}
@keyframes hs-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.hs-core-ring { position: absolute; inset: 0; margin: auto; border: 1px solid var(--hs-border); border-radius: 50%; }
.hs-core-ring.r1 { width: 62%; height: 62%; animation: hs-spin 22s linear infinite; }
.hs-core-ring.r2 { width: 86%; height: 86%; border-style: dashed; animation: hs-spin 40s linear infinite reverse; }
.hs-core-ring.r3 { width: 100%; height: 100%; animation: hs-spin 60s linear infinite; }
@keyframes hs-spin { to { transform: rotate(360deg); } }
.hs-core-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hs-core-svg line { stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1; }
.hs-core-node {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-2); transform: translate(-50%, -50%);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent-2) 80%, transparent);
  animation: hs-node-pulse 2.4s ease-in-out infinite;
}
@keyframes hs-node-pulse { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }

/* Slide 2 — Brain Universe: 카드 그리드 + 배경 코어 글로우("하나의 지식 생태계") */
.hs-brain-universe { position: relative; width: 100%; max-width: 460px; }
.hs-brain-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 120px; height: 120px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, var(--accent), transparent 72%);
  opacity: 0.55; filter: blur(2px);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5);
}
.hs-brain-core svg { width: 20px; height: 20px; opacity: 0.8; }
.hs-brain-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
.hs-brain-card {
  padding: 18px 14px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform 0.25s var(--hs-ease), border-color 0.25s, box-shadow 0.25s;
}
.hs-brain-card svg { width: 26px; height: 26px; color: var(--card-glow, var(--accent-2)); }
.hs-brain-card span { font-size: 12.5px; font-weight: 600; color: var(--hs-text-dim); }
.hs-brain-card[data-active="false"] { opacity: 0.4; }
.hs-brain-card[data-active="false"] svg { color: var(--hs-text-faint); }
.hs-brain-card[data-active="true"]:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--card-glow, var(--accent)) 55%, transparent);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--card-glow, var(--accent)) 28%, transparent), 0 24px 80px rgba(0,0,0,0.3);
}

/* Slide 3 — Workflow panel: 대기 / 진행(pulse) / 완료 3단계 */
.hs-workflow-panel { width: 100%; max-width: 480px; padding: 26px; }
.hs-wf-step {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; color: var(--hs-text-faint);
  transition: color 0.3s, background 0.3s; opacity: 0.55;
}
.hs-wf-step .hs-wf-dot {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--hs-border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  transition: all 0.3s; position: relative;
}
.hs-wf-step[data-state="active"] { color: var(--hs-text); opacity: 1; }
.hs-wf-step[data-state="active"] .hs-wf-dot { border-color: var(--accent); }
.hs-wf-step[data-state="active"] .hs-wf-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent);
  animation: hs-ring-pulse 1.3s ease-out infinite;
}
@keyframes hs-ring-pulse { 0% { transform: scale(0.8); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
.hs-wf-step[data-state="done"] { color: var(--hs-text); background: rgba(255,255,255,0.04); opacity: 1; }
.hs-wf-step[data-state="done"] .hs-wf-dot { background: linear-gradient(120deg, var(--accent-2), var(--accent)); border-color: transparent; color: #05070d; }
.hs-wf-preview {
  margin-top: 14px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--hs-border);
  font-size: 12px; color: var(--hs-text-faint); opacity: 0; transform: translateY(6px);
  transition: opacity 0.5s var(--hs-ease), transform 0.5s var(--hs-ease);
}
.hs-wf-preview[data-shown="true"] { opacity: 1; transform: none; }
.hs-wf-preview b { display: block; color: var(--hs-text); font-size: 13px; font-weight: 700; margin-bottom: 3px; }

/* Slide 4/2/6 공용 — 중심-노드 연결(Hub) 구조 */
.hs-hub-wrap { position: relative; width: 100%; max-width: 460px; height: 420px; }
.hs-hub-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #05070d; text-align: center;
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 45%, transparent);
  z-index: 2;
}
.hs-hub-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; }
.hs-hub-svg line { stroke: rgba(255,255,255,0.18); stroke-width: 1; }
.hs-hub-node {
  position: absolute; width: 96px; padding: 10px 6px; text-align: center;
  transform: translate(-50%, -50%); font-size: 11.5px; font-weight: 700; z-index: 2;
}
.hs-flow-dot {
  position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 10px color-mix(in srgb, var(--accent-2) 90%, transparent);
  margin: -3px 0 0 -3px; z-index: 1;
  animation: hs-flow 2.6s ease-in-out infinite;
  animation-delay: var(--flow-delay, 0s);
}
@keyframes hs-flow {
  0% { left: 50%; top: 50%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: var(--tx, 50%); top: var(--ty, 50%); opacity: 0; }
}

/* Slide 5 — Dashboard mockup */
.hs-dash { width: 100%; max-width: 480px; padding: 24px; }
.hs-dash-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  font-size: 10.5px; font-weight: 700; color: #6ee7b7;
  background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.35);
  padding: 4px 10px; border-radius: 999px;
}
.hs-dash-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: hs-node-pulse 1.6s ease-in-out infinite; }
.hs-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.hs-dash-card { padding: 14px 16px; }
.hs-dash-card .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hs-dash-card .l { font-size: 11.5px; color: var(--hs-text-faint); margin-top: 2px; }
.hs-dash-usage { margin-bottom: 14px; }
.hs-dash-usage .row { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--hs-text-faint); margin-bottom: 6px; }
.hs-dash-usage .row b { color: var(--hs-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.hs-dash-usage .bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.hs-dash-usage .bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0%; transition: width 1.1s cubic-bezier(0.16,1,0.3,1); }
.hs-dash-chart { height: 64px; position: relative; margin-bottom: 14px; }
.hs-dash-chart svg { width: 100%; height: 100%; }
.hs-dash-chart path.line { fill: none; stroke: var(--accent); stroke-width: 2; }
.hs-dash-chart path.fill { fill: url(#hsDashGradient); opacity: 0.5; stroke: none; }
.hs-dash-activity { display: flex; flex-direction: column; gap: 8px; }
.hs-dash-activity .item { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--hs-text-faint); }
.hs-dash-activity .item .st { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: #34d399; }
.hs-dash-activity .item .st[data-tone="pending"] { background: #fbbf24; }
.hs-dash-activity .item b { color: var(--hs-text-dim); font-weight: 600; }
.hs-dash-activity .item .t { margin-left: auto; color: var(--hs-text-faint); opacity: 0.7; }

/* Slide 6 — Convergence: 5개 기능 Orb + 연결선 */
/* width:100%는 CTA 슬라이드의 justify-items:center 때문에 .hs-visual이 shrink-to-fit되면서
   0으로 무너지는 문제가 있었음(버그 리포트로 확인) — 고정 width로 대체. */
.hs-converge-wrap { position: relative; width: 420px; max-width: 90vw; height: 300px; }
.hs-converge-wrap .hs-hub-svg line { stroke: color-mix(in srgb, var(--accent) 40%, transparent); }
.hs-converge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
.hs-converge-logo {
  width: 88px; height: 88px; border-radius: 22px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 900; color: #05070d;
  box-shadow: 0 0 100px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: hs-breathe 4s ease-in-out infinite;
}
.hs-orb {
  position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
  transform: translate(-50%, -50%);
}
.hs-orb-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid var(--hs-border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent-2) 30%, transparent);
}
.hs-orb-dot svg { width: 16px; height: 16px; color: var(--accent-2); }
.hs-orb span { font-size: 10.5px; font-weight: 700; color: var(--hs-text-dim); white-space: nowrap; }

/* ── 내비게이션 ──────────────────────────────────────── */
.hs-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--hs-border);
  color: var(--hs-text); display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 20; transition: background 0.2s, border-color 0.2s;
}
.hs-nav-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.32); }
.hs-nav-btn:focus-visible { outline: 2px solid var(--hs-accent-a); outline-offset: 2px; }
.hs-nav-btn.hs-prev { left: 20px; }
.hs-nav-btn.hs-next { right: 20px; }
.hs-nav-btn svg { width: 20px; height: 20px; }

.hs-bottom-bar {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 0 max(24px, 4vw);
}
.hs-counter { font-size: 12.5px; font-weight: 700; color: var(--hs-text-faint); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.hs-progress-track { position: relative; width: 220px; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.14); overflow: hidden; }
.hs-progress-fill { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, var(--hs-accent-a), #22d3ee); border-radius: 999px; }
.hs-progress-fill.hs-anim { transition: width linear; }

.hs-dots { display: flex; gap: 4px; }
/* 시각적으로는 8px 점이지만 실제 탭 영역은 padding으로 넓혀 터치 정확도를 확보한다 */
.hs-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.24);
  border: none; cursor: pointer; transition: background 0.25s, width 0.25s;
  background-clip: content-box; box-sizing: content-box; padding: 12px;
}
.hs-dot:hover { background-color: rgba(255,255,255,0.45); }
.hs-dot[data-active="true"] { width: 22px; border-radius: 4px; background-color: var(--hs-accent-a); }
.hs-dot:focus-visible { outline: 2px solid var(--hs-accent-a); outline-offset: 2px; }

/* Cursor Glow(Desktop, TASK-003) — pointer:fine일 때만 JS가 생성/부착함 */
.hs-cursor-glow {
  position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none;
  width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14), transparent 70%);
  filter: blur(10px); mix-blend-mode: screen; opacity: 0;
}

.hs-scroll-cue {
  position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.08em; color: var(--hs-text-faint);
  display: none;
}

/* GSAP 애니메이션 대상 초기 상태(FOUC 방지, JS로 in/out) */
.hs-anim-item { opacity: 0; }

/* ── 반응형 ───────────────────────────────────────────── */
@media (max-width: 1023px) {
  .hs-slide-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 28px; }
  .hs-text { max-width: 640px; }
  .hs-desc { margin-left: auto; margin-right: auto; }
  .hs-ctas { justify-content: center; }
  .hs-visual { height: 340px; }
}

@media (max-width: 767px) {
  .hs-root { height: 100svh; min-height: 640px; }
  .hs-slide-inner { padding-top: 64px; }
  .hs-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hs-desc { font-size: 0.95rem; }
  .hs-glass { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .hs-nav-btn { width: 44px; height: 44px; }
  .hs-nav-btn.hs-prev { left: 8px; }
  .hs-nav-btn.hs-next { right: 8px; }
  .hs-bottom-bar { bottom: 16px; gap: 12px; flex-wrap: wrap; }
  .hs-progress-track { width: 120px; }
  .hs-visual { height: 260px; }
  /* Dashboard 목업(배지+KPI 2x2+사용량바+차트)이 모바일 고정 높이(260px)보다
     커서 .hs-visual의 flex 중앙정렬로 위아래로 삐져나와 CTA 버튼과 겹치던 문제 —
     CTA 슬라이드(§425 위)와 같은 방식으로 높이를 콘텐츠에 맞게 풀어준다. */
  .hs-slide[data-theme="grow"] .hs-visual { height: auto; min-height: 0; }
  .hs-brain-universe { max-width: 300px; }
  .hs-brain-grid { gap: 10px; }
  .hs-brain-card { padding: 12px 8px; }
  .hs-brain-core { width: 80px; height: 80px; }
  .hs-hub-wrap { height: 300px; }
  .hs-hub-center { width: 74px; height: 74px; font-size: 10px; }
  .hs-hub-node { width: 76px; font-size: 10px; padding: 8px 4px; }
  .hs-core { width: 220px; height: 220px; }
  .hs-converge-wrap { max-width: 260px; height: 220px; }
  .hs-converge-logo { width: 68px; height: 68px; font-size: 26px; }
  .hs-orb-dot { width: 28px; height: 28px; }
  .hs-orb-dot svg { width: 13px; height: 13px; }
  .hs-dash-activity { display: none; }
  .hs-btn { padding: 13px 22px; font-size: 14px; }
}

@media (max-width: 767px) and (max-height: 700px) {
  .hs-bottom-bar { bottom: 10px; }
}

/* Dashboard 목업이 iPhone SE/여러 안드로이드 폭(360~414px, 높이 740px 이하)에서
   height:auto로 풀어줘도(§427 위) 여전히 컨텐츠 자체가 가용 높이보다 커서
   하단이 화면 밖으로 밀려나던 문제 — 차트(64px+여백)를 숨겨 공간을 확보한다. */
@media (max-width: 767px) and (max-height: 760px) {
  .hs-dash-chart { display: none; }
  .hs-dash-usage { margin-bottom: 4px; }
  .hs-dash { padding: 16px; }
  .hs-dash-badge { margin-bottom: 8px; }
  .hs-dash-grid { margin-bottom: 8px; }
}

/* 노트북에 흔한 낮은 뷰포트(1366x768, 1280x720 등)에서 콘텐츠가 헤더 뒤로 밀려들어가거나
   하단이 잘리는 것을 막는 안전장치. 데스크톱 폭(min-width:768px)에서만 적용 —
   767px 이하는 이미 위 모바일 규칙이 레이아웃 자체를 세로형으로 축소해 별도 처리 불필요. */
@media (min-width: 768px) and (max-height: 820px) {
  .hs-slide-inner { padding-top: 56px; }
  .hs-visual { height: 360px; }
  .hs-slide[data-theme="cta"] .hs-converge-wrap { max-width: 320px; height: 240px; }
  .hs-converge-logo { width: 74px; height: 74px; font-size: 28px; }
  .hs-dash-activity { display: none; }
}

/* 접근성: 모션 감소 */
@media (prefers-reduced-motion: reduce) {
  .hs-root *, .hs-root *::before, .hs-root *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.15s !important;
  }
  .hs-anim-item { opacity: 1 !important; transform: none !important; }
  .hs-flow-dot { display: none; }
  .hs-word-inner { transform: none !important; }
  .hs-layer-aurora, .hs-layer-grid, .hs-layer-noise, .hs-text { transform: none !important; }
  .hs-cursor-glow { display: none !important; }
}


/* ── GROW 슬라이드 — 진단 후 조치 결과 ───────────────────────────── */
.hs-grow { padding: 22px; display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.hs-grow-head { display: flex; justify-content: flex-start; }
.hs-grow-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
  letter-spacing: .02em; color: #eafff5; background: rgba(31,209,138,.14);
  border: 1px solid rgba(31,209,138,.32); padding: 5px 11px; border-radius: 999px; }
.hs-grow-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(31,209,138,.6); animation: hsGrowPulse 2s ease-out infinite; }
@keyframes hsGrowPulse { 70% { box-shadow: 0 0 0 7px rgba(31,209,138,0); } 100% { box-shadow: 0 0 0 0 rgba(31,209,138,0); } }

.hs-grow-score .row { display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px; color: rgba(255,255,255,.72); margin-bottom: 8px; }
.hs-grow-score .row b { display: inline-flex; align-items: baseline; gap: 7px; font-size: 15px; color: #fff; }
.hs-grow-score s { opacity: .45; text-decoration: line-through; font-weight: 500; }
.hs-grow-score i { font-style: normal; opacity: .55; }
.hs-grow-score em { font-style: normal; font-size: 26px; font-weight: 800; line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums; }
.hs-grow-score .bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.hs-grow-score .bar-fill { height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 1.1s cubic-bezier(.22,1,.36,1); }

.hs-grow-steps { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; }
.hs-grow-step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.86);
  opacity: 0; transform: translateY(6px); animation: hsGrowIn .5s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: calc(.18s + var(--i) * .07s); }
@keyframes hsGrowIn { to { opacity: 1; transform: none; } }
.hs-grow-step .tick { flex: 0 0 15px; width: 15px; height: 15px; border-radius: 50%;
  background: rgba(31,209,138,.16); border: 1px solid rgba(31,209,138,.5); position: relative; }
.hs-grow-step .tick::after { content: ""; position: absolute; left: 4px; top: 2px; width: 4px; height: 7px;
  border: solid var(--accent); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }

.hs-grow-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.hs-grow-fact .l { font-size: 11px; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.hs-grow-fact .v { display: flex; align-items: baseline; gap: 5px; font-size: 13px; color: #fff;
  font-variant-numeric: tabular-nums; }
.hs-grow-fact s { opacity: .42; }
.hs-grow-fact i { font-style: normal; opacity: .5; font-size: 11px; }
.hs-grow-fact b { color: var(--accent); font-weight: 800; }

.hs-grow-note { margin: 0; font-size: 11px; line-height: 1.55; color: rgba(255,255,255,.45); }

@media (max-width: 640px) {
  .hs-grow { padding: 18px; gap: 13px; }
  .hs-grow-steps { grid-template-columns: 1fr; gap: 6px; }
  .hs-grow-facts { gap: 6px; }
  .hs-grow-score em { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-grow-step { animation: none; opacity: 1; transform: none; }
  .hs-grow-badge .dot { animation: none; }
  .hs-grow-score .bar-fill { transition: none; }
}
