/* PeacePixel 홈페이지 스타일: 디자인 토큰, 섹션 레이아웃, 반응형, 감소 모션 */
:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;
  --dark: #111317;
  --dark-cell: #22262D;
  --ink: #14161A;
  --ink-2: #2A2E35;
  --sub: #3D424B;
  --muted: #5A606B;
  --line: #E2E5EA;
  --line-2: #C9CDD4;
  --on-dark: #F4F5F7;
  --on-dark-2: #C9CDD4;
  --on-dark-3: #A9AFBA;
  --a: #2F6BFF;
  --a-text: #1F55D6;
  --a-text-hover: #163FA3;
  --a-tint: #EEF3FF;
  --b: #F26B1D;
  --b-text: #B4470A;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: var(--a-text); }
a:hover { color: var(--a-text-hover); }
:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.pad { padding-top: 112px; padding-bottom: 112px; }
.pad-lg { padding-top: 120px; padding-bottom: 120px; }
.white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--dark); color: var(--on-dark); }

.skip { position: absolute; left: 16px; top: -48px; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; color: #fff; }

/* 공통 글자 */
.eyebrow { margin-bottom: 20px; font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dark .eyebrow { color: var(--on-dark-3); }
.h2 { font-size: 42px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 700; }
.h2-lg { font-size: 40px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin-top: 32px; }
.h2-xl { font-size: 46px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 700; }
.narrow { max-width: 760px; }
.body-lg { margin-top: 20px; font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.note { margin-top: 20px; font-size: 15px; color: var(--muted); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 500; text-decoration: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A2E35; color: #fff; }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-lg { min-height: 52px; padding: 0 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* 헤더 */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; min-height: 44px; }
.brand:hover { color: var(--ink); }
.fa { fill: var(--a); } .fb { fill: var(--b); } .fi { fill: var(--ink); }
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 15px; }
.nav-link { color: var(--sub); text-decoration: none; padding: 10px 0; }
.nav-link:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.lang button { font: inherit; font-size: 13px; min-width: 44px; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* 픽셀 격자 공통 */
.grid { display: grid; width: 100%; }
.cell { aspect-ratio: 1 / 1; border-radius: 3px; }

/* 히어로 */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 96px; padding-bottom: 112px; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero h1 { font-size: 72px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.hero-lead { margin-top: 28px; font-size: 21px; line-height: 1.65; color: var(--ink-2); max-width: 560px; }
.hero-art { flex: 0 1 420px; min-width: 260px; }
.hero-grid { grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; }
.caption { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: right; }
@keyframes ppfill { 0%, 12% { opacity: 0; transform: scale(.3); } 32%, 86% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.3); } }
.gap-cell { animation: ppfill 7s ease-in-out infinite both; }

/* Why now */
.why-title { font-size: 46px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 700; max-width: 920px; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 56px; }
.dark .cols3 p { font-size: 17px; line-height: 1.8; color: var(--on-dark-2); }

/* 철학 */
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.split.center { align-items: center; gap: 56px; }
.split-main { flex: 1 1 420px; min-width: 0; }
.split-side { flex: 1 1 400px; min-width: 0; }
.kanji { font-size: 120px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; }
.kanji-plus { color: var(--line-2); }
.kanji-gap { color: var(--a); }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.card h3 { font-size: 22px; letter-spacing: -0.01em; }
.card p { margin-top: 12px; font-size: 16px; line-height: 1.75; color: var(--sub); }
.swatches { display: flex; gap: 6px; margin-bottom: 24px; }
.sw { width: 22px; height: 22px; border-radius: 4px; }
.a { background: var(--a); } .b { background: var(--b); } .soft { opacity: .7; }
.faces { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; color: var(--muted); }
.face { width: 92px; }
#face-low { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
#face-low .cell { border-radius: 2px; }
#face-hi { grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 1px; }
#face-hi .cell { border-radius: 0; }

/* 여덟 가지 틈 */
.gap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 56px; }
.gap { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--surface-2); }
.gap h3 { margin-top: 10px; font-size: 20px; }
.gap p:last-child { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--sub); }
.gap-tag { font-size: 13px; color: var(--muted); }
.gap-a, .gap-b { background: var(--surface); border-width: 1.5px; }
.gap-a { border-color: var(--a); }
.gap-b { border-color: var(--b); }
.gap-a .gap-tag { color: var(--a-text); font-weight: 500; }
.gap-b .gap-tag { color: var(--b-text); font-weight: 500; }
.gap-note { margin-top: 28px; font-size: 15px; color: var(--muted); }

