/* ============================================================
   iNet Remote — styles.css
   퍼블리셔 편집 가이드:
   - CSS 변수(--variable)는 최상단 :root에서 일괄 관리
   - 섹션별로 주석 구분되어 있으니 해당 섹션으로 이동 후 수정
   - 원형(circle) 대신 라운드 사각 배지를 아이콘 배경으로 사용
   - 반응형은 파일 맨 아래 Media Queries 섹션 참고
   ============================================================ */


/* ============================================================
   1. CSS 변수 (색상, 간격, 폰트 등 전역 설정)
   ============================================================ */
:root {
  /* 브랜드 컬러 */
  --primary:        #EA5504;   /* 메인 오렌지 */
  --primary-light:  #FF6B3D;   /* 밝은 오렌지 */
  --primary-pale:   #FFF3F0;   /* 연한 배경용 오렌지 */
  --primary-dark:   #B83A10;   /* 어두운 오렌지 (호버용) */
  --secondary:      #FF9A6C;   /* 보조 색상 */

  /* 배경 */
  --bg:             #FAFAF8;   /* 기본 배경 */
  --bg-card:        #FFFFFF;   /* 카드 배경 */
  --bg-dark:        #0E1928;   /* 다크 섹션 배경 — 딥 네이비 */

  /* 텍스트 */
  --text:           #1E1A14;   /* 기본 텍스트 — 웜 차콜 */
  --text-sub:       #5A5A55;   /* 보조 텍스트 */
  --text-muted:     #9A9A94;   /* 흐린 텍스트 */

  /* 테두리 & 그림자 */
  --border:         rgba(0, 0, 0, 0.08);
  --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow:         0 4px 24px rgba(234, 85, 4, 0.08);
  --shadow-hover:   0 8px 32px rgba(234, 85, 4, 0.16);

  /* 모서리 반경 — 원형(50%) 대신 라운드 사각형만 사용 */
  --radius:         16px;
  --radius-sm:      8px;
  --radius-xs:      4px;

  /* 폰트 — Pretendard 단일 사용 */
  --font-body:      'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:   'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif;

  /* 내비게이션 높이 */
  --nav-height:     68px;

  /* 섹션 패딩 */
  --section-py:     100px;
  --section-px:     5%;

  /* 트랜지션 */
  --transition:     0.25s ease;
}


/* ============================================================
   2. Reset & Base
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* ============================================================
   3. 공통 레이아웃
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--section-px);
}

section {
  padding: var(--section-py) 0;
}

/* 섹션 배경 변형 */
.section-light { background: var(--bg); }
.section-dark  { background: var(--bg-dark); }
.section-pale  { background: var(--primary-pale); }

/* 섹션 헤더 */
.section-header {
  margin-bottom: 60px;
}
.section-header.center {
  text-align: center;
}
.section-header.center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* 섹션 레이블 — 알약(pill) 배지 형태 (iNet-Remote-index.html의 .eyebrow 참고) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-pale);
  border: 1px solid rgba(234, 85, 4, 0.14);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* 섹션 타이틀 */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text);
}

/* 섹션 설명 */
.section-desc {
  font-size: 17px;
  color: var(--text-sub);
  max-width: 560px;
  line-height: 1.7;
}

