/* ==========================================================================
   메모리클리너 랜딩 — index.php 전용. 모든 클래스는 mc- 접두어 (밝은 바탕, 앱 아이콘의 초록)
   ========================================================================== */

:root {
	--bg: #f5f9f6;
	--bg-2: #ebf3ee;
	--surface: #fff;
	--line: rgba(15, 23, 42, .08);
	--line-2: rgba(15, 23, 42, .15);
	--text: #0f172a;
	--muted: #475569;
	--faint: #8a96a8;
	--acc: #16a34a;
	--acc-2: #22c55e;
	--acc-deep: #15803d;
	--acc-dim: rgba(22, 163, 74, .1);
	--blue: #3d84dd;
	--pin: #f59e0b;
	/* 메모리 막대 몫 */
	--m-use: #64748b;
	--m-idle: #f59e0b;
	--m-cache: #3b82f6;
	--m-mod: #8b5cf6;
	--m-free: #22c55e;
	--wrap: 1160px;
	--top: 64px;
	--font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
	--mono: ui-monospace, "Cascadia Mono", Consolas, "D2Coding", monospace;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
body.mc {
	margin: 0; background: var(--bg); color: var(--text);
	font: 16px/1.7 var(--font); letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--acc-deep); text-underline-offset: 3px; }
b, strong { font-weight: 700; color: var(--text); }
code { font-family: var(--mono); font-size: .86em; background: var(--bg-2); padding: .1em .4em; border-radius: 6px; color: #14532d; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.03em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

.mc-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mc-narrow { max-width: 820px; }
.mc-small { font-size: 14px; color: var(--muted); }
.mc-skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--acc); color: #fff; padding: 8px 14px; border-radius: 8px; }
.mc-skip:focus { top: 8px; }

/* ---------- 버튼 · 배지 ---------- */
.mc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
	background: linear-gradient(180deg, #22c55e, #16a34a); color: #fff;
	font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
	box-shadow: 0 10px 26px -12px rgba(22, 163, 74, .8), inset 0 1px 0 rgba(255,255,255,.25);
	transition: transform .2s, box-shadow .2s;
}
.mc-btn svg { width: 20px; height: 20px; }
.mc-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(22, 163, 74, .9), inset 0 1px 0 rgba(255,255,255,.25); }
.mc-btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.mc-btn--ghost:hover { background: var(--bg-2); box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.mc-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.mc-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--acc-dim); color: var(--acc-deep); white-space: nowrap; }
.mc-badge--off { background: var(--bg-2); color: var(--muted); }

/* ---------- 상단 ---------- */
.mc-top {
	position: sticky; top: 0; z-index: 50; height: var(--top);
	background: rgba(245, 249, 246, .8); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
	border-bottom: 1px solid transparent; transition: border-color .3s;
}
.mc-top.is-stuck { border-bottom-color: var(--line); }
.mc-top__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.mc-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 18px; text-decoration: none; margin: 0; }
.mc-brand__icon { width: 20px; height: 20px; }
.mc-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.mc-nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.mc-nav a:hover { color: var(--text); background: var(--bg-2); }

/* ---------- HERO ---------- */
.mc-hero { position: relative; overflow: hidden; padding: 72px 0 88px; isolation: isolate; }
.mc-hero::before {
	content: ""; position: absolute; inset: -30% -10% auto; height: 130%; z-index: -1;
	background:
		radial-gradient(44% 46% at 74% 42%, rgba(34, 197, 94, .16), transparent 70%),
		radial-gradient(30% 30% at 12% 80%, rgba(245, 158, 11, .07), transparent 70%);
}
.mc-hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.mc-tags { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mc-tags li { font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.7); }
.mc-hero__title { font-size: clamp(34px, 4.3vw, 52px); font-weight: 800; letter-spacing: -.045em; margin-bottom: 24px; }
.mc-hero__title--long { font-size: clamp(30px, 3.8vw, 46px); }
.mc-hero__title em { font-style: normal; color: var(--acc); }
.mc-line { display: block; }
.mc-hero__lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 34em; margin-bottom: 32px; }
.mc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.mc-hero__meta { font-size: 14px; color: var(--faint); margin: 0; }

