/* NanoGrid — 공용 라이트 테마 (nanogrid-intro · nanogrid-about 가 같은 파일을 쓴다)
 *
 * 원본은 nanogrid-intro/assets/style.css. nanogrid-about/assets/style.css 는 복사본이다 —
 * 고칠 때는 원본을 고치고 nanogrid-about/deploy.sh 가 배포 전에 자동으로 복사한다.
 *
 * 선 규칙(모든 개요도 공통): 실선 = 전력(주황), 점선 = 데이터(청록), 쇄선 = 돈·승인(보라).
 * 다국어: <html lang="en"> 이면 [data-l="ko"] 를, 아니면 [data-l="en"] 을 숨긴다. */

:root {
  --bg: #f6f8fb;
  --bg-2: #eef3f8;
  --panel: #ffffff;
  --panel-2: #f4f8fc;
  --line: rgba(16, 42, 67, 0.1);
  --line-strong: rgba(16, 42, 67, 0.2);
  --grid: rgba(30, 100, 160, 0.045);
  --grid-major: rgba(30, 100, 160, 0.075);
  --ink: #0f1d2e;
  --ink-2: #45566b;
  --ink-3: #7b8ba0;
  --teal: #0ea59c;
  --teal-ink: #08857e;
  --teal-dim: rgba(14, 165, 156, 0.1);
  --amber: #e08a0b;
  --amber-ink: #b46c00;
  --amber-dim: rgba(224, 138, 11, 0.1);
  --blue: #2f7be0;
  --green: #1fa463;
  --red: #e0533f;
  --money: #8a63d2;
  --shadow: 0 1px 2px rgba(16, 42, 67, 0.05), 0 10px 30px -14px rgba(16, 42, 67, 0.16);
  --shadow-lg: 0 2px 4px rgba(16, 42, 67, 0.05), 0 30px 60px -28px rgba(16, 42, 67, 0.28);
  --radius: 16px;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Segoe UI", sans-serif;
  --maxw: 1200px;
}

/* ---------------------------------------------------------------- 다국어 */
html:not([lang="en"]) [data-l="en"],
html[lang="en"] [data-l="ko"] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}
html[lang="en"] body { word-break: normal; }
img, video { max-width: 100%; display: block; }
a { color: var(--teal-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.amber { color: var(--amber-ink); }
.teal { color: var(--teal-ink); }

/* ---------------------------------------------------------------- 상단 바 */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(12px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; letter-spacing: -0.01em; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), #3fd0c9); box-shadow: 0 4px 12px -4px rgba(14,165,156,.6); }
.brand-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.brand small { font-family: var(--mono); font-weight: 500; font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.1em; margin-left: 4px; }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; align-items: center; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink-2); font-size: 14px; padding: 7px 12px; border-radius: 8px; white-space: nowrap; font-weight: 550; }
.nav a:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--teal-ink); background: var(--teal-dim); font-weight: 700; }
.nav a.portal { border: 1px solid var(--line-strong); }
.nav a.login { background: var(--ink); color: #fff; font-weight: 650; }
.nav a.login:hover { background: #24364d; }

.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; flex-shrink: 0; background: var(--panel); }
.lang button { border: 0; background: transparent; padding: 6px 10px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- 히어로 (좌: 글 · 우: 이미지/영상 카드) */
.hero { position: relative; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0) 100%); }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero.single .wrap { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 48px; gap: 32px; } }
.hero-tag {
  display: inline-flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-ink); margin-bottom: 18px;
}
.hero-tag::before { content: ""; width: 28px; height: 1.5px; background: var(--amber); }
.hero h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.16; margin: 0 0 18px; letter-spacing: -0.03em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--teal-ink); }
.hero h1 b { color: var(--amber-ink); }
.hero p.lede { font-size: clamp(16px, 1.45vw, 18.5px); color: var(--ink-2); margin: 0 0 24px; }
.hero-en { font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin: -8px 0 24px; }
.media-card { position: relative; border-radius: 20px; overflow: hidden; background: #0b1a2c; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.media-card video, .media-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.media-card.light { background: #fff; }
.media-card .cap {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: var(--shadow);
}
.hero-figure img { width: 100%; height: auto; border-radius: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; padding: 6px 12px; border-radius: 999px; font-weight: 550;
  border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--panel);
}
a.chip:hover { text-decoration: none; border-color: var(--teal); color: var(--teal-ink); }
.chip.amber { border-color: rgba(224,138,11,.45); color: var(--amber-ink); background: var(--amber-dim); }
.chip.teal { border-color: rgba(14,165,156,.45); color: var(--teal-ink); background: var(--teal-dim); }
.status-flag {
  display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 20px;
  font-size: 13px; color: var(--ink-2); padding: 9px 13px; border-radius: 10px;
  border: 1px dashed rgba(224,138,11,.5); background: rgba(224,138,11,.06);
}
.status-flag::before { content: "◇"; color: var(--amber); }