/* 다크/파스텔 섹션 위 헤더 색상 보정 */
.section-dark .section-label {
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}
.section-dark .section-title { color: #fff; }
.section-dark .section-desc  { color: rgba(255, 255, 255, 0.5); }

/* 파스텔 섹션(연한 오렌지 배경) 위에서는 배지를 흰색 바탕으로 — 배경과 톤이 겹치지 않도록 */
.section-pale .section-label {
  background: var(--bg-card);
  border-color: rgba(234, 85, 4, 0.18);
}


/* ============================================================
   4. 공통 버튼
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(234, 85, 4, 0.3);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 100px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition);
}
.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}


/* ============================================================
   5. 스크롤 애니메이션 (fade-up)
   JavaScript(js/script.js)가 .visible 클래스를 추가
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 히어로 전용 fade-in-up (CSS 키프레임 사용) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}


/* ============================================================
   6. NAV — 상단 고정 내비게이션
   ============================================================ */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#main-nav.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── 로고 — images/logo.png ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* ── PC 메뉴 ── */
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 17px;
  font-weight: 500;
  color: var(--bg-dark);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* ── 우측 영역 (CTA + 햄버거) ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ── NAV CTA 버튼 — "도입 상담하기" (문의 팝업 트리거) ── */
.nav-cta {
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ── 햄버거 버튼 (모바일 전용) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}
.hamburger:hover {
  border-color: var(--primary);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   7. MOBILE MENU — 모바일 드로어
   ============================================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 250, 248, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 32px var(--section-px);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-link {
  display: block;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.mobile-link:hover {
  background: var(--primary-pale);
  color: var(--primary);
}
.btn-mobile-cta {
  margin-top: 16px;
  background: var(--primary);
  color: #fff !important;
  text-align: center;
  border-radius: 100px !important;
}
.btn-mobile-cta:hover {
  background: var(--primary-dark) !important;
  color: #fff !important;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
}
.mobile-overlay.open {
  display: block;
}


/* ============================================================
   8. HERO — 히어로 섹션
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 60px) var(--section-px) 80px;
  overflow: hidden;
}

/* 그라디언트 오버레이 (원형 대신 은은한 방사형 라이트) */
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(234, 85, 4, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* ── 히어로 배지 ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-pale);
  border: 1px solid rgba(234, 85, 4, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 28px;
}
.hero-badge i {
  font-size: 11px;
}

/* ── 히어로 타이틀 ── */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 24px;
  animation-delay: 100ms;
}
.hero-title .accent {
  color: var(--primary);
}

/* ── 히어로 서브텍스트 ── */
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.75;
  font-weight: 400;
}

/* ── 히어로 CTA 버튼 그룹 ── */
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── 히어로 핵심 특징 칩 ── */
.hero-models {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 56px;
}
.model-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.model-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.model-badge:hover {
  box-shadow: var(--shadow);
}
.model-icon-fa {
  font-size: 13px;
  color: var(--primary);
}
/* 제안서 아이콘 이미지 (images/*.png) — 히어로 칩용 */
.model-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: none;
}


/* ============================================================
   9. USE CASE — 사용 분야 카드
   ============================================================ */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.usecase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.usecase-card.featured {
  background: var(--primary);
  border-color: var(--primary);
}
.usecase-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.05em;
}
.usecase-card.featured .usecase-num { color: rgba(255, 255, 255, 0.75); }

.usecase-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 10px;
  line-height: 1.4;
  color: var(--text);
}
.usecase-card.featured h3 { color: #fff; }

.usecase-card p {
  color: var(--text-sub);
  font-size: 14.5px;
  margin-top: 12px;
  line-height: 1.7;
}
.usecase-card.featured p { color: rgba(255, 255, 255, 0.88); }

.usecase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.usecase-tag {
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-sub);
  padding: 5px 12px;
  border-radius: 100px;
}
.usecase-card.featured .usecase-tag {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}


/* ============================================================
   10. FEATURES — 핵심 기능 2블록 (접속·제어·전송 / 보안·관리)
   배경: --bg-dark
   ============================================================ */
.kf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.kf-block {
  border-radius: 20px;
  padding: 40px;
  color: #fff;
}
.kf-block.orange {
  background: var(--primary);
}
/* 카드 자체를 딥 네이비로 고정 — 섹션 배경색과 무관하게 항상 또렷하게 표시 */
.kf-block.card {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
/* 알약(pill) 배지 형태 — section-label과 동일한 방식, 오렌지/다크 블록 배경에 맞춰 반투명 흰색으로 처리 */
.kf-tag {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 3px 14px;
  border-radius: 999px;
}
.kf-block.card .kf-tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}
.kf-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  margin-top: 12px;
  line-height: 1.3;
}
.kf-list {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}
.kf-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 12px;
  padding: 16px 18px;
}
.kf-block.orange .kf-item { background: rgba(255, 255, 255, 0.14); }
.kf-block.card   .kf-item { background: rgba(255, 255, 255, 0.06); }

/* 아이콘 배지 — 라운드 사각형 (원형 아님) — 제안서 아이콘 이미지 사용 */
/* 박스 없이 아이콘만 표시 — func-icon-wrap과 동일한 방식, 다른 섹션과 크기 통일 */
.kf-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.kf-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.kf-item b {
  display: block;
  font-size: 18px;
  font-weight: 700;
}
.kf-item span {
  display: block;
  font-size: 13.5px;
  opacity: 0.82;
  margin-top: 3px;
  line-height: 1.55;
}


