/**
 * @file style.css
 * @description 예리고티스(Yerigotes) 메인 클린 라이트(화이트) 디자인 시스템
 * - 기본 텍스트는 최고 가독성의 또렷하고 선명한 Pretendard 통일
 * - 타이틀/헤딩 포인트에 한해 선명한 프리미엄 명조(Noto Serif KR 700/800) 포인트 적용
 * - 안티앨리어싱 최적화 (-webkit-font-smoothing)
 */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@600;700;800&family=Outfit:wght@600;700;800&display=swap');

:root {
  /* 라이트 테마 배경 컬러 */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-card-subtle: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.9);

  /* 테두리 & 디바이더 */
  --border-glass: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-glow: rgba(37, 99, 235, 0.3);

  /* 악센트 컬러 (신뢰감 넘치는 로열 블루 & 비비드 포인트) */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.2);

  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  --accent-purple: #7c3aed;

  /* 텍스트 컬러 (선명한 짙은 차콜 & 딥 네이비) */
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  /* 깊이감과 입체감을 극대화한 프리미엄 소프트 섀도우 시스템 */
  --shadow-sm: 0 4px 14px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px -4px rgba(15, 23, 42, 0.10), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 22px 45px -6px rgba(15, 23, 42, 0.14), 0 10px 20px -4px rgba(37, 99, 235, 0.12);
  --shadow-card: 0 10px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 24px 48px -8px rgba(15, 23, 42, 0.15), 0 12px 24px -4px rgba(37, 99, 235, 0.16);
  --shadow-glow: 0 0 28px rgba(37, 99, 235, 0.22);

  /* 폰트: 웬만한 텍스트는 선명한 Pretendard 기본 */
  --font-default: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', sans-serif;
  --font-serif-title: 'Noto Serif KR', 'Pretendard', serif;
  --font-tech-title: 'Outfit', 'Pretendard', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   글로벌 폰트 렌더링 최적화 (굴림 완전 차단 & Pretendard 강제)
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  /* 자바스크립트 키네틱 이징 엔진(requestAnimationFrame)의 정밀 프레임 제어를 위해 auto 설정 */
  scroll-behavior: auto !important;
  scroll-padding-top: 86px;
  font-size: 16px;
  font-family: var(--font-default);
}

body {
  font-family: var(--font-default) !important;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 5%, rgba(37, 99, 235, 0.035) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(2, 132, 199, 0.035) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(124, 58, 237, 0.025) 0%, transparent 50%);
  background-attachment: fixed;
}

/* 폼 요소 및 버튼, 테이블 전역 Pretendard 강제 적용 */
button, input, select, textarea, optgroup, option, label, table, th, td, a, span, p, h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-default);
}

/* 타이틀 특화 명조 포인트 클래스 (선명한 Noto Serif KR) */
.font-serif-title {
  font-family: var(--font-serif-title) !important;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.font-tech-title {
  font-family: var(--font-tech-title) !important;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* 스크롤바 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   네비게이션 헤더
   ========================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  /* 상단 탑메뉴 아래 경계선에 은은하고 입체감 넘치는 프리미엄 섀도우 효과 */
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-symbol-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 오픈형 심볼 마크 자체에 부드러운 기술적 광채 섀도우 부여 */
  filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.25));
  transition: transform 0.25s ease;
}

.brand-logo:hover .logo-symbol-wrap {
  transform: translateY(-1px) scale(1.04);
}

.logo-symbol-svg {
  display: block;
}

/* 브랜드 타이틀 & 서브텍스트 컨테이너 (정밀 너비 고정으로 상하 폭 1:1 완벽 일치) */
.brand-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 226px; /* 서브텍스트와 상단 영문의 가로폭을 일치시키는 정밀 기준 너비 */
}

/* 영문 브랜드명: 하이엔드 테크 & 럭셔리 스튜디오 서체 (Plus Jakarta Sans 800) */
.brand-title-en {
  display: block;
  width: 100%;
  font-family: 'Plus Jakarta Sans', 'Montserrat', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.05;
  color: #0f172a;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: justify;
  text-align-last: justify;
  margin-right: -0.18em; /* 자간으로 인한 우측 끝선 여백 완벽 보정 */
}

