/* ==========================================================================
   el_heroui — HeroUI v3 기반 이온디 통합 테마 스킨
   --------------------------------------------------------------------------
   heroui.css(= @heroui/styles v3.2.2 의 프리빌드 heroui.min.css, MIT/Apache-2.0)
   를 먼저 로드한 뒤 이 파일이 브랜드 토큰과 셸(헤더/푸터/섹션)을 얹는다.
   HeroUI 컴포넌트 클래스(.button, .card, .chip, .alert …)는 그대로 사용하고,
   테마에만 필요한 셸 요소는 hu- 접두사로 별도 정의한다.

   ⚠ heroui.css 는 절대 직접 수정하지 말 것 — 업스트림 산출물이다.
      색·라운드·그림자는 전부 아래 CSS 변수로 제어된다.
   ========================================================================== */

/* ── 1. 브랜드 토큰 ──────────────────────────────────────────────────────
   HeroUI 와 Pro 팔레트의 :root 는 @layer theme 안에 있으므로, 레이어 밖의 이 선언이 이긴다.

   토큰은 두 층으로 나눈다.
     (a) 모든 팔레트 공통 — 브랜드 액센트. glass/mouve/brutalism 이 각자 지정한 accent 를
         이온디 오렌지로 되돌린다. 팔레트의 개성은 질감·라운드·폰트에서 나오지 액센트가 아니다.
     (b) 기본 팔레트 전용 — 배경 흰색화. Pro 팔레트는 자기 배경(유리·보라·흑백)을 쓰게 둔다. */

/* (a) 공통 */
:root,
[data-theme] {
  --accent: oklch(0.7045 0.1926 39.23);   /* 이온디 오렌지 #FF6B35 */
  --accent-foreground: oklch(100% 0 0);

  /* 문(door) 4색 — el_unified 와 동일한 브랜드 팔레트 */
  --eond-request: oklch(0.7045 0.1926 39.23); /* #FF6B35 */
  --eond-market:  oklch(0.4907 0.2412 292.58); /* #6D28D9 */
  --eond-hosting: oklch(0.6859 0.1667 154.86); /* #12B76A */
  --eond-works:   oklch(0.7469 0.1701 62.11);  /* #F79009 */
  --eond-ink:     oklch(0.1647 0.0042 285.94); /* #0E0E10 */

  /* 셸 치수 */
  --hu-header-h: 64px;
  --hu-container: 1180px;

  /* ── Pro 컴포넌트용 --color-* 별칭 ──────────────────────────────────
     Pro 의 일부 컴포넌트(timeline, kpi, chain-of-thought 등)는 Tailwind v4 의
     @theme 네임스페이스인 --color-success / --color-border 를 참조한다.
     그 매핑은 Pro 의 index.css 가 만드는데, 우리는 컴포넌트 CSS 만 발췌했으므로
     여기서 직접 이어 준다. 빠뜨리면 값이 통째로 무효가 되어
     타임라인 마커가 검게 칠해지거나 테두리가 사라진다(실제로 그랬다). */
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-border: var(--border);
  --color-separator: var(--separator);
  --color-focus: var(--focus);
  --color-success: var(--success);
  --color-warning: var(--warning);
  --color-danger: var(--danger);
  --color-surface-secondary-foreground: var(--surface-secondary-foreground);
}

/* (b) 기본 팔레트 전용 — HeroUI 기본 배경(0.9702 회색)은 랜딩에 무겁다.
   ⚠ 선택자를 [data-palette="default"] 로 좁히는 것이 핵심이다.
      이 파일은 @layer 밖이라 Pro 팔레트의 @layer theme 선언을 무조건 이긴다.
      전에 :root 로 두었더니 brutalism 의 --radius:0 과 glass 의 반투명 surface 가
      통째로 무시되어 세 팔레트가 전부 기본과 똑같이 보였다. */
