/* 쓰리케이엠 회사 홈페이지 공통 스타일
   색: ink 글자·선 / sky 바탕 / road 길 띠 / route 차선 노랑 / muted 보조 글자 */
:root {
  --ink: #182447;
  --sky: #EAF2FB;
  --road: #D3E2F4;
  --route: #F5B700;
  --muted: #56627F;
  --white: #FFFFFF;
  --line: #C9D7EA;
  --maxw: 1120px;
  --display: "Do Hyeon", "IBM Plex Sans KR", sans-serif;
  --body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--sky); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.7; word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--route); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(234,242,251,.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: .02em; }
.logo-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--route); border: 3px solid var(--ink); display: grid; place-items: center; font-size: 24px; color: var(--ink); }
.logo-word { margin-left: -4px; }
.logo small { font-family: var(--body); font-size: 13px; color: var(--muted); letter-spacing: 0; font-weight: 500; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--route); }

/* 히어로 */
.hero { padding: 64px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6.2vw, 76px); line-height: 1.12; margin: 0 0 24px; letter-spacing: -.01em; }
.hero p { font-size: 19px; color: var(--muted); max-width: 30em; margin: 0 0 32px; }
.hero-art { aspect-ratio: 1 / 1; position: relative; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--ink); }
.btn.primary { background: var(--ink); color: var(--white); }
.btn.primary:hover { background: #24346A; }
.btn.ghost:hover { background: var(--white); }

/* 길 — 히어로의 핵심 요소. 0 회사 → 1km 무비스타 → 2km 다음 게임 (도메인 2km.fun) */
.route { position: relative; margin: 56px 0 0; padding: 0 0 56px; }
.route-band { position: absolute; left: 0; right: 0; top: 22px; height: 28px; background: var(--road); }
.route-line {
  position: absolute; left: 0; right: 0; top: 34px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--route) 0 28px, transparent 28px 46px);
  animation: draw 1.6s cubic-bezier(.6,0,.3,1) .2s both;
}
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.route ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.route li { text-align: left; }
.route li a, .route li span.stop { display: inline-flex; flex-direction: column; text-decoration: none; }
.km {
  width: 72px; height: 72px; border-radius: 50%; background: var(--white); border: 3px solid var(--ink);
  display: grid; place-items: center; font-family: var(--display); font-size: 24px; line-height: 1;
  animation: pop .35s ease-out both;
}
.route li:nth-child(1) .km { animation-delay: .25s; }
.route li:nth-child(2) .km { animation-delay: .65s; }
.route li:nth-child(3) .km { animation-delay: 1.15s; background: var(--route); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.stop-name { margin-top: 12px; font-weight: 700; font-size: 16px; }
.stop-sub { font-size: 14px; color: var(--muted); }
.route li a:hover .km { background: var(--route); }

/* 섹션 공통 */
section.block { padding: 96px 0; }
section.block.white { background: var(--white); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.15; margin: 0 0 16px; }
.lead { color: var(--muted); max-width: 34em; margin: 0 0 48px; }

/* 게임 — 카드 대신 게임마다 한 줄 전체 */
.game { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 48px 0; border-top: 2px solid var(--ink); }
.game:last-of-type { border-bottom: 2px solid var(--ink); }
.game-icon { width: 200px; height: 200px; border-radius: 44px; overflow: hidden; background: var(--road); border: 3px solid var(--ink); }
.game-icon img { width: 100%; height: 100%; object-fit: cover; }
.game h3 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.1; margin: 0 0 8px; }
.status { display: inline-block; font-size: 14px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--route); margin-bottom: 16px; }
.status.done { background: var(--road); }
.game p { margin: 0 0 20px; max-width: 36em; }
.game .links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 700; }
.game .links a { text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--route); }

/* 회사 소개 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-art { aspect-ratio: 1 / 1; background: var(--sky); border-radius: 32px; overflow: hidden; }
.about-art img { width: 100%; height: 100%; object-fit: contain; }
dl.facts { margin: 0; display: grid; grid-template-columns: 7em 1fr; border-top: 1px solid var(--line); }
dl.facts dt, dl.facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
dl.facts dt { color: var(--muted); font-size: 15px; }

/* 문의 */
.contact { text-align: left; }
.mail { font-family: var(--display); font-size: clamp(34px, 6vw, 64px); line-height: 1.1; text-decoration: none; border-bottom: 6px solid var(--route); display: inline-block; margin: 8px 0 24px; }
.mail:hover { background: var(--white); }

/* 푸터 — 사업자 정보 */
.site-footer { background: var(--ink); color: #C7D1E8; padding: 48px 0 56px; font-size: 14px; line-height: 1.9; }
.site-footer .logo { color: var(--white); font-size: 26px; margin-bottom: 16px; }
.site-footer dl { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; margin: 0 0 20px; }
.site-footer dt { color: #8F9BBB; } .site-footer dd { margin: 0; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.site-footer .foot-links a { color: var(--white); }

/* 반응형 */
@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; order: -1; margin: 0 auto; width: 70%; }
  .game { grid-template-columns: 1fr; gap: 20px; }
  .game-icon { width: 120px; height: 120px; border-radius: 28px; }
  section.block { padding: 72px 0; }
}
@media (max-width: 560px) {
  .nav { gap: 16px; } .nav a { font-size: 15px; }
  .logo small { display: none; }
  .km { width: 54px; height: 54px; font-size: 18px; }
  .route-band { top: 13px; } .route-line { top: 25px; }
  .stop-name { font-size: 14px; } .stop-sub { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-line, .km { animation: none; }
}
