/* ============================================================================
   CONDERI OSS UI — 오픈소스 UI 스택 기반 디자인 리뉴얼 레이어 (2026-11-20)
   ----------------------------------------------------------------------------
   원칙
   1. 기존 styles.css 의 구조·클래스·효과(히어로 패럴랙스, d3 3D 카드, hscroll,
      zoomw, reveal/scrub, lens, 파티클)를 건드리지 않는다. 이 파일은 "표면과
      타이포그래피·상태"만 한 단계 끌어올리는 순수 추가(additive) 레이어다.
   2. transform/opacity 를 JS 모션이 제어하는 요소에는 hover 외의 transform 을
      새로 걸지 않는다(효과 보존). 카드 hover 는 이미지·보더·그림자로만 준다.
   3. 색·서체·라운드는 CONDERI 브랜드 토큰을 상속한다(별도 팔레트 없음).
   4. 어느 페이지에서 로드되어도 안전하도록 모든 신규 클래스는 `cu-` 접두사.
   참고한 오픈소스 패턴
   · shadcn/ui  — 토큰(색/반경/그림자)·Card·Badge·Button·Tabs 의 상태 규칙
   · Radix     — focus ring, data-state 기반 상태 표현
   · cmdk      — ⌘K 커맨드 팔레트(검색·그룹·키보드 내비게이션)
   · Sonner    — 토스트(수명·등장/퇴장·스택)
   · Lucide    — 24px 스트로크 아이콘(인라인 SVG)
   · Motion    — 이징·지속시간 스케일
   ========================================================================== */

body {
  /* 반경 스케일 */
  --cu-r-xs: 8px;
  --cu-r-sm: 12px;
  --cu-r-md: 16px;
  --cu-r-lg: 22px;
  --cu-r-xl: 28px;
  --cu-r-2xl: 34px;
  /* 엘리베이션 (shadcn: shadow-sm / md / lg) */
  --cu-sh-xs: 0 1px 2px rgba(9, 20, 42, .06);
  --cu-sh-sm: 0 2px 6px -1px rgba(9, 20, 42, .08), 0 1px 2px rgba(9, 20, 42, .05);
  --cu-sh-md: 0 10px 26px -12px rgba(9, 20, 42, .22), 0 2px 6px -2px rgba(9, 20, 42, .08);
  --cu-sh-lg: 0 26px 60px -28px rgba(9, 20, 42, .34), 0 6px 18px -10px rgba(9, 20, 42, .12);
  --cu-sh-xl: 0 44px 90px -40px rgba(7, 18, 42, .45);
  /* 링 */
  --cu-ring: 0 0 0 1px rgba(17, 17, 17, .08);
  --cu-ring-strong: 0 0 0 1px rgba(17, 17, 17, .16);
  /* 표면 */
  --cu-surface: #ffffff;
  --cu-surface-2: #fbfaf7;
  --cu-surface-3: #f2f0ea;
  --cu-line: rgba(17, 17, 17, .1);
  --cu-line-soft: rgba(17, 17, 17, .06);
  --cu-tint: rgba(16, 42, 86, .045);
  --cu-tint-strong: rgba(16, 42, 86, .09);
  /* 모션 */
  --cu-ease: cubic-bezier(.22, .61, .25, 1);
  --cu-ease-spring: cubic-bezier(.16, 1, .3, 1);
  --cu-t-fast: .16s;
  --cu-t: .28s;
}

html[data-theme=dark] body {
  --cu-sh-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --cu-sh-sm: 0 2px 8px -2px rgba(0, 0, 0, .5);
  --cu-sh-md: 0 12px 30px -14px rgba(0, 0, 0, .65);
  --cu-sh-lg: 0 28px 64px -30px rgba(0, 0, 0, .75);
  --cu-sh-xl: 0 44px 90px -40px rgba(0, 0, 0, .8);
  --cu-ring: 0 0 0 1px rgba(247, 245, 240, .1);
  --cu-ring-strong: 0 0 0 1px rgba(247, 245, 240, .2);
  --cu-surface: #1a1a1a;
  --cu-surface-2: #161616;
  --cu-surface-3: #202020;
  --cu-line: rgba(247, 245, 240, .12);
  --cu-line-soft: rgba(247, 245, 240, .07);
  --cu-tint: rgba(159, 182, 228, .07);
  --cu-tint-strong: rgba(159, 182, 228, .13);
}

