/*
 * 플랫폼 공개 화면(소개 / · 공통 로그인 /login · 이용 신청 /apply) 공용 스타일.
 * 기관 화면(/t/{code})은 기관 브랜딩을 쓰고, 이 화면들은 플랫폼 자체의 모습이다.
 * CSP: 스타일은 'self'·인라인 허용, 폰트는 cdn.jsdelivr.net(Pretendard) — 막혀 있으면 시스템 글꼴로 보인다.
 */
:root {
  --ink: #0A1A33;
  --ink-2: #334155;
  --muted: #64748B;
  --faint: #94A3B8;
  --line: #E6EAF2;
  --line-2: #D7DEEA;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;
  --bg-tint: #EEF5FF;
  /* 색은 파랑 한 계열(남색·파랑·하늘)만 — 보라·분홍·초록 강조를 쓰지 않는다 */
  --brand: #1D63ED;
  --brand-hover: #1552CC;
  --brand-soft: #EAF2FF;
  --sky: #38A0F5;
  --navy: #061733;
  --navy-2: #0B2347;
  --ok: #059669;
  --ok-soft: #ECFDF5;
  --warn: #B45309;
  --danger: #DC2626;
  --danger-soft: #FEF2F2;
  --grad: linear-gradient(120deg, #1D63ED 0%, #38A0F5 100%);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, .05), 0 2px 8px rgba(11, 19, 36, .04);
  --shadow: 0 1px 2px rgba(11, 19, 36, .04), 0 12px 32px rgba(11, 19, 36, .08);
  --shadow-lg: 0 30px 80px rgba(17, 28, 61, .22);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(29, 99, 237, .45); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── 버튼 ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: -.01em; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .08s ease, box-shadow .15s ease;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(29, 99, 237, .28); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: #B8C2D6; background: var(--bg-soft); }
.btn.light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.btn.light:hover { background: rgba(255,255,255,.18); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── 머리글 ───────────────────────────────────────────── */
/* 흐림(backdrop-filter)은 쓰지 않는다 — 아래에서 캔버스 애니메이션이 매 프레임 바뀌면 흐림을 매번 다시 계산해
   GPU 가 없는 환경에서 초당 2~5프레임까지 떨어졌다(실측). 거의 불투명한 배경으로 같은 느낌을 낸다. */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11, 19, 36, .05); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); text-decoration: none !important; }
/* 플랫폼 로고 — 다섯 색 조각의 C (clabi-logo.svg) */
.brand-mark { width: 30px; height: 30px; flex: none; background: url("clabi-logo.svg") center / contain no-repeat; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 9px; text-decoration: none; }
.nav-links a:hover { background: var(--bg-soft); color: var(--ink); }
.nav-links a { white-space: nowrap; }
/* 메뉴가 한 줄에 다 들어가지 않는 폭: 덜 급한 메뉴부터 머리줄에서 뺀다 (모바일 메뉴·본문에는 그대로) */
@media (max-width: 1200px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 10px; font-size: 14.5px; }
  .nav-links a[href="#growth"], .nav-links a[href="#security"] { display: none; }
}
@media (max-width: 1040px) {
  .nav-links a[href="#crawl"], .nav-links a[href="#chat"] { display: none; }
}
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }
.mobile-menu { display: none; }

/* ── 히어로 ───────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 104px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 760px; z-index: -1;
  background:
    radial-gradient(600px 340px at 80% 40%, rgba(29, 99, 237, .10), transparent 70%),
    radial-gradient(520px 320px at 10% 20%, rgba(56, 160, 245, .08), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.eyebrow .pill { background: var(--brand-soft); color: var(--brand); border-radius: 999px; padding: 2px 8px; font-size: 12px; flex-shrink: 0; white-space: nowrap; }
/* 좁은 화면: NEW 표식이 NE/W 로 쪼개지거나 문구가 두 줄로 커지지 않게 — 표식은 한 덩어리, 문구는 작게 한 줄(넘치면 말줄임) */
@media (max-width: 560px) {
  .eyebrow { display: inline-block; max-width: 100%; padding: 5px 11px 5px 6px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .eyebrow .pill { display: inline-block; margin-right: 6px; padding: 1px 7px; font-size: 11px; }
}
.preview-title {
  margin: 4px 0 18px; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.16; letter-spacing: -.035em; font-weight: 850;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 0 0 30px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 560px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--brand); }