/* 영상 구조 */
.steps { gap: 24px; }
.steps h3 { margin-top: 24px; font-size: 22px; }
.steps p { margin-top: 8px; font-size: 16px; line-height: 1.75; color: var(--sub); }
.step-art { height: 120px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 28px; }
.step-art.tight { gap: 6px; }
.step-art.tighter { gap: 4px; }
.blk { width: 64px; height: 64px; border-radius: 8px; }
.dot { width: 14px; height: 14px; border-radius: 3px; }
.dots { display: grid; grid-template-columns: repeat(2, 14px); gap: 4px; }

/* 하는 일 */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 56px; }
.work { border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.work-name { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.work > p { font-size: 16px; line-height: 1.75; color: var(--sub); }
.work > p.work-meta { margin-top: auto; font-size: 14px; color: var(--muted); }
.work ul { padding-left: 18px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.work-link { margin-top: auto; font-weight: 500; padding: 10px 0; }
.badge { align-self: flex-start; font-size: 13px; padding: 4px 12px; border-radius: 999px; background: #F1F2F4; color: var(--sub); }
.badge-a { background: var(--a-tint); color: var(--a-text); }
.badge-push { margin-top: auto; }

/* Human × AI */
.rules { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rules li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; }
.rule-no { font-weight: 700; color: var(--a-text); }
.rules li:nth-child(2) .rule-no { color: var(--b-text); }
.rules p { font-size: 16px; line-height: 1.7; }

/* Peace Canvas */
.canvas-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.canvas-text { flex: 1 1 520px; min-width: 0; }
.canvas-body { margin-top: 20px; font-size: 17px; line-height: 1.8; color: var(--on-dark-2); max-width: 620px; }
.counter { text-align: right; }
.counter-num { font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.counter-of { margin-top: 8px; font-size: 15px; color: var(--on-dark-3); }
.canvas-grid { margin-top: 48px; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 3px; }
.canvas-grid .cell { border-radius: 2px; background: var(--dark-cell); }
.canvas-grid .first { background: var(--b); animation: pppulse 2.4s ease-in-out infinite; }
@keyframes pppulse { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }
.canvas-foot { margin-top: 20px; font-size: 14px; color: var(--on-dark-3); }

/* 함께하기 */
.join { text-align: center; }
.join .h2-xl { max-width: 820px; margin: 0 auto; }
.join .body-lg { max-width: 640px; margin: 24px auto 0; }
.join .actions { justify-content: center; }

/* 푸터 */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-in { padding-top: 64px; padding-bottom: 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.footer-brand { font-size: 20px; font-weight: 700; }
.footer-tag { margin-top: 8px; font-size: 15px; color: var(--sub); }
.footer-info { font-size: 14px; line-height: 1.9; color: var(--sub); }
.footer-info .strong, .strong { font-weight: 700; color: var(--ink); }
.footer-h { font-size: 14px; line-height: 1.9; }
.purposes { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 14px; color: var(--sub); }
.purposes summary { cursor: pointer; font-weight: 500; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
.purposes ol { margin-top: 8px; padding-left: 20px; line-height: 1.9; }
.copy { margin-top: 32px; font-size: 13px; color: var(--muted); }

/* 휴대폰 */
@media (max-width: 720px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .pad, .pad-lg { padding-top: 80px; padding-bottom: 80px; }
  .nav { gap: 12px; }
  .nav-link { display: none; }
  .hero { padding-top: 56px; padding-bottom: 80px; gap: 40px; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 18px; }
  .hero-art { min-width: 0; flex-basis: 100%; }
  .h2, .h2-lg, .h2-xl, .why-title { font-size: 30px; }
  .kanji { font-size: 88px; }
  .cols3, .gap-grid, .work-grid, .cards2 { grid-template-columns: 1fr; }
  .counter { text-align: left; }
  .counter-num { font-size: 48px; }
  .canvas-grid { gap: 2px; }
}

/* 움직임 줄이기 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gap-cell, .canvas-grid .first { animation: none; opacity: 1; transform: none; }
}