/* ============================================================
   11. FUNCTIONS — v2.0 기능 8가지 + 보안 접속 흐름
   배경: --bg-dark (section-dark 클래스가 헤더 텍스트 색상을 자동 처리)
   ============================================================ */
.func-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.func-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.func-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.func-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
}

/* 기능 아이콘 — 제안서 아이콘 이미지 (컬러 일러스트이므로 배지 없이 원본 색상 그대로 표시) */
.func-icon-wrap {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.func-icon-wrap img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.func-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.func-card p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.65;
}

/* ── 보안 접속 흐름 다이어그램 ── */
.flow {
  margin-top: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
}
.flow-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  text-align: center;
}
.flow-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
}
/* 내용 길이가 달라도 3개 박스 높이가 항상 동일하도록 flex column + stretch 사용 */
.flow-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
}
.flow-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.flow-icon img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.flow-step b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.flow-step span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
}
.flow-note {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-sub);
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px dashed var(--border);
}
.flow-note i {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 2px;
  flex: none;
}


/* ============================================================
   12. CONVENIENCE — 부가 서비스 기능 8가지
   배경: --bg
   ============================================================ */
.conv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.conv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
}
.conv-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* 아이콘 — 라운드 사각 배지 (제안서 아이콘 이미지) */
/* 박스 없이 아이콘만 표시 — func-icon-wrap과 동일한 방식 */
.conv-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.conv-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.conv-card b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.conv-card span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}


/* ============================================================
   13. PREVIEW — 실제 서비스 화면 (스크린샷)
   배경: --bg-dark
   ============================================================ */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.preview-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}
.preview-item:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 85, 4, 0.4);
}
/* 실제 화면 이미지는 637×442(가로 세로 비율 약 350:243)로 준비되어 있음 —
   비율을 고정해 카드마다 높이가 들쭉날쭉해지지 않도록 처리 */
.preview-item img {
  width: 100%;
  aspect-ratio: 350 / 243;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.preview-cap {
  display: block;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}


/* ============================================================
   14. PRICING — 요금제 카드
   배경: --bg (인기 카드만 다크 강조)
   ============================================================ */
/* 알약(pill) 배지 형태 — kf-tag와 동일한 패딩, 파스텔 섹션 배경에 맞춰 흰 바탕으로 처리 */
.pricing-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  background: var(--primary-light);
  border: 1px solid var(--primary);
  padding: 3px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
/* 인기 요금제 강조 — 딥 네이비 다크 카드 */
.pricing-card.featured {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #fff;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  padding: 5px 16px;
  white-space: nowrap;
}
.pricing-badge i { margin-right: 4px; }

.pricing-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.pricing-card.featured .pricing-label { color: rgba(255, 255, 255, 0.55); }

.pricing-amount {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--text);
  line-height: 1;
}
.pricing-card.featured .pricing-amount { color: #fff; }
.pricing-amount sup {
  font-size: 18px;
  font-weight: 600;
  vertical-align: super;
  letter-spacing: 0;
}
.pricing-period {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-bottom: 24px;
}
.pricing-card.featured .pricing-period { color: rgba(255, 255, 255, 0.55); }

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}
.pricing-card.featured .pricing-divider { background: rgba(255, 255, 255, 0.12); }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.5;
}
.pricing-card.featured .pricing-features li { color: rgba(255, 255, 255, 0.82); }
.pricing-features li i {
  color: var(--primary);
  font-size: 12px;
  margin-top: 3px;
  flex-shrink: 0;
}
.pricing-card.featured .pricing-features li i { color: var(--secondary); }

/* 세션 수 / 용량 등 핵심 스펙 강조 (제안서 PDF 스타일) */
.pf-em {
  color: var(--primary);
  font-weight: 800;
}
.pricing-card.featured .pf-em { color: var(--secondary); }

.pricing-cta {
  display: block;
  text-align: center;
  margin-top: 28px;
  padding: 14px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  background: var(--bg-dark);
  color: #fff;
}
.pricing-cta:hover {
  background: #1A3350;
  transform: translateY(-1px);
}
.pricing-card.featured .pricing-cta {
  background: var(--primary);
}
.pricing-card.featured .pricing-cta:hover {
  background: var(--primary-dark);
}

/* ── On-Premise 구축형 안내 — 흰 카드로 고정, 파스텔 섹션 배경과 구분 ──
   onprem-items가 4칸(문의 버튼+3개 항목)이라 좁아지기 쉬우므로,
   왼쪽 설명 영역보다 오른쪽 항목 영역에 더 넓은 비율을 배분 */
