/* SWGateway 소개 사이트. landoc.app 디자인 체계(남색 잉크 + 회청색 종이 + 형광 노랑 하나)를 따른다 */
:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --code: Consolas, "D2Coding", "Malgun Gothic", monospace;
  --paper: #ffffff;
  --sheet: #f2f4f8;
  --ink: #16213e;
  --ink-2: #4a5574;
  --ink-3: #8790a8;
  --rule: #dfe3ec;
  --pen: #2b5cff;
  --hi: #ffe45c;
  --hi-soft: #fff6b8;
  --ok: #7fe0a8;
  --night: #0d1428;
  --night-2: #141d38;
  --night-line: rgba(255, 255, 255, .09);
  --on-night: #eef1f8;
  --on-night-2: #a9b2c9;
  --gutter: 16px;
  --wide: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--pen); }
code { font-family: var(--code); font-size: .92em; }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--ink); font-size: 15px; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background-color .12s, border-color .12s; }
.btn-hi { background: var(--hi); border-color: var(--hi); color: #1c1700; }
.btn-hi:hover { background: #ffd92e; border-color: #ffd92e; }
.btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-line:hover { border-color: #fff; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 17px; border-radius: 12px; }

/* 머리말 */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--night) 88%, transparent); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--night-line); }
.nav .in { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -.04em; color: #fff; text-decoration: none; }
.nav nav { display: flex; gap: 4px; flex: 1; }
.nav nav a { color: var(--on-night-2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.nav nav a:hover { color: #fff; }
.nav .btn { margin-left: auto; }

/* 어두운 무대 */
.stage { position: relative; background: var(--night); color: var(--on-night); isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 50% at 85% 10%, rgba(255, 228, 92, .10), transparent 60%),
  radial-gradient(50% 60% at 5% 90%, rgba(43, 92, 255, .14), transparent 60%); }

/* 첫 화면 */
.hero { padding: clamp(48px, 8vw, 104px) 0; }
.hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.18; letter-spacing: -.045em; font-weight: 850; color: #fff; }
.mark { position: relative; z-index: 0; white-space: nowrap; }
.mark::after { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .06em; height: .36em; background: var(--hi); opacity: .35; z-index: -1; border-radius: 3px; transform-origin: left; animation: sweep 1.1s cubic-bezier(.16, 1, .3, 1) .5s both; }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--on-night-2); line-height: 1.7; margin: 22px 0 32px; max-width: 32em; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.meta { margin-top: 16px; color: var(--on-night-2); font-size: 14px; }

/* 요청 → 프로그램 → 응답 */
.demo { margin: 0; display: grid; gap: 14px; min-width: 0; }
.term { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.term-t { display: block; font-size: 13px; font-weight: 700; color: var(--on-night-2); margin-bottom: 6px; }
.term-t.ok { color: var(--ok); }
.term pre { margin: 0; font-size: 14px; line-height: 1.65; white-space: pre-wrap; color: var(--on-night); }
.win { background: #fff; color: var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); }
.win-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--sheet); border-bottom: 1px solid var(--rule); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.win-bar i { width: 10px; height: 10px; border: 1.5px solid var(--ink-3); border-radius: 2px; }
.win-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.win-body label { font-size: 13px; color: var(--ink-2); }
.field { height: 38px; display: flex; align-items: center; padding: 0 10px; border: 1.5px solid var(--pen); border-radius: 4px; font-weight: 600; }
.typed { display: inline-block; overflow: hidden; white-space: nowrap; animation: type 1s steps(4) .9s both; }
@keyframes type { from { max-width: 0; } to { max-width: 6em; } }
.win-act { display: flex; justify-content: flex-end; margin-top: 6px; }
.win-btn { padding: 6px 20px; border-radius: 4px; background: var(--sheet); border: 1px solid var(--ink-3); font-size: 14px; font-weight: 600; animation: press .5s ease 2s both; }
@keyframes press { 50% { background: var(--hi); border-color: var(--ink); transform: translateY(1px); } 100% { background: var(--hi-soft); border-color: var(--ink); } }
.res { animation: arrive .4s ease 2.5s both; }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }

/* 설명 */
.answer { padding: clamp(40px, 6vw, 64px) 0; }
.answer-box { border-left: 4px solid var(--hi); padding: 4px 0 4px 22px; max-width: 760px; }
.answer-box h2 { font-size: 22px; margin-bottom: 10px; }
.answer-box p { color: var(--ink-2); font-size: 17px; line-height: 1.75; }

/* 섹션 */
.sec { padding: clamp(64px, 9vw, 112px) 0; }
.sec-tint { background: var(--sheet); }
.sec-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.22; letter-spacing: -.04em; font-weight: 820; }
.sec-head p { color: var(--ink-2); font-size: clamp(16px, 1.8vw, 18px); line-height: 1.7; margin-top: 14px; }

/* 순서 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: st; position: relative; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 2px; background: var(--rule); }
.steps li { list-style: none; counter-increment: st; position: relative; padding-right: 32px; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; position: relative; margin-bottom: 18px; }
.steps li:last-child::before { background: var(--hi); color: #2a2400; }
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15.5px; }

/* 응답 표 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split .sec-head { margin-bottom: 0; }
.table-scroll { border: 1px solid var(--rule); border-radius: 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
tbody tr:last-child > * { border-bottom: 0; }
thead th { font-size: 14px; font-weight: 700; color: var(--ink-2); background: var(--sheet); }
tbody th { font-family: var(--code); white-space: nowrap; }
td { color: var(--ink-2); }

/* 안전 원칙 */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px clamp(32px, 6vw, 80px); }
.rules > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.rules h3 { font-size: 19px; margin-bottom: 6px; }
.rules p { color: var(--ink-2); font-size: 15.5px; }

