/* Pretendard 웹폰트 — 가변 다이나믹 서브셋 (페이지에 쓰인 글자만 로드) */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
/* Roboto 웹폰트 — 영문/숫자 (이젠고 메인 통일) */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

/* ============================================
   공통 스타일 - 헤더, 푸터, 색상 변수
   모든 페이지에서 공유됨
============================================ */

/* ===== CSS 변수 (색상/폰트 한번에 관리) ===== */
:root {
  --color-primary: #4a3aff;
  --color-accent: #256ef4;   /* KRDS primary-50 (2026-07-08) */
  --color-accent-2: #6ce4ff;
  --color-text: #111;
  --color-text-light: #222;   /* 2026-07-07 가독성 개선: 보조텍스트 #555 → #222 (읽기 피로 완화) */
  --color-bg: #fff;
  --color-bg-soft: #f7f7f9;
  --color-border: #e5e5ea;
  --color-dark: #0a0f1f;
  --color-dark-soft: #141a2e;
  --color-warn: #ba7517;
  --color-success: #0a8f7a;

  /* ===== 갤럭시/시네마틱 다크 톤 ===== */
  --color-bg-dark: #04081a;
  --color-bg-dark-2: #0a0f24;
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-mute: rgba(255,255,255,0.7);
  --color-border-on-dark: rgba(255,255,255,0.08);
  --glow-purple: 0 0 30px rgba(124, 110, 255, 0.2);
  --glow-mint: 0 0 30px rgba(42, 139, 204, 0.2);

  /* STEP 컬러 — PPT 원본 의미 보존, 다크 친화적으로 채도↓ 명도↑ */
  --step-1: #c88a5a;        /* 01 갈색 — 기초 변환 (PDF v1.9 도구 색상 준수) */
  --step-1-glow: rgba(200, 138, 90, 0.25);
  --step-2: #6b9b6e;        /* 02 그린 — 테마 이식 */
  --step-2-glow: rgba(107, 155, 110, 0.25);
  --step-3: #5a7fa8;        /* 03 블루 — 표준화 */
  --step-3-glow: rgba(90, 127, 168, 0.25);
  --step-4: #8b8d92;        /* 04 그레이 — 최적화 */
  --step-4-glow: rgba(139, 141, 146, 0.25);
  --step-5: #d4793b;        /* 05 오렌지 — 안정화 (KEY) */
  --step-5-glow: rgba(212, 121, 59, 0.35);

  --font-display: 'Roboto', 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Roboto', 'Pretendard Variable', 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-height: 84px;
  --max-width: 1280px;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; word-break: keep-all; overflow-wrap: break-word; }  /* 어절 단위 줄바꿈 — 전 페이지 공통 (2026-07-07) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== HEADER (흰 배경, 메인·서브 공통 — 하이닉스 스타일) ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-height);
  padding: 0 max(50px, 9%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled,
.header.solid {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--color-text);
  transition: color 0.3s ease;
}
.logo img {
  height: 34px;
  width: auto;
  display: block;
}
.logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
}

.header > nav {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.nav-menu {
  display: flex;
  gap: 50px;
  pointer-events: auto;
}
.nav-menu a {
  position: relative;
  display: flex;
  align-items: center;            /* 텍스트 세로 중앙 */
  height: var(--header-height);   /* 링크가 헤더 높이를 꽉 채움 → 보더가 헤더 하단에 */
  color: var(--color-text);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.3px;
  transition: color 0.2s ease;
}
/* 메뉴 오버/활성 시 헤더 하단에 하늘색 4px 보더 ON */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: -16px; right: -16px; bottom: 0;
  height: 4px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav-menu a:hover::after,
.nav-menu a.active::after { transform: scaleX(1); }