/* ── 0. 타이포그래피·바탕 다듬기 ────────────────────────────────────────── */
body {
  background-image:
    radial-gradient(1200px 620px at 82% -12%, rgba(16, 42, 86, .07), transparent 62%),
    radial-gradient(900px 520px at -10% 8%, rgba(45, 85, 224, .045), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
html[data-theme=dark] body {
  background-image:
    radial-gradient(1200px 620px at 82% -12%, rgba(159, 182, 228, .07), transparent 62%),
    radial-gradient(900px 520px at -10% 8%, rgba(45, 85, 224, .06), transparent 60%);
}
body { text-rendering: optimizeLegibility; }

h1, h2 { text-wrap: pretty; }
.lead, .big-copy, .hero-lead, .sh-note, .foot-desc { text-wrap: pretty; }
.fact-n, .fi-v, .cms-date, .mega-num, .label-num, .hs-n, .d3-n, .num, time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
::selection { background: #102a56; color: #f7f5f0; }
html[data-theme=dark] ::selection { background: #9fb6e4; color: #0b1220; }

/* 스크롤바 — 데스크톱에서만, 은은하게 */
@media (hover: hover) and (pointer: fine) {
  html { scrollbar-width: thin; scrollbar-color: rgba(17, 17, 17, .28) transparent; }
  html[data-theme=dark] { scrollbar-color: rgba(247, 245, 240, .26) transparent; }
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: rgba(17, 17, 17, .22);
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover { background: rgba(17, 17, 17, .4); background-clip: content-box; }
  html[data-theme=dark] ::-webkit-scrollbar-thumb { background: rgba(247, 245, 240, .22); background-clip: content-box; }
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── 1. 헤더 ─────────────────────────────────────────────────────────────── */
.site-header { --ht: 16px; }
.bar {
  height: 66px;
  gap: 18px;
  padding: 0 10px 0 20px;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, .62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .78),
    0 1px 0 rgba(17, 17, 17, .04),
    0 10px 34px -18px rgba(9, 20, 42, .28);
  transition: background .4s var(--cu-ease), border-color .4s, box-shadow .4s, height .3s var(--cu-ease);
}
html.on-dark .bar {
  border-color: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 12px 40px -16px rgba(5, 13, 32, .6);
}
body.cu-scrolled .bar {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 2px 0 rgba(17, 17, 17, .03),
    0 18px 44px -22px rgba(9, 20, 42, .34);
}
html[data-theme=dark] .bar {
  border-color: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 12px 40px -20px rgba(0, 0, 0, .7);
}
.brand .logo { width: 122px; height: auto; }

.nav-link {
  position: relative;
  font-size: .875rem;
  letter-spacing: -.012em;
  border-radius: 12px;
  transition: background .22s var(--cu-ease), color .22s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.4);
  transform-origin: 0 50%;
  transition: opacity .25s var(--cu-ease), transform .35s var(--cu-ease-spring);
}
.nav-link:hover::after,
.nav-trigger[aria-expanded=true]::after { opacity: .55; transform: scaleX(1); }
.nav-link:hover, .nav-trigger[aria-expanded=true] {
  background: rgba(127, 127, 127, .1);
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .1);
}
.nav-link[aria-current=page], .nav-link.is-current {
  text-decoration: none;
  background: rgba(127, 127, 127, .12);
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .14);
}
.nav-link[aria-current=page]::after, .nav-link.is-current::after { opacity: .8; transform: scaleX(1); }

.tool {
  border-radius: 11px;
  transition: background .2s, color .2s, box-shadow .2s;
}
.tool:hover { background: rgba(127, 127, 127, .13); box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .12); }