/* 하단 서브 텍스트: 상단 영문과 칼같이 맞아떨어지는 양끝 정렬 */
.brand-tagline {
  display: block;
  width: 100%;
  font-family: var(--font-default);
  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1.25;
  color: #64748b;
  letter-spacing: -0.15px;
  margin-top: 3px;
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 2px;
  letter-spacing: -0.2px;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 버튼 컴포넌트 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.btn-accent {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-sub);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-main);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* =========================================
   히어로 섹션
   ========================================= */
.hero-section {
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -1.2px;
  color: #0f172a;
  margin-bottom: 22px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 34px;
  line-height: 1.75;
}

.hero-subtitle strong {
  color: var(--text-main);
  font-weight: 700;
}

.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* 히어로 타이틀 쇼케이스 비주얼 이미지 */
.hero-visual-wrapper {
  margin: 30px auto 40px;
  max-width: 1040px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px #e2e8f0;
  background: #ffffff;
  position: relative;
  transition: var(--transition);
}

.hero-visual-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -10px rgba(15, 23, 42, 0.16), 0 0 0 1px #cbd5e1;
}

.hero-visual-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-visual-badge {
  position: absolute;
  bottom: 20px;
  left: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -4px rgba(37, 99, 235, 0.16), 0 6px 12px rgba(15, 23, 42, 0.06);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
.stat-num.gradient {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* =========================================
   4대 핵심 솔루션 도메인 섹션
   ========================================= */
.specialty-section {
  padding: 70px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #0f172a;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.specialty-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.specialty-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 24px 48px -8px rgba(15, 23, 42, 0.14), 0 10px 20px -4px rgba(37, 99, 235, 0.15);
}

.specialty-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.specialty-card.church .specialty-icon {
  background: #fef3c7;
  border: 1px solid #fde68a;
}
.specialty-card.housing .specialty-icon {
  background: #d1fae5;
  border: 1px solid #a7f3d0;
}
.specialty-card.knowledge .specialty-icon {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.specialty-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.specialty-summary {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}

.specialty-features {
  list-style: none;
  margin-bottom: 28px;
}

.specialty-features li {
  font-size: 0.92rem;
  color: var(--text-sub);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.specialty-features li::before {
  content: '✓';
  color: var(--accent-emerald);
  font-weight: 800;
}

/* =========================================
   포트폴리오 쇼케이스
   ========================================= */
.portfolio-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-main);
  border-color: #cbd5e1;
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: #cbd5e1;
  box-shadow: 0 26px 50px -8px rgba(15, 23, 42, 0.14), 0 12px 24px -4px rgba(37, 99, 235, 0.16);
}

.project-thumb-container {
  position: relative;
  width: 100%;
  height: 280px;
  background: #f1f5f9;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid var(--border-glass);
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumb {
  transform: scale(1.04);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.1) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: #1d4ed8;
}

.thumb-overlay .badge-tag {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.6);
  color: #0f172a;
  backdrop-filter: blur(8px);
}

.badge-admin {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #059669 !important;
}

.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.project-port {
  font-size: 0.8rem;
  font-family: monospace;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 8px;
  border-radius: 4px;
  color: #475569;
  font-weight: 700;
}

.project-subtitle {
  font-size: 0.92rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 14px;
}

.project-desc {
  font-size: 0.93rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 20px;
}

.project-feature-list {
  list-style: none;
  margin-bottom: 24px;
  background: #f8fafc;
  border: 1px solid var(--border-glass);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
}

.project-feature-list li {
  font-size: 0.88rem;
  color: #334155;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-feature-list li::before {
  content: '▸';
  color: var(--primary);
  font-weight: bold;
}

.project-screenshots-preview {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.preview-chip {
  width: 68px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  background: #f1f5f9;
}

.preview-chip:hover {
  border-color: var(--primary);
  transform: scale(1.08);
  box-shadow: var(--shadow-sm);
}

.preview-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border-glass);
}