.header-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--color-text);
  transition: color 0.3s ease;
}
/* 이젠고 복귀 pill (이젠고 홈의 UIRestyler pill과 대칭) */
.header-icons .ez-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 20px; box-sizing: border-box; line-height: 1;
  border-radius: 999px;
  font-family: 'Pretendard Variable','Pretendard','Roboto','Noto Sans KR',sans-serif;
  font-size: 16px; font-weight: 500; letter-spacing: -.2px;
  color: #256ef4; background: #fff; border: 1.5px solid #256ef4;
  transition: background .18s, color .18s;
  white-space: nowrap; text-decoration: none;
  margin-right: 6px;
}
.header-icons .ez-cta:hover { background: #256ef4; color: #fff; }
.header-icons .icon {
  cursor: pointer;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}
.header-icons .icon:hover {
  color: var(--color-accent);
  background: rgba(42, 139, 204, 0.10);   /* 오버 시 옅은 하늘색 원형 하이라이트 */
}
.header-icons .icon svg {
  width: 28px; height: 28px;
  stroke-width: 1.4;
}
/* 네비(햄버거 ☰) — 기능 추가 전까지 숨김. 다시 보이려면 이 한 줄만 삭제 */
.header-icons .icon[title="메뉴"] { display: none; }
.try-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.try-demo:hover {
  background: #5949ff;
  box-shadow: 0 0 20px rgba(74, 58, 255, 0.4);
}
.try-demo-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}
.try-demo:hover .try-demo-arrow {
  transform: translateX(4px);
}

/* ===== 서브페이지용 공통 (헤더 아래 콘텐츠 영역) — 화이트 톤 (하이닉스 패턴) ===== */
.page-wrap {
  min-height: 100vh;
  padding-top: var(--header-height);
  background: var(--color-bg);
  color: var(--color-text);
}
/* HERO — 사진이 뒤에 깔리는 영역.
   페이지별로 .page-hero 에 background-image 를 추가해 실제 사진 교체.
   사진이 없으면 아래 그라데이션 폴백이 보임 */
.page-hero {
  padding: 30px 0 80px;       /* 좌우 여백은 .page-hero-inner 로 이동 (본문과 시작선 일치) */
  min-height: 480px;          /* PROBLEM/PIPELINE/CASE 히어로 높이 통일 — 가장 긴 콘텐츠보다 넉넉히 */
  box-sizing: border-box;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(4,8,26,0.30) 0%, rgba(4,8,26,0.55) 100%),
    linear-gradient(120deg, #2A8BCC 0%, #16335c 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
}
/* HERO 안쪽 정렬 박스 — 본문 .container 와 동일한 max-width + 좌우 60px 여백.
   → hero 텍스트 시작선이 아래 흰 본문/푸터와 정확히 일치.
   (problem/pipeline/case 페이지의 inline .page-hero-inner 는 여기로 일원화됨) */
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: #fff;
}
.page-hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
}
/* 콘텐츠 — 흰 배경 + 다크 텍스트 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 60px;
  color: var(--color-text);
}

/* ===== 섹션 제목 규칙 (2026-07-08 확정) =====
   시작선: 히어로 끝 → 첫 타이틀 = .container 상단 80px 고정 (첫 섹션 margin 0 · 페이지별 padding 예외 금지)
   eyebrow 13px = KRDS Body-xs · 타이틀 clamp(26,3vw,36) · 섹션 간격 90px(모바일 64px)
   ※ problem/pipeline/case/ai-reference 의 인라인 정의는 여기로 일원화 — 페이지 재정의 금지 */
.section-block { margin-top: 90px; }
.container > .section-block:first-child,
.container > .cv-section:first-child { margin-top: 0; }
.block-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--color-accent); margin-bottom: 12px; }
.block-title { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -1px; color: var(--color-text); margin-bottom: 36px; }
@media (max-width: 768px) {
  .section-block { margin-top: 64px; }
}

