/* 사이트 공통 뼈대 — 색·글꼴·상단 메뉴·버튼·문의 구역·바닥글 (메인·블로그·소개 페이지가 함께 쓴다) */
:root {
  --blue: #2347ff; --blue-deep: #0b1a7a; --ink: #0e1630; --muted: #56608a; --paper: #f3f6ff;
  --card: #ffffff; --line: #dde3f4; --live: #20c77a; --kakao: #fee500; --kakao-ink: #191600;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); word-break: keep-all; -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 56px); }

/* Top bar */
.top { position: absolute; inset: 0 0 auto; z-index: 3; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.brand { font-weight: 850; font-size: 1.25rem; letter-spacing: -0.03em; text-decoration: none; }
.brand i { color: var(--blue); font-style: normal; }
.top nav { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: 0.95rem; }
.top nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; }
.top nav a:hover { background: rgb(35 71 255 / 0.08); }
.top nav .k { background: var(--kakao); color: var(--kakao-ink); }
.top nav a[aria-current="page"] { color: var(--blue); }
/* Sub pages: the bar sits on the page instead of over the hero */
.top.bar { position: sticky; top: 0; background: rgb(243 246 255 / 0.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top.bar .wrap { padding-top: 12px; padding-bottom: 12px; }

/* Buttons, live dot, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 14px; font-weight: 800; text-decoration: none; font-size: 1rem; }
.btn-k { background: var(--kakao); color: var(--kakao-ink); }
.btn-b { background: var(--blue); color: #fff; }
.btn-l { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 6px; box-shadow: 0 0 0 0 var(--live); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgb(32 199 122 / 0); } }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 0; padding: 0; list-style: none; }
.stack li { background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 0.9rem; box-shadow: inset 0 0 0 1.5px var(--line); }
.stack b { color: var(--blue); margin-left: 4px; }

/* App icon (home launcher, showcase pages) */
.ic { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; font-weight: 850; font-size: 1.5rem; letter-spacing: -0.04em; color: #fff; font-style: normal; position: relative; transition: transform 0.15s;
  background: linear-gradient(145deg, color-mix(in oklab, var(--c), #fff 22%), var(--c)); box-shadow: 0 6px 14px rgb(0 0 40 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.35); }
.ic.lat { font-size: 1.05rem; letter-spacing: -0.02em; }
.ic.on::after { content: ""; position: absolute; top: -3px; right: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--live); border: 2px solid var(--ic-ring, #1b2fd6); }

/* Contact band and footer */
.ask { margin-top: clamp(72px, 10vw, 120px); background: linear-gradient(150deg, #1b2fd6, var(--blue-deep)); color: #fff; }
.ask .wrap { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.ask h2 { font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.05em; line-height: 1.08; margin: 0 0 12px; }
.ask p { margin: 0; opacity: 0.88; font-size: 1.08rem; }
.ask .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.foot { background: var(--blue-deep); color: rgb(255 255 255 / 0.75); font-size: 0.9rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgb(255 255 255 / 0.12); }
.foot a { text-decoration: none; margin-left: 14px; }

.float-k { position: fixed; right: 16px; bottom: 16px; z-index: 20; box-shadow: 0 10px 30px rgb(0 0 40 / 0.25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.float-k.show { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 760px) {
  .top nav a:not(.k) { display: none; }
  .foot a { margin: 0 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
}