.mc-hero__visual { position: relative; padding: 24px 0 40px; }
.mc-shot {
	width: 100%; max-width: 533px; height: auto; margin-inline: auto; border-radius: 8px;
	box-shadow: 0 0 0 1px var(--line-2), 0 40px 70px -36px rgba(20, 83, 45, .45);
}
.mc-chip {
	position: absolute; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
	background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(15,23,42,.35); font-size: 14px; color: var(--muted); white-space: nowrap;
}
.mc-chip img { width: 20px; height: 20px; flex: none; }
.mc-chip code { background: none; padding: 0; color: var(--text); font-size: 13px; }
.mc-chip b { font: 800 20px/1 var(--font); color: var(--acc-deep); letter-spacing: -.02em; }
.mc-chip--exe { inset-inline-start: -18px; bottom: 0; }
.mc-chip--tray { inset-inline-end: -10px; top: 0; }
.mc-chip--tray img { width: 16px; height: 16px; }
.mc-chip--exe b::after { content: "+"; font-size: .7em; vertical-align: .35em; margin-inline-start: 1px; }

/* 첫 화면 등장 (JS 가 있을 때만) */
.mc-js .mc-line, .mc-js .mc-tags, .mc-js .mc-hero__lead, .mc-js .mc-cta, .mc-js .mc-hero__meta, .mc-js .mc-hero__visual {
	animation: mc-rise .9s cubic-bezier(.2,.7,.2,1) both;
}
.mc-js .mc-tags { animation-delay: .05s; }
.mc-js .mc-line:nth-child(1) { animation-delay: .12s; }
.mc-js .mc-line:nth-child(2) { animation-delay: .22s; }
.mc-js .mc-hero__lead { animation-delay: .34s; }
.mc-js .mc-cta { animation-delay: .44s; }
.mc-js .mc-hero__meta { animation-delay: .52s; }
.mc-js .mc-hero__visual { animation-duration: 1.2s; animation-delay: .2s; }
.mc-js .mc-chip--exe { animation: mc-pop .7s .9s cubic-bezier(.2,.9,.3,1.3) both; }
.mc-js .mc-chip--tray { animation: mc-pop .7s 1.1s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes mc-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes mc-pop { from { opacity: 0; transform: scale(.85) translateY(10px); } }

/* ---------- 섹션 공통 ---------- */
.mc-sec { padding: 112px 0; border-top: 1px solid var(--line); }
.mc-head { text-align: center; margin: 0 auto 56px; max-width: 760px; }
.mc-ad { margin-top: 24px; line-height: 0; }
.mc-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.mc-caption { text-align: center; font-size: 13px; color: var(--faint); margin: 28px auto 0; max-width: 780px; text-wrap: balance; }

.mc-js .mc-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.mc-js .mc-reveal.is-in { opacity: 1; transform: none; }

/* ---------- HOW: 메모리 막대 + 단계 ---------- */
.mc-how { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.mc-story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: start; }
.mc-stage {
	position: sticky; top: calc(var(--top) + 32px);
	background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px;
	box-shadow: 0 30px 70px -44px rgba(20, 83, 45, .5);
}
.mc-stage__total { font-size: 14px; color: var(--faint); margin: 0 0 10px; }
.mc-bar { display: flex; height: 64px; border-radius: 12px; overflow: hidden; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.mc-bar i { display: block; height: 100%; width: 0; transition: width .9s cubic-bezier(.3,.7,.2,1); }
.mc-bar__use { background: var(--m-use); }
.mc-bar__idle { background: repeating-linear-gradient(135deg, var(--m-idle) 0 8px, #fbbf24 8px 16px); }
.mc-bar__cache { background: var(--m-cache); }
.mc-bar__mod { background: var(--m-mod); }
.mc-bar__free { background: var(--m-free); }
.mc-legend { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.mc-legend li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.mc-legend li i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.mc-legend li span { flex: 1; }
.mc-legend li b { font: 700 15px var(--mono); font-variant-numeric: tabular-nums; }
.mc-legend b::after { content: " GB"; font-weight: 400; color: var(--faint); }
.mc-legend .is-use i { background: var(--m-use); }
.mc-legend .is-idle i { background: var(--m-idle); }
.mc-legend .is-cache i { background: var(--m-cache); }
.mc-legend .is-mod i { background: var(--m-mod); }
.mc-legend .is-free i { background: var(--m-free); }
.mc-legend .is-free { color: var(--text); font-weight: 600; }
.mc-stage__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); min-height: 92px; }
.mc-free { margin: 0; }
.mc-free small { display: block; font-size: 13px; color: var(--faint); }
.mc-free b { font: 800 34px/1.1 var(--font); color: var(--acc-deep); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
/* 그림 속 단추 — 앱 정리하기 단추 모양(외곽선 #3D84DD, 모서리 6) */
.mc-fake { display: none; align-items: center; justify-content: center; gap: 8px; min-width: 132px; height: 52px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--blue); background: #fff; font: 13px var(--font); color: #000; white-space: nowrap; }
.mc-stage[data-btn="clean"] .mc-fake--clean, .mc-stage[data-btn="cleaning"] .mc-fake--cleaning, .mc-stage[data-btn="purge"] .mc-fake--purge, .mc-stage[data-btn="tray"] .mc-fake--tray { display: inline-flex; }
.mc-fake--cleaning { border-color: #d7d7d7; color: #b3b3b3; }
.mc-fake--purge { border-color: var(--m-cache); color: var(--m-cache); font-weight: 700; border-radius: 99px; }
.mc-fake--tray { border: 0; background: #1f2937; color: #e5e7eb; border-radius: 10px; min-width: 0; }
.mc-fake--tray b { color: #fff; font-size: 15px; }

.mc-steps { list-style: none; margin: 0; padding: 0; }
.mc-step { min-height: 30vh; padding-block: 8vh; padding-inline-start: 20px; border-inline-start: 2px solid var(--line); opacity: .4; transition: opacity .4s, border-color .4s; }
.mc-step:first-child { padding-top: 0; }
.mc-step.is-on { opacity: 1; border-color: var(--acc); }
.mc-step__no { font: 700 12px var(--mono); color: var(--faint); }
.mc-step h3 { font-size: 22px; margin: 4px 0 10px; }
.mc-step p { color: var(--muted); margin: 0; }

/* ---------- 가벼움 ---------- */
.mc-light { background: #fff; }
.mc-grid { display: grid; gap: 16px; }
.mc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mc-stat { padding: 32px 28px; border-radius: 20px; background: linear-gradient(170deg, #f0fdf4, #fff 70%); border: 1px solid rgba(22, 163, 74, .18); }
.mc-stat b { display: block; font: 800 clamp(34px, 4vw, 48px)/1.1 var(--font); letter-spacing: -.04em; color: var(--acc-deep); margin-bottom: 14px; }
.mc-stat p { margin: 0; color: var(--muted); font-size: 15px; }
.mc-note { max-width: 900px; margin: 24px auto 0; padding: 16px 20px; border-radius: 14px; background: var(--bg-2); color: var(--muted); font-size: 15px; text-align: center; text-wrap: balance; }

/* ---------- 카드 ---------- */
.mc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: border-color .3s, box-shadow .3s; }
.mc-card:hover { border-color: var(--line-2); box-shadow: 0 20px 40px -30px rgba(20, 83, 45, .45); }
.mc-card h3 { font-size: 18px; margin: 12px 0 6px; }
.mc-card p { color: var(--muted); font-size: 15px; margin: 0; }
.mc-card__top { display: flex; align-items: center; justify-content: space-between; margin: 0 !important; }
.mc-dot { width: 14px; height: 14px; border-radius: 4px; }
.mc-dot.is-cache { background: var(--m-cache); }
.mc-dot.is-idle { background: var(--m-idle); }
.mc-dot.is-mod { background: var(--m-mod); }
.mc-card--off { background: #fbfcfb; }
.mc-card--note { background: linear-gradient(160deg, #fffbeb, #fff); border-color: rgba(245, 158, 11, .3); display: flex; align-items: center; }

/* ---------- 자동 정리 + 끊김 예방 시험 ---------- */
.mc-auto { background: linear-gradient(180deg, var(--bg), #fff); }
.mc-auto .mc-card h3 { margin-top: 0; }
.mc-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 40px; padding: 36px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -50px rgba(20, 83, 45, .5); }
.mc-demo h3 { font-size: 24px; margin-bottom: 12px; }
.mc-demo__copy > p { color: var(--muted); }
.mc-rec { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 15px; }
.mc-rec caption { text-align: start; font-weight: 700; padding-bottom: 8px; }
.mc-rec th, .mc-rec td { text-align: start; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.mc-rec th { font-size: 13px; color: var(--faint); font-weight: 600; }
.mc-rec td { font-variant-numeric: tabular-nums; }
.mc-rec small { color: var(--faint); }
.mc-demo__box { display: grid; gap: 22px; padding: 24px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.mc-gauge__head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; font-weight: 600; }
.mc-gauge__head output { font: 700 15px var(--mono); font-variant-numeric: tabular-nums; }
.mc-gauge__track { position: relative; height: 14px; border-radius: 7px; background: #e2e8f0; }
.mc-gauge__fill { position: absolute; inset: 0 auto 0 0; border-radius: 7px; transition: background .3s; }
.mc-gauge[data-kind="cache"] .mc-gauge__fill { background: var(--m-cache); }
.mc-gauge[data-kind="free"] .mc-gauge__fill { background: var(--m-free); }
.mc-gauge__mark { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--text); }
.mc-gauge.is-hit .mc-gauge__head label::after { content: " ✓"; color: var(--acc); }
.mc-gauge input[type="range"] { width: 100%; margin: 10px 0 0; accent-color: var(--acc); }
.mc-gauge__rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.mc-gauge__rule select { font: 600 14px var(--font); padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--text); }
.mc-verdict { margin: 0; padding: 14px 16px; border-radius: 12px; text-align: center; font-weight: 700; background: #e2e8f0; color: var(--muted); transition: background .3s, color .3s; }
.mc-verdict.is-go { background: var(--m-cache); color: #fff; }

/* ---------- 프로그램 미리보기 — 앱 소스 값(Win32, 클라이언트 500x472) ---------- */
.mc-appsec { background: linear-gradient(180deg, #fff, var(--bg)); }
.mc-app { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr); gap: 32px; align-items: start; }
.mc-app__side { position: sticky; top: calc(var(--top) + 24px); }
.mc-app__tabs { display: grid; gap: 10px; }
.mc-app__tabs [role="tab"] {
	text-align: start; cursor: pointer; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
	font: inherit; color: var(--muted); transition: border-color .2s, box-shadow .2s, color .2s;
}
.mc-app__tabs [role="tab"] > b { display: block; font-size: 16px; margin-bottom: 2px; }
.mc-app__tabs [role="tab"] span { font-size: 14px; line-height: 1.55; display: block; }
.mc-app__tabs [role="tab"][aria-selected="true"] { border-color: rgba(22, 163, 74, .45); box-shadow: 0 0 0 4px var(--acc-dim); color: var(--text); }

.mc-app__view {
	--wfont: "Segoe UI", "Malgun Gothic", "Pretendard Variable", "Yu Gothic UI", "Microsoft YaHei UI", Tahoma, system-ui, sans-serif;
	position: relative; min-height: 600px; border-radius: 22px; padding: 40px 24px;
	background: linear-gradient(135deg, #dcefe2 0%, #eef6f0 45%, #e3eef6 100%);
	box-shadow: 0 0 0 1px var(--line), 0 40px 70px -44px rgba(20, 83, 45, .45);
	display: grid; place-items: center; overflow: hidden;
}
.mc-app__pane { width: 100%; display: grid; justify-items: center; }
.mc-app__pane[hidden] { display: none; }

/* 창: 제목 줄은 늘 다크 캡션(DWM), 제목 줄 아이콘은 tray0 */
.mc-win { width: 502px; flex: none; background: #fff; border: 1px solid #3d84dd; box-shadow: 0 24px 50px -20px rgba(0,0,0,.45); font: 12px/1.15 var(--wfont); letter-spacing: 0; color: #000; }
.mc-w-title { display: flex; align-items: center; gap: 8px; height: 31px; padding-inline-start: 8px; background: #202020; color: #fff; font: 12px var(--wfont); }
.mc-w-title img { width: 16px; height: 16px; }
.mc-w-title span { flex: 1; }
.mc-w-min, .mc-w-x { position: relative; width: 46px; height: 31px; }
.mc-w-min::before { content: ""; position: absolute; left: 18px; top: 15px; width: 10px; height: 1px; background: #fff; }
.mc-w-x::before, .mc-w-x::after { content: ""; position: absolute; left: 17px; top: 15px; width: 12px; height: 1px; background: #fff; transform: rotate(45deg); }
.mc-w-x::after { transform: rotate(-45deg); }
.mc-w-body { position: relative; width: 500px; height: 472px; border-top: 1px solid #3d84dd; overflow: hidden; }
.mc-w-body > * , .mc-w-home > *, .mc-w-config > * { position: absolute; }
.mc-w-home, .mc-w-config { inset: 0; }
.mc-w-home[hidden], .mc-w-config[hidden] { display: none; }
.mc-w-body button { font: inherit; cursor: pointer; }
/* 탭 단추 70x30: 보통 흰 면 · 검은 글자, 선택 · hover 는 #3D84DD 채움 · 흰 글자, 모서리 반지름 2 */
.mc-w-tab { top: 11px; width: 70px; height: 30px; border: 0; border-radius: 2px; background: #fff; color: #000; padding: 0; }
.mc-w-tab:hover, .mc-w-tab.is-on { background: #3d84dd; color: #fff; }
.mc-w-logo { left: 380px; top: 7px; width: 112px; height: auto; }
/* STATIC(SS_CENTER) 처럼 칸이 좁으면 낱말 단위로 줄을 바꾸고 81px 아래는 잘린다 */
.mc-w-name { left: 8px; top: 91px; width: 484px; height: 81px; margin: 0; text-align: center; font: 59px/72px Tahoma, var(--wfont); overflow: hidden; overflow-wrap: normal; word-break: normal; }
/* 표준 진행 막대(비주얼 스타일 기본 초록) */
.mc-w-bar { left: 56px; top: 229px; width: 393px; height: 25px; background: #e6e6e6; border: 1px solid #bcbcbc; }
.mc-w-bar i { display: block; height: 100%; background: #06b025; transition: width .6s; }
.mc-w-l { left: 56px; width: 76px; height: 15px; white-space: nowrap; }
.mc-w-v { height: 15px; white-space: nowrap; overflow: hidden; }
.mc-w-l.is-dim, .mc-w-v.is-dim { color: #808080; }
/* 외곽선 단추: 흰 면 · 1px #3D84DD · 모서리 6, hover #5090E0 · 누르면 #3D84DD · 비활성 #D7D7D7/#B3B3B3 */
.mc-w-btn { border: 1px solid #3d84dd; border-radius: 6px; background: #fff; color: #000; padding: 0; }
.mc-w-btn:hover { background: #5090e0; color: #fff; }
.mc-w-btn:active { background: #3d84dd; color: #fff; }
.mc-w-btn:disabled { background: #fff; border-color: #d7d7d7; color: #b3b3b3; cursor: default; }
.mc-w-clean { left: 168px; top: 359px; width: 164px; height: 68px; }
.mc-w-def { left: 389px; top: 433px; width: 100px; height: 28px; }
/* 환경설정: 표준 그룹 상자 · 체크박스(높이 17) · 콤보(81x21) */
.mc-gb { left: 15px; width: 474px; margin: 0; padding: 0; border: 1px solid #dcdcdc; border-radius: 3px; }
.mc-gb legend { margin-inline-start: 6px; padding: 0 2px; font: inherit; color: #000; line-height: 1; transform: translateY(-1px); }
.mc-cb { display: flex; align-items: center; gap: 5px; height: 17px; white-space: nowrap; overflow: hidden; cursor: pointer; }
.mc-cb input { appearance: none; width: 13px; height: 13px; margin: 0; flex: none; border: 1px solid #333; background: #fff; display: grid; place-items: center; cursor: pointer; }
.mc-cb input:hover { border-color: #0078d4; }
.mc-cb input:checked::after { content: ""; width: 3px; height: 7px; border: solid #000; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.mc-cb span { overflow: hidden; text-overflow: ellipsis; }
.mc-cmb { left: 387px; width: 81px; height: 21px; padding: 0 2px; font: inherit; color: #000; background: #e1e1e1; border: 1px solid #adadad; border-radius: 0; color-scheme: light; }
.mc-cmb:hover { background: #e5f1fb; border-color: #0078d7; }
.mc-cmb:disabled { color: #a0a0a0; background: #ccc; border-color: #bfbfbf; }
.mc-w-txt { height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-w-txt.is-dim { color: #808080; }

/* 트레이: 작업 표시줄 오른쪽 끝 */
.mc-tray { position: relative; width: 100%; max-width: 520px; height: 360px; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #cfe6d7, #e8f1fb); box-shadow: 0 0 0 1px var(--line); font: 12px/1.35 var(--wfont); letter-spacing: 0; }
.mc-tray__bar { position: absolute; inset: auto 0 0; height: 48px; display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 12px; background: rgba(32, 32, 32, .92); color: #fff; }
.mc-tray__up { width: 28px; height: 40px; position: relative; }
.mc-tray__up::before { content: ""; position: absolute; left: 10px; top: 18px; width: 7px; height: 7px; border-left: 1.5px solid #fff; border-top: 1.5px solid #fff; transform: rotate(45deg); }
.mc-tray__icon { width: 36px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 4px; background: none; cursor: pointer; padding: 0; }
.mc-tray__icon:hover, .mc-tray__icon:focus-visible { background: rgba(255,255,255,.1); }
.mc-tray__icon img { width: 16px; height: 16px; image-rendering: pixelated; }
.mc-tray__clock { padding: 0 8px; font-size: 12px; }
.mc-tray__tip { position: absolute; right: 24px; bottom: 58px; margin: 0; padding: 6px 9px; max-width: 260px; white-space: pre-line; background: #f9f9f9; color: #000; border: 1px solid #c6c6c6; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.mc-tray__menu { position: absolute; right: 30px; bottom: 54px; list-style: none; margin: 0; padding: 4px; min-width: 170px; background: #f9f9f9; border: 1px solid #c6c6c6; border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.mc-tray__menu li { padding: 6px 28px 6px 24px; border-radius: 4px; white-space: nowrap; }
.mc-tray__menu li[role="menuitem"]:hover { background: #e5f1fb; }
.mc-tray__menu .mc-tray__sep { height: 1px; padding: 0; margin: 4px 6px; background: #d4d4d4; }
.mc-tray[data-pop="tip"] .mc-tray__menu, .mc-tray[data-pop="menu"] .mc-tray__tip, .mc-tray[data-pop="none"] .mc-tray__tip, .mc-tray[data-pop="none"] .mc-tray__menu { display: none; }
.mc-tray__toast { position: absolute; right: 12px; bottom: 60px; margin: 0; display: flex; gap: 12px; width: 300px; padding: 14px 16px; background: #f3f3f3; color: #000; border: 1px solid #d0d0d0; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; pointer-events: none; }
.mc-tray__toast.is-on { opacity: 1; transform: none; }
.mc-tray__toast img { width: 20px; height: 20px; flex: none; }
.mc-tray__toast b { display: block; margin-bottom: 2px; }

/* ---------- 아코디언 ---------- */
.mc-acc { display: grid; gap: 10px; }
.mc-acc details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .3s; }
.mc-acc details[open] { border-color: var(--line-2); }
.mc-acc summary { list-style: none; cursor: pointer; padding-block: 18px; padding-inline: 22px 52px; position: relative; font-weight: 700; font-size: 16px; }
.mc-acc summary::-webkit-details-marker { display: none; }
.mc-acc summary::after { content: ""; position: absolute; inset-inline-end: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.mc-acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.mc-acc details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- DOWNLOAD ---------- */
.mc-down { background: radial-gradient(60% 60% at 50% 0%, rgba(34, 197, 94, .1), transparent 70%), var(--bg); }
.mc-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; max-width: 900px; margin: 0 auto; }
.mc-dl__card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.mc-dl__card h3 { font-size: 22px; }
.mc-dl__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; flex: 1; }
.mc-dl__card ul li { padding-inline-start: 20px; position: relative; }
.mc-dl__card ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }
.mc-dl__card--main { border-color: rgba(22, 163, 74, .4); background: linear-gradient(180deg, #f0fdf4, var(--surface) 60%); box-shadow: 0 24px 50px -36px rgba(22, 163, 74, .6); }
.mc-dl__card--main h3 { display: flex; align-items: center; gap: 10px; }
.mc-dl__card .mc-btn { align-self: stretch; }
.mc-req { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; color: var(--muted); font-size: 14px; }
.mc-req b { margin-inline-end: 4px; }
.mc-hist { max-width: 820px; margin: 36px auto 0; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; background: var(--surface); }
.mc-hist summary { cursor: pointer; padding: 16px 0; font-weight: 700; }
.mc-hist__item { padding: 12px 0; border-top: 1px solid var(--line); }
.mc-hist__item p { margin: 0 0 6px; }
.mc-hist__item time { color: var(--faint); font-size: 14px; margin-inline-start: 6px; }
.mc-hist__item ul { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 14.5px; }
.mc-hist > .mc-small { border-top: 1px solid var(--line); padding: 14px 0 18px; margin: 0; }

/* ---------- 바닥 ---------- */
.mc-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; background: #fff; }
.mc-foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.mc-foot__in p { margin: 0 0 4px; }
.mc-foot .mc-brand a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.mc-foot .mc-brand a:hover { color: var(--acc-deep); }
.mc-foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.mc-foot__links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.mc-foot__links a:hover { color: var(--text); }

/* ---------- 언어 선택 ---------- */
.mc-lang { position: relative; margin-inline-start: 4px; }
.mc-lang summary {
	list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
	border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; white-space: nowrap; background: rgba(255,255,255,.6);
}
.mc-lang summary::-webkit-details-marker { display: none; }
.mc-lang summary:hover, .mc-lang[open] summary { color: var(--text); background: #fff; }
.mc-lang summary svg { width: 17px; height: 17px; }
.mc-lang ul {
	position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px;
	display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 2px;
	background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(15,23,42,.35);
}
.mc-lang a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; }
.mc-lang a:hover { background: var(--bg-2); color: var(--text); }
.mc-lang a[aria-current="page"] { color: var(--acc-deep); font-weight: 700; }

/* ---------- 반응형 ---------- */
@media (max-width: 1020px) {
	.mc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mc-story { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 32px; }
	.mc-demo { grid-template-columns: 1fr; }
	.mc-app { grid-template-columns: 1fr; gap: 20px; }
	.mc-app__side { position: static; }
	.mc-app__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	:root { --top: 56px; }
	.mc-wrap { padding: 0 16px; }
	.mc-nav { display: none; }
	.mc-top__in { justify-content: space-between; gap: 10px; }
	.mc-lang { margin-inline-start: auto; }
	.mc-lang summary span { display: none; }
	.mc-lang summary { padding: 0 10px; }
	.mc-hero { padding: 40px 0 56px; }
	.mc-hero__grid { grid-template-columns: 1fr; gap: 24px; }
	.mc-chip { padding: 8px 11px; font-size: 13px; }
	.mc-chip b { font-size: 17px; }
	.mc-chip--exe { inset-inline-start: 0; }
	.mc-chip--tray { inset-inline-end: 0; }
	.mc-sec { padding: 72px 0; }
	.mc-head { margin-bottom: 36px; }

	.mc-story { grid-template-columns: 1fr; gap: 0; }
	.mc-stage { top: calc(var(--top) + 8px); z-index: 5; padding: 14px 16px; border-radius: 16px; }
	.mc-bar { height: 36px; }
	.mc-legend { grid-template-columns: 1fr 1fr; gap: 2px 14px; margin-top: 10px; }
	.mc-legend li { font-size: 12.5px; gap: 6px; }
	.mc-legend li b { font-size: 12.5px; }
	.mc-legend li i { width: 10px; height: 10px; }
	.mc-stage__total { font-size: 12px; margin-bottom: 6px; }
	.mc-stage__foot { margin-top: 10px; padding-top: 10px; min-height: 0; }
	.mc-free b { font-size: 24px; }
	.mc-fake { height: 38px; min-width: 0; font-size: 12px; }
	.mc-steps { margin-top: 20px; }
	.mc-step { min-height: 34vh; padding-inline-start: 16px; }
	.mc-step:first-child { min-height: 0; padding-top: 24px; }
	.mc-step h3 { font-size: 19px; }

	.mc-grid--3 { grid-template-columns: 1fr; }
	.mc-demo { padding: 20px; gap: 24px; }
	.mc-app__tabs { gap: 6px; }
	.mc-app__tabs [role="tab"] { padding: 10px; text-align: center; border-radius: 10px; }
	.mc-app__tabs [role="tab"] b { font-size: 14px; margin: 0; }
	.mc-app__tabs [role="tab"] span { display: none; }
	.mc-app__view { padding: 28px 12px; min-height: 0; }
	.mc-dl { grid-template-columns: 1fr; }
	.mc-foot__in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
	.mc-grid--4 { grid-template-columns: 1fr; }
	.mc-hero__title { font-size: 34px; }
	.mc-chip code { display: none; }
}

/* ---------- 움직임 줄이기 ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.mc-js .mc-reveal { opacity: 1; transform: none; }
}

/* ---------- 언어별 서체 · 방향 ---------- */
:root:lang(ja) { --font: "Pretendard JP Variable", "Pretendard Variable", "Hiragino Sans", "Yu Gothic UI", Meiryo, system-ui, sans-serif; }
:root:lang(zh-Hans) { --font: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Pretendard Variable", system-ui, sans-serif; }
:root:lang(ar) { --font: "Pretendard Variable", "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif; }
:root:lang(th) { --font: "Pretendard Variable", "Leelawadee UI", "Noto Sans Thai", Tahoma, system-ui, sans-serif; }
:root:lang(ja) body.mc, :root:lang(zh-Hans) body.mc, :root:lang(th) body.mc { word-break: normal; line-break: strict; }
:root:lang(ar) .mc-hero__title, :root:lang(ar) .mc-head h2, :root:lang(th) .mc-hero__title { letter-spacing: 0; line-height: 1.4; }
:root:lang(ar) body.mc { letter-spacing: 0; }

/* ---------- kilho.net 첫 화면 링크: 다운로드 아래 (LANDING-PAGE.md 10-1) ---------- */
.mc-more img { width: 16px; height: 16px; flex: none; }
.mc-more { margin: 32px 0 0; text-align: center; }
.mc-more a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color .2s, transform .2s; }
.mc-more a:hover { transform: translateY(-2px); }
.mc-more a::after { content: "→"; color: var(--muted); }
[dir="rtl"] .mc-more a::after { content: "←"; }

/* 바닥 왼쪽 © KILHO.NET — kilho.net 첫 화면 링크, 글자색은 둘레와 같게 */
.mc-foot .mc-small a { color: inherit; text-decoration: none; }
.mc-foot .mc-small a:hover { color: var(--text); text-decoration: underline; }

/* 바닥 X(트위터) — 글자 대신 로고 */
.mc-foot__links .mc-x { display: inline-flex; align-items: center; height: 100%; }
.mc-foot__links .mc-x svg { width: 15px; height: 15px; }
