:root {
  --ink: #14263d;
  --muted: #60738b;
  --line: #dce7f1;
  --paper: #f7fbff;
  --white: #ffffff;
  --blue: #6fc7ee;
  --blue-deep: #2178aa;
  --navy: #173c62;
  --mint: #9ce3d4;
  --warm: #ffe8b8;
  --shadow: 0 20px 60px rgba(35, 80, 119, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(111, 199, 238, .22), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, #f4f9fd 100%);
  font-family: Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.68;
  word-break: keep-all;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 231, 241, .82);
  background: rgba(251, 253, 255, .88);
  backdrop-filter: blur(18px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.03em;
}
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #465d76;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: #eaf6fc;
  color: var(--blue-deep);
}
.language-menu { position: relative; }
.language-menu summary {
  min-width: 66px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #465d76;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  box-shadow: 0 6px 18px rgba(35,80,119,.06);
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary:hover, .language-menu[open] summary { border-color: #9ed6ee; color: var(--blue-deep); }
.globe { font-size: 18px; line-height: 1; }
.language-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  min-width: 148px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.language-options a { display: block; padding: 9px 12px; border-radius: 10px; white-space: nowrap; }
.language-options a[aria-current="true"] { background: #eaf6fc; color: var(--blue-deep); }

.hero { padding: 104px 0 86px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--blue); }
h1, h2, h3 { margin-top: 0; line-height: 1.17; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { margin-bottom: 24px; font-size: clamp(46px, 7vw, 82px); }
h2 { margin-bottom: 18px; font-size: clamp(30px, 4.2vw, 48px); }
h3 { margin-bottom: 10px; font-size: 21px; }
.lead { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(35, 80, 119, .08);
}
.button.primary { border-color: var(--navy); background: var(--navy); color: #fff; }
.button:hover { transform: translateY(-2px); transition: .18s ease; }

.hero-art {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(111,199,238,.45), rgba(156,227,212,.5));
  animation: float 7s ease-in-out infinite;
}
.hero-art .logo-card {
  position: relative;
  width: min(430px, 84vw);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.hero-art .logo-card img { width: 100%; }
@keyframes float { 50% { transform: translateY(-14px) rotate(3deg); } }

.section { padding: 82px 0; }
.section.soft { background: rgba(234, 246, 252, .58); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head p { margin: 0; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 35px rgba(35, 80, 119, .06);
}
.card p { margin: 0; color: var(--muted); }
.card .number { color: var(--blue-deep); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.service-card { display: block; width: 100%; text-decoration: none; }
.service-card:hover { border-color: #9ed6ee; transform: translateY(-3px); transition: .2s ease; }

.game-hero { padding: 78px 0 64px; }
.game-hero-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 64px; }
.game-logo { max-width: 500px; margin-bottom: 24px; }
.phone-stack { display: flex; justify-content: center; gap: 18px; align-items: center; }
.phone {
  width: min(230px, 38vw);
  overflow: hidden;
  border: 8px solid #1e334b;
  border-radius: 34px;
  background: #1e334b;
  box-shadow: 0 26px 70px rgba(20, 38, 61, .22);
}
.phone.secondary { width: min(190px, 32vw); transform: rotate(5deg) translateY(28px); opacity: .92; }
.phone img { width: 100%; aspect-ratio: 431 / 933; object-fit: cover; border-radius: 24px; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature {
  padding: 22px;
  border-left: 4px solid var(--blue);
  border-radius: 8px 20px 20px 8px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(35,80,119,.06);
}
.feature strong { display: block; margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: 14px; }

.doc-hero { padding: 78px 0 42px; }
.doc-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 54px;
  align-items: start;
  padding-bottom: 90px;
}
.toc { position: sticky; top: 108px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--blue-deep); }
.document {
  min-width: 0;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.document p, .document li, .document code { overflow-wrap: anywhere; }
.document code { word-break: break-all; }
.document section { scroll-margin-top: 110px; padding: 26px 0; border-top: 1px solid var(--line); }
.document section:first-child { padding-top: 0; border-top: 0; }
.document h2 { font-size: 27px; }
.document h3 { margin-top: 24px; font-size: 18px; }
.document p, .document li { color: #4f647c; }
.document li + li { margin-top: 7px; }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #eff8fd; color: var(--navy); }
tr:last-child td { border-bottom: 0; }
.notice { padding: 18px 20px; border-radius: 16px; background: #eff8fd; color: #395872; }
.notice.warning { background: #fff6dd; color: #705a27; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; min-height: 48px; padding: 6px 0 18px 54px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 850;
}

.site-footer { padding: 46px 0; border-top: 1px solid var(--line); background: #eef6fb; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: end; }
.company-info { display: flex; flex-wrap: wrap; gap: 4px 18px; color: #597087; font-size: 13px; }
.company-info strong { width: 100%; margin-bottom: 6px; color: var(--ink); font-size: 16px; }
.business-info-link {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 1px 9px;
  border: 1px solid #b9ccdb;
  border-radius: 8px;
  background: rgba(255,255,255,.66);
  color: #4f6b83;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  text-decoration: none;
}
.business-info-link:hover { border-color: #78bbda; color: var(--blue-deep); background: #fff; }
.business-info-link:focus-visible { outline: 3px solid rgba(33,120,170,.22); outline-offset: 2px; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: #4f6b83; font-size: 13px; font-weight: 700; text-decoration: none; }
.copyright { width: 100%; margin-top: 18px; color: #7890a5; font-size: 12px; }

@media (max-width: 820px) {
  .hero, .section { padding: 62px 0; }
  .hero-grid, .game-hero-grid, .doc-shell { grid-template-columns: 1fr; gap: 38px; }
  .hero-art { min-height: 360px; }
  .grid-3 { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .feature-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .nav { min-height: 68px; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 0; }
  .brand small { display: none; }
  .brand img { width: 34px; height: 34px; }
  .nav-links { width: 100%; justify-content: space-between; gap: 2px; }
  .nav-links a { padding: 6px 9px; font-size: 12px; }
  .language-menu summary { min-width: 42px; min-height: 32px; padding: 0 8px; }
  .language-code { display: none; }
  .language-options { right: 0; }
  h1 { font-size: 44px; }
  .document { padding: 24px; border-radius: 20px; }
  .document .notice { max-width: 100%; padding: 15px 16px; }
  .phone.secondary { display: none; }
  .phone { width: min(260px, 72vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
