:root {
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", Roboto, "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-2: #f2f3ee;
  --ink: #0f1f17;
  --ink-2: #2c3b33;
  --muted: #5d6b63;
  --line: #e2e5dd;
  --brand: #15803d;
  --brand-strong: #0f5f2d;
  --brand-soft: #e6f4ea;
  --game: #d97706;
  --game-ink: #92400e;
  --game-soft: #fff2d4;
  --p256: #7c3aed;
  --p256-soft: #efe8ff;
  --ddok9: #db2777;
  --ddok9-soft: #fde6f0;
  --nudgy: #2563eb;
  --nudgy-soft: #e4ecff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 31, 23, .05), 0 10px 30px rgba(15, 31, 23, .06);
  --maxw: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b120e;
    --surface: #111b15;
    --surface-2: #17241c;
    --ink: #e9f0eb;
    --ink-2: #c9d5cd;
    --muted: #93a49a;
    --line: #223229;
    --brand: #4ade80;
    --brand-strong: #86efac;
    --brand-soft: #14301f;
    --game: #fbbf24;
    --game-ink: #fcd34d;
    --game-soft: #2e2410;
    --p256: #a78bfa;
    --p256-soft: #241b3d;
    --ddok9: #f472b6;
    --ddok9-soft: #3a1a2b;
    --nudgy: #60a5fa;
    --nudgy-soft: #15233f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* 헤더 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .logo { width: 32px; height: 32px; }
.brand small { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.menu { display: flex; align-items: center; gap: 2px; }
.menu a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.menu a:hover { background: var(--surface-2); color: var(--ink); }
.menu a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-soft); }
@media (max-width: 760px) {
  .site-header { position: static; }
  .nav { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 8px; gap: 6px; }
  .menu { width: 100%; overflow-x: auto; margin: 0 -6px; padding-bottom: 4px; }
  .menu a { padding: 6px 10px; font-size: .9rem; }
}

/* 버튼 */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { color: var(--bg); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }

/* 공통 라벨 */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; font-size: .88rem; margin-bottom: 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent); }
.kicker { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.kicker.game { color: var(--game); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }

/* 히어로 */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 48px 0; } }
.hero h1 .hl { color: var(--brand); }
.facts-inline { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.facts-inline strong { color: var(--ink); font-weight: 700; margin-right: 6px; }
.product-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.product-strip a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .88rem; }
.product-strip a:hover { background: var(--surface-2); }
.product-strip .chip-icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.product-strip .chip-icon svg { width: 14px; height: 14px; }
.product-strip em { font-style: normal; font-weight: 600; color: var(--muted); }

.caption { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 14px; }

/* 섹션 */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section.tight { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 34em; color: var(--muted); }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* 강조 블록 */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 48px; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); }
.feature.nudgy { background: linear-gradient(140deg, var(--nudgy-soft), var(--surface) 70%); }
.feature.game { background: linear-gradient(140deg, var(--game-soft), var(--surface) 70%); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; } }
.feature h2 { margin-bottom: .4em; }
.kicker.nudgy { color: var(--nudgy); }
.tag.main { background: var(--nudgy-soft); color: var(--nudgy); }
.loop.nudgy li::before { background: var(--nudgy-soft); color: var(--nudgy); }

/* 앱 아이콘과 실제 화면 */
.app-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-head h1, .app-head h2, .app-head h3 { margin: 0; }
.app-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.app-icon { width: 72px; height: 72px; border-radius: 18px; border: 1px solid var(--line); flex: none; background: #fff; }
.app-icon.sm { width: 48px; height: 48px; border-radius: 12px; }
.hero-shots { display: flex; justify-content: center; gap: 18px; }
.hero-shots img { width: 46%; max-width: 220px; height: auto; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.hero-shots img:nth-child(2) { margin-top: 56px; }
.shots { display: flex; gap: 18px; overflow-x: auto; margin: 0; padding: 4px 2px 14px; list-style: none; scroll-snap-type: x mandatory; }
.shots li { flex: none; width: 200px; scroll-snap-align: start; }
.shots img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shots p { margin: 10px 2px 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* 게임 대표 블록 */
.game-feature { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 48px; border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(140deg, var(--game-soft), var(--surface) 70%); }
@media (max-width: 900px) { .game-feature { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; } }
.game-feature h2 { margin-bottom: .4em; }
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; counter-reset: step; }
.loop li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px 58px; counter-increment: step; }
.loop li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--game-soft); color: var(--game-ink); }
.loop strong { display: block; font-size: 1rem; }
.loop span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; margin-top: 2px; }
@media (max-width: 520px) { .loop { grid-template-columns: 1fr; } }

