/**
 * ==============================================================================
 * InfraLink (인프라링크) - 마켓플레이스 메인 디자인 시스템 (13000 컨셉 반영)
 * 파일명: marketplace.css
 * 
 * [13000 포트 디자인 컨셉 핵심 반영]
 * 1. 듀얼 테마 지원 (Modern Dark & Crisp Executive Light)
 * 2. 앰비언트 배경 글로우 광원 효과 (.bg-glow-1, .bg-glow-2)
 * 3. 2단 정교한 헤더 구조 (.header-top-bar, .header-nav-bar)
 * 4. 웅장한 히어로 섹션 (.hero-pill with pulse-dot, .text-gradient, .hero-action-box)
 * 5. 엔터프라이즈 안심 스트립 (.enterprise-trust-strip) & 4대 실시간 지표 (.hero-stats-grid)
 * 6. 6대 전문 카테고리 탭 & 프리미엄 서비스 카드 그리드
 * ==============================================================================
 */

/* --------------------------------------------------------------------------
   1. 듀얼 테마 CSS 변수 (다크 테마 기본 + 라이트 테마 완벽 지원)
   -------------------------------------------------------------------------- */
:root, [data-theme="dark"] {
  --bg-main: var(--bg-primary, #0b102b);
  --bg-surface: var(--bg-secondary, #101744);
  --bg-card: var(--bg-card, rgba(16, 23, 68, 0.85));
  --bg-card-hover: var(--bg-card-hover, rgba(23, 31, 105, 0.95));
  --bg-input: var(--bg-input, #131c50);
  --header-bg: var(--header-bg, rgba(11, 16, 43, 0.92));
  --header-nav-bg: var(--header-nav-bg, rgba(16, 23, 68, 0.95));
  --border-color: var(--border-color, rgba(255, 255, 255, 0.1));
  --border-hover: var(--infralink-turquoise, #3cc2d2);
  --text-main: var(--text-main, #f8fafc);
  --text-muted: var(--text-muted, #94a3b8);
  --text-dim: var(--text-dim, #64748b);
  --primary: var(--infralink-turquoise, #3cc2d2);
  --primary-hover: var(--infralink-navy, #171f69);
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --glow-1: radial-gradient(circle, rgba(60, 194, 210, 0.18) 0%, transparent 70%);
  --glow-2: radial-gradient(circle, rgba(23, 31, 105, 0.25) 0%, transparent 70%);
}

[data-theme="light"] {
  --bg-main: var(--bg-primary, #f5f8fc);
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;
  --header-bg: var(--header-bg, rgba(255, 255, 255, 0.95));
  --header-nav-bg: var(--header-nav-bg, rgba(248, 250, 252, 0.98));
  --border-color: var(--border-color, #e2e8f0);
  --border-hover: var(--infralink-turquoise, #0098a6);
  --text-main: var(--text-main, #0b102b);
  --text-muted: var(--text-muted, #475569);
  --text-dim: var(--text-dim, #64748b);
  --primary: var(--infralink-turquoise, #0098a6);
  --primary-hover: #007d8a;
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --glow-1: radial-gradient(circle, rgba(60, 194, 210, 0.2) 0%, transparent 70%);
  --glow-2: radial-gradient(circle, rgba(219, 234, 254, 0.6) 0%, transparent 70%);
}

/* ==============================================================================
 * [엔터프라이즈 디자인 모드] 박스 레이아웃 모서리 곡률 (Border Radius) 토큰
 * - 엔터프라이즈 모던 라운드 (Sweet Spot: 6px ~ 8px / 10px) 적용
 * - B2B IT 인프라 기업에 맞는 단정하면서도 유려한 엔터프라이즈 비주얼 구현
 * - 원상복구(기존 둥근 모드) 또는 완전 직각(0px) 모드로 언제든 1초 만에 전환 가능
 * ============================================================================== */
:root {
  /* [현재 적용: 엔터프라이즈 모던 라운드 - Linear/Stripe/AWS B2B 표준] */
  --radius-xs: 4px;   /* 소형 뱃지, 태그 칩 */
  --radius-sm: 6px;   /* 버튼, 인풋, 셀렉트, 카테고리 칩 */
  --radius-md: 8px;   /* 카드, 패널, 검색 박스, 지표 박스 */
  --radius-lg: 10px;  /* 대형 배너, 모달 다이얼로그 */
  --radius-pill: 6px; /* 상단 배지 */

  /* [원상복구(기존 둥글둥글 모드) 설정 백업 - 원복 필요 시 아래 활성화]
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-pill: 30px;
  */

  /* [완전 직각(0px) 모드 - 필요 시 활성화]
  --radius-xs: 0px;
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-pill: 0px;
  */
}

/* --------------------------------------------------------------------------
   2. 전역 리셋 & 앰비언트 광원
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.market-body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.bg-glow-1 {
  position: absolute;
  top: 0;
  left: 15%;
  width: 700px;
  height: 500px;
  background: var(--glow-1);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-2 {
  position: absolute;
  top: 250px;
  right: 10%;
  width: 650px;
  height: 450px;
  background: var(--glow-2);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   3. 상단 헤더 (.site-header) - styles.css & site-nav.js 공통 시스템 상속
   -------------------------------------------------------------------------- */
/* 헤더의 모든 마크업과 스타일은 site-nav.js 및 styles.css, premium-ui.css에서 일관되게 제어됩니다. */

/* --------------------------------------------------------------------------
   4. 13000 컨셉 웅장한 히어로 섹션 (.hero-section) - 시원하고 여유로운 여백
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  z-index: 1;
  padding: 56px 0 40px; /* 답답함 해소를 위해 시원하게 상하 여백 확보 */
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 18px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.hero-title {
  font-size: 2.45rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 50%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

/* 통합 검색 바 위젯 (.hero-action-box) */
.hero-action-box {
  max-width: 880px;
  margin: 0 auto 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.hero-select {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 0.90rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.hero-input-wrap {
  flex: 1;
  position: relative;
}

.hero-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 0.94rem;
  outline: none;
}

.hero-input:focus {
  border-color: var(--primary);
}

.hero-search-btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.94rem;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.hero-search-btn:hover {
  background: var(--primary-hover);
}

.hero-ai-btn {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #fff;
  text-decoration: none;
  font-size: 0.90rem;
  font-weight: 750;
  white-space: nowrap;
}

/* 엔터프라이즈 신뢰 스트립 */
.enterprise-trust-strip {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm, 6px) !important;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.trust-item span {
  color: #10b981;
  font-weight: 900;
}

/* 4대 실시간 지표 카드 그리드 */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-num {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 6px;
}

.stat-num span {
  font-size: 0.90rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 3px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. 전문 카테고리 탭 (.category-nav)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   5. 전문 카테고리 탭 (.category-nav) - 7개 칩 전체 노출 & 자동 줄바꿈 무결성 보장
   -------------------------------------------------------------------------- */
.category-section {
  padding: 24px 0 16px;
  position: relative;
  z-index: 1;
}

.category-nav {
  display: flex;
  flex-wrap: wrap; /* 어떤 해상도에서도 칩이 화면 밖으로 잘리거나 가려지지 않도록 줄바꿈 보장 */
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
}

.cat-chip {
  padding: 8px 14px;
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cat-chip:hover {
  border-color: #7c3aed;
  color: var(--text-main);
  background: rgba(124, 58, 237, 0.06);
}

.cat-chip.active {
  background: #7c3aed !important;
  color: #ffffff !important;
  border-color: #7c3aed !important;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3) !important;
}

/* 카테고리 칩 내 실시간 등록 건수 뱃지 */
.cat-chip .cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-left: 2px;
  transition: all 0.2s ease;
}

.cat-chip:hover .cat-count {
  border-color: rgba(124, 58, 237, 0.4);
  color: var(--text-main);
}

/* 활성 칩 내 뱃지: 어떤 테마에서도 흰색 고대비로 선명하게 표시 */
.cat-chip.active .cat-count {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* 라이트 모드 카테고리 칩 및 뱃지 고대비 보정 */
[data-theme="light"] .cat-chip {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .cat-chip:hover {
  background: #f8fafc !important;
  border-color: #7c3aed !important;
  color: #7c3aed !important;
}

[data-theme="light"] .cat-chip.active {
  background: #7c3aed !important;
  color: #ffffff !important;
  border-color: #7c3aed !important;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.28) !important;
}

[data-theme="light"] .cat-chip .cat-count {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

[data-theme="light"] .cat-chip.active .cat-count {
  background: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* --------------------------------------------------------------------------
   서비스 카드 엔터프라이즈 안심 보증 뱃지 바 (Task 2)
   -------------------------------------------------------------------------- */
.card-guarantee-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 10px 0 12px;
  padding: 6px 10px;
  background: rgba(60, 194, 210, 0.05);
  border: 1px solid rgba(60, 194, 210, 0.18);
  border-radius: var(--radius-xs, 4px);
}

.card-guarantee-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--infralink-turquoise, #3cc2d2);
  letter-spacing: -0.02em;
}

.card-guarantee-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .card-guarantee-bar {
  background: rgba(14, 165, 233, 0.06);
  border-color: rgba(14, 165, 233, 0.22);
}

[data-theme="light"] .card-guarantee-item {
  color: #0369a1;
}

[data-theme="light"] .card-guarantee-dot {
  background: rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   IT 인프라 간편 견적 시뮬레이터 위젯 (Task 3)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   IT 인프라 간편 견적 시뮬레이터 레이어 팝업 모달 & 트리거 배너
   -------------------------------------------------------------------------- */
/* 메인 화면용 컴팩트 트리거 배너 */
.calc-trigger-section {
  padding: 10px 0 20px;
  position: relative;
  z-index: 2;
}

.calc-trigger-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(37, 99, 235, 0.04) 100%);
  border: 1.5px solid rgba(124, 58, 237, 0.25);
  border-radius: var(--radius-md, 12px);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.calc-trigger-banner:hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.15);
}

[data-theme="light"] .calc-trigger-banner {
  background: linear-gradient(135deg, #fbf7ff 0%, #f1f5f9 100%);
  border-color: rgba(124, 58, 237, 0.3);
}

.calc-trigger-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.calc-trigger-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.calc-trigger-left strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 850;
  color: var(--text-main);
  margin-bottom: 2px;
}

.calc-trigger-left span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-open-calc {
  background: #7c3aed;
  color: #ffffff;
  border: 1px solid #7c3aed;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-open-calc:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.5);
}

/* ==========================================================================
   레이어 팝업 모달 본체 (#infra-calc-modal)
   ========================================================================== */
.infra-calc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(11, 16, 43, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.infra-calc-modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.infra-calc-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(124, 58, 237, 0.4);
  border-radius: var(--radius-md, 14px);
  padding: 26px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.infra-calc-modal-backdrop.open .infra-calc-card {
  transform: scale(1) translateY(0);
}

.calc-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.calc-modal-close:hover {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
}

.calc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-right: 36px;
}

.calc-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

[data-theme="dark"] .calc-badge {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.4);
}

.calc-header-title h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.calc-header-title p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.calc-trust-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.calc-body-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 820px) {
  .calc-body-grid {
    grid-template-columns: 1fr;
  }
}

.calc-form-group {
  margin-bottom: 16px;
}

.calc-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.calc-pill-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.calc-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.calc-pill:hover {
  border-color: #7c3aed;
  color: var(--text-main);
}

.calc-pill.active {
  background: rgba(124, 58, 237, 0.1);
  border-color: #7c3aed;
  color: #7c3aed;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

[data-theme="dark"] .calc-pill.active {
  background: rgba(124, 58, 237, 0.2);
  border-color: #8b5cf6;
  color: #c4b5fd;
}

.calc-form-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

@media (max-width: 600px) {
  .calc-pill-group {
    grid-template-columns: 1fr;
  }
  .calc-form-row {
    flex-direction: column;
    align-items: stretch;
  }
}

.calc-range-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 6px;
}

.calc-slider {
  flex: 1;
  accent-color: #7c3aed;
  cursor: pointer;
}

.calc-range-value {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--text-main);
  min-width: 65px;
  text-align: right;
}

.calc-select {
  width: 100%;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

/* 견적 결과 박스 */
.calc-result-box {
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0.03) 100%);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.calc-result-top {
  margin-bottom: 10px;
}

.calc-result-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.calc-result-manpower {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
}

.calc-price-area {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 10px 0;
}

.calc-currency {
  font-size: 1.2rem;
  font-weight: 900;
  color: #7c3aed;
}

[data-theme="dark"] .calc-currency {
  color: #c4b5fd;
}

.calc-price-value {
  font-size: 2.05rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
  letter-spacing: -0.02em;
}

.calc-vat-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.calc-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0 16px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 6px;
}

[data-theme="light"] .calc-benefits-list {
  background: rgba(255, 255, 255, 0.65);
}

.benefit-item {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* 진한 민트 ➔ 로열 퍼플(#7c3aed)로 전면 교체된 신청 버튼 */
.btn-calc-apply {
  background: #7c3aed;
  color: #ffffff;
  border: 1px solid #7c3aed;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-calc-apply:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

/* --------------------------------------------------------------------------
   6. 서비스 카드 그리드 (시원시원하고 쾌적한 갤러리 구조)
   -------------------------------------------------------------------------- */
.market-grid-section {
  padding: 28px 0 60px;
  position: relative;
  z-index: 1;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 1.45rem;
  font-weight: 850;
  color: var(--text-main);
}

.section-head p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.sort-select {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 600;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px; /* 카드 간격 14px -> 22px로 시원하게 분리 */
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 22px; /* 카드 내부 패딩 14px -> 20px/22px로 여유 확보 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus, #3b82f6);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  background: var(--bg-card-hover);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.card-cat-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}

.card-rating {
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 8px;
}

.card-summary {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-partner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  margin-bottom: 12px;
}

.partner-avatar {
  font-size: 18px;
}

.partner-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price-box {
  display: flex;
  flex-direction: column;
}

.card-price-box small {
  font-size: 11px;
  color: var(--text-dim);
}

.card-price-box strong {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary);
}

.card-action-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(59, 130, 246, 0.25);
  transition: all 0.2s;
}

.service-card:hover .card-action-btn {
  background: var(--primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   7. AI 맞춤 견적 CTA 배너 (13000 컨셉)
   -------------------------------------------------------------------------- */
.ai-cta-section {
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.ai-cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
}

.ai-cta-box h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 6px;
}

.ai-cta-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.ai-cta-btn {
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #6366f1, #2563eb);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* --------------------------------------------------------------------------
   8. 푸터 (.site-footer) - 다크/라이트 테마 완벽 동기화
   -------------------------------------------------------------------------- */
.site-footer,
.infralink-global-footer {
  /* [디자인 통일성 개선] 기본(다크) 모드에서 Cosmic Deep Navy 적용 */
  border-top: 1.5px solid rgba(60, 194, 210, 0.3) !important;
  background: linear-gradient(180deg, #0b102b 0%, #060918 100%) !important;
  color: #94a9c9 !important;
  padding: 32px 0 20px !important;
  margin-top: 28px !important;
  position: relative !important;
  z-index: 10 !important;
}

[data-theme="light"] .site-footer,
[data-theme="light"] .infralink-global-footer {
  border-top: 3px solid #3cc2d2 !important;
  background: linear-gradient(180deg, #f0f7fd 0%, #e1effa 100%) !important;
  color: #0b2545 !important;
}


@media (max-width: 900px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-action-box {
    flex-direction: column;
  }
  .hero-action-box > * {
    width: 100%;
  }
  .ai-cta-box {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}