.frame { position: relative; }
.frame::before, .frame::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; border-color: var(--line-strong); border-style: solid; }
.frame::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.frame::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }

/* ---------------------------------------------------------------- 섹션 */
section.block { padding: 88px 0; border-bottom: 1px solid var(--line); }
section.block.tight { padding: 60px 0; }
.sec-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; margin-bottom: 40px; align-items: start; }
.sec-head.has-fig { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 400px); align-items: center; }
.sec-fig img { width: 100%; height: auto; border-radius: 16px; }
.sec-no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--teal-ink); padding-top: 10px; border-top: 2px solid var(--teal); align-self: start; }
.sec-no span { display: block; color: var(--ink-3); margin-top: 4px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 36px); line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.025em; font-weight: 800; }
.sec-head h2 em { font-style: normal; color: var(--amber-ink); }
.sec-head p { color: var(--ink-2); margin: 0; max-width: 760px; }
.sec-head > div { min-width: 0; }
@media (max-width: 960px) {
  .sec-head, .sec-head.has-fig { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sec-no { width: 140px; }
  .sec-fig { max-width: 520px; }
}

/* ---------------------------------------------------------------- 카드 · 그리드 */
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 10px; }

.stat { position: relative; overflow: hidden; }
.stat .v { font-family: var(--mono); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; color: var(--ink); letter-spacing: -0.02em; }
.stat .v small { font-size: 0.42em; font-weight: 600; color: var(--amber-ink); margin-left: 4px; letter-spacing: 0; }
.stat .l { font-weight: 700; margin: 10px 0 6px; }
.stat .d { color: var(--ink-2); font-size: 14px; }
.stat .src { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-top: 12px; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--teal)); }
.note { font-size: 13px; color: var(--ink-3); margin-top: 18px; }
.note::before { content: "※ "; }

/* 막대 비교 */
.bars { display: grid; gap: 14px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
.bar-row .bl { font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; }
.bar-track { height: 40px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.bar-fill {
  position: absolute; inset: 0 auto 0 0; width: 0; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 12px; font-family: var(--mono); font-weight: 700; font-size: 17px; color: #fff;
  transition: width 1.6s cubic-bezier(.2,.7,.2,1); white-space: nowrap; min-width: max-content;
}
.bar-gap {
  position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, rgba(224,83,63,.22) 0 6px, transparent 6px 12px);
  border-left: 1.5px dashed var(--red); color: var(--red); font-family: var(--mono); font-size: 12px; font-weight: 700;
  opacity: 0; transition: opacity .6s 1.5s;
}
.in .bar-gap { opacity: 1; }

/* 번호 스텝 */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; color: var(--teal-ink); border: 1.5px solid var(--teal); background: var(--panel); }
.step h4 { margin: 4px 0 6px; font-size: 17.5px; }
.step p { margin: 0; color: var(--ink-2); }
.step .when { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--amber-ink); text-transform: uppercase; }

.hsteps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.hsteps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--amber)); opacity: .5; }
.hstep { text-align: center; padding: 0 12px; position: relative; }
.hstep .n { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 2px solid var(--teal); font-family: var(--mono); font-weight: 700; color: var(--teal-ink); position: relative; z-index: 1; box-shadow: var(--shadow); }
.hstep:nth-child(4) .n { border-color: var(--amber); color: var(--amber-ink); }
.hstep h4 { margin: 0 0 6px; font-size: 18px; }
.hstep p { margin: 0; font-size: 14px; color: var(--ink-2); }
.hstep .en { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; display: block; margin-bottom: 6px; }
@media (max-width: 760px) { .hsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } .hsteps::before { display: none; } }