.nav-cta {
  position: relative;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: -.015em;
  background: linear-gradient(180deg, #16294d 0%, #0b1a33 100%);
  color: #f7f5f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 8px 20px -12px rgba(9, 20, 42, .8);
  transition: transform .22s var(--cu-ease-spring), box-shadow .22s, filter .22s;
  margin-left: 4px;
}
.nav-cta:hover { opacity: 1; filter: brightness(1.12); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 12px 26px -12px rgba(9, 20, 42, .9); }
.nav-cta:active { transform: translateY(0); }
html.on-dark .nav-cta { background: #f7f5f0; color: #0b1a33; box-shadow: inset 0 1px 0 #fff, 0 10px 26px -14px rgba(5, 13, 32, .8); }

/* 커맨드 팔레트 트리거 (cmdk) */
.cu-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 8px 0 10px;
  margin-right: 2px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  color: var(--muted);
  transition: border-color .2s, color .2s, background .2s;
}
html.on-dark .cu-search { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: rgba(247, 245, 240, .8); }
.cu-search:hover { color: var(--ink); border-color: var(--line-strong); background: color-mix(in srgb, var(--paper) 80%, transparent); }
html.on-dark .cu-search:hover { color: #fff; }
.cu-search svg { width: 16px; height: 16px; flex: none; }
.cu-search kbd {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(127, 127, 127, .06);
}
html.on-dark .cu-search kbd { border-color: rgba(255, 255, 255, .18); color: rgba(247, 245, 240, .75); }

/* 메가 패널 */
.mega {
  border-radius: 24px;
  padding: 14px;
  gap: 14px;
  border-color: rgba(255, 255, 255, .6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .8),
    0 1px 0 rgba(17, 17, 17, .04),
    0 34px 80px -40px rgba(9, 20, 42, .4);
}
.mega { background: color-mix(in srgb, var(--paper) 98%, transparent); }
html.on-dark .mega { border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 34px 80px -36px rgba(5, 13, 32, .8); }
.mega-grid { gap: 2px; }
.mega-item {
  border-radius: 14px;
  padding: 14px 16px;
  transition: background .22s var(--cu-ease), box-shadow .22s, transform .28s var(--cu-ease-spring);
}
.mega-item:hover {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 20px -16px rgba(9, 20, 42, .4);
  transform: translateX(2px);
}
html.on-dark .mega-item:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.mega-num {
  font-size: .66rem;
  padding-top: 5px;
  letter-spacing: .06em;
  opacity: .8;
}
.mega-text strong { letter-spacing: -.02em; }
.mega-text small { margin-top: 1px; }
.mega-all { border-top-color: var(--cu-line); }
.mega-aside { border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.mega-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 18, 42, 0) 30%, rgba(7, 18, 42, .55) 100%);
  pointer-events: none;
}
.mega-aside p { background: rgba(12, 24, 48, .55); z-index: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }

/* 모바일 메뉴 */
.m-item.cu-search-m .m-link{width:100%;justify-content:flex-start;gap:9px;min-height:58px;font-size:1rem;letter-spacing:-.01em;color:var(--muted);background:none;border:0;cursor:pointer}
.m-item.cu-search-m .m-link:hover{color:var(--ink)}
.m-item.cu-search-m .m-link svg{width:17px;height:17px;flex:none;opacity:.65}
.mobile-menu { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.m-link, .m-group summary { letter-spacing: -.045em; }
.m-group li a { position: relative; padding-left: 14px; }
.m-group li a::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 1px; background: currentColor; opacity: .45; }