/* =========================================
   모달 (스크린샷 갤러리)
   ========================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-glass);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f8fafc;
}

.modal-viewer-main {
  width: 100%;
  height: 520px;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.modal-viewer-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-viewer-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.modal-thumb-item {
  width: 100px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.7;
  transition: var(--transition);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.modal-thumb-item.active,
.modal-thumb-item:hover {
  border-color: var(--primary);
  opacity: 1;
}

.modal-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   인터랙티브 견적 계산기
   ========================================= */
.calculator-section {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.calc-container {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 16px 45px -4px rgba(15, 23, 42, 0.09), 0 6px 16px -2px rgba(15, 23, 42, 0.04);
}

.calc-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.calc-step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.calc-option-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.calc-option-card:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 6px 18px -2px rgba(37, 99, 235, 0.12);
}

.calc-option-card.selected {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 8px 22px -3px rgba(37, 99, 235, 0.18), 0 0 0 1px var(--primary);
}

.calc-option-card input[type="radio"],
.calc-option-card input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
}

.option-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

.option-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.calc-summary-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.09), 0 4px 10px rgba(15, 23, 42, 0.04);
}

.summary-price-tag {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0 6px;
}

.summary-duration {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 24px;
}

.summary-features-list {
  list-style: none;
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
  margin-bottom: 24px;
}

.summary-features-list li {
  font-size: 0.88rem;
  color: var(--text-sub);
  padding: 5px 0;
  display: flex;
  justify-content: space-between;
}

/* =========================================
   제작 의뢰 폼 섹션
   ========================================= */
.inquiry-section {
  padding: 80px 0 100px;
  background: var(--bg-primary);
}

.inquiry-form-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 18px 50px -5px rgba(15, 23, 42, 0.10), 0 8px 18px -2px rgba(15, 23, 42, 0.04);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
}

.form-label .req {
  color: var(--accent-rose);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 18px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: #0f172a;
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.notification-badges-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #eff6ff;
  border: 1px dashed #93c5fd;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-top: 10px;
  flex-wrap: wrap;
}

.notify-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #1e40af;
  font-weight: 700;
}

.notify-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

/* =========================================
   토스트 알림
   ========================================= */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px 22px;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  font-weight: 700;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* =========================================
   풋터
   ========================================= */
.footer {
  border-top: 1px solid var(--border-glass);
  background: #ffffff;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 380px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

/* ==========================================================================
   푸터 패밀리 사이트 & 관계 사이트 심플 바 스타일
   - 크게 노출하지 않고 사이트명과 링크만 단정하게 배치
   ========================================================================== */
.footer-family-simple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  margin-bottom: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: #f8fafc;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.family-label {
  font-weight: 800;
  color: #1e293b;
  font-size: 0.8rem;
  padding: 2px 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
}

