/* ============================================================
   LIMPID · Base
   리셋 + 타이포 프리미티브 + 공용 컴포넌트(버튼·아이브로우·플레이스홀더)
   섹션별 스타일은 home.css 에 있다.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* 한글은 어절 단위로 끊어야 읽힌다. 전역 기본값으로 둔다 */
h1, h2, h3, h4, p, li, dt, dd { word-break: keep-all; overflow-wrap: break-word; }

/* ------------------------------------------------------------
   레이아웃 프리미티브
   ------------------------------------------------------------ */

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: calc(920px + var(--gutter) * 2); }

.section { padding-block: var(--sec-y); position: relative; }
.section--soft { background: var(--paper-soft); }
.section--tint { background: var(--paper-tint); }

/* 어두운 면. 안쪽 텍스트 색을 통째로 뒤집는다.
   배경은 반드시 --surface-dark 를 쓴다. 아래에서 --ink 를 흰색으로 덮기 때문에
   background: var(--ink) 로 쓰면 같은 요소에서 뒤집힌 값을 먹어 흰 면이 된다 */
.section--ink {
  background: var(--surface-dark);
  color: var(--on-ink-2);
  --ink: var(--on-ink);
  --ink-2: var(--on-ink-2);
  --ink-3: var(--on-ink-3);
  --line: var(--on-ink-line);
  --line-soft: rgba(255, 255, 255, .09);
  --brand: var(--brand-on-dark, #7ea8ee);
  --paper: #161d2e;
  --paper-soft: #1b2335;
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------------
   타이포 프리미티브
   ------------------------------------------------------------ */

.display {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--ink);
  text-wrap: balance;
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  text-wrap: balance;
}

.h3 {
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: 1.38;
  letter-spacing: -.02em;
  color: var(--ink);
}

/* 영문 대형 타이틀. 한글 제목과 리듬을 다르게 준다 */
.h-en {
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  font-weight: 640;
  line-height: 1.16;
  letter-spacing: -.03em;
  color: var(--ink);
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.82;
  color: var(--ink-2);
}

.muted { color: var(--ink-3); }

.pre-line { white-space: pre-line; }

/* ------------------------------------------------------------
   림피드 심볼 마커 (전 페이지 공용)
   로고의 잎 심볼을 단색 마스크로 차용한 라벨 마커.
   랜딩 외 페이지(뉴스룸·회사소개 등)는 자기 CSS 를 만들지 말고
   마크업에 `mark-dot` 클래스만 붙여 쓸 것 - 이 파일이 단일 출처다.
   크기는 --mark-size(기본 9px), 색은 currentColor.
   ------------------------------------------------------------ */
.mark-dot::before,
.eyebrow::before {
  content: '';
  width: var(--mark-size, 9px);
  height: var(--mark-size, 9px);
  flex: none;
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--mark-url) center / contain no-repeat;
          mask: var(--mark-url) center / contain no-repeat;
}
.mark-dot { display: inline-flex; align-items: center; gap: 10px; }

/* 아이브로우 : 심볼 마커 + 대문자 라틴 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow--bare::before { display: none; }

/* 인덱스 숫자 01 / 02 / 03 */
.idx {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   버튼 · 링크
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding-inline: 26px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); }

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn--sm { height: 40px; padding-inline: 18px; font-size: var(--fs-xs); }

/* 화살표 텍스트 링크 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  padding-block: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.link-arrow svg { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover { color: var(--brand); border-color: var(--brand); }
.link-arrow:hover svg { transform: translateX(4px); }

/* 체크 목록 */
.checks { display: grid; gap: 10px; }
.checks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-2);
}
.checks li::before {
  content: '';
  width: 18px; height: 18px;
  margin-top: .18em;
  border-radius: 50%;
  background: var(--brand-tint);
  background-image: linear-gradient(var(--brand), var(--brand));
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='black' opacity='.16'/%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' stroke='black' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='black' opacity='.16'/%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' stroke='black' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  flex: none;
}

/* ------------------------------------------------------------
   이미지 자리 (아직 자산을 안 넣은 슬롯)
   data-ph 값이 그대로 라벨로 찍힌다. 실제 <img> 로 교체하면 됨
   ------------------------------------------------------------ */

.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  background:
    repeating-linear-gradient(-45deg,
      rgba(35, 81, 163, .045) 0 10px,
      rgba(35, 81, 163, .015) 10px 20px),
    var(--paper-soft);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  min-height: 160px;
}
.ph::after {
  content: attr(data-ph);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-4);
  text-align: center;
  padding: 0 20px;
  line-height: 1.5;
}
.ph--tall { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 16 / 10; }
.ph--square { aspect-ratio: 1 / 1; }

/* ------------------------------------------------------------
   스크롤 등장
   ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