:root:not([data-palette]),
:root[data-palette="default"] {
  --radius: 0.75rem;
}
:root:not([data-palette]),
:root[data-palette="default"][data-mode="light"],
:root[data-palette="default"]:not([data-mode]) {
  --background: oklch(100% 0 0);
  --surface-secondary: oklch(0.9761 0.0013 286.37);
}
:root[data-palette="default"][data-mode="dark"] {
  --background: oklch(0.1822 0.0043 285.93);
  --surface-secondary: oklch(0.2393 0.0053 285.9);
}

/* ── Pro 팔레트 보정 ────────────────────────────────────────────────────
   Pro 팔레트는 토큰만 정의한다. 그 토큰을 실제로 칠하는 일은 Pro 앱 셸(app-layout)이
   하는데 우리는 셸을 쓰지 않으므로 여기서 직접 칠한다. */

/* glass — 배경 그라데이션과 표면 블러가 이 팔레트의 전부다 */
:root[data-palette="glass"] body {
  background-image: var(--background-gradient);
  background-attachment: fixed;
}
:root[data-palette="glass"] .card,
:root[data-palette="glass"] .widget,
:root[data-palette="glass"] .command__dialog,
:root[data-palette="glass"] .hu-navbar {
  backdrop-filter: blur(var(--glass-blur, 20px)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur, 20px)) saturate(160%);
}

/* brutalism — 한글 본문에 Share Tech Mono / Anton 은 글리프가 없어 폴백된다.
   폰트는 Pretendard 를 유지하고, 각진 모서리·무그림자·대문자 제목만 살린다. */
