/* damun.asia — UX-007 단순화판: 흰 바탕 · 공통 메뉴 하나 · 카드·그림자·알약 최소 · 제품 사진과 주요 행동 중심 */

:root {
  --ink: #17263C;
  --ink-2: #34445C;
  --muted: #586880;
  --accent: #4285E8;
  --accent-ink: #2766CF;
  --accent-deep: #1F57B5;
  --wash: #E8F0FD;
  --soft: #F5F7FB;
  --line: #E3E9F2;
  --line-strong: #C9D3E3;
  --white: #FFFFFF;
  --on-dark: #C5D1E3;

  --radius: 12px;
  --wrap: 1080px;
  --gutter: 24px;
  --header-h: 64px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); background: var(--white); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow > * { max-width: 46rem; }

/* ── 버튼 · 링크 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font: 600 1rem/1 var(--font); border: 1px solid transparent; border-radius: 10px; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent-ink); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.text-link { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { color: var(--accent-deep); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }

/* ── 상태 표시: 점 + 글자 ── */
.state { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .9375rem; font-weight: 600; color: var(--accent-ink); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.off { color: var(--muted); }
.tag { display: inline-block; font-size: .875rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tag.on { color: var(--accent-ink); }

/* ── 머리글 ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { margin-right: auto; display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.header-cta { display: none; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; position: relative; }
.menu-toggle .bars::before { position: absolute; top: -6px; }
.menu-toggle .bars::after { position: absolute; top: 6px; }
.site-nav ul { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { display: inline-block; padding: 8px 2px; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--accent-ink); border-bottom-color: var(--accent-ink); }

/* ── 언어 전환 (UX-009): 한국어 | English ── */
.site-nav .lang { display: flex; align-items: center; gap: 6px; margin-left: 4px; font-size: .875rem; color: var(--muted); }
.site-nav .lang [aria-current] { font-weight: 700; color: var(--ink); }
.site-nav .lang .sep { color: var(--line-strong); }
.site-nav .lang a:not(.btn) { padding: 8px 4px; font-weight: 600; color: var(--muted); border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-nav .lang a:not(.btn):hover { color: var(--accent-ink); }
.lang-short { display: none; }
.nf-en { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.nf-en h2 { font-size: 1.5rem; margin-bottom: 8px; }

/* ── 영역 · 제목 ── */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.hero + .section, .page-head + .section { border-top: 0; }
.head { max-width: 40rem; margin-bottom: 40px; }
.head h2, .section h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
.head p { margin: 12px 0 0; color: var(--muted); }
.section > .wrap > h2 + p, .narrow > h2 + p { margin-top: 12px; }
.more { margin: 32px 0 0; }
.fine { margin: 24px 0 0; font-size: .9375rem; color: var(--muted); }
.fine strong { color: var(--ink-2); }
.note { margin: 12px 0 0; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.lead { font-size: 1.1875rem; color: var(--ink-2); }

/* ── 첫 화면 ── */
.hero { padding: 48px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.125rem); font-weight: 800; line-height: 1.25; }
.hero .accent { color: var(--accent-ink); }
.hero .lead { margin: 20px 0 0; }
.hero .sub { margin: 16px 0 0; font-size: .9375rem; color: var(--muted); }
.hero .sub strong { color: var(--ink); }
.wordmark { height: 34px; width: auto; margin-bottom: 20px; }
.stage { position: relative; }
.tablet, .device { position: relative; border: 8px solid var(--ink); border-radius: 22px; background: var(--ink); overflow: hidden; }
.tablet img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.slot-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.slot-video.is-live { opacity: 1; }

/* ── 포인트 · 목록 ── */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.points li { border-top: 2px solid var(--ink); padding-top: 20px; }
.points h3 { font-size: 1.1875rem; font-weight: 700; margin-bottom: 8px; }
.points p { margin: 0; color: var(--muted); font-size: 1rem; }

.rows li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 40px; padding: 24px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { font-size: 1.125rem; font-weight: 700; }
.rows h3 .state { margin-left: 8px; font-size: .875rem; }
.rows p { margin: 0; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.cc figure { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--soft); }
.cc img { width: 100%; height: 100%; object-fit: cover; }
.cc h3 { margin: 14px 0 4px; font-size: 1.0625rem; font-weight: 700; }
.cc p { margin: 0; font-size: .9375rem; color: var(--muted); }
h3.group { margin: 40px 0 12px; font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
h3.group:first-of-type { margin-top: 0; }
h3.group .state { margin-left: 10px; font-size: .875rem; }
.dom { display: inline-block; margin-left: 4px; font-size: .875rem; font-weight: 600; color: var(--accent-ink); }
.list li { position: relative; padding: 8px 0 8px 18px; color: var(--ink-2); }
.list li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.list strong { color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; margin-bottom: 8px; }
.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; border-top: 1px solid var(--line-strong); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; margin-bottom: 8px; font-weight: 700; color: var(--accent-ink); }
.steps h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 6px; }
.steps p { margin: 0; font-size: .9375rem; color: var(--muted); }

/* ── 활동 탭 ── */
.act-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.tab-item { border-bottom: 1px solid var(--line); }
.tab-item:first-child { border-top: 1px solid var(--line); }
.tab { display: block; width: 100%; padding: 18px 0 18px 16px; background: none; border: 0; border-left: 3px solid transparent; text-align: left; font: 600 1.1875rem/1.4 var(--font); color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-left-color: var(--accent-ink); }
.tab-desc { display: none; padding: 0 0 20px 19px; }
.tab-item.is-active .tab-desc { display: block; }
.tab-desc p { margin: 0; color: var(--muted); }
.more-list { padding: 20px 0 0 19px; font-size: .9375rem; color: var(--muted); }
.more-list p { margin: 0 0 4px; }
.more-list strong { color: var(--ink-2); }
.screens { position: relative; aspect-ratio: 16 / 10; background: var(--ink); }
.screen { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.screen.is-active { opacity: 1; visibility: visible; }
.screen img { width: 100%; height: 100%; object-fit: cover; }

/* ── 센터용 · 가정용 선택 ── */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.choice { padding: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius); display: flex; flex-direction: column; }
.choice h3 { font-size: 1.375rem; font-weight: 700; }
.choice .state { margin-top: 6px; }
.choice dl { margin: 24px 0; }
.choice dl > div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.choice dt { color: var(--muted); }
.choice dd { margin: 0; color: var(--ink-2); }
.choice .text-link { margin-top: auto; }

/* ── 제품 · 소개 페이지 머리 ── */
.page-head { padding: 48px 0 16px; }
.page-head h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.25; }
.page-head .lead { max-width: 40rem; margin: 20px 0 0; }
.page-head .state { margin-top: 20px; }
.page-head .actions { margin-top: 24px; }
.back { display: inline-block; margin-bottom: 20px; font-size: .9375rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent-ink); }

/* ── 구성 · 화면 틀 ── */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.tools h3 { font-size: 1.125rem; font-weight: 700; margin: 16px 0 6px; }
.tools p { margin: 0; font-size: .9375rem; color: var(--muted); }
.frame { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.frame img { width: 100%; }
.tools .frame { aspect-ratio: 16 / 10; }
.tools .frame img { height: 100%; object-fit: cover; object-position: top left; }
.tools .frame-grip img { object-position: center; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.split h2 { margin-bottom: 12px; }
.metrics-line { font-size: .9375rem; color: var(--muted); }
.metrics-line strong { color: var(--ink); margin-right: 8px; }
.timeline { display: grid; gap: 10px; margin: 24px 0; }
.timeline li { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 12px; font-size: .9375rem; color: var(--ink-2); }
.timeline span { font-weight: 700; color: var(--accent-ink); }
.notice { margin: 24px 0 0; padding-left: 16px; border-left: 3px solid var(--line-strong); font-size: .9375rem; color: var(--muted); }
.notice strong { display: block; color: var(--ink-2); margin-bottom: 2px; }
.film { max-width: 880px; margin: 48px auto 0; }
.film video { width: 100%; border-radius: var(--radius); background: var(--ink); aspect-ratio: 16 / 10; }
.film figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); text-align: center; }

.fold { margin-top: 32px; border-top: 1px solid var(--line); }
.fold summary { padding: 16px 0; font-weight: 600; color: var(--ink); cursor: pointer; }
.fold .list { padding-bottom: 12px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.0625rem; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 0 20px; color: var(--ink-2); }
.faq .ans p { margin: 0 0 .6em; }

/* ── 표 ── */
.table-wrap { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { padding: 14px 16px 14px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
thead th { font-size: .875rem; font-weight: 600; color: var(--muted); border-top: 0; border-bottom: 1px solid var(--line-strong); }
tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 1px solid var(--line); }
table.ip tbody th { width: 62%; white-space: normal; font-weight: 600; line-height: 1.6; }

.defs > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 32px; padding: 16px 0; border-top: 1px solid var(--line); }
.defs > div:last-child { border-bottom: 1px solid var(--line); }
.defs dt { font-weight: 700; color: var(--ink); }
.defs dd { margin: 0; color: var(--ink-2); }

.overview > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 4px 32px; padding: 16px 0; border-top: 1px solid var(--line); }
.overview > div:last-child { border-bottom: 1px solid var(--line); }
.overview dt { color: var(--muted); font-weight: 600; }
.history li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 4px 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.history li:last-child { border-bottom: 1px solid var(--line); }
.history time { font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.history p { margin: 0; color: var(--ink); }
.patents { margin: 10px 0 8px; }
.patents li { position: relative; padding: 4px 0 4px 18px; font-size: .9375rem; }
.patents li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.patent-note { display: block; font-size: .8125rem; color: var(--muted); }
.overview dd { margin: 0; color: var(--ink); }

/* ── 문의 ── */
.contact-card { margin: 0 0 40px; padding: 32px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.c-label { margin: 0 0 4px; font-size: .9375rem; font-weight: 600; color: var(--muted); }
.c-mail { margin: 0 0 24px; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; color: var(--ink); line-height: 1.3; overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.copy-status { min-height: 1.6em; margin: 14px 0 0; font-size: .9375rem; font-weight: 600; color: var(--accent-ink); }

.prose { color: var(--ink-2); }
.prose h2 { font-size: 1.25rem; margin: 40px 0 10px; }
.prose .meta { color: var(--muted); font-size: .9375rem; }
.prose li { position: relative; padding: 4px 0 4px 18px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.notfound { padding: 120px var(--gutter); }
.notfound h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }

/* ── 페이지 끝 문의 ── */
.cta { text-align: center; background: var(--soft); border-top: 0; }
.cta p { max-width: 34rem; margin: 12px auto 0; color: var(--muted); }
.cta .actions { justify-content: center; }

/* ── 바닥글 ── */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.7; color: var(--muted); }
.f-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 20px; }
.f-logo img { height: 26px; width: auto; }
.f-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.f-links a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.f-links a:hover { color: var(--accent-ink); }
.site-footer p { margin: 0 0 6px; }
.f-mail a { color: var(--ink); font-weight: 600; }
.f-legal { margin-top: 12px !important; }

/* ── 기술 페이지: 핵심 수치 · 구성도 · 영역 표 · 기록 예시 · AI 맞춤 ── */
.state.tight { margin: 0 0 14px; }
.facts-band { padding: 0 0 8px; }
.facts-band + .section { border-top: 0; }
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts strong { display: block; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--accent-ink); }
.facts span { display: block; margin-top: 8px; font-size: .875rem; line-height: 1.5; color: var(--muted); }