.onprem {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  align-items: center;
}
.onprem-info h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.onprem-info p {
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 1.7;
}
/* 문의 버튼을 onprem-item과 같은 크기의 카드로 만들어 맨 왼쪽에 배치 */
.onprem-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.onprem-item {
  display: block;
  background: var(--primary-pale);
  border: 1px solid rgba(234, 85, 4, 0.15);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  text-decoration: none;
}
.onprem-item b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.onprem-item span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
/* 문의하기 CTA — 나머지 3개 항목과 크기는 동일, 색상만 오렌지 강조 */
.onprem-item-cta {
  background: var(--primary);
  border-color: var(--primary);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.onprem-item-cta b { color: #fff; }
.onprem-item-cta span { color: rgba(255, 255, 255, 0.82); }
.onprem-item-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 85, 4, 0.25);
}


/* ============================================================
   15. FAQ — 자주 묻는 질문
   ============================================================ */
.faq-section {
  border-top: none;
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.faq-q:hover {
  color: var(--primary);
}
.faq-icon {
  font-size: 16px;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-a p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.75;
  padding-bottom: 20px;
}
.faq-item.open .faq-a {
  max-height: 300px;
}


/* ============================================================
   16. CTA SECTION — 전환 유도
   배경: --primary
   ============================================================ */
.section-cta {
  background: var(--primary);
  padding: var(--section-py) 0;
  text-align: center;
}
.section-cta .section-title {
  color: #fff;
  letter-spacing: -1px;
}
.section-cta .section-desc {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 40px;
}
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   17. FOOTER
   배경: --bg-dark
   ============================================================ */
#footer {
  background: var(--bg-dark);
  padding: 60px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}
.footer-links h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}
.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.6);
}


/* ============================================================
   18. Scroll Top 버튼 — 라운드 사각형 (원형 아님)
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
  z-index: 900;
  box-shadow: 0 4px 16px rgba(234, 85, 4, 0.35);
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--primary-dark);
}


/* ============================================================
   19. INQUIRY MODAL — 도입 상담 문의 팝업
   ============================================================ */
.inq-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 13, 22, 0.80);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}
.inq-overlay.open {
  opacity: 1;
  visibility: visible;
}

.inq-box {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(14, 25, 40, 0.08);
  border-radius: 20px;
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(14, 25, 40, 0.25);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.inq-overlay.open .inq-box {
  transform: translateY(0) scale(1);
}

.inq-box::-webkit-scrollbar { width: 4px; }
.inq-box::-webkit-scrollbar-track { background: transparent; }
.inq-box::-webkit-scrollbar-thumb { background: rgba(14, 25, 40, 0.15); border-radius: 4px; }

/* 상단 오렌지 포인트 라인 */
.inq-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

/* 닫기 버튼 — 라운드 사각형 */
.inq-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F5F5F3;
  border: 1px solid rgba(14, 25, 40, 0.08);
  color: #9A9A94;
  font-size: 16px;
  cursor: pointer;
  border-radius: 10px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.inq-close:hover {
  background: rgba(234, 85, 4, 0.08);
  border-color: rgba(234, 85, 4, 0.3);
  color: var(--primary);
}

.inq-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.inq-subtitle {
  font-size: 14px;
  color: var(--text-sub);
  text-align: center;
  margin-bottom: 32px;
  line-height: 1.7;
}

.inq-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.inq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.inq-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.inq-field--full {
  grid-column: 1 / -1;
}
.inq-field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text);
}
.inq-req {
  color: var(--primary);
}

.inq-form input,
.inq-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d0d0d0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: #FAFAFA;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}
.inq-form input::placeholder,
.inq-form textarea::placeholder {
  color: #AAA;
}
.inq-form input:focus,
.inq-form textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(234, 85, 4, 0.12);
}
.inq-form textarea {
  resize: vertical;
  min-height: 90px;
}

.inq-form input.inq-error,
.inq-form textarea.inq-error {
  border-color: #E53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.inq-form input[type="number"]::-webkit-inner-spin-button,
.inq-form input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
}
.inq-form input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.inq-employees-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inq-employees-wrap input {
  flex: 1;
}
.inq-employees-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  white-space: nowrap;
  flex-shrink: 0;
}