.family-simple-links {
  list-style: none;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.family-simple-links li a {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.family-simple-links li a:hover {
  color: #2563eb;
  text-decoration: underline;
}

.family-divider {
  color: #cbd5e1;
  font-weight: 400;
  user-select: none;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   브랜드 스토리 & 네이밍 의미 (Brand Philosophy & Meaning: Yerigotes)
   - 여리고(Jericho)의 관문 개척 정신과 에르고티스(Ergotes)의 장인 정신을 표현
   ========================================================================== */
.brand-story-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-glass);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.story-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px -6px rgba(15, 23, 42, 0.14), 0 8px 16px -4px rgba(37, 99, 235, 0.12);
  border-color: #cbd5e1;
}

.story-card-highlight {
  background: linear-gradient(160deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid #86efac;
  box-shadow: 0 12px 32px -4px rgba(16, 185, 129, 0.15), 0 4px 10px rgba(16, 185, 129, 0.06);
}

.story-card-highlight:hover {
  border-color: #34d399;
  box-shadow: 0 24px 48px -6px rgba(16, 185, 129, 0.22), 0 8px 16px rgba(16, 185, 129, 0.10);
}

.story-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.story-pill {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.pill-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.pill-indigo {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.pill-emerald {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.story-symbol {
  font-size: 1.8rem;
  line-height: 1;
}

.story-title {
  font-family: var(--font-tech-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.story-sub {
  font-family: var(--font-default);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.story-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.45;
}

.story-card-highlight .story-subtitle {
  color: #059669;
}

.story-desc {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.story-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.story-tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.story-card-highlight .story-tag {
  background: #dcfce7;
  color: #166534;
}

/* ========================================================
   ✨ 10종 맞춤 테마 라이브 웹데모 쇼케이스 (밝은 테마 융합)
   ======================================================== */
.webdemo-section {
  padding: 100px 0;
  background: #ffffff;
  position: relative;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.webdemo-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background: radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.04) 0%, transparent 60%),
              radial-gradient(circle at 15% 85%, rgba(5, 150, 105, 0.035) 0%, transparent 50%);
  pointer-events: none;
}

/* 필터 탭 바 */
.webdemo-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.webdemo-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.webdemo-tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.webdemo-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

/* 10종 웹데모 그리드 */
.webdemo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 30px;
}

/* 개별 웹데모 카드 (밝은 테마) */
.webdemo-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.webdemo-card:hover {
  transform: translateY(-6px);
  border-color: #93c5fd;
  box-shadow: 0 24px 48px -6px rgba(37, 99, 235, 0.16), 0 10px 20px -4px rgba(15, 23, 42, 0.06);
}

/* 썸네일 박스 */
.webdemo-thumb-box {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #f1f5f9;
  cursor: pointer;
}

.webdemo-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.webdemo-card:hover .webdemo-thumb-box img {
  transform: scale(1.05);
}

.webdemo-thumb-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, transparent 45%, rgba(15, 23, 42, 0.7) 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.webdemo-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.webdemo-site-num {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.webdemo-layout-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.webdemo-thumb-footer {
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* 카드 본문 */
.webdemo-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.webdemo-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.webdemo-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.webdemo-card-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 14px;
  font-weight: 500;
}

.webdemo-card-desc {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* 주요 페이지 구성 안내 블록 */
.webdemo-pages-meta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 0.82rem;
}

.webdemo-pages-meta .meta-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
  color: #475569;
}

.webdemo-pages-meta .meta-item:last-child {
  margin-bottom: 0;
}

.webdemo-pages-meta strong {
  color: #0f172a;
  white-space: nowrap;
}

/* 카드 액션 버튼 그룹 */
.webdemo-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.webdemo-live-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.webdemo-live-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.webdemo-sub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.webdemo-sub-actions a {
  text-align: center;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.webdemo-sub-actions a:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

/* ========================================================
   반응형 실시간 라이브 뷰어 모달
   ======================================================== */
.webdemo-viewer-modal {
  max-width: 96vw;
  width: 1400px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.webdemo-viewer-header {
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.viewer-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.viewer-badge {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.viewer-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.viewer-layout-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 4px;
}

.viewer-header-center {
  display: flex;
  align-items: center;
  gap: 16px;
}

.viewer-page-switcher {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}

.viewer-page-btn {
  padding: 6px 14px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.viewer-page-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.viewer-device-switcher {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}

.viewer-device-btn {
  padding: 6px 12px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.viewer-device-btn.active {
  background: #0f172a;
  color: #ffffff;
}

.viewer-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.webdemo-viewer-body {
  flex-grow: 1;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.iframe-container {
  height: 100%;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  border: 1px solid #cbd5e1;
}

.iframe-container.desktop-view {
  width: 100%;
}

.iframe-container.tablet-view {
  width: 768px;
}

.iframe-container.mobile-view {
  width: 390px;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================
   시장 단가 vs 예리고티스 비교표 스타일
   ========================================= */
.pricing-table-section {
  padding: 80px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.pricing-notice-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 36px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.notice-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.notice-header h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.notice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.notice-box {
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}

.notice-box.saas-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
}

.notice-box.onprem-box {
  background: #eff6ff;
  border: 1px solid #93c5fd;
}

.box-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: #10b981;
  color: #ffffff;
  margin-bottom: 10px;
}

.box-badge.warning {
  background: #3b82f6;
}

.notice-box h5 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #0f172a;
}

.notice-box p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 12px 0;
}

.box-highlight {
  font-size: 0.85rem;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.box-highlight.onprem {
  border-color: #bfdbfe;
  color: #1e40af;
}

/* 테이블 컨테이너 */
.pricing-table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.table-title-bar {
  padding: 18px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.table-title-bar h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.table-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.custom-pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-pricing-table th,
.custom-pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  vertical-align: middle;
}

.custom-pricing-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.custom-pricing-table th.highlight-th {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
}

.custom-pricing-table tbody tr:hover {
  background: #f8fafc;
}

.prod-name {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.prod-desc {
  font-size: 0.8rem;
  color: #64748b;
}

.text-strike {
  text-decoration: line-through;
  color: #94a3b8;
  font-weight: 600;
}

.price-ygt {
  font-size: 1.05rem;
  font-weight: 800;
  color: #2563eb;
}

.discount-tag {
  display: inline-block;
  padding: 4px 8px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.discount-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.saas-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid #cbd5e1;
}

.free-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #a7f3d0;
}

/* =========================================
   우측 플로팅 바로가기 독 (HisBible Style Minimal Dock)
   ========================================= */
.floating-quick-menu {
  position: fixed;
  right: 18px;
  top: 112px;
  z-index: 990;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-menu-dock {
  width: 78px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 10px 5px 8px;
  /* 부드럽고 깊이감 있는 입체 섀도우 */
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.quick-menu-dock:hover {
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.16), 0 4px 12px rgba(15, 23, 42, 0.06);
  border-color: #cbd5e1;
}

.quick-dock-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding-bottom: 7px;
  margin-bottom: 6px;
  border-bottom: 1px dashed #e2e8f0;
  width: 100%;
}

.quick-dock-badge {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--primary);
  line-height: 1;
}

.quick-dock-title {
  font-size: 0.70rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.quick-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.quick-menu-list li {
  width: 100%;
}

.quick-menu-btn {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 2px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.quick-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
}

.quick-icon-box svg {
  display: block;
}

.quick-text {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: -0.3px;
  line-height: 1;
  white-space: nowrap;
}

.quick-menu-btn:hover {
  transform: translateX(-3px);
  background: #eff6ff;
}

.quick-menu-btn:hover .quick-icon-box {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.quick-menu-btn:hover .quick-text {
  color: #2563eb;
}

/* 의뢰 버튼 은은한 강조 */
.quick-menu-btn.highlight .quick-icon-box {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.quick-menu-btn.highlight:hover .quick-icon-box {
  background: #1d4ed8;
  color: #ffffff;
}

.quick-dock-footer {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
  width: 100%;
}

.quick-top-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 0;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.quick-top-btn:hover {
  color: #2563eb;
  background: #f1f5f9;
  transform: translateY(-2px);
}

.quick-top-text {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* ==========================================================================
   모바일 전용 네비게이션 & 인터랙션 스타일 시스템
   - 햄버거 메뉴 버튼, 모바일 사이드 드로어, 모바일 하단 퀵 액션 독
   ========================================================================== */

/* 1. 모바일 햄버거 토글 버튼 (기본 데스크톱에서는 숨김) */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
  z-index: 101;
}

.mobile-menu-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2.2px;
  background-color: #0f172a;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

/* 햄버거 메뉴 열림 시 X자 모핑 애니메이션 */
.mobile-menu-btn.open .hamburger-bar:nth-child(1) {
  transform: translateY(7.2px) rotate(45deg);
}
.mobile-menu-btn.open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.open .hamburger-bar:nth-child(3) {
  transform: translateY(-7.2px) rotate(-45deg);
}

/* 2. 모바일 사이드 드로어 네비게이션 & 백드롭 */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  border-left: 1px solid var(--border-glass);
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.2);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 20px 22px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.brand-info-mobile .brand-title-en {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.12em;
}

.brand-info-mobile .brand-tagline {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.mobile-drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-drawer-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.mobile-drawer-nav {
  padding: 18px 14px;
  flex-grow: 1;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: #1e293b;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  transition: all 0.18s ease;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a:active {
  background: #eff6ff;
  color: var(--primary);
  transform: translateX(4px);
}

.drawer-icon {
  font-size: 1.2rem;
  width: 24px;
  display: inline-flex;
  justify-content: center;
}

.mobile-drawer-footer {
  padding: 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-drawer-contact {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
  text-align: center;
}

.mobile-admin-link {
  display: inline-block;
  margin-top: 8px;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.82rem;
}

/* 3. 모바일 전용 하단 고정 액션 바 (Bottom Action Bar) */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08);
  z-index: 120;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  align-items: center;
  justify-content: space-around;
}

.bottom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 12px;
  color: #64748b;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  min-width: 64px;
  min-height: 48px;
}

.bottom-bar-item:hover,
.bottom-bar-item:active {
  color: var(--primary);
  background: #eff6ff;
}

.bottom-bar-item .bottom-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.bottom-bar-item.highlight {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
  border-radius: var(--radius-md);
  padding: 6px 14px;
}

.bottom-bar-item.highlight:hover,
.bottom-bar-item.highlight:active {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  color: #ffffff;
  transform: translateY(-1px);
}

/* 새로 추가된 구조 클래스들의 기본(데스크톱) 스타일 */
.deployment-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.calc-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.83rem;
}

.pricing-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
  margin-bottom: 28px;
}

.success-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

/* ==========================================================================
   반응형 미디어 쿼리 (모바일 여백 극소화 & 상하배열 우선 시스템)
   - 모바일 기기(너비 900px, 768px, 640px 이하)에서 불필요한 빈 여백을 최소화
   - 폭이 좁은 모바일에서는 찌그러지는 좌우 2열/3열 배열을 전면 배제하고 깔끔한 1열 상하배열 적용
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. 태블릿 (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* --------------------------------------------------------------------------
   B. 태블릿 & 모바일 (max-width: 900px)
   - 상단 네비게이션 드로어 전환, 하단 퀵 액션 바 활성화
   - 섹션 및 그리드 여백 슬림화 & 주요 다열 컴포넌트 1열 상하배열화
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* 우측 플로팅 독 숨김 (모바일에서는 화면을 가리지 않도록 하단 바로 대체) */
  .floating-quick-menu {
    display: none !important;
  }

  /* 모바일 전용 하단 퀵 바 표시 */
  .mobile-bottom-bar {
    display: flex;
  }

  /* 하단 바에 가려지지 않도록 안전 여백 최소 확보 */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  /* 상단 네비게이션 모바일 모드 전환 */
  .nav-links {
    display: none !important;
  }

  #header-cta-btn {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-container {
    height: 60px;
  }

  .brand-logo {
    gap: 8px;
  }

  .logo-symbol-svg {
    width: 36px;
    height: 36px;
  }

  .brand-info {
    width: auto;
    max-width: 200px;
  }

  .brand-title-en {
    font-size: 1.15rem;
    letter-spacing: 0.12em;
  }

  .brand-tagline {
    font-size: 0.62rem;
    letter-spacing: -0.2px;
  }

  /* [여백 최소화]: 섹션 상하 패딩을 시원하고 타이트하게 대폭 축소 */
  .hero-section {
    padding: 28px 0 20px !important;
  }

  .specialty-section,
  .portfolio-section,
  .brand-story-section,
  .deployment-guide-section,
  .calculator-section,
  .pricing-table-section,
  .inquiry-section {
    padding: 30px 0 !important;
  }

  /* 섹션 헤더 여백 최소화 */
  .section-header {
    margin-bottom: 20px !important;
  }

  .section-tag {
    font-size: 0.75rem !important;
    margin-bottom: 4px !important;
  }

  .section-title {
    font-size: 1.6rem !important;
    letter-spacing: -0.4px !important;
    margin-bottom: 6px !important;
  }

  .section-desc {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    padding: 0 4px !important;
    word-break: keep-all;
  }

  /* [상하배열 우선]: 모든 주요 그리드를 1열(세로 스택) 상하배열로 전환 */
  .story-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .specialty-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .project-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .webdemo-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .deployment-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 18px !important;
  }

  .calc-options-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .calc-guide-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .pricing-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .notice-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* 웹데모 뷰어 모달 헤더 모바일 랩핑 & 상하배열 */
  .webdemo-viewer-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 10px 14px !important;
  }

  .viewer-header-center {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
  }

  .viewer-header-right {
    justify-content: flex-end;
  }

  .webdemo-viewer-body {
    padding: 6px !important;
  }
}

/* --------------------------------------------------------------------------
   C. 스마트폰 모바일 (max-width: 640px)
   - 극소 여백(Compact Margins & Padding)
   - 좁은 폭에서 요소들을 철저히 상하배열(Vertical Stack)로 배치
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* [여백 최소화]: 컨테이너 좌우 여백을 10px로 좁혀 콘텐츠 유효 면적을 극대화 */
  .container {
    padding: 0 10px !important;
  }

  /* 히어로 섹션 여백 최소화 & 상하배열 */
  .hero-section {
    padding: 18px 0 14px !important;
  }

  .hero-badge {
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
    margin-bottom: 8px !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.35;
  }

  .hero-title {
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.5px !important;
    word-break: keep-all;
    margin-bottom: 8px !important;
  }

  .hero-subtitle {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    word-break: keep-all;
    margin-bottom: 14px !important;
  }

  /* 히어로 CTA 버튼 세로 1열 상하배열 */
  .hero-cta {
    flex-direction: column !important;
    width: 100% !important;
    gap: 8px !important;
    margin: 10px auto 0 !important;
  }

  .hero-cta .btn {
    width: 100% !important;
    padding: 11px 16px !important;
    font-size: 0.9rem !important;
  }

  .hero-visual-wrapper {
    margin: 16px auto 0 !important;
    border-radius: 10px !important;
  }

  .hero-visual-badge {
    position: static !important;
    margin-top: 8px !important;
    border-radius: 6px !important;
    justify-content: center !important;
    font-size: 0.72rem !important;
    padding: 6px 10px !important;
    width: 100% !important;
  }

  /* [상하배열]: 히어로 통계 카드를 2열 대신 1열 상하배열로 전환하여 시원하고 크게 노출 */
  .hero-stats {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .stat-card {
    padding: 12px 10px !important;
    border-radius: 10px !important;
  }

  .stat-num {
    font-size: 1.4rem !important;
    margin-bottom: 2px !important;
  }

  .stat-label {
    font-size: 0.75rem !important;
    line-height: 1.25;
  }

  /* [카드 내부 여백 최소화]: 모든 카드 패딩을 14px로 타이트하게 정돈 */
  .specialty-card,
  .story-card,
  .project-card,
  .webdemo-card,
  .calc-container,
  .inquiry-form-card,
  .pricing-notice-card,
  .notice-box {
    padding: 14px 12px !important;
    border-radius: 12px !important;
  }

  /* [상하배열]: 도메인 카드 헤더의 아이콘과 뱃지 목록을 세로 상하로 배열 */
  .specialty-card .specialty-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.4rem !important;
    margin-bottom: 8px !important;
  }

  .specialty-name {
    font-size: 1.18rem !important;
    margin-bottom: 4px !important;
  }

  .specialty-summary {
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
  }

  .specialty-features {
    margin-bottom: 14px !important;
  }

  .specialty-features li {
    font-size: 0.84rem !important;
    padding: 3px 0 !important;
  }

  /* [상하배열]: 프로젝트 카드 타이틀 영역(제목 vs 포트/상태 라벨)을 세로 상하배열로 전환 */
  .project-title-area {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-bottom: 6px !important;
  }

  .project-title {
    font-size: 1.12rem !important;
  }

  .project-port {
    font-size: 0.74rem !important;
    align-self: flex-start !important;
  }

  .project-thumb-container {
    height: 180px !important;
  }

  .project-body {
    padding: 14px 12px !important;
  }

  /* 탭 가로 터치 스크롤 여백 최소화 */
  .portfolio-tabs,
  .webdemo-filter-tabs {
    gap: 6px !important;
    padding-bottom: 6px !important;
    margin-bottom: 16px !important;
  }

  .tab-btn,
  .webdemo-tab-btn {
    padding: 7px 13px !important;
    font-size: 0.8rem !important;
  }

  /* [상하배열]: 웹데모 썸네일 오버레이 뱃지들 세로 상하배열 */
  .webdemo-badge-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .webdemo-thumb-box {
    height: 160px !important;
  }

  .webdemo-card-body {
    padding: 14px 12px !important;
  }

  .webdemo-card-title {
    font-size: 1.1rem !important;
  }

  .webdemo-card-desc {
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
  }

  /* [상하배열]: 웹데모 서브 버튼들을 2열 좌우에서 1열 상하배열로 전환 */
  .webdemo-sub-actions {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  .webdemo-sub-actions a {
    padding: 9px !important;
    font-size: 0.82rem !important;
    display: block !important;
    width: 100% !important;
  }

  /* 견적 계산기 컨테이너 및 상하배열 */
  .calc-container {
    padding: 16px 12px !important;
  }

  .calc-option-card {
    padding: 10px 10px !important;
    gap: 8px !important;
  }

  .calc-summary-box {
    padding: 16px 12px !important;
  }

  .summary-price-tag {
    font-size: 1.7rem !important;
    margin: 8px 0 4px !important;
  }

  /* [상하배열]: 견적 요약 내역의 항목과 금액을 상하로 나열 */
  .summary-features-list {
    margin-bottom: 14px !important;
    padding-top: 10px !important;
  }

  .summary-features-list li {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    padding: 4px 0 !important;
    font-size: 0.82rem !important;
  }

  /* [상하배열]: 의뢰 접수 완료 모달의 항목 라벨과 값 세로 정렬 */
  .success-info-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    margin-bottom: 8px !important;
  }

  /* [상하배열]: 테이블 타이틀바 제목과 서브타이틀 상하배열 */
  .table-title-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 10px 12px !important;
  }

  /* 제작 의뢰서 폼 여백 최소화 & 모바일 1열 상하배열 */
  .inquiry-form-card {
    padding: 16px 12px !important;
  }

  .form-group {
    gap: 4px !important;
  }

  .form-label {
    font-size: 0.86rem !important;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important; /* iOS 포커스 줌 방지 */
    padding: 10px 12px !important;
    border-radius: 8px !important;
  }

  .form-textarea {
    min-height: 90px !important;
  }

  /* [상하배열]: 실시간 발송 알림 배지들 세로 1열 상하배열 */
  .notification-badges-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 10px 12px !important;
  }

  .notify-item {
    font-size: 0.8rem !important;
  }

  /* 테이블 터치 스크롤 컴팩트 패딩 */
  .custom-pricing-table th,
  .custom-pricing-table td {
    padding: 10px 10px !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
  }

  /* 모달 팝업 여백 최소화 */
  .modal-box {
    width: 96vw !important;
    max-width: 96vw !important;
    margin: 8px auto !important;
    border-radius: 12px !important;
  }

  .modal-header {
    padding: 12px 14px !important;
  }

  .modal-title {
    font-size: 1.05rem !important;
  }

  .modal-body {
    padding: 14px 12px !important;
  }

  .modal-close {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
  }

  /* 푸터 1열 상하배열 & 여백 최소화 */
  .footer {
    padding: 24px 0 16px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-bottom: 20px !important;
  }

  .footer-brand h3 {
    font-size: 1.15rem !important;
    margin-bottom: 6px !important;
  }

  .footer-brand p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }

  .footer-col h4 {
    font-size: 0.92rem !important;
    margin-bottom: 8px !important;
  }

  .footer-links {
    gap: 6px !important;
  }

  .footer-links a {
    font-size: 0.82rem !important;
  }

  .footer-bottom {
    padding-top: 14px !important;
    font-size: 0.75rem !important;
  }

  /* 패밀리 사이트 심플 바 모바일 여백 최소화 */
  .footer-family-simple {
    padding: 10px 12px !important;
    gap: 8px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 16px !important;
  }

  .family-simple-links {
    gap: 6px 10px !important;
    line-height: 1.6 !important;
  }

  .family-simple-links li a {
    font-size: 0.8rem !important;
  }
}

/* --------------------------------------------------------------------------
   D. 초소형 디스플레이 (iPhone SE, Galaxy 폴더블 커버 등 max-width: 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .container {
    padding: 0 8px !important;
  }

  .hero-title {
    font-size: 1.35rem !important;
  }

  .brand-title-en {
    font-size: 1.05rem !important;
  }

  .brand-tagline {
    display: none !important; /* 초소형 기기에서 로고 높이 압축 */
  }

  .stat-card {
    padding: 10px 8px !important;
  }

  .summary-price-tag {
    font-size: 1.55rem !important;
  }

  .btn-lg {
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
  }
}