.arch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.arch li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.arch li + li::before { content: "→"; position: absolute; left: -23px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--accent-ink); }
.arch .via { font-size: .8125rem; font-weight: 700; color: var(--accent-ink); }
.arch h3 { font-size: 1.125rem; font-weight: 700; }
.arch p { margin: 0; font-size: .9375rem; color: var(--muted); }
.chip { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8125rem; font-weight: 600; color: var(--ink-2); }

.matrix { min-width: 640px; }
.matrix th, .matrix td { padding: 12px 8px; text-align: center; vertical-align: middle; }
.matrix thead th { font-size: .8125rem; vertical-align: bottom; border-bottom: 1px solid var(--line-strong); }
.matrix thead th:first-child, .matrix tbody th { padding-left: 0; text-align: left; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.dot.m { background: var(--accent-ink); }
.dot.s { border: 2px solid var(--accent-ink); background: #fff; }
.legend { margin: 16px 0 0; font-size: .9375rem; color: var(--muted); }
.legend .dot { margin: 0 6px 0 16px; }
.legend .dot:first-child { margin-left: 0; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.record { padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.r-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-weight: 700; color: var(--ink); }
.r-head span { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.r-sub { margin: 2px 0 12px; font-size: .875rem; color: var(--muted); }
.record dl { margin: 0; }
.record dl > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.record dt { color: var(--muted); }
.record dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.r-foot { margin: 12px 0 0; font-size: .8125rem; color: var(--muted); }
.record .list { margin-top: 10px; }
.depth { display: block; position: relative; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--line); }
.depth i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--accent-ink); }
.depth b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }

