/* ============================================================
   AICube — base.css
   디자인 토큰 · 리셋 · 타이포그래피 · 접근성 · 반응형 기본
   본문: 화이트+네이비 / 히어로·클로징만 다크+퍼플 (V2 표지 톤)
   ============================================================ */

/* Pretendard Variable v1.3.9 — 로컬 번들(assets/fonts). 외부 네트워크 의존 없이
   file:// 오프라인 열람에서도 동일하게 렌더된다. */
@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: local("Pretendard Variable"),
       url("../fonts/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  /* --- 본문 톤: 화이트 + 네이비 --- */
  --ink: #16233f;            /* 본문 텍스트(다크 네이비) */
  --navy: #142b55;           /* 헤드라인·강조 네이비 */
  --navy-deep: #0e1c38;      /* 다크 배너·푸터 */
  --blue: #2e74bb;           /* 포인트 블루(V2 본문 포인트) */
  --blue-dark: #235d97;
  --blue-soft: #e8f0f9;
  --muted: #5b6b82;
  --line: #dde4ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;

  /* --- 히어로·클로징 전용: 다크 + 퍼플 (본문 확산 금지) --- */
  --hero-bg: #17122a;
  --hero-bg-2: #251b41;
  --purple: #755596;
  --purple-bright: #b39bd0;
  --purple-soft: #f0eaf6;

  /* --- 상태 배지: 제공 가능=블루 / PoC=앰버(NetZero만 그린) / R&D=퍼플 --- */
  --st-available: #1d5fa8;
  --st-available-bg: #e3eefa;
  --st-poc: #9c5910;
  --st-poc-bg: #fbeed7;
  --st-green: #1c7c3d;
  --st-green-bg: #e4f3e9;
  --st-rnd: #6b4a91;
  --st-rnd-bg: #efe8f7;

  /* --- 형태·그림자·레이아웃 --- */
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(20, 33, 61, 0.06);
  --shadow-lg: 0 10px 28px rgba(20, 33, 61, 0.12);
  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo",
          "Malgun Gothic", "Segoe UI", sans-serif;
  --header-h: 72px;
  --max: 1140px;
}

/* --- 리셋 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* --- 레이아웃 유틸 --- */
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy-deep); color: #fff; }

/* --- 타이포그래피 --- */
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; color: var(--navy); }
h1 { font-size: clamp(32px, 4.5vw, 50px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow--purple { color: var(--purple-bright); }
.lead { font-size: 17px; color: var(--muted); line-height: 1.7; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16px; line-height: 1.7; }
.section-head--light h2 { color: #fff; }
.section-head--light p { color: rgba(255, 255, 255, 0.75); }
.small-note { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* 신뢰 데이터 기준일 문구 */
.asof-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  line-height: 1.5;
}
.asof-note strong { color: var(--navy); font-weight: 700; }

/* --- 접근성 --- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- 반응형 브레이크포인트: 1040 / 860 / 620 --- */
@media (max-width: 1040px) {
  .section { padding: 80px 0; }
}
@media (max-width: 860px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 52px 0; }
  .lead { font-size: 15px; }
}