:root[data-palette="brutalism"] body,
:root[data-palette="brutalism"] h1,
:root[data-palette="brutalism"] h2,
:root[data-palette="brutalism"] h3 {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
:root[data-palette="brutalism"] .hu-eyebrow,
:root[data-palette="brutalism"] .hu-slogan {
  font-family: var(--brutalism-font-display, inherit);
}
:root[data-palette="brutalism"] .hu-palette-dialog,
:root[data-palette="brutalism"] .hu-demo,
:root[data-palette="brutalism"] .hu-dash,
:root[data-palette="brutalism"] .hu-item {
  box-shadow: none;
}

/* ── 2. 베이스 정정 ────────────────────────────────────────────────────
   HeroUI 문서 데모용 body padding 을 제거하고 사이트 폰트를 지정한다. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  padding: 0;
  margin: 0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hu-container {
  width: 100%;
  max-width: var(--hu-container);
  margin-inline: auto;
  padding-inline: 24px;
}

.hu-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-foreground);
  padding: 10px 18px; border-radius: 0 0 var(--radius) 0; font-weight: 700;
}
.hu-skip:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 3. 헤더 / GNB — HeroUI Pro navbar 위에 메가메뉴만 얹는다 ────────────
   .navbar / .navbar__header / .navbar__item / .navbar__menu-toggle 은 Pro 제공.
   Pro 에 없는 것(메가 드롭다운 패널, 스크롤 블러)만 hu- 로 보강한다. */
.hu-navbar {
  --navbar-max-width: var(--hu-container);
  --navbar-height: var(--hu-header-h);
  z-index: 50;
  background: color-mix(in oklch, var(--background) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.hu-navbar .navbar__header { gap: 8px; }
.hu-navbar .navbar__brand img,
.hu-footer-brand img { height: 24px; width: auto; display: block; }

/* 로고는 잉크/흰색 두 벌을 싣고 테마에 맞는 쪽만 노출한다(단색 SVG 라 filter 반전보다 정확). */
.hu-navbar .navbar__brand .hu-logo-dark,
.hu-footer-brand .hu-logo-dark { display: none; }
[data-mode="dark"] .hu-navbar .navbar__brand .hu-logo-light,
[data-mode="dark"] .hu-footer-brand .hu-logo-light { display: none; }
[data-mode="dark"] .hu-navbar .navbar__brand .hu-logo-dark,
[data-mode="dark"] .hu-footer-brand .hu-logo-dark { display: block; }

.hu-gnb { gap: 2px; min-width: 0; }
.hu-gnb-group { position: relative; }

/* Pro .navbar__item 을 GNB 크기로 키우고 활성 밑줄만 추가한다 */
.hu-gnb .navbar__item {
  height: 36px; padding: 0 12px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.hu-gnb-group:hover > .navbar__item { background: var(--surface-secondary); color: var(--foreground); }
.hu-gnb .navbar__item[data-current="true"] { color: var(--foreground); font-weight: 700; }
.hu-gnb .navbar__item[data-current="true"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.hu-gnb-chevron { width: 14px; height: 14px; opacity: .55; transition: transform .2s ease; }
.hu-gnb-group:hover .hu-gnb-chevron { transform: rotate(180deg); }

/* 메가 드롭다운 — HeroUI overlay 토큰을 그대로 따른다 */
.hu-panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 620px; max-width: min(920px, calc(100vw - 48px));
  background: var(--overlay); color: var(--overlay-foreground);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.6);
  box-shadow: 0 20px 50px -12px color-mix(in oklch, var(--foreground) 22%, transparent);
  padding: 20px;
  display: grid; grid-template-columns: 220px 1fr; gap: 22px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.hu-gnb-group:hover .hu-panel,
.hu-gnb-group:focus-within .hu-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
/* 오른쪽 끝 메뉴는 패널을 왼쪽으로 정렬해 화면 밖으로 나가지 않게 한다 */
.hu-gnb-group:nth-last-child(-n+2) .hu-panel { left: auto; right: 0; }

.hu-panel-head { display: flex; flex-direction: column; gap: 8px; }
.hu-panel-kicker {
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin: 0;
}
.hu-panel-title { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.hu-panel-desc { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0; }

/* 패널 링크는 Pro .item-card 를 리스트 밀도로 조여서 쓴다 */
.hu-panel-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px; align-content: start; }
.hu-panel-list .item-card {
  padding: 8px 10px; gap: 9px; text-decoration: none; color: var(--foreground);
  transition: background-color .13s ease;
}
.hu-panel-list .item-card:hover { background: var(--surface-secondary); }
.hu-panel-list .item-card__icon,
.hu-mobile-sub .item-card__icon {
  width: 15px; height: auto; background: none; border-radius: 0;
  font-size: 12px; font-style: normal; text-align: center;
  color: var(--muted); opacity: .7;
}
.hu-panel-list .item-card__title { font-size: 14px; font-weight: 500; }
.hu-panel-list .item-card[data-current="true"] .item-card__title { color: var(--accent); font-weight: 700; }

.hu-actions { gap: 6px; flex-shrink: 0; }

/* 테마 토글: 라이트일 때 달(=다크로 전환), 다크일 때 해를 보여 준다 */
#hu-theme-toggle .hu-icon-sun { display: none; }
#hu-theme-toggle .hu-icon-moon { display: block; }
[data-mode="dark"] #hu-theme-toggle .hu-icon-sun { display: block; }
[data-mode="dark"] #hu-theme-toggle .hu-icon-moon { display: none; }
.hu-burger { display: none; }

/* ── 4. 모바일 메뉴 (Pro .navbar__menu) ─────────────────────────────── */
.hu-navbar .navbar__menu {
  display: none;
  max-height: calc(100dvh - var(--navbar-height));
  border-bottom: 1px solid var(--border);
}
.hu-navbar[data-menu-open="true"] .navbar__menu { display: flex; }
.hu-navbar .navbar__menu details { border-bottom: 1px solid var(--border); }
.hu-navbar .navbar__menu details:last-of-type { border-bottom: 0; }
.hu-navbar .navbar__menu summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 12px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none;
}
.hu-navbar .navbar__menu summary::-webkit-details-marker { display: none; }
.hu-navbar .navbar__menu summary a { color: inherit; text-decoration: none; }
.hu-mobile-sub { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.hu-mobile-sub .item-card { padding: 9px 10px; gap: 9px; text-decoration: none; color: var(--foreground); }
.hu-mobile-sub .item-card:hover { background: var(--surface-secondary); }
.hu-mobile-sub .item-card__title { font-size: 14.5px; font-weight: 500; }
.hu-mobile-actions { display: flex; gap: 8px; margin-top: 18px; }
.hu-mobile-actions .button { flex: 1; }

/* ── 5. 히어로 ───────────────────────────────────────────────────────── */
.hu-hero {
  padding: clamp(56px, 9vh, 104px) 24px clamp(40px, 6vh, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hu-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 620px; z-index: -1;
  background:
    radial-gradient(60% 60% at 20% 0%, color-mix(in oklch, var(--eond-market) 12%, transparent), transparent 70%),
    radial-gradient(55% 55% at 85% 10%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 70%);
  pointer-events: none;
}
.hu-hero-eyebrow { margin: 0 0 18px; }
.hu-slogan {
  font-size: clamp(12px, 1.4vw, 13.5px); font-weight: 700; letter-spacing: .08em;
  color: var(--muted); margin: 0 0 14px; text-transform: uppercase;
}
.hu-slogan strong { color: var(--accent); font-weight: 900; }

.hu-h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.14;
  margin: 0 0 20px;
}
.hu-h1 .hu-line { display: block; }
.hu-h1 strong { color: var(--accent); font-weight: 800; }
/* 회전 애니메이션은 JS 가 .is-playing 을 붙였을 때만 돈다(JS 없으면 그냥 정적 표시). */
.hu-h1 .hu-kw { display: inline-block; opacity: 1; transform: none; }
.hu-h1.is-playing .hu-kw { animation: hu-kw-in .5s cubic-bezier(.22,.61,.36,1); }
@keyframes hu-kw-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hu-h1.is-playing .hu-kw { animation: none; } }

.hu-hero-sub {
  font-size: clamp(15px, 1.7vw, 17.5px); line-height: 1.7;
  color: var(--muted); max-width: 620px; margin: 0 auto 30px;
}
.hu-hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.hu-scroll-hint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 40px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); text-decoration: none;
}
.hu-scroll-hint svg { width: 16px; height: 16px; animation: hu-bounce 1.6s ease-in-out infinite; }
@keyframes hu-bounce {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%      { transform: translateY(5px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .hu-scroll-hint svg { animation: none; } }

/* ── 6. 섹션 공통 ────────────────────────────────────────────────────── */
.hu-section { padding: clamp(56px, 8vw, 96px) 0; }
.hu-section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.hu-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px;
}
.hu-h2 {
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.25; margin: 0 0 14px;
}
.hu-lead { font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0; }

/* ── 7. 히어로 커맨드 팔레트 ────────────────────────────────────────────
   관문 4문을 카드가 아니라 검색 UI 로 세운다. Pro 의 .command__dialog 는 카드일 뿐이라
   모달 컨테이너 없이 그대로 인라인 배치할 수 있다(.command__container 는 viewport 전용). */
.hu-palette { max-width: 620px; margin: 34px auto 0; text-align: left; }
.hu-palette-dialog {
  width: 100%;
  border: 1px solid var(--border);
  overflow: hidden;
}
.hu-palette .command__list { max-height: 430px; }

.hu-cmd-icon {
  --acc: var(--accent);
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklch, var(--acc) 14%, transparent);
  color: var(--acc);
}
.hu-cmd-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.hu-cmd-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--foreground);
}
.hu-cmd-desc {
  font-size: 12.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hu-cmd-go { flex-shrink: 0; color: var(--muted); opacity: 0; transition: opacity .15s ease, transform .15s ease; }
.command__item:hover .hu-cmd-go { opacity: 1; transform: translateX(2px); }

.hu-palette .command__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--muted);
}
.hu-palette .command__empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; }
.hu-palette .command__empty[hidden] { display: none; }