/* 카드 */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card h3 { margin-bottom: 2px; }
.card p { color: var(--ink-2); }
.card .domain { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; flex: none; }
.icon svg { width: 26px; height: 26px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.tag { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.tag.live { background: var(--brand-soft); color: var(--brand-strong); }
.tag.dev { background: var(--game-soft); color: var(--game-ink); }

.c-game { color: var(--game); } .bg-game { background: var(--game-soft); color: var(--game); }
.c-p256 { color: var(--p256); } .bg-p256 { background: var(--p256-soft); color: var(--p256); }
.c-ddok9 { color: var(--ddok9); } .bg-ddok9 { background: var(--ddok9-soft); color: var(--ddok9); }
.c-nudgy { color: var(--nudgy); } .bg-nudgy { background: var(--nudgy-soft); color: var(--nudgy); }
.card.p256 .more { color: var(--p256); }
.card.ddok9 .more { color: var(--ddok9); }
.card.nudgy .more { color: var(--nudgy); }

/* 숫자 요약 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.stat { background: var(--surface); padding: 26px 24px; margin: 0; }
.stat dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.stat dd { margin: 4px 0 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.stat dd small { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.stat.accent dd { color: var(--brand); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* CTA */
.cta { background: var(--ink); color: var(--bg); border-radius: 28px; padding: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: var(--bg); margin-bottom: .3em; }
.cta p { color: color-mix(in srgb, var(--bg) 72%, transparent); margin: 0; }
.cta .btn { background: var(--bg); color: var(--ink); }
.cta .btn:hover { color: var(--ink); }
@media (max-width: 640px) { .cta { padding: 32px 24px; } }

/* 하위 페이지 머리 */
.page-head { padding: 64px 0 48px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
@media (max-width: 640px) { .page-head { padding: 40px 0 32px; } }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.jump a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.jump a:hover { background: var(--surface-2); }

/* 표 형태 정보 */
.profile { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; margin: 0; }
.profile dt, .profile dd { padding: 15px 22px; border-top: 1px solid var(--line); margin: 0; }
.profile dt { font-weight: 700; color: var(--muted); background: var(--surface-2); }
.profile dt:first-of-type, .profile dt:first-of-type + dd { border-top: 0; }
.profile dd strong { color: var(--brand); }
@media (max-width: 640px) {
  .profile { grid-template-columns: 1fr; }
  .profile dt { background: none; padding-bottom: 0; font-size: .85rem; }
  .profile dd { border-top: 0; padding-top: 2px; }
  .profile dt:first-of-type { border-top: 0; }
}

/* 서비스 상세 */
.service { display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
@media (max-width: 900px) { .service { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; } }
.service-title { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.service-title .icon { margin: 0; width: 56px; height: 56px; }
.service-title h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); }
.service-title a { font-weight: 600; font-size: .95rem; }
.service .tagline { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: .6em; }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 6px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 8px 24px; margin: 0; align-self: start; box-shadow: var(--shadow); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-weight: 600; font-size: .92rem; }
.facts dd { margin: 0; font-weight: 700; text-align: right; }

/* 연혁 */
.timeline { list-style: none; margin: 0 0 0 7px; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 30px 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.timeline li.now::before { border-color: var(--game); background: var(--game); }
.timeline li.next::before { border-color: var(--line); }
.timeline time, .timeline .when { display: block; font-weight: 800; font-size: .9rem; color: var(--brand); }
.timeline li.now .when { color: var(--game); }
.timeline li.next .when { color: var(--muted); }
.timeline strong { display: block; font-size: 1.05rem; }
.timeline p { margin: 2px 0 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* 업력 강조 */
.age { display: flex; align-items: center; gap: 24px; padding: 28px 32px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); margin-bottom: 40px; flex-wrap: wrap; }
.age .big { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.04em; color: var(--brand-strong); line-height: 1; }
.age p { margin: 0; color: var(--ink-2); }
.age strong { color: var(--ink); }

/* 문의 */
.mail-card { display: flex; align-items: center; gap: 20px; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); flex-wrap: wrap; }
.mail-card .icon { margin: 0; background: var(--brand-soft); color: var(--brand); width: 60px; height: 60px; }
.mail-card a.addr { font-size: clamp(1.15rem, 3.4vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: var(--ink); word-break: break-all; }
.mail-card a.addr:hover { color: var(--brand); }
.mail-card .btn { margin-left: auto; }
@media (max-width: 640px) { .mail-card .btn { margin-left: 0; } }

/* 본문형 문서 */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.3rem; margin: 2.4em 0 .7em; padding-top: .2em; scroll-margin-top: 80px; }
.prose h3 { font-size: 1.05rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose .table-scroll { overflow-x: auto; margin: 1em 0 1.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 700; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin: .25em 0; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.notice { padding: 16px 20px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); font-size: .95rem; }

/* 푸터 */
.site-footer { margin-top: 88px; border-top: 1px solid var(--line); background: var(--surface); padding: 52px 0 36px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-grid h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 7px 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-about p { max-width: 26em; margin: 12px 0 0; }
.biz { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .86rem; line-height: 1.9; }
.biz p { margin: 0; }
.biz .biz-en { margin-top: 14px; }
.biz span + span::before { content: "·"; margin: 0 8px; color: var(--line); }
@media (max-width: 640px) { .biz span { display: block; } .biz span + span::before { content: none; } }
.copyright { margin-top: 10px; }

/* 404 */
.notfound { text-align: center; padding: 120px 0 40px; }
.notfound .code { font-size: 5rem; font-weight: 800; color: var(--brand); letter-spacing: -.05em; line-height: 1; }
.notfound .actions { justify-content: center; }
