/* bpkpcb — 브랜드 매뉴얼 v1.0 토큰 기반. 외부 리소스 없음 (폰트 자체 호스팅) */

@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 700; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --navy: #1A2745;
  --navy-deep: #0E1629;
  --cyan: #0E9AD6;
  --cyan-light: #3DBDEB;
  --paper: #F4F5F7;
  --white: #FFFFFF;
  --slate: #5B6472;
  --line: #D9DDE3;
  --on-dark-muted: #A9B4C8;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
}
/* 한국어 — 어절 단위 줄바꿈, 한글은 시스템 폰트 (CJK 자체 호스팅 안 함) */
:lang(ko) { word-break: keep-all; }
/* 한글은 IBM Plex Mono에 없어 고정폭 공백과 섞이면 간격이 벌어짐 → 모노 자리도 본문 폰트로 */
html:lang(ko) { --font-mono: 'IBM Plex Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif; }
body:lang(ko) { font-family: 'IBM Plex Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif; }
/* 중국어(간체)·일본어 — 시스템 폰트, 모노 자리도 본문 폰트 (CJK는 IBM Plex Mono에 없음) */
html:lang(zh) { --font-mono: 'IBM Plex Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; }
body:lang(zh) { font-family: 'IBM Plex Sans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; }
html:lang(ja) { --font-mono: 'IBM Plex Sans', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', system-ui, sans-serif; }
body:lang(ja) { font-family: 'IBM Plex Sans', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', system-ui, sans-serif; }
/* 큰 제목은 단어 중간에서 끊지 않고 구두점·공백에서만 줄바꿈 */
h1:lang(zh), h1:lang(ja) { word-break: keep-all; overflow-wrap: anywhere; } /* 끊을 곳이 없어 넘칠 때만 아무 곳에서나 */
a { color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); color: var(--navy); padding: 8px 12px; }

/* ── 헤더 ─────────────────────────────────────── */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; gap: 40px;
  padding: 22px var(--gutter);
  color: var(--white);
}
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo svg { height: 20px; width: auto; display: block; }
.logo-word { font-weight: 700; font-size: 26px; line-height: 20px; letter-spacing: 0.02em; transform: skewX(-18deg); }
.logo-word b { color: var(--cyan-light); font-weight: 700; }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--on-dark-muted); }
.nav a:hover, .nav a[aria-current] { color: var(--white); }
.header-cta { margin-left: auto; }
/* 언어 선택 — 헤더 맨 오른쪽. 비활성 언어(준비 중)는 흐리게 */
.lang { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-left: -16px; }
.lang > * + *::before { content: "·"; margin-right: 10px; color: rgba(169, 180, 200, .5); }
.lang a { text-decoration: none; color: var(--on-dark-muted); }
.lang a:hover, .lang a[aria-current] { color: var(--white); font-weight: 600; }
.lang a:focus-visible { outline: 2px solid var(--cyan-light); outline-offset: 3px; }
.lang [aria-disabled] { color: rgba(169, 180, 200, .62); cursor: default; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 2px;
  font: 600 15px/1 var(--font-sans); text-decoration: none;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--cyan); color: var(--white); }
.btn-primary:hover { background: #0B86BB; }
.btn-ghost { border-color: rgba(169, 180, 200, .45); color: var(--white); }
.btn-ghost:hover { border-color: var(--cyan-light); }
.btn:focus-visible, .card:focus-visible, .nav a:focus-visible { outline: 2px solid var(--cyan-light); outline-offset: 3px; }

/* ── 히어로 ───────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: max(100vh, 720px);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter);
  background:
    radial-gradient(ellipse 70% 80% at 70% 45%, #22335A 0%, rgba(26, 39, 69, 0) 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.hero-video, .hero-static { position: absolute; pointer-events: none; }
.hero-video { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .6s ease; }
/* 정적 키비주얼 = 영상 루프 첫 프레임 (scripts/encode-hero-video.sh). 영상과 같은 좌표계로 겹친다 */
.hero-static { inset: 0; transition: opacity .6s ease; }
.hero-static img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero.is-live .hero-video { opacity: 1; }
/* 배경 장면 위 본문 가독성 — 왼쪽·하단 음영 */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 22, 41, .9) 0%, rgba(14, 22, 41, .72) 34%, rgba(14, 22, 41, 0) 58%),
    linear-gradient(0deg, rgba(14, 22, 41, .85) 0%, rgba(14, 22, 41, 0) 32%);
}
.hero.is-live .hero-static { opacity: 0; }

.hero-body { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 96px; max-width: 600px; }
.hero h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 22px; }
.hero-sub { font-size: 18px; line-height: 1.6; color: #D5DCE8; margin: 0 0 32px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.promise { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; font: 500 13px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--on-dark-muted); }
.promise::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-light); box-shadow: 0 0 0 4px rgba(61, 189, 235, .18); }
.promise strong { color: var(--white); font-weight: 500; }