/* ── 2. 버튼·링크·라벨 ───────────────────────────────────────────────────── */
.button {
  min-height: 50px;
  padding: 0 20px 0 24px;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: -.015em;
  transition: background .25s var(--cu-ease), color .25s, border-color .25s, transform .25s var(--cu-ease-spring), box-shadow .25s;
}
.button .ico { width: 16px; height: 16px; }
.button.primary {
  background: linear-gradient(180deg, #16294d 0%, #0b1a33 100%);
  color: #f7f5f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 24px -16px rgba(9, 20, 42, .9);
}
.button.primary:hover {
  background: linear-gradient(180deg, #1e355f 0%, #102340 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 16px 30px -18px rgba(9, 20, 42, .95);
}
.button.ghost, .button.secondary {
  border-color: var(--cu-line);
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  box-shadow: var(--cu-sh-xs);
}
.button.ghost:hover, .button.secondary:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--cu-sh-md);
}
.button:active { transform: translateY(0) scale(.995); }

.copy-button, .chip, .pill { border-radius: 10px; }

.text-link { font-weight: 600; }
.label {
  font-size: .7rem;
  letter-spacing: .1em;
  gap: 10px;
  margin-bottom: 24px;
}
.label-num {
  font-weight: 500;
  letter-spacing: .08em;
  opacity: .9;
}
.label-num::after { opacity: .45; width: 18px; }

/* ── 3. 페이지 헤드·브레드크럼·서브내비 ──────────────────────────────────── */
.crumbs {
  gap: 6px;
  align-items: center;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.crumbs a {
  padding: 4px 9px;
  border: 1px solid var(--cu-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  transition: border-color .2s, color .2s;
  color: var(--muted);
}
.crumbs a:hover { color: var(--ink); border-color: var(--line-strong); }
.head-foot { border-top-color: var(--cu-line); }
.lead { letter-spacing: -.01em; }

.subnav { background: color-mix(in srgb, var(--paper) 55%, transparent); }
.subnav a { letter-spacing: -.015em; }
.subnav a[aria-current], .subnav a.is-current { font-weight: 600; }
.subnav a::after { height: 2px; border-radius: 2px; }

/* ── 4. 섹션 리듬 ────────────────────────────────────────────────────────── */
.section { border-top-color: var(--cu-line); }
.section > .shell > .split:first-child { padding-top: 2px; }
.display { letter-spacing: -.045em; }
.big-copy { letter-spacing: -.03em; }

.facts {
  border-top: 1px solid var(--cu-line);
  border-bottom: 1px solid var(--cu-line);
}
.fact { position: relative; padding: 22px 0 20px; }
.fact-n { letter-spacing: -.04em; }
.fact-k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width .6s var(--cu-ease-spring);
}
.fact:hover::before { width: 100%; }

.row {
  transition: background .25s var(--cu-ease);
  border-radius: 2px;
}
.row:hover { background: var(--cu-tint); }
.row-meta { font-size: .7rem; letter-spacing: .06em; }

.ticks li { transition: padding-left .28s var(--cu-ease); }
.ticks li:hover { padding-left: 40px; }
.ticks li::before { width: 14px; background: var(--ink); opacity: .8; }

.glass-card { border-radius: var(--cu-r-lg); }

/* ── 5. 카드 표면 ────────────────────────────────────────────────────────── */
.res-tile {
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 18px 40px -30px rgba(5, 13, 32, .6);
  transition: transform .5s var(--cu-ease-out), box-shadow .5s var(--cu-ease-out), border-color .3s;
}
.res-tile:hover {
  border-color: rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 32px 60px -34px rgba(5, 13, 32, .75);
}

.brand-cell { transition: background .35s var(--cu-ease), box-shadow .35s; }
.brand-cell:hover { background: var(--cu-tint); box-shadow: inset 0 2px 0 0 var(--ink); }

.hub-card a { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.hub-card a:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), var(--cu-sh-lg); }
.hub-chip { border-radius: 8px; }

.hs-card {
  border: 1px solid rgba(247, 245, 240, .1);
  box-shadow: 0 28px 56px -34px rgba(5, 13, 32, .7), inset 0 1px 0 rgba(255, 255, 255, .09);
}
.hs-card:hover { border-color: rgba(247, 245, 240, .24); }

