@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 변수 ━━━ */
:root {
  --primary: #6c5ce7;       /* 전문적인 연보라 */
  --secondary: #a29bfe;     /* 연한 보라 */
  --accent: #4834d4;        /* 강조용 진보라 */
  --text: #2c3e50;
  --bg: #ffffff;
  --header-h: 70px;
}

/* ━━━ 리셋 ━━━ */
*, *::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.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  z-index: 1000;
  transition: background 0.3s;
}
header.scrolled { background:#fff; box-shadow:0 2px 20px rgba(0,0,0,0.12); }
.logo {
  font-size:1.4rem; font-weight:700; color:var(--primary);
  text-decoration:none; white-space:nowrap; flex-shrink:0;
}
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:500; 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 4px 12px rgba(0,0,0,0.1);
  }
  .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;
}
.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:rgba(0,0,0,0.45);
}
.hero-content {
  position:relative; z-index:2;
  text-align:center; color:#fff;
  padding:calc(var(--header-h) + 1rem) 1.5rem 1.5rem; max-width:800px;
}
.hero-content h2 {
  font-size:clamp(1.8rem,5vw,3.2rem); font-weight:800;
  margin-bottom:1rem; line-height:1.2;
}
.hero-content p {
  font-size:clamp(1rem,2.5vw,1.2rem);
  margin-bottom:2rem; opacity:0.9;
}
.hero-prev, .hero-next {
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:10; background:rgba(255,255,255,0.25);
  border:2px solid rgba(255,255,255,0.6);
  color:#fff; font-size:1.6rem; line-height:1;
  width:52px; height:52px; border-radius:50%;
  cursor:pointer; transition:all 0.25s;
  display:flex; align-items:center; justify-content:center;
}
.hero-prev:empty::before { content:'‹'; }
.hero-next:empty::before { content:'›'; }
.hero-prev { left:1.5rem; }
.hero-next { right:1.5rem; }
.hero-prev:hover, .hero-next:hover {
  background:rgba(255,255,255,0.5);
  border-color:#fff;
  transform:translateY(-50%) scale(1.1);
}
.hero-dots {
  position:absolute; bottom:1.5rem;
  left:50%; transform:translateX(-50%);
  z-index:10; display:flex; gap:10px;
}
.hero-dot {
  width:10px; height:10px; border-radius:50%;
  background:rgba(255,255,255,0.5);
  border:none; cursor:pointer;
  transition:background 0.3s, transform 0.3s;
}
.hero-dot.active { background:#fff; transform:scale(1.3); }

/* ━━━ 섹션 공통 ━━━ */
section { padding:80px 0; width:100%; }
section:nth-of-type(even) { background:#f8faff; } /* 연보라 테마에 맞춘 미세한 배경색 */
.container { max-width:1200px; width:92%; margin:0 auto; }
.section-header { text-align:center; margin-bottom:3.5rem; }
.section-header h2 {
  font-size:clamp(1.6rem,3vw,2.4rem); font-weight:700;
  margin-bottom:0.75rem; color:var(--primary);
}
.section-header p { font-size:1rem; color:#666; max-width:640px; margin:0 auto; line-height:1.7; }

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

.card {
  background:#fff; border-radius:16px;
  box-shadow:0 2px 20px rgba(0,0,0,0.08);
  overflow:hidden; transition:transform 0.3s, box-shadow 0.3s;
  display:flex; flex-direction:column; text-align:center;
}
.card:hover { transform:translateY(-6px); box-shadow:0 10px 36px rgba(108, 92, 231, 0.15); }
.card-img { width:100%; aspect-ratio:16/9; object-fit:cover; }
.card-icon-wrap { padding:2rem 2rem 0.5rem; font-size:2.8rem; display:flex; justify-content:center; }
.card-icon-wrap img { width:64px; height:64px; object-fit:contain; margin:0 auto; }
.card-body { padding:1.25rem 1.75rem 2rem; flex:1; display:flex; flex-direction:column; align-items:center; }
.card-body h3 { font-size:1.1rem; font-weight:700; margin-bottom:0.6rem; color:var(--primary); }
.card-body p { font-size:0.95rem; color:#555; line-height:1.8; flex:1; text-align:center; }

/* ━━━ 통계 ━━━ */
.stats-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:2rem; text-align:center; width:100%;
}
.stat-item { padding:2rem 1rem; }
.stat-number { display:block; font-size:clamp(2.5rem,5vw,4rem); font-weight:800; color:var(--primary); line-height:1; }
.stat-label { font-size:1rem; color:#666; margin-top:0.5rem; display:block; }

/* ━━━ 프로세스 ━━━ */
.process-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:2rem; width:100%; text-align:center;
}
.process-step { text-align:center; padding:2rem 1.5rem; }
.process-num {
  width:60px; height:60px; border-radius:50%;
  background:var(--primary); color:#fff;
  font-size:1.4rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 1.25rem;
}
.process-step h3 { font-size:1.05rem; font-weight:700; margin-bottom:0.5rem; }
.process-step p { font-size:0.9rem; color:#666; line-height:1.7; }

/* ━━━ 텍스트+이미지 ━━━ */
.text-image-wrap { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; width:100%; }
.text-image-wrap .text-content { display:flex; flex-direction:column; gap:1rem; }
.text-image-wrap .text-content h3 { font-size:1.4rem; font-weight:700; color:var(--primary); }
.text-image-wrap .text-content p { font-size:1rem; color:#555; line-height:1.8; }
.text-image-wrap img { width:100%; border-radius:16px; box-shadow:0 6px 28px rgba(0,0,0,0.12); object-fit:cover; }
@media(max-width:768px) { .text-image-wrap { grid-template-columns:1fr; gap:2rem; } }

/* ━━━ 버튼 ━━━ */
.btn-primary, .btn-secondary, .btn-outline {
  display:inline-block; padding:0.8rem 2rem;
  border-radius:6px; font-size:0.95rem; font-weight:600;
  text-decoration:none; cursor:pointer; border:2px solid transparent;
  transition:all 0.2s;
  text-align: center;
}
.btn-primary { background:var(--primary); color:#fff; border-color:var(--primary); }
.btn-primary:hover { filter:brightness(1.1); transform: translateY(-2px); }
.btn-secondary { background:var(--secondary); color:#fff; border-color:var(--secondary); }
.btn-secondary:hover { filter:brightness(1.1); }
.btn-outline { background:transparent; color:#fff; border-color:#fff; }
.btn-outline:hover { background:#fff; color:var(--primary); }

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

/* ━━━ 푸터 ━━━ */
footer {
  background:#1a1a2e; color:rgba(255,255,255,0.75);
  padding:3rem 0; text-align:center; width:100%;
}
footer * { text-align:center !important; }
.footer-tagline { font-size:1.1rem; color:#fff; font-weight:600; margin-bottom:1rem; }
.footer-info { font-size:0.85rem; line-height:2; margin-bottom:1.5rem; opacity:0.7; }
.footer-copy {
  font-size:0.8rem; opacity:0.5;
  border-top:1px solid rgba(255,255,255,0.1);
  padding-top:1.5rem; margin-top:1.5rem;
}

/* ━━━ 프린트 ━━━ */
@media print {
  header, .hero-prev, .hero-next, .hero-dots { display:none; }
  .hero { max-height:300px; min-height:unset; }
  section { padding: 40px 0; }
  .card { break-inside: avoid; border: 1px solid #eee; }
}