.hero-grid { position: relative; z-index: 1; }

/* ── 첫 화면: 질문이 지나갈수록 길이 생기는 지식 (knowledge_anim.js heroField) ──
   글은 가운데에 넉넉히, 지식망은 화면 전체에 옅게. 글 뒤를 옅게 하는 것은 캔버스가 직접 한다(CSS mask 는 매 프레임 합성 비용이 크다). */
.hx {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: clamp(600px, calc(100vh - 68px), 980px);
  min-height: clamp(600px, calc(100svh - 68px), 980px);
  padding: 56px 0 150px;
  background:
    radial-gradient(1100px 520px at 50% -8%, #E4EFFE 0%, rgba(228, 239, 254, 0) 70%),
    linear-gradient(180deg, #FFFFFF 0%, #F4F8FF 100%);
  border-bottom: 1px solid var(--line);
}
.hx > .wrap { position: relative; z-index: 1; }
.hx-field { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.hx-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hx-copy { max-width: 720px; margin: 0 auto; text-align: center; }
.hx h1 { margin: 26px 0 22px; font-size: clamp(42px, 6.6vw, 82px); line-height: 1.06; letter-spacing: -.045em; font-weight: 850; }
.hx .lead { margin: 0 auto 36px; max-width: 620px; font-size: clamp(16px, 1.55vw, 19px); color: var(--ink-2); }
.hx .hero-cta { justify-content: center; }
.hx-ask {
  position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 3;
  width: min(480px, calc(100% - 32px)); height: 52px; padding: 0 18px; border-radius: 999px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #D3E3FA; box-shadow: 0 14px 40px rgba(16, 58, 128, .1);
  color: var(--ink); font-size: 15px; font-weight: 600; transition: border-color .3s ease, box-shadow .3s ease;
}
.hx-ask svg { color: var(--brand); flex: none; }
.hx-ask-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-caret { flex: none; width: 2px; height: 18px; margin-left: -8px; background: var(--brand); animation: blink 1s steps(2) infinite; }
.hx-ask.is-done .hx-caret { display: none; }
.hx-ask-meta { margin-left: auto; flex: none; font-size: 12.5px; font-weight: 800; color: var(--brand); opacity: 0; transition: opacity .3s ease; }
.hx-ask.is-done .hx-ask-meta { opacity: 1; }
.hx-ask.is-searching, .hx-ask.is-done { border-color: #9CC3F7; }
.hx-ask.is-searching { box-shadow: 0 0 0 5px rgba(29, 99, 237, .08), 0 14px 40px rgba(16, 58, 128, .12); }
.hx-chip { position: absolute; left: 0; top: 0; will-change: transform; }
.hx-chip-in {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: #fff; border: 1px solid #D3E3FA; color: var(--ink); font-size: 12.5px; font-weight: 700;
  box-shadow: 0 10px 28px rgba(16, 58, 128, .12); opacity: 0;
  transform: translate(-50%, -100%) scale(.86); transform-origin: 50% 100%;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .25, 1.2);
}
.hx-chip-in b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; }
.hx-chip-in.in { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.hx-chip-in.out { opacity: 0; transform: translate(-50%, -120%) scale(.96); }
/* 근거를 못 찾은 질문 → 메타정보 자동 생성 (반짝이 아이콘) · 생성된 꼬리표 */
.hx-auto .hx-chip-in { padding: 6px 12px 6px 10px; background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 28px rgba(29, 99, 237, .3); }
.hx-auto .hx-chip-in::before {
  content: ""; width: 14px; height: 14px; flex: none; background: no-repeat center / contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2l1.9 6.1L20 10l-6.1 1.9L12 18l-1.9-6.1L4 10l6.1-1.9zM19 15l.9 2.1L22 18l-2.1.9L19 21l-.9-2.1L16 18l2.1-.9z'/%3E%3C/svg%3E");
}
.hx-tag { position: absolute; left: 0; top: 0; will-change: transform; }
.hx-tag-in {
  display: inline-block; white-space: nowrap; padding: 3px 9px; border-radius: 999px;
  background: #EEF5FF; border: 1px solid #BFD8FB; color: #0B4FC4; font-size: 11.5px; font-weight: 700;
  opacity: 0; transform: translate(-50%, -50%) scale(.6);
  transition: opacity .3s ease, transform .4s cubic-bezier(.2, .9, .25, 1.3);
}
.hx-tag-in.in { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hx-tag-in.out { opacity: 0; transform: translate(-50%, -80%) scale(.9); }
.hx-ask.is-miss { border-color: #B8C7DC; }
.hx-ask.is-miss .hx-caret { display: none; }
.hx-ask.is-miss .hx-ask-meta { opacity: 1; color: #5B6B86; }

/* 히어로 데모 창 */
.demo {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.demo-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FBFCFE; }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E2E8F0; display: block; }
.demo-bar i:nth-child(n) { background: #D5DEEA; }
.demo-bar .url { margin-left: 10px; flex: 1; height: 26px; border-radius: 8px; background: #EEF2F7; color: var(--muted); font-size: 12px; display: flex; align-items: center; padding: 0 10px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.demo-body { padding: 20px 20px 22px; min-height: 360px; }
.q-bubble {
  margin-left: auto; max-width: 82%; width: fit-content; background: var(--brand); color: #fff; padding: 11px 15px;
  border-radius: 16px 16px 4px 16px; font-size: 14.5px; font-weight: 600; box-shadow: 0 8px 18px rgba(29, 99, 237, .25);
}
.scope-chip { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 10px; font-size: 12px; font-weight: 700; color: #0B4FC4; background: #EEF5FF; border: 1px solid #C6DCFA; padding: 4px 10px; border-radius: 999px; }
.a-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; color: var(--ink-2); background: #fff; }
.a-card .typing { min-height: 92px; }
.a-card b { color: var(--ink); }
.cite { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; margin: 0 2px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; vertical-align: 1px; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--brand); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.src { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; background: #FBFCFE; opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.src.show { opacity: 1; transform: none; }
.src .thumb { width: 40px; height: 48px; border-radius: 6px; flex: none; background: linear-gradient(180deg, #fff, #EEF2F7); border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.src .thumb::before { content: ""; position: absolute; left: 6px; right: 6px; top: 8px; height: 3px; border-radius: 2px; background: #CBD5E1; box-shadow: 0 7px 0 #E2E8F0, 0 14px 0 #E2E8F0, 0 21px 0 #E2E8F0; }
.src .thumb.shot { background: linear-gradient(180deg, #DBEAFE 0 28%, #fff 28%); }
.src .meta { min-width: 0; }
.src .t { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src .s { font-size: 11.5px; color: var(--muted); }
.src .n { font-size: 11px; font-weight: 800; color: var(--brand); }
.float-badge {
  position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.float-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(29, 99, 237, .15); }
.float-badge.b1 { left: -24px; bottom: -18px; }
.float-badge.b2 { right: 22px; top: -18px; }
.demo-wrap { position: relative; }

/* ── 섹션 공통 ────────────────────────────────────────── */
section { scroll-margin-top: 76px; }
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--brand); text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; letter-spacing: -.03em; font-weight: 820; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* 핵심 가치 띠 */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.value { padding: 22px 24px; border-right: 1px solid var(--line); }
.value:last-child { border-right: none; }
.value .k { font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.value .d { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* 기능 카드 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #C9DCF7; }
.feature .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; color: var(--brand); background: var(--brand-soft); border: 1px solid #D6E6FC; }
.feature h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }
.feature ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.feature li { position: relative; padding-left: 18px; font-size: 14px; color: var(--muted); }
.feature li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: #BFD8FB; }
.feature.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }

/* 미니 그림 (기능 카드 안) */
.mini { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); padding: 14px; font-size: 13px; color: var(--ink-2); }
.mini .row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; background: #fff; border: 1px solid var(--line); margin-bottom: 7px; }
.mini .row:last-child { margin-bottom: 0; }
.mini .tag { margin-left: auto; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; }
.tag.ok { background: #E7F3FE; color: #0B6FBF; }
.tag.off { background: #F1F5F9; color: var(--faint); text-decoration: line-through; }
.tag.new { background: var(--brand-soft); color: var(--brand); }

/* 작동 방식 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px 20px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-block; font-size: 12px; font-weight: 850; color: var(--brand); background: var(--brand-soft); border-radius: 8px; padding: 3px 8px; margin-bottom: 12px;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 34px; right: -12px; width: 10px; height: 10px; border-top: 2px solid #BFD8FB; border-right: 2px solid #BFD8FB; transform: rotate(45deg); z-index: 1;
}
.step h4 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.01em; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* 스스로 자라는 지식 (knowledge_anim.js) */
.growth {
  position: relative; overflow: hidden; color: #CBD5E1;
  background:
    radial-gradient(760px 460px at 82% 38%, rgba(29, 99, 237, .26), transparent 62%),
    radial-gradient(620px 420px at 6% 96%, rgba(56, 160, 245, .12), transparent 60%),
    #060D22;
}
.kg-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.kg-copy .kicker { color: #8EC3FF; }
.kg-copy h2 { margin: 0 0 16px; color: #fff; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.16; letter-spacing: -.035em; font-weight: 850; }
.kg-lead { margin: 0 0 26px; color: #A9B6CF; font-size: 17px; }
.kg-phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: kg; }
.kg-phases li {
  position: relative; overflow: hidden; padding: 12px 16px 13px 54px; border-radius: 14px;
  border: 1px solid transparent; transition: background .4s ease, border-color .4s ease;
}
.kg-phases li::before {
  counter-increment: kg; content: counter(kg, decimal-leading-zero);
  position: absolute; left: 14px; top: 13px; width: 28px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 850; letter-spacing: .02em; color: #7C8BA8; background: rgba(255, 255, 255, .05);
  transition: background .4s ease, color .4s ease;
}
.kg-phases b { display: block; color: #CBD5E1; font-size: 15.5px; letter-spacing: -.01em; transition: color .4s ease; }
.kg-phases span { display: block; margin-top: 2px; font-size: 13.5px; color: #64748B; transition: color .4s ease; }
.kg-phases li.on { background: linear-gradient(90deg, rgba(29, 99, 237, .16), rgba(29, 99, 237, .04)); border-color: rgba(96, 165, 250, .28); }
.kg-phases li.on::before { color: #fff; background: linear-gradient(135deg, #1D63ED, #38A0F5); }
.kg-phases li.on b { color: #fff; }
.kg-phases li.on span { color: #A9B6CF; }
.kg-phases .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: linear-gradient(90deg, #1D63ED, #38A0F5); }
.kg-phases li.on .bar { animation: kgbar var(--kg-dur, 5s) linear forwards; }
.kg-phases li.static .bar { animation: none; width: 0; }
.kg-phases li.static { background: transparent; border-color: transparent; }
@keyframes kgbar { from { width: 0; } to { width: 100%; } }

/* 점 격자·가장자리 어둡게는 배경 층으로만 (mask 를 쓰면 캔버스가 바뀔 때마다 다시 합성한다) */
.kg-stage {
  position: relative; aspect-ratio: 1 / .94; border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .14);
  background:
    radial-gradient(circle at 50% 52%, transparent 38%, #070E25 82%),
    radial-gradient(rgba(148, 163, 184, .16) 1px, transparent 1.3px) 0 0 / 24px 24px,
    radial-gradient(circle at 50% 52%, rgba(29, 99, 237, .22), transparent 62%),
    #081A38;
  box-shadow: 0 40px 100px rgba(2, 6, 23, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.kg-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.kg-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.kg-chip { position: absolute; left: 0; top: 0; will-change: transform; }
.kg-chip-in {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 750; letter-spacing: -.01em; opacity: 0;
  transform: translate(-50%, -100%) scale(.82); transform-origin: 50% 100%;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .9, .25, 1.25);
  box-shadow: 0 12px 30px rgba(2, 6, 23, .5);
}
.kg-chip-in::before { content: ""; width: 14px; height: 14px; flex: none; background: no-repeat center / contain; }
.kg-chip-in.in { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.kg-chip-in.out { opacity: 0; transform: translate(-50%, -125%) scale(.96); transition-duration: .4s; }
.kg-query .kg-chip-in { background: #fff; color: #0B1324; }
.kg-query .kg-chip-in::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.kg-cite .kg-chip-in { background: #1D63ED; color: #fff; }
.kg-cite .kg-chip-in::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M9 13h6M9 17h4'/%3E%3C/svg%3E"); }
.kg-like .kg-chip-in { background: #0B4FC4; color: #fff; }
.kg-like .kg-chip-in::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10v12M15 5.9 14 10h5.8a2 2 0 0 1 2 2.3l-1.4 8A2 2 0 0 1 18.4 22H7V10l4-8a3 3 0 0 1 4 3.9z'/%3E%3C/svg%3E"); }
.kg-syn .kg-chip-in { background: #1B86DB; color: #fff; }
.kg-syn .kg-chip-in::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E"); }
.kg-gap .kg-chip-in { background: #3B4A63; color: #fff; }
.kg-gap .kg-chip-in::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E"); }
.kg-stale .kg-chip-in { background: #2B3A52; color: #E2E8F0; }
.kg-stale .kg-chip-in::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CBD5E1' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.kg-ingest .kg-chip-in { background: #0F3E8C; color: #fff; }
.kg-ingest .kg-chip-in::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%3E%3C/svg%3E"); }
.kg-legend {
  position: absolute; left: 14px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; pointer-events: none;
  font-size: 11.5px; font-weight: 600; color: #8A99B5;
}
.kg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.kg-legend i { display: inline-block; flex: none; }
.lg-doc { width: 8px; height: 8px; border-radius: 50%; background: #38BDF8; box-shadow: 0 0 0 3px rgba(56, 160, 245, .18); }
.lg-sec { width: 5px; height: 5px; border-radius: 50%; background: #60A5FA; }
.lg-learn { width: 18px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #1D63ED, #38A0F5); }
.lg-syn { width: 18px; height: 0; border-top: 2px dashed #A0CDFC; }
.kg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.kg-stats div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); }
.kg-stats b { display: block; color: #fff; font-size: 24px; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kg-stats span { font-size: 12.5px; color: #7C8BA8; font-weight: 600; }
.kg-note { margin: 10px 2px 0; font-size: 12px; color: #4F5F7E; }

/* 보안 띠 (어두운 배경) */
.dark { background: radial-gradient(900px 420px at 12% 0%, rgba(29, 99, 237, .28), transparent 60%), radial-gradient(700px 380px at 100% 100%, rgba(56, 160, 245, .16), transparent 60%), var(--navy); color: #E2E8F0; }
.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: #A9B6CF; }
.dark .kicker { color: #8EC3FF; }
.sec-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sec-item { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); border-radius: 18px; padding: 20px; }
.sec-item h4 { margin: 10px 0 6px; color: #fff; font-size: 16px; }
.sec-item p { margin: 0; font-size: 14px; color: #A9B6CF; }
.sec-item .i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(96, 165, 250, .16); color: #BFD8FB; }
.isolation { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .09); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.iso-title { font-size: 13px; font-weight: 800; color: #8EC3FF; letter-spacing: .04em; }
.iso-tenants { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.iso-t { border-radius: 14px; padding: 14px; border: 1px dashed rgba(255, 255, 255, .18); }
.iso-t .nm { font-weight: 800; color: #fff; font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.iso-t .nm i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.iso-t .doc { height: 9px; border-radius: 4px; background: rgba(255, 255, 255, .12); margin-top: 7px; }
.iso-t .doc:nth-child(3) { width: 80%; } .iso-t .doc:nth-child(4) { width: 60%; }
.iso-db { border-radius: 14px; background: rgba(15, 23, 42, .6); border: 1px solid rgba(255, 255, 255, .08); padding: 14px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; color: #CBD5E1; line-height: 1.7; }
.iso-db .k { color: #93C5FD; } .iso-db .s { color: #7DD3FC; } .iso-db .c { color: #64748B; }
.iso-layers { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.iso-layers li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: baseline; font-size: 13.5px; color: #A9B6CF; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.iso-layers b { color: #BFD8FB; font-size: 12px; letter-spacing: .02em; }

/* 도입 절차 */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.j { padding: 24px 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.j .num { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 850; font-size: 14px; margin-bottom: 14px; }
.j h4 { margin: 0 0 6px; font-size: 17px; }
.j p { margin: 0; color: var(--muted); font-size: 14.5px; }
.j code { font-size: 12.5px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink-2); }

/* 요금제 */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; }
.plan.hl { border-color: #BFD8FB; box-shadow: 0 0 0 4px rgba(29, 99, 237, .08); }
.plan .nm { font-weight: 850; font-size: 17px; }
.plan .ds { color: var(--muted); font-size: 14px; margin: 6px 0 12px; min-height: 44px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 900; margin-right: 8px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 0 20px; transition: box-shadow .2s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 750; font-size: 16px; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }

/* CTA · 바닥글 */
.cta-band { border-radius: 28px; padding: 54px 48px; background: var(--grad); color: #fff; display: flex; align-items: center; gap: 24px; justify-content: space-between; flex-wrap: wrap; box-shadow: 0 30px 60px rgba(59, 130, 246, .25); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn.primary { background: #fff; color: var(--brand-hover); box-shadow: none; }
.cta-band .btn.primary:hover { background: #F5F7FF; }
.cta-band > * { position: relative; z-index: 1; }
footer.site { padding: 48px 0 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 96px; }
.foot { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { color: var(--ink-2); font-weight: 600; }

/* 나타나기 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── 폼 화면 (공통 로그인 · 이용 신청) ───────────────── */
.page-split { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 520px) 1fr; }
.side-panel {
  position: relative; overflow: hidden; color: #E2E8F0; padding: 40px 44px; display: flex; flex-direction: column; gap: 28px;
  background: radial-gradient(520px 320px at 0% 0%, rgba(29, 99, 237, .45), transparent 65%), radial-gradient(460px 300px at 100% 100%, rgba(56, 160, 245, .25), transparent 65%), var(--navy);
}
.side-panel .brand { color: #fff; }
.side-panel h2 { margin: 0; font-size: 30px; line-height: 1.25; letter-spacing: -.03em; color: #fff; }
.side-panel p { margin: 0; color: #A9B6CF; }
.side-points { display: grid; gap: 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.side-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #CBD5E1; }
.side-points li b { color: #fff; display: block; font-size: 15px; }
.side-points .i { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); display: grid; place-items: center; flex: none; color: #BFD8FB; }
.side-panel .spacer { flex: 1; }
.side-panel .small { font-size: 13px; color: #7C8BA8; }
.main-panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg-soft); }
.form-card { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 36px 34px 30px; }
.form-card.wide { width: min(720px, 100%); }
.form-card h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.03em; }
.form-card .sub { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field label .req { color: var(--danger); margin-left: 2px; }
.field label .opt { color: var(--faint); font-weight: 500; margin-left: 4px; font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29, 99, 237, .14); }
.field .hint { font-size: 13px; color: var(--muted); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.input-prefix { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.input-prefix:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29, 99, 237, .14); }
.input-prefix span { padding: 12px 10px 12px 14px; color: var(--muted); background: var(--bg-soft); border-right: 1px solid var(--line); font-size: 14px; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.input-prefix input { border: none !important; box-shadow: none !important; border-radius: 0; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.alert { display: none; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 16px; line-height: 1.5; }
.alert.show { display: block; }
.alert.err { background: var(--danger-soft); color: #B91C1C; border: 1px solid #FECACA; }
.alert.info { background: var(--brand-soft); color: var(--brand-hover); border: 1px solid #BFD8FB; }
.alert.ok { background: var(--ok-soft); color: #047857; border: 1px solid #A7F3D0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.linkish { background: none; border: none; padding: 0; color: var(--brand); font-weight: 700; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.recent { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); margin-bottom: 18px; text-decoration: none !important; color: var(--ink); }
.recent:hover { border-color: #BFD8FB; background: #fff; }
.recent .av { width: 36px; height: 36px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 850; }
.recent .tx { min-width: 0; flex: 1; }
.recent .tx b { display: block; font-size: 15px; }
.recent .tx small { color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 4px 0 18px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.policy { font-size: 13px; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: -6px 0 16px; }
.policy summary { cursor: pointer; font-weight: 700; color: var(--ink-2); }
.policy ul { margin: 8px 0 0; padding-left: 18px; }
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-hover); font-size: 13px; font-weight: 700; }
.chip button { border: none; background: rgba(29, 99, 237, .14); color: var(--brand-hover); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; line-height: 1; padding: 0; }
.done { text-align: center; padding: 10px 0 4px; }
.done .badge-ok { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.done .ref { display: inline-block; margin: 10px 0 18px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 18px; font-weight: 800; letter-spacing: .06em; padding: 8px 14px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }
.form-foot { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.back-home { display: inline-flex; align-items: center; gap: 6px; color: #A9B6CF; font-size: 14px; font-weight: 600; }
.back-home:hover { color: #fff; text-decoration: none; }

/* ── 반응형 ───────────────────────────────────────────── */
@media (max-width: 1080px) {
  .kg-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .kg-visual { max-width: 640px; width: 100%; margin: 0 auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .step::after { display: none; }
  .plans, .journey { grid-template-columns: 1fr 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .float-badge.b1 { left: 10px; bottom: -18px; }
  .float-badge.b2 { right: 10px; top: -16px; }
  .nav-links { display: none; }
  /* 좁은 화면: 머리줄에 '로그인'만 남겨 메뉴를 열지 않아도 바로 누를 수 있게 ('이용 신청'은 첫 화면·메뉴에 있다) */
  .nav-inner { gap: 10px; }
  .nav-cta { display: flex; margin-left: auto; }
  .nav-cta .btn.primary { display: none; }
  .nav-toggle { display: block; margin-left: 0; flex: none; }
  /* 메뉴 목록은 두 칸·화면 안에서 스크롤. 로그인은 머리줄에, 이용 신청은 첫 화면에 있으므로 메뉴 안 단추 줄은 뺀다 */
  .mobile-menu.open {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 10px 20px 16px;
    max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain;
    border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 16px 30px rgba(11, 19, 36, .08);
  }
  .mobile-menu a { padding: 11px 4px; font-size: 15px; font-weight: 650; color: var(--ink); border-bottom: 1px solid var(--line); min-width: 0; }
  .mobile-menu .btns { display: none; }
  .values { grid-template-columns: 1fr 1fr; }
  .value:nth-child(2) { border-right: none; }
  .value:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .page-split { grid-template-columns: 1fr; }
  .side-panel { padding: 28px 24px; gap: 18px; }
  .side-panel .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 40px 0 36px; }
  .features, .flow, .plans, .journey, .sec-list, .iso-tenants { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; grid-template-columns: 1fr; }
  .sources { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .value { border-right: none !important; border-bottom: 1px solid var(--line); }
  .value:last-child { border-bottom: none; }
  .cta-band { padding: 36px 24px; border-radius: 22px; }
  .form-card { padding: 28px 20px 24px; border-radius: 20px; }
  .grid-2 { grid-template-columns: 1fr; }
  .main-panel { padding: 18px 12px 32px; }
  .form-card { padding: 24px 16px 20px; }
  .form-card h1 { font-size: 23px; }
  .form-card .sub { font-size: 14px; margin-bottom: 18px; }
  /* '최근에 로그인한 기관으로 계속'이 두 줄로 접혔다 — 한 줄로, 넘치면 … */
  .recent { gap: 10px; padding: 11px 12px; }
  .recent .tx small { display: block; font-size: 12.5px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .float-badge { display: none; }
  .hero-cta .btn { flex: 1; }
  .hx { padding: 40px 0 128px; }
  .hx h1 { margin: 20px 0 16px; }
  .hx .lead { margin-bottom: 28px; }
  .hx-ask { bottom: 28px; height: 48px; font-size: 14px; }
  .hero { padding: 72px 0 48px; }
  .kg-stage { aspect-ratio: 1 / 1.08; border-radius: 22px; }
  .kg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kg-chip-in { font-size: 11.5px; padding: 5px 10px 5px 8px; }
  .kg-legend { left: 10px; bottom: 9px; font-size: 10.5px; gap: 4px 10px; }
  .kg-phases li { padding: 11px 12px 12px 50px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
  .feature, .btn .arrow, .src { transition: none; }
}
