@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

/* ━━━ CSS 변수 (전문적/AI 테마) ━━━ */
:root {
  --primary: #2563eb;       /* 트러스트 블루 */
  --secondary: #7c3aed;     /* 테크 퍼플 */
  --accent: #06b6d4;        /* AI 시안 */
  --text: #2c3e50;
  --bg: #ffffff;
  --header-h: 70px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ━━━ 리셋 ━━━ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
  font-family: 'Inter', 'Noto Sans KR', sans-serif; 
  color: var(--text); 
  background-color: var(--bg);
  line-height: 1.6;
}

/* ━━━ 헤더 (수치 고정) ━━━ */
header {
  position: fixed; top:0; left:0; width:100%;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
header.scrolled { background:#fff; box-shadow:0 2px 20px rgba(0,0,0,0.12); }

.logo {
  font-size:1.4rem; font-weight:800; color:var(--primary);
  text-decoration:none; white-space:nowrap; flex-shrink:0;
  letter-spacing: -0.5px;
}

nav { display:flex; align-items:center; }
.nav-menu {
  display:flex; align-items:center; gap:2rem;
  list-style:none; margin:0; padding:0;
}
.nav-menu a {
  font-size:0.95rem; font-weight:600; color:var(--text);
  text-decoration:none; transition:color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active { color:var(--primary); }

.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; padding:4px; }
.hamburger span { display:block; width:24px; height:2px; background:var(--text); transition:transform 0.3s; }

@media(max-width:768px){
  .hamburger { display:flex; }
  .nav-menu {
    display:none; position:fixed; top:var(--header-h); left:0; right:0;
    background:#fff; flex-direction:column; gap:0; padding:1rem 0;
    box-shadow:0 10px 15px rgba(0,0,0,0.05);
  }
  .nav-menu.open { display:flex; }
  .nav-menu li { width:100%; text-align:center; padding:0.75rem 0; }
}

/* ━━━ 히어로 슬라이더 (클래스명 고정) ━━━ */
.hero {
  margin: 0; padding: 0;
  position: relative; width: 100%;
  min-height: 800px; max-height: 1000px; height: 90vh;
  overflow: hidden;
  background: #0f172a; /* 폴백 배경색 */
}
.hero-slider { position:relative; width:100%; height:100%; }
.hero-slide {
  position:absolute; inset:0;
  opacity:0; transition:opacity 0.8s ease;
  background-size:cover; background-position:center;
  display:flex; align-items:center; justify-content:center;
}
.hero-slide.active { opacity:1; z-index:1; }
.hero-slide::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
}
.hero-content {
  position:relative; z-index:2;
  text-align:center; color:#fff;
  padding:calc(var(--header-h) + 1rem) 1.5rem 1.5rem; max-width:900px;
}
.hero-content h2 {
  font-size:clamp(2rem, 6vw, 3.8rem); font-weight:900;
  margin-bottom:1.2rem; line-height:1.1; letter-spacing: -1px;
}
.hero-content p {
  font-size:clamp(1.1rem, 2.5vw, 1.4rem);
  margin-bottom:2.5rem; opacity:0.9; font-weight: 300;
}
.hero-prev, .hero-next {
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:10; background:rgba(255,255,255,0.15);
  border:1px solid rgba(255,255,255,0.3);
  color:#fff; font-size:2rem; line-height:1;
  width:56px; height:56px; border-radius:50%;
  cursor:pointer; transition: var(--transition);
  display:flex; align-items:center; justify-content:center;
  backdrop-filter: blur(4px);
}
.hero-prev:empty::before { content:'‹'; }
.hero-next:empty::before { content:'›'; }
.hero-prev { left:2rem; }
.hero-next { right:2rem; }
.hero-prev:hover, .hero-next:hover {
  background:rgba(255,255,255,0.3);
  border-color:#fff;
  transform:translateY(-50%) scale(1.1);
}
.hero-dots {
  position:absolute; bottom:2.5rem;
  left:50%; transform:translateX(-50%);
  z-index:10; display:flex; gap:12px;
}
.hero-dot {
  width:12px; height:12px; border-radius:50%;
  background:rgba(255,255,255,0.3);
  border:none; cursor:pointer;
  transition: var(--transition);
}
.hero-dot.active { background:var(--accent); transform:scale(1.3); width: 30px; border-radius: 10px; }

/* ━━━ 섹션 공통 ━━━ */
section { padding:100px 0; width:100%; }
section:nth-of-type(even) { background:#fcfdfe; }
.container { max-width:1200px; width:90%; margin:0 auto; }
.section-header { text-align:center; margin-bottom:4rem; }
.section-header h2 {
  font-size:clamp(1.8rem, 4vw, 2.6rem); font-weight:800;
  margin-bottom:1rem; color:var(--text); letter-spacing: -0.5px;
}
.section-header h2::after {
  content:''; display:block; width:50px; height:4px; 
  background:var(--primary); margin: 15px auto 0; border-radius: 2px;
}
.section-header p { font-size:1.1rem; color:#64748b; max-width:700px; margin:0 auto; line-height:1.7; }

/* ━━━ 카드 ━━━ */
.card-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
  width:100%;
}
.card-grid:has(.card:first-child:nth-last-child(2)),
.card-grid:has(.card:first-child:nth-last-child(2)) ~ * {
  grid-template-columns:repeat(2,1fr);
}
@media(max-width:960px)  { .card-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px)  { .card-grid { grid-template-columns:1fr; } }

.card {
  background:#fff; border-radius:20px;
  box-shadow:0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.03);
  overflow:hidden; transition: var(--transition);
  display:flex; flex-direction:column; text-align:center;
}
.card:hover { transform:translateY(-10px); box-shadow:0 20px 40px rgba(0,0,0,0.12); }
.card-img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.card-icon-wrap { padding:2.5rem 2rem 1rem; font-size:3rem; display:flex; justify-content:center; color: var(--primary); }
.card-icon-wrap img { width:72px; height:72px; object-fit:contain; margin:0 auto; }
.card-body { padding:1.5rem 2rem 2.5rem; flex:1; display:flex; flex-direction:column; align-items:center; }
.card-body h3 { font-size:1.25rem; font-weight:700; margin-bottom:0.8rem; color:var(--text); }
.card-body p { font-size:1rem; color:#64748b; line-height:1.7; flex:1; text-align:center; }

/* ━━━ 통계 ━━━ */
.stats-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:2.5rem; text-align:center; width:100%;
}
.stat-item { padding:2.5rem 1.5rem; background: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.stat-number { display:block; font-size:clamp(2.8rem, 5vw, 4.2rem); font-weight:900; color:var(--primary); line-height:1; margin-bottom: 0.5rem; }
.stat-label { font-size:1.1rem; font-weight: 600; color:#475569; display:block; }

/* ━━━ 프로세스 ━━━ */
.process-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:2.5rem; width:100%; text-align:center;
}
.process-step { position: relative; padding:2.5rem 1.5rem; }
.process-num {
  width:70px; height:70px; border-radius:24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color:#fff; font-size:1.6rem; font-weight:800;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 1.5rem; transform: rotate(-5deg);
}
.process-step h3 { font-size:1.2rem; font-weight:700; margin-bottom:0.75rem; color: var(--text); }
.process-step p { font-size:0.95rem; color:#64748b; line-height:1.8; }

/* ━━━ 텍스트+이미지 ━━━ */
.text-image-wrap { display:grid; grid-template-columns:1fr 1fr; gap:6rem; align-items:center; width:100%; }
.text-image-wrap .text-content { display:flex; flex-direction:column; gap:1.5rem; }
.text-image-wrap .text-content h3 { font-size:1.8rem; font-weight:800; color:var(--text); }
.text-image-wrap .text-content p { font-size:1.1rem; color:#475569; line-height:1.9; }
.text-image-wrap img { width:100%; border-radius:24px; box-shadow:0 20px 50px rgba(0,0,0,0.1); object-fit:cover; }
@media(max-width:850px) { .text-image-wrap { grid-template-columns:1fr; gap:3rem; } }

/* ━━━ 버튼 ━━━ */
.btn-primary, .btn-secondary, .btn-outline {
  display:inline-block; padding:1rem 2.2rem;
  border-radius:12px; font-size:1rem; font-weight:700;
  text-decoration:none; cursor:pointer; border:2px solid transparent;
  transition: var(--transition); text-align: center;
}
.btn-primary { 
  background: var(--primary); color:#fff; 
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); filter: brightness(1.1); }
.btn-secondary { background:var(--secondary); color:#fff; }
.btn-outline { background:transparent; color:#fff; border-color:rgba(255,255,255,0.5); }
.btn-outline:hover { background:#fff; color:var(--primary); border-color: #fff; }

/* ━━━ 애니메이션 ━━━ */
.fade-in-up { opacity:0; transform:translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-up.visible { opacity:1; transform:translateY(0); }

/* ━━━ 푸터 ━━━ */
footer {
  background:#0f172a; color:rgba(255,255,255,0.7);
  padding:5rem 0 3rem; text-align:center; width:100%;
}
footer * { text-align:center !important; }
.footer-tagline { font-size:1.4rem; color:#fff; font-weight:800; margin-bottom:1.5rem; letter-spacing: -0.5px; }
.footer-tagline span { color: var(--accent); }
.footer-info { font-size:0.95rem; line-height:2; margin-bottom:2.5rem; opacity:0.8; max-width: 600px; margin-left: auto; margin-right: auto; }
.footer-copy {
  font-size:0.85rem; opacity:0.4;
  border-top:1px solid rgba(255,255,255,0.1);
  padding-top:2rem; margin-top:2rem;
}

@media print {
  header, .hero-prev, .hero-next, .hero-dots { display:none; }
  .hero { max-height:400px; min-height:unset; height: auto; }
  .card, .stat-item { box-shadow: none; border: 1px solid #ddd; }
}