/* ── 8. 분할 레이아웃 — 카피 + 실제 화면 ────────────────────────────── */
.hu-split {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4.5vw, 60px); align-items: center;
}
.hu-split--narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.hu-split-copy .hu-h2 { margin-top: 14px; }
.hu-split-copy .hu-lead { margin-bottom: 24px; }
.hu-split-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hu-section.hu-alt { background: var(--surface-secondary); }
.hu-center { text-align: center; margin-top: 32px; }

/* ── 9. 데모 위젯 (AXAI 채팅) ───────────────────────────────────────── */
.hu-demo {
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -28px color-mix(in oklch, var(--foreground) 40%, transparent);
}
.hu-demo .widget__header { display: flex; align-items: center; gap: 10px; }
.hu-demo-dots { display: inline-flex; gap: 5px; }
.hu-demo-dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: color-mix(in oklch, var(--foreground) 16%, transparent);
}
.hu-demo .widget__title { flex: 1; }

.hu-chat { display: flex; flex-direction: column; gap: 14px; }
.hu-chat .chat-message__content p { margin: 0 0 8px; }
.hu-chat .chat-message__content p:last-child { margin-bottom: 0; }
.hu-chat .chat-message__content ol { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; }
.hu-chat .chat-message__content li { font-size: 13.5px; line-height: 1.6; }
.hu-chat .chat-message__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  background: var(--accent); color: var(--accent-foreground);
}

