/* ─────────────────────────────────────────────────────────────
   Tiger Data 스타일 — 거친 종이 바탕, 먹선 테두리 카드,
   Geist 굵은 제목(주황), Geist Mono 대문자 라벨, 형광 노랑 강조.
   ───────────────────────────────────────────────────────────── */
:root {
  --ink: #0a0a0c;
  --ink-2: #1a1a1d;
  --zinc: #71717a;
  --zinc-2: #a1a1aa;
  --line: #e4e4e7;
  --paper: #ffffff;
  --bg: #f4f4f2;
  --orange: #f26a35;
  --yellow: #f4ff7d;
  --yellow-2: #f7ff9d;
  --v10: #3b6fd8; --v20: #2f9e5c; --v30: #7c4ddb; --red: #e03131;
  --max: 1200px;
  --sans: 'Geist', 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'Geist Mono', 'Pretendard Variable', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  background-color: var(--bg);
  /* 종이 결 — 아주 옅은 노이즈 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; word-break: keep-all; overflow-wrap: break-word; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.wrap { width: calc(100% - 40px); max-width: var(--max); margin-inline: auto; }
.mono { font-family: var(--mono); }
.up { text-transform: uppercase; letter-spacing: .04em; }

/* ── 알림 띠 ─────────────────────────────────────────────── */
.announce {
  text-align: center; font-size: 13.5px; padding: 8px 16px;
  background: linear-gradient(90deg, #111 0%, var(--yellow) 14%, var(--yellow) 86%, #111 100%);
}
.announce b { font-weight: 600; }

/* ── 내비 ────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.menu { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; font-weight: 500; }
.menu a { position: relative; padding: 6px 0; white-space: nowrap; }
.menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a .n { font-family: var(--mono); font-size: 11px; color: var(--zinc); margin-right: 4px; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.chip { font-family: var(--mono); font-size: 12px; padding: 5px 9px; background: var(--yellow); border: 1px solid var(--ink); white-space: nowrap; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--ink); background: #fff; border-radius: 4px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); margin: 4px auto; }

/* ── 버튼 ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 42px; padding: 10px 22px; border: 1px solid var(--ink); border-radius: 3px;
  font-family: var(--mono); font-size: 13.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--yellow); }
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); color: var(--yellow); }
.btn svg { width: 14px; height: 14px; }

/* ── 히어로 카드 ─────────────────────────────────────────── */
.hero { padding: 40px 0 0; }
.hcard {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center;
  min-height: 540px; background: #fff; border: 1px solid var(--ink); border-radius: 12px; overflow: hidden;
}
.hcard__copy { padding: 64px 0 64px 56px; position: relative; z-index: 2; }
.eyebrow { font-family: var(--mono); font-size: 17px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 44px; }
.eyebrow .dim { color: var(--zinc); }
.hcard h1 { color: var(--orange); font-weight: 700; font-size: clamp(38px, 5vw, 62px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 28px; }
.hcard .lead { color: #3f3f46; font-size: 17.5px; line-height: 1.6; max-width: 34ch; }
.hcard .acts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hcard__stage { position: relative; height: 100%; min-height: 540px; }
.hcard__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s var(--ease); }
.hcard__stage canvas.is-ready { opacity: 1; }
/* 오른쪽 아래 점묘 바닥 — Tiger 의 거친 바닥면 */
.hcard::after {
  content: ''; position: absolute; right: -40px; bottom: -40px; width: 300px; height: 190px; transform: skewX(-50deg); z-index: 0;
  background-image: radial-gradient(#0a0a0c 0.7px, transparent 0.9px); background-size: 4px 4px; opacity: .18; pointer-events: none;
}

/* ── 신뢰 띠(쓰인 장비 · 도구) ──────────────────────────── */
.trust { padding: 64px 0 40px; text-align: center; }
.trust p { font-family: var(--mono); font-size: 13.5px; letter-spacing: .08em; color: var(--zinc); text-transform: uppercase; margin-bottom: 26px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: slide 36s linear infinite; }
.marquee__track span { font-weight: 700; font-size: 21px; letter-spacing: -.02em; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.marquee__track span i { font-style: normal; font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--zinc); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── 어두운 통계 띠 ──────────────────────────────────────── */
.stats { margin: 24px 0; background: var(--ink); color: #fff; border-radius: 12px; overflow: hidden; position: relative; }
.stats::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.2) 0.7px, transparent 0.9px); background-size: 5px 5px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); mask-image: linear-gradient(90deg, #000, transparent 60%); }
.stats__in { position: relative; display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 24px; align-items: center; padding: 34px 40px; }
.stats h3 { font-size: 20px; font-weight: 600; line-height: 1.35; }
.stat b { display: block; font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--yellow); letter-spacing: .05em; }
.stat span { font-family: var(--mono); font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }

/* ── 섹션 공통 ───────────────────────────────────────────── */
.sec { padding: 96px 0 0; }
.sec__label { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.sec__title { font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -.03em; max-width: 22ch; }
.sec__desc { color: #52525b; font-size: 17px; max-width: 58ch; margin-top: 16px; }
.sec__head { margin-bottom: 44px; }

/* 파트 카드 */
.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.part { position: relative; display: flex; flex-direction: column; min-height: 250px; padding: 24px; background: #fff; border: 1px solid var(--ink); border-radius: 10px; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.part:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.part .no { font-family: var(--mono); font-size: 13px; display: flex; justify-content: space-between; align-items: center; }
.part .done { background: var(--yellow); color: var(--ink); border: 1px solid var(--ink); padding: 2px 7px; font-size: 11.5px; }
.part svg.ic { width: 54px; height: 54px; margin: 26px 0 18px; }
.part h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.part p { color: #52525b; font-size: 14.5px; margin-top: 6px; line-height: 1.55; }
.part .tags { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--mono); font-size: 11.5px; padding: 2px 7px; border: 1px solid var(--line); color: #3f3f46; background: #fafafa; }
.part--wide { grid-column: span 2; background: var(--ink); color: #fff; }
.part--wide p { color: #d4d4d8; }
.part--wide .tag { background: transparent; color: #e4e4e7; border-color: #3f3f46; }
.part--wide:hover { box-shadow: 6px 6px 0 var(--orange); }

/* 표 */
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--ink); border-radius: 10px; overflow: hidden; font-size: 15px; }
.tablewrap { overflow-x: auto; border-radius: 10px; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; background: #fafafa; color: #3f3f46; }
.table tr:last-child td { border-bottom: 0; }
.table td code { font-size: 13.5px; background: #f4f4f5; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.pill-ok { font-family: var(--mono); font-size: 12px; color: #166534; background: #dcfce7; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.pill-deny { font-family: var(--mono); font-size: 12px; color: #991b1b; background: #fee2e2; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }

/* 기능 카드(파트 페이지) */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 26px; background: #fff; border: 1px solid var(--ink); border-radius: 10px; }
.feat .k { font-family: var(--mono); font-size: 12.5px; color: var(--zinc); letter-spacing: .06em; text-transform: uppercase; }
.feat h3 { font-size: 19px; font-weight: 700; margin: 10px 0 8px; letter-spacing: -.02em; }
.feat p { color: #52525b; font-size: 15px; }

/* 단계 · 코드 */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 26px; background: #fff; border: 1px solid var(--ink); border-radius: 10px; }
.step__meta .n { font-family: var(--mono); font-size: 13px; color: var(--orange); }
.step__meta h3 { font-size: 18px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.step__meta p { color: #52525b; font-size: 14.5px; margin-top: 8px; }
.code { position: relative; background: var(--ink); color: #e4e4e7; border-radius: 8px; overflow: hidden; }
.code__bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid #27272a; font-family: var(--mono); font-size: 12px; color: #a1a1aa; letter-spacing: .05em; text-transform: uppercase; }
.code__bar i { font-style: normal; display: inline-flex; gap: 6px; }
.code__bar i::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); display: inline-block; margin-top: 3px; }
.copy { font-family: var(--mono); font-size: 11.5px; color: #e4e4e7; background: transparent; border: 1px solid #3f3f46; border-radius: 3px; padding: 3px 9px; cursor: pointer; }
.copy:hover { border-color: var(--yellow); color: var(--yellow); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; }
.code .c { color: #71717a; }
.code .k { color: var(--yellow); }
.code .ok { color: #86efac; }
.code .no { color: #fca5a5; }

/* 검증 */
.verify { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.checks { background: #fff; border: 1px solid var(--ink); border-radius: 10px; padding: 8px 22px; }
.checks li { list-style: none; display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: '✓'; width: 22px; height: 22px; display: grid; place-items: center; background: var(--yellow); border: 1px solid var(--ink); font-size: 12px; font-weight: 700; }
.checks ul { margin: 0; padding: 0; }
.checks small { display: block; color: var(--zinc); font-family: var(--mono); font-size: 12.5px; margin-top: 2px; }

/* 이전 · 다음 */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 96px 0 0; }
.pager a { display: block; padding: 22px 24px; background: #fff; border: 1px solid var(--ink); border-radius: 10px; transition: background-color .2s; }
.pager a:hover { background: var(--yellow); }
.pager .k { font-family: var(--mono); font-size: 12.5px; color: var(--zinc); letter-spacing: .06em; text-transform: uppercase; }
.pager b { display: block; font-size: 19px; margin-top: 4px; letter-spacing: -.02em; }
.pager .next { text-align: right; }

/* 팀 */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mem { padding: 20px 22px; background: #fff; border: 1px solid var(--ink); border-radius: 10px; }
.mem .no { font-family: var(--mono); font-size: 12.5px; color: var(--orange); }
.mem b { display: block; font-size: 17px; margin-top: 6px; }
.mem span { color: #52525b; font-size: 14px; }

/* 푸터 */
.foot { margin-top: 120px; background: var(--ink); color: #d4d4d8; }
.foot__in { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 40px; padding: 56px 0 40px; }
.foot .brand { color: #fff; }
.foot p { color: #a1a1aa; font-size: 14px; margin-top: 14px; max-width: 42ch; }
.foot h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.foot a:hover { color: var(--yellow); }
.foot__bar { border-top: 1px solid #27272a; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); font-family: var(--mono); font-size: 12.5px; color: #71717a; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* 등장 */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ── 반응형 ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .menu { gap: 16px; font-size: 13.5px; }
  .menu a .n { display: none; }
  .parts { grid-template-columns: repeat(2, 1fr); }
  .stats__in { grid-template-columns: repeat(2, 1fr); }
  .stats h3 { grid-column: 1 / -1; }
  .team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .burger { display: block; }
  .menu { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--ink); padding: 8px 20px 16px; display: none; font-size: 16px; }
  .menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu a .n { display: inline; }
  .nav.open .menu { display: flex; }
  .nav__right .chip { display: none; }
  .hcard { grid-template-columns: 1fr; }
  .hcard__copy { padding: 44px 28px 12px; }
  .hcard__stage { min-height: 380px; }
  .feats, .verify { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 16px; }
  .foot__in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .parts, .team { grid-template-columns: 1fr; }
  .part--wide { grid-column: auto; }
  .eyebrow { font-size: 14px; margin-bottom: 28px; }
  .hcard .acts .btn { flex: 1 1 100%; }
  .stats__in { padding: 28px 24px; }
  .pager { grid-template-columns: 1fr; }
  .nav__right .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