/* 바이어 유형 분기 카드 */
.cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 0 40px; }
.card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 24px 20px; text-decoration: none;
  background: rgba(14, 22, 41, .72); border: 1px solid rgba(169, 180, 200, .2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .15s, background .15s;
}
.card:hover { border-color: var(--cyan-light); background: rgba(14, 22, 41, .88); }
.card-title { font-size: 19px; font-weight: 600; line-height: 1.3; }
.card-text { font-size: 14px; line-height: 1.55; color: var(--on-dark-muted); }
.card-go { margin-top: auto; padding-top: 6px; font: 500 13px/1 var(--font-mono); color: var(--white); }

/* ── 서브페이지 ───────────────────────────────── */
.page-head {
  position: relative; padding: 148px var(--gutter) 56px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.page-head h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; font-weight: 700; margin: 0 0 16px; max-width: 18em; }
.page-head .lead { font-size: 18px; color: #D5DCE8; margin: 0; max-width: 40em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: 22px; font-weight: 600; margin: 0 0 20px; }
.section p { margin: 0 0 16px; max-width: 44em; color: #2B3548; }

.practice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.practice li { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.practice li:nth-child(odd) { border-right: 1px solid var(--line); }
.practice li:nth-child(even) { padding-left: 24px; }
.practice b { display: block; font-weight: 600; margin-bottom: 6px; }
.practice span { color: var(--slate); font-size: 15px; }

.facts { display: grid; grid-template-columns: 220px 1fr; margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 500 12px/1.6 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); padding-top: 16px; }
.facts dd { font-size: 16px; }
.facts .ko { color: var(--slate); }
.facts a, .direct a, .prose a { color: var(--cyan); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.direct { background: var(--paper); padding: 28px; }
.direct h2 { font-size: 18px; margin: 0 0 16px; }
.direct dl { margin: 0; }
.direct dt { font: 500 11px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-top: 16px; }
.direct dd { margin: 4px 0 0; font-size: 16px; }
.direct .big { font-size: 20px; font-weight: 600; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label small { font-weight: 400; color: var(--slate); }
.field input, .field textarea {
  font: 16px/1.4 var(--font-sans); color: var(--navy);
  padding: 12px 14px; border: 1px solid #B8C0CC; border-radius: 2px; background: var(--white);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--cyan); outline-offset: 0; border-color: var(--cyan); }
.form-note { grid-column: 1 / -1; font-size: 14px; color: var(--slate); margin: 0; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 14px; color: var(--navy); margin: 0; }

.prose { max-width: 44em; }
.prose h2 { font-size: 20px; margin: 40px 0 12px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; color: #2B3548; }
.prose li { margin-bottom: 6px; }
.updated { font: 500 12px/1.4 var(--font-mono); color: var(--slate); letter-spacing: .08em; }

/* ── 푸터 ─────────────────────────────────────── */
.site-footer { background: var(--navy-deep); color: var(--on-dark-muted); padding: 48px var(--gutter) 40px; font-size: 14px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; }
.footer-legal p { margin: 0 0 6px; }
.footer-legal strong { color: var(--white); font-weight: 600; }
.footer-links { display: flex; gap: 20px; align-items: flex-start; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { color: var(--cyan-light); }
.footer-copy { grid-column: 1 / -1; font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; color: rgba(169, 180, 200, .6); margin: 8px 0 0; }

/* ── 반응형 ───────────────────────────────────── */
/* 모바일: 메뉴 4개는 숨기지 않고 로고 아래 둘째 줄로 내린다 (Review Focus 1) */
@media (max-width: 959px) {
  .site-header { flex-wrap: wrap; row-gap: 14px; }
  .nav { order: 3; width: 100%; gap: 20px; }
}
@media (max-width: 959px) {
  .contact-grid, .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .form { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .practice { grid-template-columns: 1fr; }
  .practice li:nth-child(odd) { border-right: 0; }
  .practice li:nth-child(even) { padding-left: 0; }
  .page-head { padding-top: 144px; }
  .hero-static { inset: 0 0 auto 0; height: 100vh; opacity: .75; }
  .hero-static img { object-position: top; }
  .hero-video { display: none; }
  .hero-body { justify-content: flex-start; padding-top: 42vh; max-width: none; }
  .cards { grid-template-columns: 1fr; gap: 12px; padding-top: 40px; }
  .header-cta { display: none; }
  /* 모바일: 로고 옆 한 줄에 들어가도록 간격 축소·구분점 생략 (360px까지) */
  .site-header { column-gap: 12px; }
  .lang { margin-left: auto; gap: 9px; font-size: 12px; }
  .lang > * + *::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video, .hero-static, .card, .btn { transition: none; }
}