.d3-card { border-color: rgba(255, 255, 255, .1); }
.d3-pic img { transition: transform 1.1s var(--cu-ease-out), opacity .4s; }
.d3-card:hover .d3-pic img { transform: scale(1.035); }
.d3-go { transition: gap .3s var(--cu-ease-spring); }
.d3-card:hover .d3-go { gap: 14px; }

.cms-post { transition: background .3s var(--cu-ease); }
.cms-post:hover { background: var(--cu-tint); }
.cms-image { border-radius: var(--cu-r-md); overflow: hidden; }
.cms-image img { transition: transform .9s var(--cu-ease-out); }
.cms-post:hover .cms-image img { transform: scale(1.04); }
.cms-date { font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; opacity: .8; }
.cms-arrow { transition: background .25s, color .25s, transform .35s var(--cu-ease-spring); }
.cms-post:hover .cms-arrow { transform: translate(2px, -2px); }

.hub-card, .res-tile, .case-t { letter-spacing: -.03em; }

/* 경량 카드 공통 (서브페이지·인사이트에서 새로 쓰는 경우) */
.cu-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--cu-line);
  border-radius: var(--cu-r-lg);
  background: var(--cu-surface);
  box-shadow: var(--cu-sh-sm);
  transition: transform .3s var(--cu-ease-spring), box-shadow .3s, border-color .3s;
}
.cu-card:hover { transform: translateY(-3px); box-shadow: var(--cu-sh-md); border-color: var(--cu-ring-strong); }
.cu-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--cu-tint);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── 6. 클로징·푸터 ──────────────────────────────────────────────────────── */
.closing {
  position: relative;
  background-image:
    radial-gradient(900px 400px at 12% 110%, rgba(159, 182, 228, .18), transparent 65%),
    radial-gradient(700px 380px at 92% -20%, rgba(159, 182, 228, .14), transparent 60%);
  background-repeat: no-repeat;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(70% 80% at 50% 40%, #000 20%, transparent 78%);
  pointer-events: none;
  opacity: .7;
}
.closing > * { position: relative; }

.site-footer {
  position: relative;
  background-image:
    radial-gradient(1000px 460px at 88% 0%, rgba(159, 182, 228, .1), transparent 62%),
    linear-gradient(180deg, #0a1c3d 0%, #081428 100%);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(159, 182, 228, .55), transparent);
}
.foot-h {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 10px;
}
.foot-col li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: rgba(247, 245, 240, .78);
  transition: color .2s var(--cu-ease), transform .28s var(--cu-ease-spring);
}
.foot-col li a:hover { color: #fff; transform: translateX(3px); }
.foot-logo span { letter-spacing: .12em; }
.foot-desc { color: rgba(247, 245, 240, .64); }
.foot-cta {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  border-radius: 12px;
  transition: background .25s, border-color .25s, transform .25s var(--cu-ease-spring);
}
.foot-cta:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .38); transform: translateY(-1px); }
.foot-info { border-top: 1px solid rgba(255, 255, 255, .1); }
.fi-list li { border-color: rgba(255, 255, 255, .07); }
.fi-k { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(247, 245, 240, .54); }
.fi-v { color: rgba(247, 245, 240, .86); }
.fi-v a { text-decoration-color: rgba(247, 245, 240, .3); text-underline-offset: 3px; }
.fi-v a:hover { color: #fff; text-decoration-color: currentColor; }

.foot-util a, .foot-legal a { transition: color .2s; }
.foot-bottom { border-top-color: rgba(255, 255, 255, .1); }
.to-top {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
  transition: background .25s, border-color .25s, transform .25s var(--cu-ease-spring);
}
.to-top:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); transform: translateY(-3px); }