/* ===== FOOTER ===== */
.footer {
  background: #222222;                 /* 확정 톤 (2026-07-07) */
  color: #a9aeb8;
  padding: 60px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-brand {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.footer-info {
  font-size: 14px;
  color: #888;
}
.footer-link {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
}
.footer-link:hover { background: rgba(255,255,255,0.18); }

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .header { padding: 0 24px; }
  .nav-menu { gap: 28px; }
  .nav-menu a { font-size: 14px; }
  .page-hero-inner, .container, .footer { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 768px) {
  .header > nav, .header-icons .icon, .try-demo { display: none; }
  .container { padding-top: 50px; padding-bottom: 50px; }
}

/* ===== 언어 전환 — 지구본 드롭다운 (본 사이트 이식, 끝에 추가) ===== */
/* .header-icons 안의 언어 아이콘을 감싸는 래퍼 .lang 에 적용 */
.header-icons .lang { position: relative; display: inline-flex; align-items: center; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px;
  background: #fff; border: 1px solid var(--color-border); border-radius: 11px;
  box-shadow: 0 18px 34px -18px rgba(0,0,0,.24); padding: 7px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s; z-index: 130;
}
.lang.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
/* 다국어 임시 비활성 (이젠고 홈과 통일) — 아이콘만 노출, 드롭다운 미표시.
   마크업 보존. 다국어 복원 시 아래 한 줄만 삭제 */
.lang.is-open .lang-menu { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
.lang-menu a {
  font-size: 14.5px; color: var(--color-text); padding: 10px 16px; border-radius: 8px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.lang-menu a:hover { background: #f2f4f7; color: var(--color-accent); }
.lang-menu a.is-current { font-weight: 700; color: var(--color-accent); }
/* 준비중(비활성) 항목 — 영어/일본어 */
.lang-menu a.is-disabled { color: #bbb; cursor: default; pointer-events: none; }
.lang-menu a.is-disabled::after { content: " (준비중)"; font-size: 12px; color: #ccc; }

/* ===== 지구본 버튼(.lang-btn) 크기 — 검색 아이콘과 동일하게 (누락분 추가) ===== */
.lang-btn {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 0; background: none; cursor: pointer;
  color: var(--color-text); border-radius: 50%;
  transition: background .15s, color .15s;
}
.lang-btn:hover { background: rgba(37,110,244,.10); color: var(--color-accent); }
.lang-btn svg { width: 28px; height: 28px; stroke-width: 1.4; display: block; }
/* ===== FOOTER v2 — ncloud 구조 (전 페이지 공통, 2026-07-07) ===== */
.footer-v2 { padding: 56px clamp(24px, 6vw, 100px) 44px; background: #222222; }  /* 다크 확정 톤(2026-07-07) 명시 재보증 — 흰 푸터 방지 (rev5) */
.footer-social { max-width: var(--max-width); margin: 0 auto 40px; display: flex; gap: 14px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #c7ccd4; background: rgba(255,255,255,.07); transition: background .2s ease, color .2s ease;
}
.footer-social a svg { width: 20px; height: 20px; }
.footer-social a:hover { background: rgba(255,255,255,.16); color: #fff; }
.footer-cols {
  max-width: var(--max-width); margin: 0 auto 48px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
}
.f-col { display: flex; flex-direction: column; gap: 14px; }
.f-col-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.f-col a { font-size: 15px; color: #b9bec7; transition: color .15s ease; width: fit-content; }
.f-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 28px; }
.fb-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.fb-legal { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.fb-legal span, .fb-legal a { font-size: 14px; color: #9aa0ab; }
.fb-legal span { cursor: default; }
.fb-legal .fb-strong { color: #e8eaee; font-weight: 700; }
.fb-legal a { transition: color .15s ease; }
.fb-legal a:hover { color: #fff; }
.fb-lang {
  margin-left: auto; font-size: 14px; font-weight: 600; color: #d5d8de;
  border: 1px solid rgba(255,255,255,.22); border-radius: 8px; padding: 9px 18px;
}
.footer-v2 .footer-info { margin-top: 20px; font-size: 13.5px; color: #7e8490; line-height: 1.7; }
@media (max-width: 768px) {
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .fb-row { gap: 16px; }
  .fb-lang { margin-left: 0; }
}


/* ===== 사이트 검색 오버레이 (2026-07-07) ===== */
.srch-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 14, 22, .55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 14vh 20px 40px;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.srch-overlay.open { opacity: 1; visibility: visible; }
.srch-box { width: min(680px, 100%); background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.28); }
.srch-bar { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--color-border); }
.srch-bar svg { width: 22px; height: 22px; color: var(--color-text-light); flex: 0 0 auto; }
.srch-bar input { flex: 1; border: none; outline: none; font: inherit; font-size: 17px; color: var(--color-text); background: transparent; }
.srch-close { flex: 0 0 auto; border: none; background: transparent; font-size: 18px; color: var(--color-text-light); cursor: pointer; padding: 4px 6px; }
.srch-close:hover { color: var(--color-text); }
.srch-results { max-height: 46vh; overflow-y: auto; padding: 8px; }
.srch-results a { display: block; padding: 13px 14px; border-radius: 10px; font-size: 15.5px; font-weight: 600; color: var(--color-text); }
.srch-results a:hover { background: rgba(37,110,244,.08); color: var(--color-accent); }
.srch-empty { padding: 22px 14px; font-size: 15px; color: var(--color-text-light); }
.srch-empty a { color: var(--color-accent); font-weight: 700; }