.ai-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding: 40px; border-radius: 20px; background: var(--ink); color: var(--on-dark); }
.lattice { display: grid; grid-template-columns: 2.6rem repeat(8, minmax(0, 1fr)); gap: 6px; align-items: center; }
.lattice i { font-size: .75rem; font-style: normal; text-align: center; color: var(--on-dark); }
.lattice b { font-size: .75rem; font-weight: 600; color: var(--on-dark); }
.lattice span { aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: var(--o); }
.lattice-wrap .cap { margin: 16px 0 0; font-size: .8125rem; line-height: 1.6; color: var(--on-dark); }
.loop { counter-reset: loop; }
.loop li { position: relative; counter-increment: loop; padding: 0 0 22px 42px; }
.loop li::before { content: counter(loop); position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ink); font-size: .8125rem; font-weight: 700; }
.loop li::after { content: ""; position: absolute; left: 12px; top: 32px; bottom: 6px; width: 2px; background: rgba(197, 209, 227, .28); }
.loop li:last-child { padding-bottom: 0; }
.loop li:last-child::after { display: none; }
.loop h3 { margin-bottom: 2px; font-size: 1.0625rem; font-weight: 700; color: #fff; }
.loop p { margin: 0; font-size: .9375rem; color: var(--on-dark); }

/* ── 좁은 화면 ── */
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .arch li + li::before { content: "↓"; left: 50%; top: -24px; transform: translateX(-50%); }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .ai-panel { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px 20px; }
  .record dl > div { grid-template-columns: 7rem minmax(0, 1fr); }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .points, .tools { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .steps, .steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices { grid-template-columns: minmax(0, 1fr); }
  .rows li, .defs > div, .overview > div, .history li { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 48px 0; }
  .hero { padding: 28px 0 40px; }
  .page-head { padding: 32px 0 8px; }

  /* 활동 탭: 탭 줄 → 화면 → 설명 순서 (UX-005) */
  .act-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; }
  .tabs, .tab-item { display: contents; }
  .tab { grid-row: 1; padding: 12px 4px; text-align: center; font-size: .9375rem; border-left: 0; border-bottom: 2px solid var(--line); }
  .tab[aria-selected="true"] { border-bottom-color: var(--accent-ink); color: var(--accent-ink); }
  .device-wrap { grid-column: 1 / -1; grid-row: 2; margin-top: 16px; }
  .tab-desc { grid-column: 1 / -1; grid-row: 3; padding: 16px 0 0; }
  .more-list { grid-column: 1 / -1; grid-row: 4; padding: 20px 0 0; }

  /* 표는 칸마다 이름을 붙여 쌓는다 */
  table.spec thead, table.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.spec tr, table.compare tr { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
  table.spec th, table.spec td, table.compare th, table.compare td { display: block; padding: 2px 0; border: 0; }
  table.spec td[data-label]::before, table.compare td[data-label]::before { content: attr(data-label) "  "; font-size: .8125rem; font-weight: 600; color: var(--muted); }

  .site-header .header-cta { display: inline-flex; }
  .lang-short { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; font-size: .875rem; font-weight: 600; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line-strong); border-radius: 8px; }
  .site-nav .lang { margin: 0; padding: 12px 0 4px; }
  .site-nav .lang a:not(.btn) { display: inline-block; padding: 10px 6px; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child a:not(.btn) { border-bottom: 0; }
  .nav-cta { display: none; }
}

@media (max-width: 420px) {
  /* 좁은 폰: 로고 · 언어 · 메뉴만 남기고 문의하기는 메뉴 안으로 (UX-009) */
  .site-header .header-cta { display: none; }
  .nav-cta { display: block; padding-top: 8px; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; --header-h: 56px; }
  /* 좁은 화면은 글자·여백·버튼을 한 단계 줄여 한 화면에 더 많이 보이게 */
  body { font-size: 1rem; line-height: 1.7; }
  .head h2, .section h2 { font-size: 1.375rem; }
  .head { margin-bottom: 24px; }
  .head p { margin-top: 8px; }
  .section { padding: 36px 0; }
  .page-head { padding: 24px 0 4px; }
  .page-head h1 { font-size: 1.75rem; }
  .page-head .lead { font-size: 1rem; margin-top: 14px; }
  .brand img { height: 26px; }
  .btn { min-height: 46px; padding: 0 20px; font-size: .9375rem; }
  .points { gap: 24px; }
  .points li { padding-top: 16px; }
  .points h3 { font-size: 1.0625rem; }
  .rows li { padding: 18px 0; }
  .rows h3 { font-size: 1.0625rem; }
  .choice h3 { font-size: 1.1875rem; }
  .facts strong { font-size: 1.625rem; }
  .c-mail { font-size: 1.375rem; }
  .steps, .steps-5 { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 1.875rem; }
  .hero .lead { margin-top: 16px; font-size: 1.0625rem; }
  .hero .sub { display: none; }
  .actions { margin-top: 20px; }
  .contact-card { padding: 24px 20px; }
  .contact-actions .btn { width: 100%; }
  .choice { padding: 24px 20px; }
  .actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ══════ 기술 회사 느낌의 개편 (대표 지시 2026-10-30): 어두운 머리글·첫 화면, 플랫폼 구조, 세대 로드맵, v3·AI 구역 ══════ */
:root { --dark: #0F1B30; --dark-2: #14264A; --on-dark-2: #B7C6DD; --accent-light: #8DB5F4; }

/* 머리글 · 바닥글: 어둡게 */
.site-header { background: rgba(15, 27, 48, .96); border-bottom-color: rgba(255, 255, 255, .06); }
.site-header.scrolled { border-bottom-color: rgba(255, 255, 255, .14); }
.site-header :focus-visible, .site-footer :focus-visible, .band-dark :focus-visible, .hero.dark :focus-visible, .page-head.dark :focus-visible { outline-color: var(--accent-light); }
.site-nav a:not(.btn) { color: #C5D1E3; }
.site-nav a:not(.btn):hover { color: #fff; }
.site-nav a[aria-current="page"]:not(.btn) { color: #fff; border-bottom-color: var(--accent-light); }
.site-nav .lang, .site-nav .lang a:not(.btn) { color: #9FB2CC; }
.site-nav .lang [aria-current] { color: #fff; }
.site-nav .lang .sep { color: rgba(255, 255, 255, .25); }
.site-nav .lang a:not(.btn):hover { color: #fff; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { background: #fff; }
.site-footer { background: var(--dark); border-top: 0; color: #9FB2CC; }
.site-footer .f-links a { color: #C5D1E3; }
.site-footer .f-links a:hover { color: #fff; }
.site-footer .f-mail a { color: #fff; }
.site-footer .f-biz, .site-footer .f-legal { color: #8FA4C4; }

/* 어두운 첫 화면 · 페이지 머리 */
.hero.dark, .page-head.dark { position: relative; overflow: hidden; color: var(--on-dark-2);
  background: radial-gradient(900px 520px at 80% 30%, rgba(66, 133, 232, .32), transparent 62%), linear-gradient(180deg, #0F1B30 0%, #14243F 100%); }
.hero.dark::before, .page-head.dark::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(140, 180, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 180, 255, .07) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 38%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse at 72% 38%, #000 10%, transparent 72%); }
.hero.dark > .wrap, .page-head.dark > .wrap { position: relative; }
.hero.dark { padding: 64px 0 56px; }
.page-head.dark { padding: 56px 0 48px; }
.hero.dark h1, .page-head.dark h1 { color: #fff; }
.hero.dark .accent { color: var(--accent-light); }
.hero.dark .lead, .page-head.dark .lead { color: #C5D1E3; }
.hero.dark .sub { color: #9FB2CC; }
.hero.dark .sub strong { color: #fff; }
.hero.dark .btn-primary, .page-head.dark .btn-primary { background: #2F6FE0; }
.hero.dark .btn-primary:hover, .page-head.dark .btn-primary:hover { background: #4285E8; }
.hero.dark .text-link, .page-head.dark .text-link, .band-dark .text-link { color: #9FC1FA; }
.hero.dark .text-link:hover, .page-head.dark .text-link:hover, .band-dark .text-link:hover { color: #fff; }
.hero.dark .note { color: #8FA4C4; }
.hero.dark .state, .page-head.dark .state { color: #9FC1FA; }
.page-head.dark .back { color: #9FB2CC; }
.page-head.dark .back:hover { color: #fff; }
.hero.dark .tablet { border-color: #0A1424; background: #0A1424; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(140, 180, 255, .25), 0 0 70px rgba(66, 133, 232, .28); }
.hero-visual { position: relative; }
.fchip { position: absolute; z-index: 2; padding: 10px 14px; border-radius: 12px; background: rgba(15, 27, 48, .85); border: 1px solid rgba(140, 180, 255, .38); color: #C5D1E3; font-size: .8125rem; font-weight: 600; line-height: 1.3; backdrop-filter: blur(6px); }
.fchip b { display: block; font-size: 1.25rem; font-weight: 800; color: var(--accent-light); line-height: 1.1; }
.fchip.c1 { left: -30px; top: 16%; }
.fchip.c2 { right: -22px; top: 6%; }
.fchip.c3 { right: -18px; top: 62%; }
.hero.dark .facts, .page-head.dark .facts { margin-top: 48px; border-color: rgba(255, 255, 255, .14); }
.hero.dark .facts strong, .page-head.dark .facts strong { color: var(--accent-light); }
.hero.dark .facts span, .page-head.dark .facts span { color: #9FB2CC; }
.facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.hero.dark + .section, .page-head.dark + .section, .band-dark + .section { border-top: 0; }

/* 작은 제목(영역 이름표) */
.eyebrow { margin: 0 0 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; color: var(--accent-ink); }
.hero.dark .eyebrow, .page-head.dark .eyebrow, .band-dark .eyebrow { color: var(--accent-light); }

/* 어두운 구역 */
.section.band-dark { background: linear-gradient(180deg, #0F1B30, #14264A); border-top: 0; color: var(--on-dark-2); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .head p, .band-dark p { color: var(--on-dark-2); }
.band-dark .fine { color: #8FA4C4; }
.band-dark .points li { border-top-color: var(--accent-light); }
.band-dark .points p { color: var(--on-dark-2); }
.band-dark .cc figure, .band-dark .frame { border-color: rgba(255, 255, 255, .18); background: #0A1424; }
.band-dark .cc h3 { color: #fff; }
.band-dark .film figcaption { color: #9FB2CC; }
.band-dark .film video { box-shadow: 0 24px 70px rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .12); }
.band-dark .record { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .03); }
.band-dark .record .r-head { color: #fff; }
.band-dark .record .list li { color: #C5D1E3; }
.band-dark .list strong { color: #fff; }
.ai-section.band-dark .ai-panel { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.v3-gallery { margin-top: 40px; }
.section.tint { background: var(--soft); }
.section.tint + .section { border-top: 0; }

/* 플랫폼 구조(입력 → 콘텐츠 → 측정·기록 → AI 분석) */
.stack { display: grid; gap: 12px; }
.layer { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px 22px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; }
.layer .ln { font-weight: 700; color: var(--ink); }
.layer .ls { display: block; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.layer .lc { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-block; padding: 6px 13px; border-radius: 999px; background: var(--wash); color: var(--accent-deep); font-size: .875rem; font-weight: 600; }
.pill.next { background: transparent; border: 1px dashed var(--accent-ink); color: var(--accent-ink); }
.pill.next::before { content: "v3 "; font-weight: 800; }
.pill.sample { width: 28px; height: 14px; padding: 0; vertical-align: middle; margin: 0 6px 0 14px; }
.pill.sample::before { content: none; }
.legend .pill.sample:first-child { margin-left: 0; }
.layer.l4 { background: linear-gradient(90deg, #17263C, #1E3A66); border-color: transparent; }
.layer.l4 .ln { color: #fff; }
.layer.l4 .ls { color: #9FB2CC; }
.layer.l4 .pill { background: rgba(255, 255, 255, .12); color: #fff; }
.layer.l4 .pill.next { background: transparent; border-color: var(--accent-light); color: #BFD6FB; }

/* 세대 로드맵 */
.gens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gen { position: relative; padding: 26px; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; }
.gen .gt { margin: 0 0 6px; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; color: var(--accent-ink); }
.gen h3 { margin-bottom: 8px; font-size: 1.25rem; }
.gen p:last-child { margin: 0; color: var(--muted); font-size: .9375rem; }
.gen.next { border-color: var(--accent-ink); box-shadow: 0 0 0 4px rgba(66, 133, 232, .12); }
.gen.plan { border-style: dashed; }

@media (max-width: 900px) {
  .fchip { display: none; }
  .layer { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gens { grid-template-columns: minmax(0, 1fr); }
  .site-nav { background: var(--dark); border-bottom-color: rgba(255, 255, 255, .14); }
  .site-nav a:not(.btn) { border-bottom-color: rgba(255, 255, 255, .1); }
  .lang-short { color: #C5D1E3; border-color: rgba(255, 255, 255, .3); }
  .hero.dark { padding: 32px 0 32px; }
  .page-head.dark { padding: 28px 0 28px; }
  .hero.dark .facts, .page-head.dark .facts { margin-top: 32px; }
}
@media (max-width: 560px) {
  .hero.dark { padding: 24px 0 28px; }
  .layer { padding: 16px; }
  .gen { padding: 20px; }
}

/* 영어: 타임라인 이름표(Records·Suggest)가 줄바꿈되지 않게 */
html[lang="en"] .timeline li { grid-template-columns: 5.25rem minmax(0, 1fr); }
.band-dark .film { margin-bottom: 44px; }
td[data-label="Level steps"], .spec thead th:last-child { white-space: nowrap; }
html[lang="en"] .lattice { grid-template-columns: 5.4rem repeat(8, minmax(0, 1fr)); }
html[lang="en"] .lattice b { font-size: .6875rem; }