/* 보낸 말과 받은 말이 같은 회색이면 대화로 안 읽힌다 — 사용자 쪽을 액센트로 세운다 */
.hu-chat .chat-message--user .chat-message__bubble {
  background: var(--accent);
  color: var(--accent-foreground);
  max-width: 80%;
}
.hu-chat .chat-message--user .chat-message__content { color: inherit; }

/* Pro 는 액션 사이 간격을 주지 않는다(React 쪽에서 붙인다) */
.hu-chat .chat-message__actions { gap: 14px; margin-top: 8px; opacity: 1; }
.hu-chat .chat-message__action {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px;
}
.hu-chat .chat-message__action:hover { color: var(--accent); }

/* Tailwind preflight 가 list-style 을 지운다 — 단계 설명이므로 번호를 되살린다 */
.hu-chat .chat-message__content ol { list-style: decimal; }

/* chain-of-thought 상태 점 — Pro 는 색을 data-status 로 받지 않으므로 여기서 칠한다 */
.chain-of-thought__step-indicator { background: var(--muted); }
.chain-of-thought__step-indicator[data-status="success"] { background: var(--success); }
.chain-of-thought__step-indicator[data-status="warning"] { background: var(--warning); }

.hu-demo-input { display: flex; flex-direction: column; gap: 8px; }
.hu-demo-input .prompt-input__textarea { cursor: default; }
.hu-demo-note { font-size: 11.5px; color: var(--muted); margin: 0; text-align: center; }

/* ── 10. 운영 대시보드 ──────────────────────────────────────────────── */
.hu-dash { border: 1px solid var(--border); }
.hu-dash .widget__header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hu-dash .widget__title { font-weight: 700; }
.hu-dash-seg { margin-left: auto; }
.hu-dash .widget__content { display: grid; gap: 16px; }

