:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --ink: #121a2e;
  --muted: #5a6478;
  --rule: #d5dae3;
  --accent: #2f4bff;
  --hi: #ffd23f;
  --on-hi: #121a2e;
  --f-display: 'Black Han Sans', 'Gothic A1', sans-serif;
  --f-body: 'Gothic A1', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1424;
    --surface: #161e33;
    --ink: #eef1f7;
    --muted: #9aa4b8;
    --rule: #26304a;
    --accent: #8c9bff;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.top, main, .foot { max-width: 1040px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 560px) { .top, main, .foot { padding-left: 16px; padding-right: 16px; } }

/* 머리 */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-size: 20px; }
.brand__mark { width: 30px; height: 30px; color: var(--ink); }
.top__nav { display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
.top__nav a { text-decoration: none; color: var(--muted); }
.top__nav a:hover { color: var(--ink); }

/* 첫 화면 */
.hero { padding: clamp(56px, 12vw, 132px) 0 clamp(64px, 12vw, 120px); }
.hero__who { margin: 0 0 12px; font-weight: 800; font-size: 17px; color: var(--accent); }
.hero__domain {
  margin: 0; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(40px, 9.4vw, 104px); line-height: 1.05; letter-spacing: -0.01em;
  display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 8px;
  overflow-wrap: anywhere;
}
.hero__dot { color: var(--accent); }
.slot {
  display: inline-flex; padding: 0.04em 0.16em 0.02em; border-radius: 0.16em;
  background: var(--hi); color: var(--on-hi);
}
.slot__cell { display: inline-block; height: 1.05em; overflow: hidden; vertical-align: bottom; }
.slot__reel { display: flex; flex-direction: column; }
.slot__reel span { display: block; height: 1.05em; line-height: 1.05; text-align: center; }
.slot.is-rolling .slot__reel {
  transform: translateY(0);
  animation: roll 1.1s cubic-bezier(.2, .7, .15, 1.04) forwards;
}
@keyframes roll { to { transform: translateY(calc(var(--steps) * -1.05em)); } }

.hero__lead { margin: 28px 0 0; max-width: 34em; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.cta {
  display: inline-flex; align-items: center; min-height: 52px; margin-top: 32px; padding: 0 24px;
  border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 800; font-size: 16px; text-decoration: none;
  transition: transform .15s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: translateY(0); }

/* 섹션 공통 */
.sec-title { margin: 0 0 24px; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 4vw, 34px); }
.services, .company { padding: 48px 0; border-top: 2px solid var(--ink); }

/* 서비스 */
.svc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
@media (max-width: 760px) { .svc { grid-template-columns: minmax(0, 1fr); } }
.svc__shot { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--rule); background: var(--surface); }
.svc__shot img { display: block; width: 100%; height: auto; }
.svc__addr { margin: 0; font-weight: 800; color: var(--accent); }
.svc__name { margin: 4px 0 12px; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.2; }
.svc__desc { margin: 0; color: var(--muted); max-width: 30em; }
.svc__desc strong { color: var(--ink); }
.svc__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-weight: 800; }
.svc__links a { text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--hi); }
.svc__links a:hover { text-decoration-color: var(--accent); }

/* 회사 */
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 32px; }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 800; font-size: 18px; overflow-wrap: anywhere; }

/* 꼬리 */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--muted);
}
.foot p { margin: 0; }
.foot a { font-weight: 600; }

/* 개인정보처리방침 */
.doc { max-width: 720px; padding-top: 32px; padding-bottom: 64px; }
.doc h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 5vw, 42px); margin: 0 0 8px; line-height: 1.25; }
.doc h2 { font-size: 19px; font-weight: 800; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc .meta { color: var(--muted); margin: 0 0 24px; }
.doc ul { padding-left: 1.2em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--rule); }
.doc th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