/* 푸터 연락처 복사 버튼 (JS 주입) */
.cu-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  background: rgba(255, 255, 255, .04);
  color: rgba(247, 245, 240, .7);
  vertical-align: middle;
  transition: color .2s, border-color .2s, background .2s;
}
.cu-copy:hover { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); }
.cu-copy svg { width: 13px; height: 13px; }
.cu-copy.is-done { color: #7de2b0; border-color: rgba(125, 226, 176, .5); }

/* 클립보드 폴백용 숨김 텍스트영역 (인라인 스타일 없이) */
.cu-hp { position: fixed; top: -1000px; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ── 7. 커맨드 팔레트 (cmdk 패턴) ────────────────────────────────────────── */
dialog.cu-cmd {
  width: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
dialog.cu-cmd::backdrop {
  background: rgba(8, 14, 28, .48);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.cu-cmd__box {
  width: min(600px, calc(100vw - 28px));
  margin: 9vh auto 0;
  border: 1px solid var(--cu-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--cu-surface);
  box-shadow: 0 40px 100px -30px rgba(5, 13, 32, .5), 0 2px 0 rgba(255, 255, 255, .6) inset;
  animation: cu-cmd-in .22s var(--cu-ease-spring);
}
@keyframes cu-cmd-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }
.cu-cmd__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--cu-line);
  color: var(--muted);
}
.cu-cmd__search svg { width: 17px; height: 17px; flex: none; }
.cu-cmd__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.cu-cmd__search input::placeholder { color: var(--muted); }
.cu-cmd__search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.cu-cmd__esc {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border: 1px solid var(--cu-line);
  border-radius: 5px;
  color: var(--muted);
}
.cu-cmd__list {
  max-height: min(54vh, 420px);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
}
.cu-cmd__group {
  padding: 10px 12px 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cu-cmd__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  scroll-margin: 40px;
}
.cu-cmd__item > svg { width: 16px; height: 16px; flex: none; opacity: .55; }
.cu-cmd__t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cu-cmd__item[aria-selected=true] { background: var(--cu-tint-strong); }
.cu-cmd__item[aria-selected=true] > svg { opacity: 1; color: var(--focus); }
.cu-cmd__meta { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.cu-cmd__empty { padding: 30px 16px; font-size: 14px; text-align: center; color: var(--muted); }
.cu-cmd__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 11px 14px;
  border-top: 1px solid var(--cu-line);
  font-size: 11.5px;
  color: var(--muted);
}
.cu-cmd__foot span { display: inline-flex; align-items: center; gap: 5px; }
.cu-cmd__foot kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid var(--cu-line);
  border-bottom-width: 2px;
  border-radius: 5px;
}