/* ---------------------------------------------------------------- 개요도 (SVG) */
.diagram { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram-scroll { overflow-x: auto; }
.diagram-scroll svg { min-width: 760px; }
.dg-node rect { fill: #ffffff; stroke: var(--line-strong); stroke-width: 1.2; }
.dg-node.k-core rect { fill: #e9faf8; stroke: var(--teal); stroke-width: 1.8; }
.dg-node.k-power rect { stroke: rgba(224,138,11,.65); }
.dg-node.k-people rect { stroke: rgba(138,99,210,.55); }
.dg-node.k-off rect { stroke-dasharray: 4 4; fill: #f7f9fb; }
.dg-node .t { fill: var(--ink); font-size: 14px; font-weight: 700; font-family: var(--sans); }
.dg-node .s { fill: var(--ink-2); font-size: 11.5px; font-family: var(--sans); }
.dg-node .ic { font-size: 18px; fill: var(--ink-3); }
.dg-node.k-core .ic { fill: var(--teal); } .dg-node.k-power .ic { fill: var(--amber); } .dg-node.k-people .ic { fill: var(--money); }
.dg-node { transition: opacity .2s; }
.dg-edge { fill: none; stroke-width: 1.8; }
.dg-edge.power { stroke: var(--amber); }
.dg-edge.data { stroke: var(--teal); stroke-dasharray: 5 5; }
.dg-edge.money { stroke: var(--money); stroke-dasharray: 10 4 2 4; }
.dg-edge.future { opacity: .4; }
.dg-flow { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 2 26; animation: flow 1.6s linear infinite; }
.dg-flow.power { stroke: #ffb238; }
.dg-flow.data { stroke: #2fd6cc; animation-duration: 1.1s; }
.dg-flow.money { stroke: #a98af0; animation-duration: 2.2s; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.dg-label { font-size: 11px; fill: var(--ink-2); font-family: var(--sans); font-weight: 600; paint-order: stroke; stroke: #ffffff; stroke-width: 4px; stroke-linejoin: round; }
.dg-zone { fill: rgba(30,100,160,0.03); stroke: var(--line-strong); stroke-dasharray: 3 5; }
.dg-zone-t { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; fill: var(--ink-3); }
.mk-power { fill: var(--amber); } .mk-data { fill: var(--teal); } .mk-money { fill: var(--money); }
.diagram.hl .dg-node, .diagram.hl .dg-edge, .diagram.hl .dg-flow, .diagram.hl .dg-label { opacity: .14; }
.diagram.hl .on { opacity: 1 !important; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 30px; height: 0; border-top: 2px solid var(--amber); display: inline-block; }
.legend i.data { border-top: 2px dashed var(--teal); }
.legend i.money { border-top: 2px dashed var(--money); }
.dg-hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .dg-flow { animation: none; display: none; } }

/* ---------------------------------------------------------------- 표 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14.5px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--panel-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 650; color: var(--ink); white-space: nowrap; }
td { color: var(--ink-2); }

/* ---------------------------------------------------------------- 영상 */
.film { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.film > * { min-width: 0; }
@media (max-width: 900px) { .film { grid-template-columns: minmax(0, 1fr); } }
.film video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16/9; box-shadow: var(--shadow-lg); }
.chapters { display: grid; gap: 6px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.chapter { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; text-align: left; cursor: pointer; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.chapter:hover { border-color: var(--line-strong); }
.chapter.active { border-color: var(--teal); background: #eefaf9; }
.chapter .tc { font-family: var(--mono); font-size: 12px; color: var(--amber-ink); padding-top: 2px; }
.chapter b { display: block; font-size: 14px; }
.chapter small { color: var(--ink-2); font-size: 13px; line-height: 1.5; display: block; }
.loop-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.loop-card video { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* 갤러리 · 라이트박스 */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #000; }
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,20,34,.88); display: none; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; border-radius: 12px; }

/* ---------------------------------------------------------------- 로드맵 */
.roadmap { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px; overflow-x: auto; padding: 4px 2px 8px; }
.phase { position: relative; padding-top: 30px; }
.phase::before { content: ""; position: absolute; top: 9px; left: 0; right: -16px; height: 2px; background: var(--line-strong); }
.phase:last-child::before { right: 0; }
.phase::after { content: ""; position: absolute; top: 3px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); border: 2px solid var(--teal); }
.phase:first-child::after { background: var(--teal); box-shadow: 0 0 0 5px var(--teal-dim); }
.phase .card { height: 100%; }
.phase .when { font-family: var(--mono); font-size: 12px; color: var(--amber-ink); }
.phase ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.phase .target { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--teal-ink); }

/* 우선순위 스택 */
.stack { display: grid; gap: 8px; }
.stack .lv { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.stack .lv b.tag { font-family: var(--mono); font-size: 14px; text-align: center; padding: 6px 0; border-radius: 6px; color: #fff; background: var(--c, var(--teal)); }
.stack .lv h4 { margin: 0; font-size: 15px; }
.stack .lv p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }

/* 24h 다이얼 · 플라이휠 */
.dial-wrap { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 36px; align-items: center; }
.dial-wrap > * { min-width: 0; }
.dial-wrap.fw-wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .dial-wrap, .dial-wrap.fw-wrap { grid-template-columns: minmax(0, 1fr); } }
.dial svg { width: 100%; height: auto; }
.dial-track { fill: none; stroke: var(--bg-2); stroke-width: 22; }
.dial-hub { fill: #e9faf8; stroke: var(--teal); stroke-width: 1.5; }
.dial-t { fill: var(--ink); font-weight: 800; font-size: 17px; font-family: var(--sans); }
.dial-s { fill: var(--ink-2); font-size: 11px; font-family: var(--sans); }
.dial-h { fill: var(--ink-3); font-size: 11px; font-family: var(--mono); }
.dial-hand line { stroke: var(--amber); stroke-width: 2; } .dial-hand circle { fill: var(--amber); }
.fw-svg .ring { fill: none; stroke: var(--teal); stroke-width: 2; opacity: .55; }
.fw-svg .ring-glow { fill: none; stroke: var(--teal); stroke-width: 3; stroke-dasharray: 3 30; animation: flow 2.2s linear infinite; }
.fw-svg .box { fill: #fff; stroke: var(--line-strong); }
.fw-svg .hub { fill: #fff6e6; stroke: var(--amber); stroke-width: 1.6; }
.fw-svg text { font-family: var(--sans); }
.fw-svg .bt { fill: var(--ink); font-size: 15px; font-weight: 700; }
.fw-svg .bs { fill: var(--ink-2); font-size: 12px; }
.fw-svg .ht { fill: var(--amber-ink); font-size: 17px; font-weight: 800; }
.fw-svg .hs { fill: var(--ink-2); font-size: 12px; }
.fw-svg .feed { stroke: var(--amber); stroke-width: 1.4; stroke-dasharray: 4 5; fill: none; }

/* 3개국 비교 카드 */
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.compare > * { min-width: 0; }
@media (max-width: 900px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.cc { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; color: var(--ink); }
.cc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.cc img, .cc video { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: #f1f5f9; }
.cc .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cc .flag { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--amber-ink); }
.cc h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.cc p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.cc dl { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 6px 10px; margin: 6px 0 0; font-size: 13.5px; }
.cc dt { color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; padding-top: 2px; }
.cc dd { margin: 0; color: var(--ink-2); }
.cc .go { margin-top: auto; padding-top: 10px; color: var(--teal-ink); font-weight: 700; font-size: 14px; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 18px 4px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; font-size: 17px; list-style: none; display: flex; gap: 14px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "Q"; font-family: var(--mono); color: var(--teal-ink); }
details[open] summary::before { color: var(--amber-ink); }
details p { color: var(--ink-2); margin: 12px 0 0 28px; }

/* AI 역할 · 레이어 */
.ai-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .ai-list { grid-template-columns: minmax(0, 1fr); } }
.ai-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.ai-item .ix { font-family: var(--mono); color: var(--teal-ink); font-size: 13px; border: 1.5px solid var(--teal); border-radius: 8px; height: 32px; display: grid; place-items: center; }
.ai-item h4 { margin: 0 0 4px; font-size: 15.5px; }
.ai-item p { margin: 0; font-size: 14px; color: var(--ink-2); }
.layers { display: grid; gap: 10px; }
.layer { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.layer::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.layer .lid { font-family: var(--mono); font-weight: 700; color: var(--c); }
.layer h4 { margin: 0; font-size: 16px; }
.layer p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.layer .m { font-family: var(--mono); font-size: 13px; color: var(--ink-2); text-align: right; white-space: nowrap; }
@media (max-width: 620px) { .layer { grid-template-columns: 54px minmax(0, 1fr); } .layer .m { grid-column: 2; text-align: left; } }
.kpi .v { font-family: var(--mono); font-size: 28px; font-weight: 700; color: var(--teal-ink); }
.kpi .l { font-weight: 700; margin-top: 6px; }
.kpi .d { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }

.pull { font-size: clamp(19px, 2.4vw, 28px); line-height: 1.5; letter-spacing: -0.015em; border-left: 4px solid var(--amber); padding: 6px 0 6px 24px; margin: 0; font-weight: 600; }
.pull small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 10px; font-family: var(--mono); font-weight: 500; }
pre.formula-box { margin: 0; font-family: var(--mono); font-size: clamp(13px, 1.6vw, 17px); line-height: 1.9; color: var(--ink); white-space: pre-wrap; }

.next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.next a { flex: 1; min-width: 240px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.next a:hover { border-color: var(--teal); text-decoration: none; }
.next small { font-family: var(--mono); color: var(--ink-3); font-size: 12px; letter-spacing: .1em; }
.next b { display: block; font-size: 18px; margin-top: 4px; }

footer { padding: 40px 0 60px; color: var(--ink-3); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* 스크롤 등장 */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ================================================================ 공통 버튼 · ABOUT */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 11px; font-weight: 700; font-size: 15px; border: 1px solid var(--line-strong); color: var(--ink); background: var(--panel); box-shadow: var(--shadow); }
.btn:hover { text-decoration: none; border-color: var(--teal); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #24364d; }
.btn small { font-weight: 500; font-size: 12px; opacity: .65; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.facts > div { padding: 22px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts .v { font-family: var(--mono); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: var(--teal-ink); line-height: 1.1; }
.facts .v small { font-size: .45em; color: var(--amber-ink); margin-left: 4px; }
.facts .l { font-weight: 700; margin-top: 8px; }
.facts .d { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(2) { border-right: 0; } .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { cursor: pointer; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); font-weight: 650; font-size: 14.5px; }
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab .tn { font-family: var(--mono); color: var(--teal); margin-right: 6px; }
.panel { display: none; }
.panel.on { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .panel.on { grid-template-columns: minmax(0, 1fr); } }
.feat-list { display: grid; gap: 8px; }
.feat { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; text-align: left; color: var(--ink); }
.feat:hover { border-color: var(--line-strong); }
.feat.on { border-color: var(--teal); background: #eefaf9; }
.feat b { font-size: 15.5px; }
.feat small { grid-column: 1 / -1; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.feat .sub { font-family: var(--mono); font-size: 11px; color: var(--amber-ink); align-self: center; }
.screen { position: sticky; top: 80px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: #fff; box-shadow: var(--shadow-lg); margin: 0; }
.screen .bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.screen .bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6dee8; }
.screen .bar span { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.screen img { width: 100%; cursor: zoom-in; transition: opacity .25s; }
.screen figcaption { padding: 10px 14px; font-size: 13px; color: var(--ink-2); background: var(--panel-2); border-top: 1px solid var(--line); }

.peak { display: grid; gap: 12px; }
.peak .row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px; gap: 12px; align-items: center; font-size: 14px; }
.peak .row .nm { color: var(--ink-2); }
.peak .row .nm b { color: var(--ink); display: block; font-size: 14.5px; }
.peak .track { height: 26px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.peak .fill { height: 100%; width: 0; transition: width 1.6s cubic-bezier(.2,.7,.2,1); }
.peak .val { font-family: var(--mono); font-weight: 700; text-align: right; }
@media (max-width: 620px) { .peak .row { grid-template-columns: 96px minmax(0,1fr) 70px; font-size: 13px; } }
.formula { font-family: var(--mono); font-size: clamp(13px, 1.5vw, 15.5px); line-height: 1.9; padding: 16px 18px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--panel-2); color: var(--ink); overflow-x: auto; white-space: nowrap; }
.formula .c { color: var(--ink-3); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
/* 그리드로 두면 <b> 같은 인라인 요소가 별도 칸으로 쪼개진다 — 블록 + 절대 위치 체크로 둔다 */
.check-list li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 14.5px; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; top: 0; color: var(--green); font-weight: 800; }

.final { text-align: center; padding: 96px 0; }
.final h2 { font-size: clamp(26px, 3.6vw, 44px); margin: 0 0 14px; letter-spacing: -0.025em; font-weight: 800; }
.final p { color: var(--ink-2); margin: 0 auto 28px; max-width: 640px; }
.final .cta-row { justify-content: center; }

/* ---------------------------------------------------------------- 좁은 화면 */
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .brand small { display: none; }
  .nav a { padding: 6px 8px; font-size: 13px; }
  section.block { padding: 60px 0; }
  .bar-row { grid-template-columns: 76px minmax(0, 1fr); }
  .step { grid-template-columns: 50px minmax(0, 1fr); gap: 14px; }
  .chapters { max-height: 360px; }
}
