/* SORTBOT 발표 — 대시보드(minhyeong/dashboard)와 같은 디자인: 다크 차콜 + 코퍼 한 색, Unbounded(영문 큰 제목) + Pretendard(한글) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;800&display=swap');

:root {
  --bg: #161413; --bg-soft: #1b1918; --surface: #1f1c1b; --surface-2: #262220;
  --border: #3a3330; --border-strong: #554b46;
  --text-1: #ece5df; --text-2: #b8ada6; --text-3: #8e847e;
  --accent: #a85f3d; --accent-hi: #e0895f; --ink-on-accent: #fff7f1;
  --good: #7fae7a; --warn: #d9a441; --bad: #c8443a;
  --grad: none; --grad-soft: none;
  --radius: 22px; --radius-sm: 14px; --radius-lg: 30px;
  --shadow: none; --shadow-lg: none;
  --font-sans: 'Pretendard', system-ui, sans-serif;
  --font-wide: 'Unbounded', 'Pretendard', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --font-display: var(--font-sans);
}

html, body { background: var(--bg); color: var(--text-1); word-break: keep-all; }
.deck { background: var(--bg); }
.slide {
  padding: clamp(28px, 4.2vw, 88px) clamp(32px, 5.4vw, 112px);
  background-image: linear-gradient(#3a333040 1px, transparent 1px), linear-gradient(90deg, #3a333040 1px, transparent 1px);
  background-size: clamp(40px, 3.6vw, 72px) clamp(40px, 3.6vw, 72px);
}

/* ── 글자 ── */
.kicker { font-family: var(--font-wide); font-size: clamp(11px, .85vw, 16px); font-weight: 700; letter-spacing: .14em; color: var(--accent-hi); }
.wide { font-family: var(--font-wide); text-transform: uppercase; letter-spacing: -.03em; line-height: .9; }
.h1 { font-size: clamp(36px, 4.6vw, 92px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.h2 { font-size: clamp(28px, 3.1vw, 62px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-bottom: .2em; }
.h3 { font-size: clamp(18px, 1.55vw, 30px); font-weight: 700; line-height: 1.3; }
.lede { font-size: clamp(17px, 1.55vw, 30px); color: var(--text-2); font-weight: 400; line-height: 1.6; max-width: 58ch; }
.small { font-size: clamp(13px, 1.12vw, 21px); color: var(--text-3); line-height: 1.55; }
.accent { color: var(--accent-hi); }
.mono { font-family: var(--font-mono); }
.num { font-family: var(--font-wide); font-weight: 800; letter-spacing: -.04em; }

/* ── 상자 ── */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(16px, 1.6vw, 32px); }
.panel-copper { background: var(--accent); border-color: var(--accent); color: var(--ink-on-accent); }
.panel-copper .small, .panel-copper .lede { color: #f3dccf; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .3em .85em; border-radius: 999px; border: 1px solid var(--border); font-size: clamp(11px, .85vw, 16px); color: var(--text-2); }
.chip-copper { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent-hi); }
.code { font-family: var(--font-mono); font-size: clamp(13px, 1.05vw, 20px); background: #0f0e0d; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9em 1.1em; color: #e9d5c8; white-space: pre-wrap; }
ul.dots { list-style: none; padding: 0; margin: 0; }
ul.dots li { position: relative; padding-left: 1.1em; margin: .5em 0; font-size: clamp(15px, 1.38vw, 27px); color: var(--text-2); line-height: 1.5; }
ul.dots li::before { content: ''; position: absolute; left: 0; top: .62em; width: .38em; height: .38em; border-radius: 50%; background: var(--accent-hi); }
ul.dots li b { color: var(--text-1); }

/* ── 흐름 (어떻게?) ── */
.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(6px, .7vw, 14px); align-items: stretch; }
.flow .step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: clamp(10px, 1vw, 20px); }
.flow .step.hot { background: var(--accent); border-color: var(--accent); color: var(--ink-on-accent); }
.flow .step.hot .small { color: #f3dccf; }
.flow .step:not(:last-child)::after { content: ''; position: absolute; right: calc(-1 * clamp(6px, .7vw, 14px)); top: 50%; width: clamp(6px, .7vw, 14px); height: 2px; background: var(--accent-hi); }
.flow .n { font-family: var(--font-wide); font-size: clamp(11px, .8vw, 15px); color: var(--accent-hi); }
.flow .hot .n { color: #fff3ea; }
.flow .t { font-weight: 800; font-size: clamp(15px, 1.3vw, 25px); margin: .25em 0 .3em; line-height: 1.25; }
.who { display: inline-block; margin-top: .5em; font-size: clamp(10px, .75vw, 14px); padding: .15em .6em; border-radius: 999px; border: 1px solid currentColor; opacity: .8; }

/* ── 역할: 참고 디자인의 엇갈린 코퍼 카드 ── */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 40px); align-items: start; }
.roles .role { position: relative; }
.roles .role:nth-child(2) { margin-top: clamp(28px, 4vw, 80px); }
.roles .role::before { content: ''; position: absolute; top: -12px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--text-1); }