/* ── 8. 토스트 (Sonner 패턴) ─────────────────────────────────────────────── */
.cu-toaster {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 260;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}
.cu-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--cu-line);
  border-radius: 14px;
  background: var(--cu-surface);
  color: var(--ink);
  box-shadow: var(--cu-sh-lg);
  font-size: .85rem;
  line-height: 1.5;
  pointer-events: auto;
  animation: cu-toast-in .24s var(--cu-ease-spring);
}
.cu-toast[data-state=closing] { animation: cu-toast-out .18s ease forwards; }
.cu-toast svg { width: 17px; height: 17px; flex: none; color: #1f6b4a; margin-top: 1px; }
html[data-theme=dark] .cu-toast svg { color: #7de2b0; }
.cu-toast strong { display: block; font-weight: 600; }
.cu-toast em { font-style: normal; color: var(--muted); }
@keyframes cu-toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cu-toast-out { to { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ── 9. 반응형 보정 ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cu-search kbd { display: none; }
  .cu-search { padding: 0 9px; }
}
@media (max-width: 900px) {
  .bar { height: 60px; padding: 0 8px 0 16px; border-radius: 16px; gap: 10px; }
  .brand .logo { width: 108px; }
  .cu-search { height: 38px; }
  .nav-cta { height: 38px; padding: 0 14px; border-radius: 10px; font-size: .82rem; }
  .label::after { display: none; }
  .foot-h { padding-bottom: 8px; }
}
@media (max-width: 560px) {
  .cu-toaster { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .cu-cmd__box { margin-top: 5vh; border-radius: 16px; }
  .cu-cmd__list { max-height: 62vh; }
  .cu-cmd__meta { display: none; }
  .mega-item:hover { transform: none; }
  .crumbs a { padding: 3px 8px; }
}

@media (max-width: 350px) {
  /* 320px 급 화면: 헤더가 넘치지 않도록 검색 버튼은 모바일 메뉴 안의 항목으로만 남긴다 */
  .cu-search { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cu-toast, .cu-toast[data-state=closing], .cu-cmd__box { animation: none; }
  .mega-item, .cu-card, .button, .nav-cta, .foot-col li a { transition: none; }
  .d3-card:hover .d3-pic img, .cms-post:hover .cms-image img { transform: none; }
}

/* ── 10. 라이트 테마 보정 (푸터는 라이트에서 크림색 지면이다) ───────────── */
html[data-theme=light] .site-footer {
  background-image:
    radial-gradient(900px 420px at 88% 0%, rgba(16, 42, 86, .06), transparent 62%),
    linear-gradient(180deg, #f6f3ec 0%, #efece5 100%);
}
html[data-theme=light] .site-footer::before {
  background: linear-gradient(90deg, transparent, rgba(13, 27, 51, .22), transparent);
}
html[data-theme=light] .foot-h { border-bottom-color: rgba(13, 27, 51, .12); }
html[data-theme=light] .foot-info { border-top-color: rgba(13, 27, 51, .12); }
html[data-theme=light] .fi-list li { border-color: rgba(13, 27, 51, .08); }
html[data-theme=light] .foot-col li a:hover { color: #0a1c3d; }
html[data-theme=light] .foot-cta { background: rgba(13, 27, 51, .04); border-color: rgba(13, 27, 51, .2); }
html[data-theme=light] .foot-cta:hover { background: #0a1c3d; border-color: #0a1c3d; color: #f7f5f0; }
html[data-theme=light] .to-top { background: rgba(13, 27, 51, .04); border-color: rgba(13, 27, 51, .2); }
html[data-theme=light] .to-top:hover { background: #0a1c3d; color: #f7f5f0; }
html[data-theme=light] .cu-copy { border-color: rgba(13, 27, 51, .18); background: rgba(13, 27, 51, .03); color: #3d4964; }
html[data-theme=light] .cu-copy:hover { color: #0a1c3d; border-color: rgba(13, 27, 51, .4); background: rgba(13, 27, 51, .07); }
html[data-theme=light] .cu-copy.is-done { color: #1f6b4a; border-color: rgba(31, 107, 74, .5); }
html[data-theme=light] .closing::before {
  background-image: linear-gradient(rgba(13, 27, 51, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 27, 51, .07) 1px, transparent 1px);
}
html[data-theme=light] .cu-search { background: rgba(255, 255, 255, .5); }

/* ── 11. 아티클(인사이트·연구) 읽기 타이포그래피 ─────────────────────────── */
.cms-detail > p,
.cms-detail .article-body > p {
  font-size: 1.02rem;
  line-height: 1.88;
  max-width: 68ch;
  color: var(--ink-2);
}
.cms-detail > p + p { margin-top: 1.15em; }
.cms-detail strong { color: var(--ink); font-weight: 600; }
.cms-detail ul, .cms-detail ol { padding-left: 1.1em; }
.cms-detail li { margin: .4em 0; line-height: 1.8; }
.cms-detail li::marker { color: var(--muted); }
.cms-detail blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--ink);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.6;
}
.cms-detail figure { margin: 1.8em 0; }
.cms-detail figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .03em;
  color: var(--muted);
}
.cms-detail h2 {
  margin: 1.9em 0 .7em;
  padding-top: .8em;
  border-top: 1px solid var(--cu-line);
}
.cms-detail a:not(.button):not(.text-link) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color .2s;
}
.cms-detail a:not(.button):not(.text-link):hover { text-decoration-color: currentColor; }
