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

/* ━━━ CSS 변수 ━━━ */
:root {
  /* Geometric 스타일을 위한 강렬한 인디고와 사이언 대비 */
  --primary: #1A237E; 
  --secondary: #00C853;
  --accent: #FFD600;
  --text: #1A1A2E;
  --bg: #ffffff;
  --header-h: 70px;

  /* ★ 명암비 필수 변수 (WCAG AA 4.5:1 이상) ★ */
  /* primary(#1A237E)는 어두운 색(명도 약 15%)이므로 텍스트는 흰색 */
  --text-on-primary: #ffffff;
  --text-on-primary-muted: #CBD5E1;
  
  /* Geometric 전용 변수 */
  --geo-border: 2px solid var(--text);
  --offset-shadow: 8px 8px 0px var(--primary);
  --offset-shadow-hover: 4px 4px 0px var(--primary);
}

/* ━━━ 리셋 ━━━ */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  border-radius: 0 !important; /* 지오메트릭: 모든 곡선 제거 */
}
html { scroll-behavior: smooth; }
body { 
  font-family: 'Noto Sans KR', 'Inter', sans-serif; 
  color: var(--text); 
  line-height: 1.6;
  background-color: var(--bg);
}

/* ━━━ 헤더 (수치 고정) ━━━ */
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);
  border-bottom: var(--geo-border);
  z-index: 1000;
  transition: all 0.3s;
}
header.scrolled { background:#fff; box-shadow: 0 4px 0 rgba(0,0,0,0.05); }
.logo {
  font-size:1.4rem; font-weight:900; color:var(--primary);
  text-decoration:none; white-space:nowrap; flex-shrink:0;
  letter-spacing: -0.05em;
  border: 2px solid var(--primary);
  padding: 2px 8px;
}
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:700; color:var(--text);
  text-decoration:none; transition:all 0.2s;
  text-transform: uppercase;
}
.nav-menu a:hover, .nav-menu a.active { color:var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.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;
    border-bottom: var(--geo-border);
  }
  .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;
  border-bottom: 4px solid var(--text);
}
.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(45deg, rgba(26,35,126,0.8) 0%, rgba(0,0,0,0.4) 100%);
}
.hero-content {
  position:relative; z-index:2;
  text-align:left; color:#fff;
  padding: 3rem;
  max-width:900px;
  border-left: 10px solid var(--accent);
  background: rgba(0,0,0,0.2);
}
.hero-content h2 {
  font-size:clamp(2rem,6vw,4rem); font-weight:900;
  margin-bottom:1.5rem; line-height:1.1; letter-spacing: -0.02em;
}
.hero-content p {
  font-size:clamp(1.1rem,2.5vw,1.4rem);
  margin-bottom:2.5rem; opacity:1; font-weight: 500;
}
.hero-prev, .hero-next {
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:10; background:var(--accent);
  border:2px solid var(--text);
  color:var(--text); font-size:2rem; font-weight: bold;
  width:60px; height:60px;
  cursor:pointer; transition:all 0.2s;
  display:flex; align-items:center; justify-content:center;
}
.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:var(--bg); transform:translateY(-50%) translateX(5px); }
.hero-dots {
  position:absolute; bottom:2.5rem;
  left:5%; z-index:10; display:flex; gap:12px;
}
.hero-dot {
  width:40px; height:6px;
  background:rgba(255,255,255,0.3);
  border:none; cursor:pointer; transition:all 0.3s;
}
.hero-dot.active { background:var(--accent); width:80px; }

/* ━━━ 히어로 변형 ━━━ */
.hero.hero-split {
  height:90vh; min-height:600px; max-height:900px;
  display:grid; grid-template-columns:1fr 1fr; overflow:hidden;
}
.hero-split .hero-text-panel {
  background:var(--primary);
  display:flex; flex-direction:column; justify-content:center;
  padding:4rem 4rem 4rem 10%;
  padding-top:calc(var(--header-h) + 4rem);
  position: relative;
}
.hero-split .hero-text-panel::after {
    content: ''; position: absolute; right: -25px; width: 50px; height: 50px;
    background: var(--accent); transform: rotate(45deg);
}
.hero-split .hero-text-panel h2 {
  font-size:clamp(2rem,5vw,3.5rem); font-weight:900; color:var(--text-on-primary);
  line-height:1.1; margin-bottom:1.5rem;
}
.hero-split .hero-text-panel p {
  font-size:clamp(1.1rem,2vw,1.3rem); color:var(--text-on-primary-muted); line-height:1.7;
}
.hero-split .hero-image-panel { background-size:cover; background-position:center; }
@media(max-width:768px) {
  .hero.hero-split { grid-template-columns:1fr; }
  .hero-split .hero-image-panel { display:none; }
}