.hu-dash-kpis {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.hu-dash-kpis .kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.hu-dash-kpis .kpi__header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hu-dash-kpis .kpi__title { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hu-dash-kpis .kpi__value {
  font-size: 27px; font-weight: 800; letter-spacing: -.03em; margin: 0;
  color: var(--foreground); white-space: nowrap;
}
.hu-dash-kpis .kpi__value .unit { font-size: .55em; font-weight: 700; margin-left: 2px; color: var(--muted); }
.hu-dash-kpis .kpi__footer { margin-top: auto; padding-top: 4px; }
.hu-spark { width: 100%; height: 38px; display: block; overflow: visible; }
.hu-trend { gap: 3px; }
.trend-chip__indicator { display: inline-flex; }

.hu-dash-list { background: var(--surface); border: 1px solid var(--border); }
.hu-dash-list .list-view__item { display: flex; align-items: center; gap: 12px; }
.hu-dash-list .list-view__item-action { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hu-dash-ms { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 46px; text-align: right; }
.hu-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hu-dot--ok   { background: var(--success); box-shadow: 0 0 0 3px color-mix(in oklch, var(--success) 18%, transparent); }
.hu-dot--warn { background: var(--warning); box-shadow: 0 0 0 3px color-mix(in oklch, var(--warning) 18%, transparent); }

.hu-dash-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hu-dash-foot .hu-demo-note { text-align: left; }

/* ── 11. 마켓 카드 ──────────────────────────────────────────────────── */
.hu-market-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}
.hu-item {
  display: flex; flex-direction: column; gap: 9px;
  padding: 20px; text-decoration: none; color: inherit;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease, border-color .25s ease;
}
.hu-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklch, var(--accent) 34%, transparent);
  box-shadow: 0 16px 36px -18px color-mix(in oklch, var(--accent) 45%, transparent);
}
.hu-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hu-item-price { font-size: 14px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.hu-item-title { font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.hu-item-desc { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; flex: 1; }
.hu-item-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.hu-item-meta { font-size: 12px; color: var(--muted); }
.hu-item .rating__item[data-active="true"] .rating__icon { color: var(--eond-works); }
.hu-item .rating__item .rating__icon { color: color-mix(in oklch, var(--foreground) 18%, transparent); }

/* ── 12. 타임라인 — Pro 에 없는 텍스트 슬롯만 보강 ──────────────────── */
.timeline__content { padding-bottom: 22px; }
.timeline__title { font-size: 15.5px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 4px; }
.timeline__description { font-size: 13.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.timeline__marker[data-status="success"] {
  background: color-mix(in oklch, var(--accent) 14%, transparent);
  border-color: color-mix(in oklch, var(--accent) 55%, transparent);
  color: var(--accent);
}
/* 마커를 잇는 세로선. Pro 는 rail 을 배치용 컨테이너로만 두고 선은 그리지 않는다. */
.timeline__rail::after {
  content: ""; position: absolute;
  top: calc(var(--timeline-marker-size) + 4px); bottom: -4px;
  width: var(--timeline-connector-size, 2px);
  border-radius: 2px;
  background: var(--border);
}
.timeline__item[data-last="true"] .timeline__rail::after { display: none; }

/* ── 10. 통계 — HeroUI Pro .kpi / .kpi-group ────────────────────────── */
.hu-kpis { --kpi-min: 220px; }
.hu-kpis.kpi-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--kpi-min), 1fr)); gap: 16px; }
.hu-kpis .kpi { text-align: center; padding: 30px 22px; }
.hu-kpis .kpi__value {
  font-size: clamp(34px, 4.6vw, 50px); font-weight: 800;
  letter-spacing: -.04em; color: var(--accent); line-height: 1.05;
  /* "4 개 분야" 처럼 단위에 공백이 든 값이 숫자와 갈라져 줄바꿈되지 않게 한다 */
  white-space: nowrap;
}
.hu-kpis .kpi__value .unit { font-size: .48em; font-weight: 700; margin-left: 3px; color: var(--foreground); }
.hu-kpis .kpi__title { font-size: 14px; line-height: 1.6; color: var(--muted); font-weight: 500; }

/* ── 11. 고객사 마퀴 ─────────────────────────────────────────────────── */
.hu-marquee { padding: clamp(40px, 6vw, 68px) 0; overflow: hidden; }
.hu-marquee-cap { text-align: center; font-size: 13.5px; color: var(--muted); margin: 0 0 24px; }
.hu-marquee-cap b { color: var(--foreground); }
.hu-marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hu-track { display: flex; gap: 18px; width: max-content; animation: hu-marquee 48s linear infinite; }
.hu-marquee-row:hover .hu-track { animation-play-state: paused; }
@keyframes hu-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hu-track { animation: none; } }
.hu-cli { flex-shrink: 0; width: 218px; display: flex; flex-direction: column; gap: 8px; }
.hu-cli img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklch, var(--foreground) 9%, transparent);
}
.hu-cli strong { font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: center; }