/* ── 단계 동그라미 (대시보드 임무 단계와 같은 모양) ── */
.dots-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.dots-steps i { display: grid; place-items: center; margin: 0 auto .4em; width: clamp(28px, 2.3vw, 44px); height: clamp(28px, 2.3vw, 44px); border-radius: 50%; background: var(--border); color: var(--text-3); font-style: normal; font-weight: 800; font-size: clamp(12px, .9vw, 17px); }
.dots-steps .on i { background: var(--accent); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
.dots-steps span { font-size: clamp(11px, .85vw, 16px); color: var(--text-2); }

/* ── 숫자 막대 (정확도 흐름) ── */
.bars { display: grid; gap: .55em; }
.bars .b { display: grid; grid-template-columns: 9.5em 1fr 4.2em; align-items: center; gap: .8em; font-size: clamp(13px, 1.12vw, 21px); color: var(--text-2); }
.bars .track { height: .7em; border-radius: 999px; background: var(--border); overflow: hidden; }
.bars .track i { display: block; height: 100%; background: var(--text-3); border-radius: 999px; }
.bars .b.hot .track i { background: var(--accent-hi); }
.bars .b.goal .track i { background: transparent; border: 1.5px dashed var(--good); box-sizing: border-box; }
.bars .v { text-align: right; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; }

/* ── 한계 표 ── */
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.1vw, 22px); }
.limits .panel h4 { margin: 0 0 .35em; font-size: clamp(17px, 1.5vw, 29px); }
.limits .fix { margin-top: .6em; font-size: clamp(13px, 1.12vw, 21px); color: var(--good); }

/* ── 화면 넣기 (대시보드, 영상) ── */
.frame { position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #0f0e0d; }
.frame iframe, .frame video { display: block; width: 100%; height: 100%; border: 0; }
.frame .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--text-3); padding: 1.5em; }
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.4em; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: clamp(14px, 1.1vw, 21px); text-decoration: none; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.btn:hover { text-decoration: none; transform: scale(1.03); }
.btn:focus-visible { outline: 2px solid var(--text-1); outline-offset: 3px; }

/* ── 바닥 줄 ── */
.deck-footer { color: var(--text-3); font-size: clamp(10px, .75vw, 14px); letter-spacing: .08em; }
.deck-footer .brand { font-family: var(--font-wide); font-weight: 800; letter-spacing: 0; }
.progress-bar { background: var(--accent-hi) !important; }

/* 표지와 마무리: 참고 디자인 푸터처럼 큰 회색 워드마크 블록 */
.wordmark { background: #8f8a86; color: #1c1918; border-radius: var(--radius-lg); padding: clamp(18px, 2vw, 40px) clamp(22px, 2.6vw, 52px); }
.wordmark .wide { font-size: clamp(56px, 9.5vw, 190px); }

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