/* ━━━ 섹션 공통 ━━━ */
section { padding:100px 0; width:100%; border-bottom: 2px solid var(--text); }
section:nth-of-type(even) { background:#f1f3f5; }
.container { max-width:1200px; width:92%; margin:0 auto; }
.section-header { text-align:left; margin-bottom:4rem; border-left: 8px solid var(--primary); padding-left: 1.5rem; }
.section-header h2 {
  font-size:clamp(1.8rem,4vw,2.8rem); font-weight:900;
  margin-bottom:1rem; color:var(--text); text-transform: uppercase;
}
.section-header p { font-size:1.1rem; color:#444; max-width:700px; font-weight: 500; }

/* 배경이 Primary인 섹션 대응 */
section.bg-primary { background: var(--primary); color: var(--text-on-primary); }
section.bg-primary .section-header { border-left-color: var(--accent); }
section.bg-primary .section-header h2 { color: var(--text-on-primary); }
section.bg-primary .section-header p { color: var(--text-on-primary-muted); }

/* ━━━ 카드 (지오메트릭 스타일) ━━━ */
.card-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:40px; width:100%;
}
.card {
  background:#fff; border: 2px solid var(--text);
  box-shadow: var(--offset-shadow);
  overflow:hidden; transition:all 0.2s;
  display:flex; flex-direction:column; text-align:left;
}
.card:hover { transform: translate(4px, 4px); box-shadow: var(--offset-shadow-hover); }
.card-img { width:100%; aspect-ratio:16/9; object-fit:cover; border-bottom: 2px solid var(--text); }
.card-icon-wrap { padding:2rem 2rem 0.5rem; font-size:3rem; display:flex; justify-content:flex-start; }
.card-body { padding:1.5rem 2rem 2.5rem; flex:1; display:flex; flex-direction:column; }
.card-body h3 { font-size:1.25rem; font-weight:800; margin-bottom:0.8rem; color:var(--primary); }
.card-body p { font-size:1rem; color:#333; line-height:1.7; flex:1; }

/* ━━━ 통계 ━━━ */
.stats-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:2rem; text-align:center; width:100%;
}
.stat-item { padding:3rem 1rem; border: 2px solid var(--text); background: #fff; box-shadow: 6px 6px 0 var(--text); }
.stat-number { display:block; font-size:3.5rem; font-weight:900; color:var(--primary); line-height:1; }
.stat-label { font-size:1.1rem; font-weight: 700; color:var(--text); margin-top:0.75rem; text-transform: uppercase; }

/* ━━━ 프로세스 ━━━ */
.process-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1.5rem; width:100%;
}
.process-step { 
    text-align:left; padding:2.5rem; background: #fff; border: 2px solid var(--text); 
    position: relative;
}
.process-num {
  width:50px; height:50px; background:var(--primary); color:#fff;
  font-size:1.5rem; font-weight:900;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:1.5rem;
}
.process-step h3 { font-size:1.2rem; font-weight:800; margin-bottom:0.75rem; color: var(--text); }
.process-step p { font-size:0.95rem; color:#444; }

/* ━━━ 텍스트+이미지 ━━━ */
.text-image-wrap { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; width:100%; }
.text-image-wrap .text-content h3 { font-size:1.8rem; font-weight:900; color:var(--primary); margin-bottom: 1rem; }
.text-image-wrap img { width:100%; border: 3px solid var(--text); box-shadow: 15px 15px 0 var(--accent); }

/* ━━━ 추천사 ━━━ */
.testimonial-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.testimonial-card {
  background:#fff; border: 2px solid var(--text); padding:2.5rem;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.1); display:flex; flex-direction:column; gap:1.5rem;
}
.testimonial-quote { font-size:1rem; color:#333; line-height:1.8; font-weight: 500; flex:1; }
.testimonial-avatar {
  width:50px; height:50px; background:var(--primary); color: #fff;
  display:flex; align-items:center; justify-content:center; font-weight: 900;
}

/* ━━━ 타임라인 ━━━ */
.timeline::before { width:4px; background:var(--text); opacity:1; }
.timeline-dot { width:20px; height:20px; background:var(--accent); border:3px solid var(--text); box-shadow:none; }
.timeline-year { font-size:1.2rem; font-weight:900; color:var(--primary); }
.timeline-content { background: #fff; border: 2px solid var(--text); padding: 1.5rem; box-shadow: 6px 6px 0 var(--text); }

/* ━━━ 특징 목록 ━━━ */
.feature-item { border-bottom: 2px solid #eee; padding-bottom: 1.5rem; }
.feature-icon { background:var(--primary); color: #fff; font-size: 1.5rem; width: 60px; height: 60px; }
.feature-text h3 { font-size:1.2rem; text-transform: uppercase; }

/* ━━━ 버튼 ━━━ */
.btn-primary, .btn-secondary, .btn-outline {
  display:inline-block; padding:1rem 2.5rem;
  font-size:1rem; font-weight:800;
  text-decoration:none; cursor:pointer; 
  border: 2px solid var(--text);
  transition:all 0.1s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-primary { background:var(--primary); color:#fff; box-shadow: 4px 4px 0 var(--text); }
.btn-primary:hover { transform: translate(2px, 2px); box-shadow: 0px 0px 0 var(--text); }
.btn-secondary { background:var(--secondary); color:var(--text); box-shadow: 4px 4px 0 var(--text); }
.btn-outline { background:transparent; color:#fff; border-color:#fff; }
.btn-outline:hover { background:var(--accent); color:var(--text); border-color: var(--text); }

/* ━━━ 애니메이션 ━━━ */
.fade-in-up { opacity:0; transform:translateY(40px); transition:all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
.fade-in-up.visible { opacity:1; transform:translateY(0); }

/* ━━━ 푸터 ━━━ */
footer {
  background:var(--text); color:rgba(255,255,255,0.8);
  padding:5rem 0 2rem; text-align:center; width:100%;
  border-top: 10px solid var(--primary);
}
.footer-tagline { font-size:1.5rem; color:var(--accent); font-weight:900; margin-bottom:1.5rem; }
.footer-info { font-size:0.95rem; opacity:0.9; font-weight: 500; }
.footer-copy {
  font-size:0.85rem; opacity:0.4;
  border-top:1px solid rgba(255,255,255,0.1);
  padding-top:2rem; margin-top:3rem;
}

@media print {
  header, .hero-prev, .hero-next, .hero-dots { display:none; }
  .card, .stat-item, .process-step { border: 1px solid #000 !important; box-shadow: none !important; }
}

/* ── Geometric Profile Overrides ────────────────────────── */
:root { --card-radius: 0px; --btn-radius: 0px; }
.card {
  border-radius: 0;
  box-shadow: none;
  border: 2px solid var(--text);
  position: relative;
  overflow: visible;
}
.card::after {
  content: '';
  position: absolute;
  top: 6px; left: 6px;
  right: -6px; bottom: -6px;
  background: var(--primary);
  z-index: -1;
  transition: all 0.25s;
}
.card:hover { transform: translate(-3px, -3px); }
.card:hover::after { top: 9px; left: 9px; right: -9px; bottom: -9px; }
.btn-primary { border-radius: 0; font-weight: 700; border-bottom: 3px solid var(--accent, var(--secondary)); }
.section-header h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 56px; height: 4px;
  background: var(--primary);
  margin: 0.6rem auto 0;
}
section:nth-of-type(even) { background: #f5f5f5; border-top: 3px solid var(--primary); }
.process-num { border-radius: 0; }
.timeline-dot { border-radius: 0; width: 14px; height: 14px; }