/* 마지막 권유 */
.final { padding: clamp(64px, 9vw, 112px) 0; }
.final .in { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.final h2 { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.2; letter-spacing: -.04em; font-weight: 850; color: #fff; max-width: 16em; }
.final p { color: var(--on-night-2); margin-top: 12px; font-size: 18px; }

/* 꼬리말 */
.foot { padding: 32px 0 40px; color: var(--ink-2); font-size: 14px; }
.foot p + p { margin-top: 4px; }
.foot a { color: inherit; }

/* 프로그램 미리보기: src/SWGateway/MainWindow.xaml 구성을 옮긴 것 */
.app { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px -40px rgba(13, 20, 40, .5); font-family: "Malgun Gothic", var(--font); font-size: 13.5px; }
.app-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: var(--sheet); border-bottom: 1px solid var(--rule); font-size: 13px; }
.app-bar i { width: 10px; height: 10px; border: 1.5px solid var(--ink-3); border-radius: 2px; }
.app-tabs { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--rule); }
.app-tabs button { font: inherit; padding: 7px 16px; min-height: 36px; background: var(--sheet); color: var(--ink-2); border: 1px solid var(--rule); border-bottom: 0; border-radius: 4px 4px 0 0; cursor: pointer; }
.app-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: inset 0 2px 0 var(--pen); }
.app-panel { padding: 16px; min-height: 360px; }
.app-panel[hidden] { display: none; }
.app-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.app-btns span { padding: 5px 12px; border: 1px solid var(--ink-3); border-radius: 3px; background: var(--sheet); }
.app-btns em { font-style: normal; color: var(--ink-3); }
.app-input { min-width: 180px; padding: 5px 8px; border: 1px solid var(--ink-3); border-radius: 2px; font-weight: 400; }
.app-foot { margin: 12px 0 0; }
.grid-scroll { overflow-x: auto; border: 1px solid var(--rule); }
.app-grid { font-size: 13.5px; white-space: nowrap; }
.app-grid th, .app-grid td { padding: 6px 10px; }
.app-grid tbody th { font-family: inherit; }
.app-grid .sel td { background: var(--pen); color: #fff; }
.app-note { margin: 12px 0 6px; color: var(--ink); }
.app-rec + .app-note { margin-top: 0; margin-bottom: 12px; }
.app-io { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-io pre { margin: 0; padding: 8px; min-height: 120px; border: 1px solid var(--rule); font-family: var(--code); white-space: pre-wrap; }
.app-set p { margin-bottom: 8px; }
.app-set .app-btns { margin-bottom: 18px; }
.after { margin-top: 24px; }
.fine { color: var(--ink-3); font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); }
.nav nav a[aria-current="page"] { color: #fff; }

/* 요금제 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--rule); border-radius: 16px; }
.plan h2 { font-size: 18px; letter-spacing: 0; }
.plan .price { margin-top: 14px; color: var(--ink-2); }
.plan .price strong { font-size: 32px; font-weight: 850; letter-spacing: -.04em; color: var(--ink); }
.plan .year { color: var(--ink-3); font-size: 14px; }
.plan .seats { margin-top: 8px; font-weight: 700; }
.plan ul { flex: 1; margin: 18px 0 22px; padding-left: 18px; color: var(--ink-2); font-size: 15px; display: grid; gap: 8px; align-content: start; }
.plan .soon { align-self: flex-start; margin-bottom: 10px; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink-3); }

/* 사용 방법 */
.page-hero { padding: clamp(40px, 6vw, 72px) 0; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.2; letter-spacing: -.045em; font-weight: 850; color: #fff; }
.page-hero .lead { margin-bottom: 0; }
.doc { max-width: 760px; padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); }
.guide { counter-reset: g; margin: 0; padding: 0; list-style: none; }
.guide > li { counter-increment: g; position: relative; padding: 0 0 48px 60px; }
.guide > li::before { content: counter(g); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.guide > li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 48px; bottom: 8px; width: 2px; background: var(--rule); }
.guide h2 { font-size: 24px; line-height: 40px; letter-spacing: -.03em; margin-bottom: 8px; }
.guide h3 { font-size: 16px; margin: 20px 0 8px; }
.guide p { color: var(--ink-2); margin-bottom: 10px; }
.guide b { color: var(--ink); }
.sub { margin: 0 0 12px; padding-left: 22px; color: var(--ink-2); display: grid; gap: 6px; }
.sub li::marker { color: var(--ink-3); }
.tip { padding: 10px 14px; border-left: 3px solid var(--hi); background: var(--hi-soft); color: var(--ink) !important; font-size: 15px; }
.code { margin: 0 0 12px; padding: 14px 16px; border-radius: 10px; background: var(--night); color: var(--on-night); font-size: 14px; line-height: 1.6; overflow-x: auto; }
.code code { font-size: inherit; }
.doc-sec { margin-top: 24px; scroll-margin-top: 80px; }
.doc-sec h2 { font-size: 28px; letter-spacing: -.035em; margin-bottom: 16px; }
.doc-sec .after { color: var(--ink-2); }
.paid { margin-top: 56px; padding: 28px; border: 2px solid var(--ink); border-radius: 14px; }
.paid h2 { margin: 10px 0 12px; }
.paid p { color: var(--ink-2); margin-bottom: 12px; }
.paid .btn { margin-top: 6px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--hi); color: #2a2400; font-size: 13px; font-weight: 700; }

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .app-io { grid-template-columns: 1fr; }
  .guide > li { padding-left: 52px; }
  .hero .grid, .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
  .steps li { padding-right: 0; }
  .rules { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark::after, .typed, .win-btn, .res { animation: none; }
}