.inq-privacy {
  margin-top: 4px;
}
.inq-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.inq-checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
/* 커스텀 체크박스 — 라운드 사각형 */
.inq-checkbox-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid #E0E0DC;
  border-radius: 4px;
  background: #FAFAF8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.inq-checkbox-label input[type="checkbox"]:checked + .inq-checkbox-box {
  background: var(--primary);
  border-color: var(--primary);
}
.inq-checkbox-label input[type="checkbox"]:checked + .inq-checkbox-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.inq-checkbox-label input[type="checkbox"]:focus-visible + .inq-checkbox-box {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.inq-checkbox-label input[type="checkbox"].inq-error + .inq-checkbox-box {
  border-color: #E53935;
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}
.inq-checkbox-text {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.5;
  user-select: none;
}

.inq-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.inq-submit {
  flex: 1;
  padding: 14px 20px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.inq-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(234, 85, 4, 0.3);
}
.inq-cancel {
  padding: 14px 28px;
  background: transparent;
  color: var(--text-sub);
  border: 1.5px solid #E0E0DC;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.inq-cancel:hover {
  border-color: var(--text-sub);
  color: var(--text);
  background: #F5F5F3;
}

@media (max-width: 540px) {
  .inq-box {
    padding: 36px 20px 28px;
  }
  .inq-row {
    grid-template-columns: 1fr;
  }
  .inq-actions {
    flex-direction: column;
  }
  .inq-cancel {
    text-align: center;
  }
}


/* ============================================================
   20. Media Queries — 반응형 디자인 (PC / Tablet / Mobile)
   ============================================================ */

/* ── Tablet (1024px 이하) ── */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }

  .kf-grid {
    grid-template-columns: 1fr;
  }
  .func-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .conv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  .onprem {
    grid-template-columns: 1fr;
  }
  .onprem-items {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-steps {
    grid-template-columns: 1fr;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .nav-links {
    gap: 24px;
  }
}

/* ── Tablet (768px 이하) ── */
@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --section-px: 20px;
  }

  /* 네비게이션: 메뉴 숨기고 햄버거 표시 */
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  /* 히어로 */
  .hero-title {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .hero-sub {
    font-size: 16px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
    text-align: center;
    justify-content: center;
  }

  /* 사용 분야 */
  .usecase-grid {
    grid-template-columns: 1fr;
  }

  /* 부가 기능 */
  .conv-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* 제품 화면 */
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* 요금제 */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  /* 푸터 */
  .footer-top {
    flex-direction: column;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* FAQ */
  .faq-q {
    font-size: 15px;
    padding: 18px 0;
  }

  /* CTA 버튼 */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn-white,
  .btn-outline-white {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* 스크롤 탑 버튼 */
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 14px;
  }
}

/* ── Mobile (500px 이하) ── */
@media (max-width: 500px) {
  :root {
    --section-py: 52px;
  }

  .func-grid {
    grid-template-columns: 1fr;
  }
  .conv-grid {
    grid-template-columns: 1fr;
  }
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .onprem-items {
    grid-template-columns: 1fr;
  }

  .hero-models {
    gap: 8px;
  }
  .model-badge {
    padding: 6px 12px;
    font-size: 12px;
  }

  .section-title {
    font-size: 26px;
    letter-spacing: -0.5px;
  }

  .pricing-amount {
    font-size: 36px;
  }
}


/* ============================================================
   19. SweetAlert (문의 폼 알림창) 브랜드 스타일
   plugins/jquery-sweetalert/sweetalert.css 는 확인/취소 버튼 색상을
   admin 테마의 Bootstrap/Materialize 클래스(.btn-alert, .bg-blue 등)에
   의존하는데, 홈페이지는 그 테마를 불러오지 않으므로 여기서 직접 스타일링한다.
   ============================================================ */
.sweet-alert {
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}

.sweet-alert h2 {
  font-family: var(--font-display);
  color: var(--text);
}

.sweet-alert p {
  text-align: center !important;
}

.sweet-alert button.confirm,
.sweet-alert button.cancel {
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  height: auto;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.sweet-alert button.confirm {
  background: var(--primary);
  color: #fff;
}

.sweet-alert button.confirm:hover {
  background: var(--primary-dark);
}

.sweet-alert button.cancel {
  background: #f1f1f1;
  color: #666666;
}

.sweet-alert button.cancel:hover {
  background: #e5e5e5;
}
