/* SSem SecuMon website — static, no external fonts or scripts (CSP: style-src 'self', no inline styles).
   Same system as the other Levelupsoft product sites; brand blue = the console icon (#2a78d6 / #3987e5),
   ban orange = the console's second chart series. Screen mockups are plain HTML with made-up data —
   IPs come from the documentation ranges (192.0.2.0/24 · 198.51.100.0/24 · 203.0.113.0/24). */
:root {
  --brand: #2a78d6;
  --brand-2: #3987e5;
  --ban: #d9531e;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #edf2fa;
  --text: #0f1729;
  --muted: #4f5b6e;
  --border: #dbe2ec;
  --ok: #138a55;
  --ok-bg: #e5f6ee;
  --warn-bg: #fff6e5;
  --warn-border: #f2c26b;
  --warn-text: #6b4a00;
  --danger-bg: #fdeeec;
  --danger-border: #f0b7b0;
  --danger-text: #8f1d14;
  --link: #1f5fb8;
  --focus: #1f5fb8;
  --code-bg: #0f1522;
  --code-text: #dbe4f3;
  --code-comment: #8fa0b8;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 41, 0.06), 0 8px 24px rgba(15, 23, 41, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "D2Coding", monospace;
  /* mockups & diagram */
  --m-bg: #f3f6fb;
  --m-panel: #ffffff;
  --m-line: #dfe6f0;
  --s1: #2a78d6;
  --s2: #eb6834;
  --d-srv: #e8f0fd;
  --d-srv-line: #9bb8ea;
  --d-con: #eef7f1;
  --d-con-line: #9fd0b2;
  --d-me: #f4effd;
  --d-me-line: #c3b1ef;
  --d-arrow: #4f5b6e;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6aa6f5;
    --brand-2: #3987e5;
    --ban: #f08a5d;
    --bg: #0b0e14;
    --surface: #131822;
    --surface-2: #1a2130;
    --text: #e6e9ef;
    --muted: #9aa4b4;
    --border: #262d3a;
    --ok: #3cc98a;
    --ok-bg: #12291f;
    --warn-bg: #2a2110;
    --warn-border: #7a5a1c;
    --warn-text: #f3d596;
    --danger-bg: #2a1412;
    --danger-border: #7a2f2a;
    --danger-text: #f7b4ab;
    --link: #8fbcf7;
    --focus: #8fbcf7;
    --code-bg: #070a10;
    --code-text: #d6deea;
    --code-comment: #7c8aa1;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --m-bg: #0e131d;
    --m-panel: #151c29;
    --m-line: #263043;
    --s1: #3987e5;
    --s2: #d95926;
    --d-srv: #17243a;
    --d-srv-line: #3c5f97;
    --d-con: #142620;
    --d-con-line: #2f6b4c;
    --d-me: #221b36;
    --d-me-line: #5b4a91;
    --d-arrow: #9aa4b4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* keep-all 은 한국어(띄어쓰기 단위)용 — 띄어쓰기가 없는 일본어·중국어·크메르어는 구두점에서만 끊겨 줄이 들쭉날쭉해진다 */
html:lang(ja) body, html:lang(zh-Hans) body, html:lang(km) body { word-break: normal; line-break: strict; }
html:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
html:lang(ja) :is(h1, h2), html:lang(zh-Hans) :is(h1, h2) { text-wrap: balance; }
html:lang(km) body { line-height: 1.85; }
html:lang(ar) body { line-height: 1.8; }

a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
img { max-width: 100%; height: auto; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.9em; }
code { padding: 1px 5px; border-radius: 6px; background: var(--surface-2); }

.skip-link {
  position: absolute;
  inset-inline-start: -999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { inset-inline-start: 8px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 800px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 32px; height: 32px; }
.brand .accent { color: var(--brand); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 15px; margin-inline-start: auto; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav a.nav-cta {
  color: var(--brand);
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
  border-radius: 999px;
  padding: 4px 14px;
}
.site-nav a.nav-cta:hover, .site-nav a.nav-cta[aria-current] { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }

/* Language menu (no JS — <details>) */
.lang-menu { position: relative; margin: 0; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); border-radius: 12px; padding: 7px 12px;
  font-size: 13.5px; font-weight: 500; line-height: 1.2; color: var(--text); white-space: nowrap;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { flex: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--brand-2); }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 8px;
  list-style: none; min-width: 210px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 18px 50px rgba(15, 23, 41, 0.18);
}
.lang-menu li { margin: 0; }
.lang-menu a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 14.5px; line-height: 1.45; color: var(--muted); text-decoration: none; }
.lang-menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu a[aria-current] { color: var(--brand); font-weight: 700; }
.lang-menu a[dir="rtl"] { text-align: start; }
@media (prefers-color-scheme: dark) {
  .lang-menu ul { background: #0a0f1a; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); }
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 12px;
  font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent;
}
.button.primary {
  color: #fff;
  background: linear-gradient(180deg, #3987e5, #2a6fc7);
  box-shadow: 0 6px 22px rgba(42, 120, 214, 0.35);
}
.button.primary:hover { background: linear-gradient(180deg, #4a93ec, #2a78d6); }
.button.secondary { color: var(--text); border-color: var(--border); background: var(--surface); }
.button.secondary:hover { border-color: var(--brand-2); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 56px; overflow: hidden; }
.hero-text { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; align-items: center; margin-bottom: 44px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.eyebrow, .badge {
  display: inline-block; font-size: 13.5px; font-weight: 700; line-height: 1.3;
  border-radius: 999px; padding: 6px 12px; border: 1px solid var(--border); color: var(--muted);
}
.eyebrow { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.badge.free { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-bg); }
.hero h1 { font-size: clamp(34px, 4.8vw, 52px); line-height: 1.12; letter-spacing: -0.035em; margin: 0; font-weight: 850; }
.grad {
  background: linear-gradient(90deg, #2a78d6 0%, #3f95f0 55%, #36b3d9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 18.5px; color: var(--muted); margin: 0; }
.lead strong { color: var(--text); }
.meta { color: var(--muted); font-size: 14px; margin: 0; }
.mock-note { color: var(--muted); font-size: 13px; text-align: center; margin: 14px 0 0; }

/* ── Mockups (made-up data) ─────────────────────────────────────────── */
.mock { margin: 0; background: var(--m-bg); border: 1px solid var(--m-line); border-radius: 14px; box-shadow: var(--shadow); color: var(--text); }
.mock.browser { overflow: hidden; }
.bw-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--m-line); background: var(--m-panel); }
.bw-dots { display: inline-flex; gap: 6px; }
.bw-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ec6a5e; }
.bw-dots i + i { background: #f4bf4f; }
.bw-dots i + i + i { background: #61c554; }
.bw-url { flex: 1; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--m-bg); border: 1px solid var(--m-line); border-radius: 8px; padding: 3px 10px; max-width: 420px; margin: 0 auto; }
.app-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 18px; border-bottom: 1px solid var(--m-line); background: var(--m-panel); font-size: 13.5px; }
.app-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.app-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.app-tabs span { padding: 4px 10px; border-radius: 8px; color: var(--muted); }
.app-tabs span.on { background: color-mix(in srgb, var(--s1) 16%, transparent); color: var(--brand); font-weight: 700; }
.app-user { margin-inline-start: auto; color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.app-body { padding: 16px 18px 18px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--m-panel); border: 1px solid var(--m-line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.kpi .k { font-size: 12.5px; color: var(--muted); }
.kpi b { font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--muted); }
.kpi .s.up { color: var(--ban); }
.app-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.panel { background: var(--m-panel); border: 1px solid var(--m-line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.p-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; font-size: 13.5px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.c1 { background: var(--s1); }
.legend i.c2 { background: var(--s2); margin-inline-start: 8px; }
.tag { font-size: 11.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--m-line); border-radius: 999px; padding: 1px 9px; }
svg.bars { display: block; width: 100%; height: auto; }
svg.bars .c1 rect { fill: var(--s1); }
svg.bars .c2 rect { fill: var(--s2); }
.servers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.servers li { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--m-line); border-radius: 10px; }
.servers .r { margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.bans table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bans th { text-align: start; font-weight: 600; color: var(--muted); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--m-line); white-space: nowrap; }
.bans td { padding: 8px; border-bottom: 1px solid var(--m-line); white-space: nowrap; }
.bans tr:last-child td { border-bottom: 0; }
.bans td.ip { font-family: var(--mono); font-weight: 600; }
.lv { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.lv1 { background: color-mix(in srgb, var(--s1) 14%, transparent); color: var(--brand); }
.lv2 { background: color-mix(in srgb, #d6a419 20%, transparent); color: #9a6f00; }
.lv3 { background: color-mix(in srgb, var(--s2) 18%, transparent); color: var(--ban); }
.lv4 { background: color-mix(in srgb, #d6332b 18%, transparent); color: #c42820; }
@media (prefers-color-scheme: dark) {
  .lv2 { color: #f0c75e; }
  .lv4 { color: #ff8f86; }
}

/* small mockups in the tour */
.card-mock { padding: 18px 20px; background: var(--m-panel); }
.ipd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; }
.ipd-head b { font-size: 20px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; border: 1px solid var(--m-line); color: var(--muted); }
.chip.warn { color: var(--ban); border-color: color-mix(in srgb, var(--ban) 45%, transparent); background: color-mix(in srgb, var(--ban) 10%, transparent); }
.ipd-grid, .kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.ipd-grid div, .kv div { background: var(--m-bg); border: 1px solid var(--m-line); border-radius: 10px; padding: 8px 12px; }
.ipd-grid dt, .kv dt { font-size: 12px; color: var(--muted); }
.ipd-grid dd, .kv dd { margin: 0; font-weight: 700; font-size: 14.5px; }
.timeline { display: grid; grid-template-columns: 1fr 2fr 4fr 8fr; gap: 6px; height: 10px; }
.timeline span { border-radius: 6px; background: color-mix(in srgb, var(--s2) 35%, transparent); }
.timeline .t4 { background: var(--s2); }
.tl-cap { font-size: 12.5px; color: var(--muted); margin: 6px 0 14px; }
.mock-buttons { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.mb { font-size: 13px; font-weight: 700; border: 1px solid var(--m-line); border-radius: 9px; padding: 6px 13px; color: var(--text); background: var(--m-bg); }
.mb.primary { background: var(--s1); border-color: var(--s1); color: #fff; }
.mb.danger { background: #d6332b; border-color: #d6332b; color: #fff; }
.dlg-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.confirm { display: grid; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.input { display: block; border: 2px solid var(--s1); border-radius: 9px; padding: 7px 12px; color: var(--text); background: var(--m-bg); font-size: 14px; }
.guard { font-size: 12.5px; color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 9px; padding: 7px 11px; margin: 0 0 12px; }
.countries { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.countries li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 38px; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-bg); font-size: 14px; }
.countries .cc { font-family: var(--mono); font-weight: 700; color: var(--muted); }
.countries .cn { font-weight: 700; }
.countries .cnt { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sw { width: 34px; height: 20px; border-radius: 999px; background: var(--m-line); position: relative; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.sw.on { background: var(--s2); }
.sw.on::after { left: 17px; }

/* ── Sections ───────────────────────────────────────────────────────── */
section { padding: 76px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.25; letter-spacing: -0.025em; margin: 0 0 12px; scroll-margin-top: 80px; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 8px; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 760px; margin: 0 0 34px; }
.cards { display: grid; gap: 18px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
section.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card.problem { border-inline-start: 3px solid var(--ban); }
.features .card h3 { margin-top: 14px; }
.ico { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: color-mix(in srgb, var(--brand) 13%, transparent); color: var(--brand); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.tour { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px 56px; align-items: center; margin-top: 56px; }
.tour.reverse .tour-text { order: 2; }
.tour-text p { color: var(--muted); margin: 0 0 12px; }
.tour-text ul { margin: 0; padding-inline-start: 20px; color: var(--muted); }
.tour-text li { margin: 4px 0; }

/* Diagram — inline SVG styled from here so both themes read */
.diagram { margin: 8px 0 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 720px; height: auto; direction: ltr; }
.diagram .zone { stroke-width: 1.4; }
.diagram .zone.srv { fill: var(--d-srv); stroke: var(--d-srv-line); }
.diagram .zone.con { fill: var(--d-con); stroke: var(--d-con-line); }
.diagram .zone.me { fill: var(--d-me); stroke: var(--d-me-line); }
.diagram .zone.ext { fill: var(--surface-2); stroke: var(--border); stroke-dasharray: 5 4; }
.diagram .node rect { fill: var(--surface); stroke: var(--border); stroke-width: 1.2; }
.diagram text { font-family: var(--font); fill: var(--text); }
.diagram .zt { font-size: 15px; font-weight: 800; }
.diagram .nt { font-size: 15px; font-weight: 700; }
.diagram .ns { font-size: 13px; fill: var(--muted); }
.diagram .lb { font-size: 14px; font-weight: 800; fill: var(--brand); }
.diagram .lb.sub { font-size: 12.5px; font-weight: 500; fill: var(--muted); }
.diagram .ln { fill: none; stroke: var(--d-arrow); stroke-width: 1.6; }
.diagram .ln.strong { stroke: var(--brand-2); stroke-width: 2.4; }
.diagram .ln.dash { stroke-dasharray: 5 4; }
.diagram .ah { fill: var(--d-arrow); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; font-size: 15px; color: var(--muted); }
.steps li::before { content: counter(step); display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--brand-2); color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.steps b { display: block; color: var(--text); margin-bottom: 4px; }

.layers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; }
.layers-text p { color: var(--muted); margin: 0; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rules li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; border: 1px solid; font-size: 15px; }
.rules .no { font-family: var(--mono); font-weight: 800; }
.rules .rt { font-weight: 700; }
.rules .rv { font-size: 13.5px; }
.rules .allow { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.rules .drop { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-text); }
.rules .rt { color: var(--text); }

.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.principles li { position: relative; padding-inline-start: 34px; color: var(--muted); }
.principles li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 18%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--ok);
}
.principles li::after {
  content: ""; position: absolute; inset-inline-start: 7px; top: 9px; width: 8px; height: 5px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.principles b { color: var(--text); display: block; }

.reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0; }
.reqs div { border-top: 1px solid var(--border); padding-top: 12px; }
.reqs dt { font-weight: 800; margin-bottom: 4px; }
.reqs dd { margin: 0; color: var(--muted); }

.cta { text-align: center; background: radial-gradient(1200px 300px at 50% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent), var(--bg); border-top: 1px solid var(--border); }
.cta p { color: var(--muted); margin: 0 0 24px; }
.cta .cta-reach { margin: 20px 0 0; font-size: 15px; }

/* 「설치 파일 배포는 준비 중」 — 사이트에서 가장 먼저 알려야 할 사실이라 따로 눈에 띄게 한다.
   테두리는 브랜드 그라데이션(padding-box/border-box 겹치기), 점은 천천히 깜박인다(움직임 줄이기 설정이면 멈춤). */
.soon {
  position: relative; display: flex; align-items: center; gap: 18px; margin: 18px 0 24px; padding: 20px 22px;
  border: 1.5px solid transparent; border-radius: 18px;
  background:
    radial-gradient(520px 160px at 0% 0%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 70%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(120deg, #3987e5, #36b3d9 45%, #eb6834) border-box;
  box-shadow: 0 10px 34px color-mix(in srgb, var(--brand-2) 18%, transparent);
}
.soon-ico {
  flex: none; display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px;
  color: #fff; background: linear-gradient(140deg, #3987e5, #2a6fc7);
  box-shadow: 0 6px 18px rgba(42, 120, 214, 0.35);
}
.soon-ico svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.soon-body { min-width: 0; flex: 1; }
.soon-body p { margin: 0; color: var(--muted); }
.soon-body .soon-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; color: var(--text); }
.soon-head strong { font-size: 18.5px; letter-spacing: -0.01em; color: var(--text); }
.soon-body p strong { color: var(--text); }
.soon-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.02em; line-height: 1.3;
  color: #9a4a12; background: #fff1e6; border: 1px solid #f6c39b;
}
.soon-pill i { width: 8px; height: 8px; border-radius: 50%; background: #eb6834; box-shadow: 0 0 0 0 rgba(235, 104, 52, 0.55); animation: soon-pulse 1.8s ease-out infinite; }
@keyframes soon-pulse { 0% { box-shadow: 0 0 0 0 rgba(235, 104, 52, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(235, 104, 52, 0); } 100% { box-shadow: 0 0 0 0 rgba(235, 104, 52, 0); } }
@media (prefers-reduced-motion: reduce) { .soon-pill i { animation: none; } }
@media (prefers-color-scheme: dark) {
  .soon-pill { color: #ffc39e; background: #3a1d0c; border-color: #7a3f1a; }
}
.soon-wide { margin-top: 26px; }
.soon-cta { flex: none; }
@media (max-width: 680px) {
  .soon { flex-wrap: wrap; align-items: flex-start; padding: 18px; }
  .soon-ico { width: 44px; height: 44px; }
  .soon-cta { width: 100%; }
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0 34px; color: var(--muted); font-size: 14px; background: var(--surface); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; }
.foot-nav { display: flex; gap: 18px; }
.foot-nav a { color: var(--muted); }
.legal { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* ── Guide (doc) ────────────────────────────────────────────────────── */
.doc { padding: 44px 0 70px; }
.doc-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 84px; font-size: 14.5px; }
.toc-title { font-weight: 800; margin: 0 0 8px; }
.toc ol { margin: 0; padding-inline-start: 22px; color: var(--muted); }
.toc li { margin: 5px 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
.doc-body { min-width: 0; max-width: 840px; }
.doc-body h1 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 6px; }
.doc-body h2 { font-size: 26px; margin: 2.4em 0 0.6em; padding-top: 0.3em; border-top: 1px solid var(--border); }
.doc-body h3 { font-size: 19px; margin: 1.8em 0 0.5em; scroll-margin-top: 80px; }
.doc-body p, .doc-body li { color: var(--text); }
.doc-body ul, .doc-body ol { padding-inline-start: 22px; }
.doc-body li { margin: 6px 0; }
.updated { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.note { border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); background: color-mix(in srgb, var(--brand) 8%, transparent); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.note p, .note li { margin: 4px 0; }
.note ul { margin: 6px 0 0; }
.note.warn { border-color: var(--warn-border); background: var(--warn-bg); }
.note.warn p, .note.warn li { color: var(--warn-text); }
.note.danger { border-color: var(--danger-border); background: var(--danger-bg); }
.note.danger p, .note.danger li { color: var(--danger-text); }
.tip { color: var(--muted); font-size: 15.5px; border-inline-start: 3px solid var(--border); padding-inline-start: 12px; }
.warn-line { color: var(--danger-text); }
.table-wrap { overflow-x: auto; margin: 14px 0 18px; border: 1px solid var(--border); border-radius: 12px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); }
.table-wrap th { text-align: start; font-size: 13.5px; color: var(--muted); background: var(--surface-2); font-weight: 700; padding: 9px 12px; white-space: nowrap; }
.table-wrap td { padding: 9px 12px; border-top: 1px solid var(--border); vertical-align: top; }
.table-wrap td:first-child { min-width: 8.5em; }
.table-wrap table.compact td, .table-wrap table.compact th { text-align: center; white-space: nowrap; }
.table-wrap td code { white-space: nowrap; }
pre {
  margin: 14px 0 18px; padding: 14px 16px; border-radius: 12px; overflow-x: auto;
  background: var(--code-bg); color: var(--code-text); font-family: var(--mono); font-size: 13.5px; line-height: 1.7;
  border: 1px solid var(--border); direction: ltr; text-align: left; white-space: pre;
}
pre .c { color: var(--code-comment); }
.end { margin-top: 2.4em; }
/* 실제 로그 문구 — 에이전트·콘솔은 한국어로 찍으므로 어느 언어 페이지에서도 원문 그대로 보인다 */
code.log, .table-wrap td code.log { white-space: normal; word-break: keep-all; }
.logline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; color: var(--muted); font-size: 15px; margin-top: -6px; }
.logline code { color: var(--text); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-text, .tour, .layers { grid-template-columns: 1fr; }
  .tour.reverse .tour-text { order: 0; }
  .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-row { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
}
@media (max-width: 680px) {
  /* 메뉴가 2~3줄로 꺾이면 고정 머리글이 화면의 1/5 을 늘 차지한다 — 휴대폰에서는 함께 흘러가게 */
  .site-header { position: static; }
  section { padding: 56px 0; }
  .hero { padding: 40px 0 40px; }
  .cards.three, .steps, .principles, .reqs { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bans { overflow-x: auto; }
  .ipd-grid, .kv { grid-template-columns: 1fr; }
  .site-nav { gap: 2px 14px; font-size: 14px; }
  .app-user { display: none; }
}
@media print {
  .site-header, .lang-menu, .toc { display: none; }
  body { background: #fff; }
}