/* ── 12. 마무리 CTA ──────────────────────────────────────────────────── */
.hu-cta {
  background: var(--eond-ink); color: oklch(100% 0 0);
  padding: clamp(60px, 9vw, 108px) 0; text-align: center;
  position: relative; overflow: hidden;
}
/* 브랜드 광원 — 다크 모드에서 잉크색 블록이 페이지 배경과 같은 톤으로 묻히는 것을 막고,
   라이트에서도 마지막 전환 블록에 온기를 준다. */
.hu-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 120% at 50% 120%, color-mix(in oklch, var(--accent) 30%, transparent), transparent 62%),
    radial-gradient(60% 100% at 10% 0%, color-mix(in oklch, var(--eond-market) 22%, transparent), transparent 60%);
}
.hu-cta > * { position: relative; z-index: 1; }
[data-mode="dark"] .hu-cta { border-block: 1px solid color-mix(in oklch, var(--accent) 22%, transparent); }
.hu-cta .hu-eyebrow { color: color-mix(in oklch, var(--accent) 85%, white); }
.hu-cta h2 { font-size: clamp(26px, 3.8vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.25; margin: 0 0 28px; }
.hu-cta-note { font-size: 13px; opacity: .62; margin: 18px 0 0; }
.hu-cta-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ── 13. 푸터 ────────────────────────────────────────────────────────── */
.hu-footer {
  background: var(--surface-secondary);
  border-top: 1px solid color-mix(in oklch, var(--foreground) 8%, transparent);
  padding: 56px 0 32px;
}
.hu-footer-top {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  padding-bottom: 36px;
}
.hu-footer-col-title { font-size: 13px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 14px; }
.hu-footer-col a {
  display: block; font-size: 13.5px; line-height: 2.05;
  color: var(--muted); text-decoration: none;
}
.hu-footer-col a:hover { color: var(--accent); }
.hu-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid color-mix(in oklch, var(--foreground) 8%, transparent);
}
.hu-footer-legal { font-size: 12.5px; line-height: 1.85; color: var(--muted); }
.hu-footer-legal a { color: inherit; text-decoration: none; }
.hu-footer-legal a:hover { text-decoration: underline; }
.hu-footer-brand { text-align: right; }
.hu-footer-brand img { margin-left: auto; }
.hu-footer-brand strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.hu-footer-brand span { font-size: 12px; color: var(--muted); }

/* ── 14. 스크롤 리빌 ─────────────────────────────────────────────────── */
.hu-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.hu-reveal.is-in { opacity: 1; transform: none; }
.hu-reveal[data-delay="1"] { transition-delay: .08s; }
.hu-reveal[data-delay="2"] { transition-delay: .16s; }
.hu-reveal[data-delay="3"] { transition-delay: .24s; }
.hu-reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .hu-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── 15. 반응형 ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hu-gnb { display: none; }
  .hu-burger { display: flex; }
  .hu-actions .hu-desktop-only { display: none; }
}
@media (min-width: 1025px) {
  .hu-navbar .navbar__menu { display: none !important; }
}
@media (max-width: 900px) {
  /* 카피 + 실제 화면 2단은 좁은 폭에서 세로로 쌓는다 */
  .hu-split, .hu-split--narrow { grid-template-columns: 1fr; }
  .hu-dash-seg { margin-left: 0; }
}
@media (max-width: 760px) {
  .hu-palette { margin-top: 26px; }
  .hu-palette .command__list { max-height: 340px; }
  .hu-cmd-desc { white-space: normal; }
  .hu-dash-foot { flex-direction: column; align-items: stretch; }
  .hu-dash-foot .button { width: 100%; }
  .hu-footer-bottom { flex-direction: column; align-items: flex-start; }
  .hu-footer-brand { text-align: left; }
  .hu-footer-brand img { margin-left: 0; }
}
