/* Udown 공식 사이트 — 화이트 기본(다크 자동 전환 없음), 브랜드 빨강 하나, 곳곳에 움직임. */
:root {
  --bg: #ffffff;
  --bg2: #f7f7f8;
  --panel: #ffffff;
  --ink: #1b1b1b;
  --dim: #5d5d5d;
  --faint: #8a8a8a;
  --line: #e8e8e8;
  --brand: #e81208;
  --brand-dim: #c40f06;
  --brand-soft: #fdecea;
  --ok: #1fa24a;
  --amber: #e8871e;
  --teal: #1c9c93;
  --violet: #7c5ce0;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(30, 10, 10, .12);
  --max: 1140px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden;
  font-family: "Pretendard Variable", Pretendard, "Segoe UI", "Malgun Gothic", system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ==================== 등장 애니메이션 (스크롤) ==================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blob { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 20px) scale(.94); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(232,18,8,.45); } 70% { box-shadow: 0 0 0 18px rgba(232,18,8,0); } 100% { box-shadow: 0 0 0 0 rgba(232,18,8,0); } }
/* --shift = 카드 한 벌의 정확한 픽셀 폭(간격 포함). JS 가 재서 넣는다. 그래서 이음새가 안 보인다. */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--shift, 50%))); } }
@keyframes marquee-rev { from { transform: translateX(calc(-1 * var(--shift, 50%))); } to { transform: translateX(0); } }
@keyframes gradient-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes caret { 50% { opacity: 0; } }

/* ==================== 헤더 ==================== */
.hdr {
  position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.78);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(0,0,0,.06); transition: box-shadow .25s, height .25s;
}
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 68px; transition: height .25s; }
.hdr.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.hdr.scrolled .wrap { height: 58px; }
.logo img { height: 34px; width: auto; transition: transform .2s; }
.logo:hover img { transform: scale(1.04); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { position: relative; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: var(--dim); font-weight: 500; transition: color .15s; }
.nav a:not(.cta):not(.lang)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:not(.cta):hover { color: var(--ink); }
.nav a:not(.cta):not(.lang):hover::after { transform: scaleX(1); }
.nav .lang { border: 1px solid var(--line); padding: 6px 10px; font-size: 13px; }
.nav .cta { background: var(--brand); color: #fff; font-weight: 600; margin-left: 6px; box-shadow: 0 6px 16px rgba(232,18,8,.25); transition: transform .15s, box-shadow .15s; }
.nav .cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(232,18,8,.32); color: #fff; }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: var(--ink); }
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
         background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; gap: 2px; }
  .nav.open { display: flex; animation: rise .25s var(--ease); }
  .nav .cta { margin: 8px 0 0; text-align: center; }
  .burger { display: block; }
}

/* ==================== 버튼 ==================== */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 12px;
  font-weight: 700; font-size: 16px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: transform .15s var(--ease), box-shadow .15s, background .15s; cursor: pointer; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.10); }
.btn.primary { background: linear-gradient(180deg, #f0301e, #d40f06); color: #fff; border-color: #c40f06; box-shadow: 0 10px 28px rgba(232,18,8,.30); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 3.2s linear infinite; pointer-events: none; }
.btn.primary:hover { box-shadow: 0 16px 36px rgba(232,18,8,.40); }
.btn.big { padding: 18px 30px; font-size: 18px; border-radius: 14px; }
.btn.pulse { animation: pulse-ring 2.4s ease-out infinite; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-note { font-size: 13px; color: var(--faint); margin-top: 10px; }

/* ==================== 히어로 ==================== */
.hero { position: relative; padding: 76px 0 60px; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: blob 14s ease-in-out infinite; }
.hero .b1 { width: 520px; height: 520px; left: -160px; top: -200px; background: #ffb3ad; }
.hero .b2 { width: 420px; height: 420px; right: -120px; top: 40px; background: #ffd9a8; animation-delay: -5s; animation-duration: 18s; }
.hero .b3 { width: 360px; height: 360px; left: 40%; bottom: -220px; background: #c9f0e3; animation-delay: -9s; animation-duration: 16s; }
.hero .grid-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(0,0,0,.09) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 80%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; }
.hero .copy > * { animation: rise .8s var(--ease) both; }
.hero .copy > *:nth-child(1) { animation-delay: .05s; }
.hero .copy > *:nth-child(2) { animation-delay: .15s; }
.hero .copy > *:nth-child(3) { animation-delay: .25s; }
.hero .copy > *:nth-child(4) { animation-delay: .35s; }
.hero .copy > *:nth-child(5) { animation-delay: .45s; }
.hero .copy > *:nth-child(6) { animation-delay: .55s; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand);
           background: var(--brand-soft); border-radius: 999px; padding: 6px 12px; margin-bottom: 18px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse-ring 2s ease-out infinite; }
h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.16; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 800; }
h1 em { font-style: normal; color: var(--brand); background: linear-gradient(90deg, #e81208, #ff6a3d, #f5b300, #e81208); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite; }
.lead { font-size: 18px; color: var(--dim); margin: 0 0 28px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 30px; }
.stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.stat b small { font-size: 16px; font-weight: 700; color: var(--brand); margin-left: 2px; }
.stat span { font-size: 13px; color: var(--faint); }

/* 오른쪽: 데모 (주소창 타이핑 → 복사됨 → 토스트) + 떠 있는 앱 화면 */
.demo { position: relative; perspective: 1200px; animation: rise 1s var(--ease) .3s both; }
.demo .browser { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: 0 8px 26px rgba(0,0,0,.08); margin-bottom: 14px; position: relative; z-index: 2; }
.demo .browser .dots { display: flex; gap: 5px; }
.demo .browser .dots i { width: 9px; height: 9px; border-radius: 50%; background: #e4e4e4; }
.demo .browser .url { flex: 1; font: 500 13.5px/1 ui-monospace, Consolas, monospace; color: var(--dim); background: var(--bg2); border-radius: 8px; padding: 9px 12px; white-space: nowrap; overflow: hidden; position: relative; }
.demo .browser .url .txt { display: inline-block; overflow: hidden; vertical-align: bottom; white-space: nowrap; width: 0; animation: type 9s steps(38) infinite; }
.demo .browser .url .txt::after { content: ""; display: inline-block; width: 2px; height: 14px; background: var(--brand); margin-left: 2px; vertical-align: -2px; animation: caret 1s step-end infinite; }
@keyframes type { 0% { width: 0; } 30% { width: 100%; } 85% { width: 100%; } 92% { width: 0; } 100% { width: 0; } }
.demo .browser .copied { font-size: 12px; font-weight: 700; color: var(--ok); background: #e8f7ec; border-radius: 999px; padding: 5px 10px; opacity: 0; transform: scale(.8); animation: copied 9s var(--ease) infinite; white-space: nowrap; }
@keyframes copied { 0%, 32% { opacity: 0; transform: scale(.8); } 36%, 82% { opacity: 1; transform: scale(1); } 86%, 100% { opacity: 0; transform: scale(.8); } }
.demo .app { position: relative; transform-style: preserve-3d; transition: transform .25s var(--ease); }
.demo .app img.main { border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); animation: floaty 6s ease-in-out infinite; }
.demo .toast { position: absolute; right: -14px; bottom: 14%; width: 58%; opacity: 0; transform: translateY(24px) scale(.94); animation: toast 9s var(--ease) infinite; }
.demo .toast-img { border-radius: 12px; box-shadow: 0 22px 50px rgba(0,0,0,.24); border: 1px solid var(--line); width: 100%; }
@keyframes toast { 0%, 38% { opacity: 0; transform: translateY(24px) scale(.94); } 44%, 84% { opacity: 1; transform: translateY(0) scale(1); } 90%, 100% { opacity: 0; transform: translateY(24px) scale(.94); } }
/* 클릭 파동: 토스트 안 "바로 다운로드" 버튼 한가운데(오른쪽 버튼 중심 ≈ 가로 72%, 세로 61%). */
.demo .click { position: absolute; left: 72%; top: 61%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(232,18,8,.6); opacity: 0; animation: click 9s ease-out infinite; pointer-events: none; }
@keyframes click { 0%, 60% { opacity: 0; transform: scale(.4); } 63% { opacity: .9; transform: scale(.6); } 72%, 100% { opacity: 0; transform: scale(1.8); } }
@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .demo .toast { right: 0; bottom: 6%; width: 64%; }
}

/* ==================== 섹션 공통 ==================== */
section { position: relative; padding: 84px 0; }
section.alt { background: var(--bg2); }
.sec-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.025em; margin: 0 0 12px; font-weight: 800; line-height: 1.22; }
.sec-head p { color: var(--dim); margin: 0; font-size: 17px; }
.kicker { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand); margin-bottom: 12px; letter-spacing: .02em; }
.sec-head h2 { display: block; }
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }

/* ==================== 지원 사이트 — 흐르는 마키 ==================== */
.marquee { position: relative; overflow: hidden; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.marquee .track { display: flex; gap: 14px; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee.rev .track { animation-name: marquee-rev; }
.marquee:hover .track { animation-play-state: paused; }
.chip {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  font-weight: 700; font-size: 15px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.05); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.chip:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 14px 30px rgba(0,0,0,.10); border-color: #f5b8b3; }
.chip img { width: 34px; height: 34px; border-radius: 8px; }
.chip .glyph { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; flex: none; }
.chip small { display: block; font-weight: 500; color: var(--faint); font-size: 12px; line-height: 1.3; }
.sites-note { text-align: center; color: var(--faint); font-size: 13.5px; margin-top: 22px; }

/* ==================== 특징 카드 ==================== */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feat { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; overflow: hidden;
        transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.feat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(232,18,8,.07), transparent 60%); opacity: 0; transition: opacity .3s; }
.feat:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0,0,0,.10); border-color: #f2c9c6; }
.feat:hover::before { opacity: 1; }
.feat .tile { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; transition: transform .3s var(--ease); box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.feat:hover .tile { transform: rotate(-8deg) scale(1.1); }
.feat .tile svg { width: 24px; height: 24px; }
.feat h3 { margin: 0 0 8px; font-size: 18.5px; letter-spacing: -0.01em; }
.feat p { margin: 0; color: var(--dim); font-size: 15px; }
.t-red { background: linear-gradient(180deg,#f0301e,#d40f06); }
.t-amber { background: linear-gradient(180deg,#f2a23a,#dd7d12); }
.t-green { background: linear-gradient(180deg,#2eb75c,#178f3f); }
.t-teal { background: linear-gradient(180deg,#25b3a9,#158b83); }
.t-violet { background: linear-gradient(180deg,#8e70ea,#6b4bd6); }
.t-grey { background: linear-gradient(180deg,#7d7d7d,#5e5e5e); }

/* ==================== 사용법 — 자동으로 돌아가는 3단계 ==================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--faint); border: 2px solid var(--line); font-weight: 800; display: grid; place-items: center; font-size: 15px; transition: all .35s var(--ease);
}
.step.active { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(232,18,8,.14); border-color: #f2c9c6; }
.step.active::before { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 8px 16px rgba(232,18,8,.35); transform: scale(1.12); }
.step .bar { position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand-soft); overflow: hidden; }
.step .bar i { display: block; height: 100%; width: 0; background: var(--brand); }
.step.active .bar i { animation: fill 3s linear forwards; }
@keyframes fill { to { width: 100%; } }
.step h3 { margin: 8px 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }
.step .kbd { display: inline-block; font: 600 12px/1 ui-monospace, Consolas, monospace; padding: 4px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--bg2); color: var(--ink); }
.step .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.step .ico svg { width: 22px; height: 22px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 30px; } }

/* ==================== 스크린샷 캐러셀 ==================== */
.carousel { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.carousel .slides { position: relative; aspect-ratio: 1280 / 920; background: #f3f3f3; }
.carousel .slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.carousel .slide.on { opacity: 1; transform: none; }
.carousel .slide img { width: 100%; height: 100%; object-fit: contain; }
.carousel .caps { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.carousel .caps button { flex: 1 1 180px; text-align: left; background: var(--bg2); border: 1px solid transparent; border-radius: 10px; padding: 12px 14px; cursor: pointer; font: inherit; color: var(--dim); transition: all .25s; position: relative; overflow: hidden; }
.carousel .caps button b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }
.carousel .caps button span { font-size: 12.5px; }
.carousel .caps button.on { background: #fff; border-color: #f2c9c6; box-shadow: 0 6px 16px rgba(232,18,8,.10); }
.carousel .caps button.on::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--brand); animation: fill 5s linear forwards; }

/* ==================== 다운로드 밴드 ==================== */
.band {
  background: linear-gradient(120deg, #ff3b2a, #c40f06, #ff6a3d, #d40f06); background-size: 300% 300%; animation: gradient-flow 10s ease infinite;
  color: #fff; border-radius: 24px; padding: 60px 36px; text-align: center; box-shadow: 0 28px 70px rgba(232,18,8,.32); position: relative; overflow: hidden;
}
.band .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); animation: spin 40s linear infinite; }
.band .r1 { width: 640px; height: 640px; right: -240px; top: -340px; border-style: dashed; }
.band .r2 { width: 420px; height: 420px; left: -180px; bottom: -260px; animation-direction: reverse; }
.band h2 { color: #fff; position: relative; }
.band p { color: rgba(255,255,255,.88); margin: 0 0 26px; font-size: 17px; position: relative; }
.band .btn.primary { background: #fff; color: var(--brand-dim); border-color: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.20); }
.band .btn.primary::after { display: none; }
.band .btn.primary:hover { background: #fff5f4; }
.band .btn-note { color: rgba(255,255,255,.82); position: relative; }

/* ==================== FAQ ==================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 10px; transition: box-shadow .25s, border-color .25s; }
.faq details[open] { box-shadow: 0 12px 30px rgba(0,0,0,.07); border-color: #f2c9c6; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); font-size: 20px; color: var(--dim); font-weight: 400; transition: transform .25s var(--ease), background .25s, color .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq details p { margin: 0 0 18px; color: var(--dim); font-size: 15px; animation: rise .35s var(--ease); }

/* ==================== 푸터 ==================== */
footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--faint); font-size: 13.5px; background: var(--bg2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer .links { display: flex; gap: 18px; margin-left: auto; }
footer a:hover { color: var(--ink); }
footer .copy { width: 100%; }

/* ==================== 문서 페이지 ==================== */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-size: 32px; }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc p, .doc li { color: var(--dim); font-size: 15.5px; }
.doc .meta { color: var(--faint); font-size: 13px; }

/* ==================== 움직임 줄이기 설정 존중 ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .demo .toast, .demo .browser .copied { opacity: 1; transform: none; }
  .demo .browser .url .txt { width: 100%; }
}


/* ==================== 2차 디테일: 스크롤 진행바 · 스크롤스파이 · 패럴랙스 ==================== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e81208, #ff6a3d); transition: width .1s linear; box-shadow: 0 0 10px rgba(232,18,8,.5); }
section[id] { scroll-margin-top: 72px; }
.nav a.active:not(.cta):not(.lang) { color: var(--brand); }
.nav a.active:not(.cta):not(.lang)::after { transform: scaleX(1); }

/* 스크롤 방향별 등장 변형 */
.reveal.left  { transform: translateX(-46px); }
.reveal.right { transform: translateX(46px); }
.reveal.zoom  { transform: scale(.92); }
.reveal.flip  { transform: perspective(900px) rotateX(12deg) translateY(20px); }
.reveal.in    { transform: none; }
.sec-head h2 { display: block; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease) .1s, transform .8s var(--ease) .1s; transform: translateY(18px); }
.sec-head.in h2 { clip-path: inset(0 0 -10% 0); transform: none; }

/* 히어로 패럴랙스: 배경은 천천히, 글은 조금 더 빨리 사라진다 (JS 가 --sy 를 넣는다) */
.hero .bg { transform: translateY(calc(var(--sy, 0) * 0.25px)); will-change: transform; }
.hero .copy { transform: translateY(calc(var(--sy, 0) * -0.08px)); opacity: calc(1 - var(--sy, 0) / 700); }
.hero .demo { transform: translateY(calc(var(--sy, 0) * -0.04px)); }

/* 마키: 스크롤 속도에 따라 기울어졌다가 돌아온다 */
.marquee { transform: skewX(var(--skew, 0deg)); transition: transform .5s var(--ease); }

/* 캐러셀: 켜진 슬라이드는 천천히 확대(켄 번즈) */
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.035); } }
.carousel .slide.on img { animation: kenburns 6s ease-out forwards; transform-origin: 50% 40%; }

/* 특징 카드: 3D 기울기 (JS) */
.feat { transform-style: preserve-3d; }
.feat.in { transition: transform .15s ease, box-shadow .25s, border-color .25s, opacity .7s; }
.feat .tile, .feat h3, .feat p { transform: translateZ(18px); }

/* 맨 위로 */
.totop { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; z-index: 35;
         box-shadow: 0 10px 26px rgba(0,0,0,.14); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s, color .2s; }
.totop svg { width: 20px; height: 20px; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ==================== 사용법: 스크롤 스토리텔링 ==================== */
.story-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.story-visual { position: sticky; top: 96px; }
.story-stage { position: relative; aspect-ratio: 16 / 11; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.story-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% 0%, rgba(232,18,8,.08), transparent 60%), radial-gradient(500px 300px at 90% 100%, rgba(232,135,30,.10), transparent 60%); }
.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .6s var(--ease), transform .7s var(--ease); pointer-events: none; }
.scene.on { opacity: 1; transform: none; }
.story-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.story-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: all .3s; }
.story-dots i.on { width: 26px; border-radius: 4px; background: var(--brand); }

/* 장면 1: 작업표시줄 트레이 */
.desk { width: 100%; align-self: end; }
.taskbar { display: flex; align-items: center; gap: 10px; background: rgba(243,243,243,.95); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.tb-item { width: 26px; height: 26px; border-radius: 7px; background: #e6e6e6; }
.tb-gap { flex: 1; }
.tb-tray { position: relative; width: 30px; height: 30px; display: grid; place-items: center; }
.tb-tray img { width: 24px; height: 24px; }
.tb-tray .ping { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; }
.scene.on .tb-tray .ping { animation: pulse-ping 1.8s ease-out infinite; }
@keyframes pulse-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.tb-clock { font: 600 12px/1 ui-monospace, Consolas, monospace; color: var(--dim); }
.tray-label { text-align: center; margin-top: 18px; font-weight: 700; color: var(--dim); }

/* 장면 2: 주소창 + 토스트 (히어로 데모의 축소판, 장면이 켜질 때만 재생) */
.browser.mini { position: absolute; top: 28px; left: 28px; right: 28px; margin: 0; }
.txt2 { display: inline-block; overflow: hidden; vertical-align: bottom; white-space: nowrap; width: 0; }
.scene.on .txt2 { animation: type2 6s steps(38) infinite; }
.txt2::after { content: ""; display: inline-block; width: 2px; height: 14px; background: var(--brand); margin-left: 2px; vertical-align: -2px; animation: caret 1s step-end infinite; }
@keyframes type2 { 0% { width: 0; } 35% { width: 100%; } 90% { width: 100%; } 100% { width: 0; } }
.copied2 { font-size: 12px; font-weight: 700; color: var(--ok); background: #e8f7ec; border-radius: 999px; padding: 5px 10px; opacity: 0; transform: scale(.8); white-space: nowrap; }
.scene.on .copied2 { animation: copied2 6s var(--ease) infinite; }
@keyframes copied2 { 0%, 38% { opacity: 0; transform: scale(.8); } 42%, 88% { opacity: 1; transform: scale(1); } 92%, 100% { opacity: 0; transform: scale(.8); } }
.toast2 { position: absolute; right: 28px; bottom: 28px; width: 70%; max-width: 420px; border-radius: 12px; box-shadow: 0 22px 50px rgba(0,0,0,.24); border: 1px solid var(--line); opacity: 0; transform: translateY(24px) scale(.94); }
.scene.on .toast2 { animation: toast2 6s var(--ease) infinite; }
@keyframes toast2 { 0%, 44% { opacity: 0; transform: translateY(24px) scale(.94); } 50%, 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: translateY(24px) scale(.94); } }
.click2 { position: absolute; right: calc(28px + 70% * 0.28); bottom: calc(28px + 70% * 0.39 * 0.39); width: 34px; height: 34px; margin: 0 -17px -17px 0; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(232,18,8,.6); opacity: 0; }
.scene.on .click2 { animation: click2 6s ease-out infinite; }
@keyframes click2 { 0%, 68% { opacity: 0; transform: scale(.4); } 71% { opacity: .95; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(1.8); } }

/* 장면 3: 완료 카드 */
.done-card { position: relative; width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: 0 18px 44px rgba(0,0,0,.12); }
.done-head { display: flex; align-items: center; gap: 10px; }
.done-head img { width: 22px; height: 22px; }
.ok-pill { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ok); background: #e8f7ec; border-radius: 999px; padding: 4px 10px; opacity: 0; }
.scene.on .ok-pill { animation: fadein .4s var(--ease) 1.9s forwards; }
@keyframes fadein { to { opacity: 1; } }
.done-file { margin: 14px 0 8px; font-size: 13.5px; color: var(--dim); }
.done-bar { height: 6px; border-radius: 3px; background: var(--brand-soft); overflow: hidden; }
.done-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e81208, #ff6a3d); }
.scene.on .done-bar i { animation: fill 1.8s cubic-bezier(.3,.8,.3,1) forwards; }
.done-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.done-btns span { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); }
.done-btns .b2 { background: linear-gradient(180deg,#f0301e,#d40f06); color: #fff; border-color: #c40f06; }
.done-check { position: absolute; top: -22px; right: -22px; width: 56px; height: 56px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 8px 16px rgba(31,162,74,.4)); opacity: 0; transform: scale(.5); }
.done-check circle { fill: var(--ok); stroke: none; }
.done-check path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.scene.on .done-check { animation: pop .5s var(--ease) 1.9s forwards; }
.scene.on .done-check path { animation: draw .5s ease 2.2s forwards; }
@keyframes pop { to { opacity: 1; transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* 오른쪽 단계 목록 */
.story-steps { display: flex; flex-direction: column; gap: 20vh; padding: 6vh 0 30vh; }
.story-step { position: relative; padding: 26px 26px 26px 30px; border-radius: 16px; border: 1px solid transparent; transition: all .45s var(--ease); opacity: .38; transform: translateX(14px); }
.story-step.on { opacity: 1; transform: none; background: #fff; border-color: var(--line); box-shadow: 0 18px 44px rgba(0,0,0,.08); }
.story-step::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 4px; border-radius: 4px; background: var(--brand); opacity: 0; transition: opacity .3s; }
.story-step.on::before { opacity: 1; }
.story-step .num { width: 40px; height: 40px; border-radius: 12px; color: #fff; font-weight: 800; font-size: 17px; display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 8px 18px rgba(0,0,0,.14); transition: transform .4s var(--ease); }
.story-step.on .num { transform: rotate(-6deg) scale(1.1); }
.story-step h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.story-step p { margin: 0; color: var(--dim); font-size: 15.5px; }
.story-step .kbd { display: inline-block; font: 600 12px/1 ui-monospace, Consolas, monospace; padding: 4px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--bg2); color: var(--ink); vertical-align: 2px; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .story-visual { position: relative; top: 0; }
  .story-steps { gap: 18px; padding: 0; }
  .story-step { opacity: 1; transform: none; }
  .hero .copy, .hero .demo, .hero .bg { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .bg, .hero .copy, .hero .demo, .marquee { transform: none !important; opacity: 1 !important; }
  .sec-head h2 { clip-path: none; transform: none; }
  .scene { opacity: 1; transform: none; }
}


/* ==================== 히어로 3차: 떠다니는 아이콘 · 스포트라이트 · 3D 스크롤 · 날아가는 링크 · 물결 ==================== */
.hero .spot { position: absolute; inset: 0; background: radial-gradient(420px 420px at var(--mx, 70%) var(--my, 40%), rgba(255,255,255,.75), transparent 60%); mix-blend-mode: soft-light; transition: background-position .2s; }
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.fl { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 22%; box-shadow: 0 14px 30px rgba(0,0,0,.16); opacity: .95;
      transform: translate(calc(var(--px, 0) * var(--d) * -1px), calc(var(--py, 0) * var(--d) * -1px)); transition: transform .35s var(--ease); animation: drift 7s ease-in-out infinite; animation-delay: var(--t); }
@keyframes drift { 0%, 100% { margin-top: 0; } 50% { margin-top: -14px; } }
@media (max-width: 900px) { .floaters { display: none; } }

/* 스크롤하면 앱 화면이 뒤로 눕는다 (--sy 는 JS) */
.hero .demo { perspective: 1200px; }
.hero .demo .app { transform: rotateX(calc(var(--sy, 0) * 0.045deg + var(--ty, 0deg))) rotateY(var(--tx, 0deg)) scale(calc(1 - var(--sy, 0) / 4000)); transform-origin: 50% 100%; transition: transform .25s var(--ease); }

/* 링크 알약이 주소창에서 앱으로 날아간다 (복사됨 직후, 토스트 직전) */
.fly { position: absolute; left: 22%; top: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--brand); color: #fff; font: 700 12.5px/1 ui-monospace, Consolas, monospace; box-shadow: 0 10px 24px rgba(232,18,8,.35); opacity: 0; pointer-events: none; animation: fly 9s var(--ease) infinite; }
.fly svg { width: 14px; height: 14px; }
@keyframes fly {
  0%, 35% { opacity: 0; transform: translate(0, 0) scale(.6); }
  37% { opacity: 1; transform: translate(0, 0) scale(1); }
  44% { opacity: 1; transform: translate(220px, 300px) scale(.55) rotate(8deg); }
  45%, 100% { opacity: 0; transform: translate(220px, 300px) scale(.3); }
}

/* 아래로 스크롤 힌트 */
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); z-index: 2; opacity: calc(1 - var(--sy, 0) / 120); }
.scroll-hint i { width: 22px; height: 34px; border: 2px solid var(--line); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brand); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* 히어로 아래 물결 구분선 (두 겹이 서로 다른 속도로 흐른다) */
.hero { padding-bottom: 110px; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 1; pointer-events: none;
        background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'><path d='M0 40 C 200 70 400 10 600 40 S 1000 70 1200 40 L1200 70 L0 70 Z' fill='%23f7f7f8'/></svg>") repeat-x bottom / 1200px 70px;
        animation: wave-move 14s linear infinite; }
.wave::before { content: ""; position: absolute; inset: 0; opacity: .5;
        background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'><path d='M0 45 C 300 15 500 75 700 45 S 1000 15 1200 45 L1200 70 L0 70 Z' fill='%23f7f7f8'/></svg>") repeat-x bottom / 1200px 70px;
        animation: wave-move 9s linear infinite reverse; }
@keyframes wave-move { to { background-position-x: 1200px; } }
@media (prefers-reduced-motion: reduce) { .fl, .fly, .wave, .wave::before, .scroll-hint i::after { animation: none !important; } .hero .demo .app { transform: none !important; } }

/* ==================== 언어 드롭다운 ==================== */
.lang-menu { position: relative; }
.lang-menu .lang { cursor: pointer; background: #fff; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.12); display: none; flex-direction: column; z-index: 50; }
.lang-menu:hover .lang-list, .lang-menu:focus-within .lang-list, .lang-menu.open .lang-list { display: flex; animation: rise .2s var(--ease); }
.lang-list a { padding: 8px 10px !important; border-radius: 6px; font-size: 13.5px !important; }
.lang-list a::after { display: none !important; }
.lang-list a.on { color: var(--brand); font-weight: 700; background: var(--brand-soft); }
@media (max-width: 820px) { .lang-list { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; display: flex; } }


/* ==================== 라쿤다운 마스코트 ==================== */
:root { --gold: #f5b300; }
.mascot { position: absolute; pointer-events: none; height: auto; filter: drop-shadow(0 18px 28px rgba(0,0,0,.22)); }
/* 둥실: 0% 가 정확히 transform:none 이라 날아오기(끝 = none)와 이음새 없이 이어진다 */
@keyframes hover-fly { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-6px, -14px) rotate(-3deg); } }
@keyframes fly-in-r { from { opacity: 0; transform: translate(160px, 90px) rotate(12deg) scale(.7); } 70% { opacity: 1; } to { opacity: 1; transform: none; } }
/* 앱 화면의 빨간 '다운로드 시작' 버튼(오른쪽 아래)을 가리지 않도록 라쿤은 모서리 아래쪽에서 올라오는 자세 */
/* 형 지시(2026-09-22): 라쿤은 화면 오른쪽 끝이 아니라 ★앱 화면(.demo)에 붙어 날아온다. 넓은 모니터에서도 앱 옆.
   .demo 안에 두므로 스크롤 패럴랙스도 앱과 같이 움직인다. 떠다니는 아이콘(z 2)보다 위에 오도록 .wrap 을 z 3 으로. */
.hero .wrap { z-index: 3; }
/* 앱의 빨간 "다운로드 시작" 버튼(오른쪽 아래 모서리)을 가리면 안 되므로 앱 오른쪽 옆에 붙어 선다(주먹이 앱 테두리에 닿는 정도) */
.demo .mascot-hero { left: auto; right: -280px; bottom: -60px; width: 300px; z-index: 4; opacity: 0; will-change: transform, opacity; }
@media (max-width: 1500px) { .demo .mascot-hero { width: 250px; right: -220px; bottom: -50px; } }
/* 이미지 로드가 끝나면 JS 가 .ready 를 붙인다. 그 전엔 투명하게 대기 → 로딩 중 뿅 나타남 없음 */
.demo .mascot-hero.ready { animation: fly-in-r 1.3s cubic-bezier(.16, .84, .3, 1) .25s both, hover-fly 5s ease-in-out 1.55s infinite; }
@media (max-width: 1100px) { .demo .mascot-hero { width: 200px; right: -160px; bottom: -40px; } }
@media (max-width: 900px) { .demo .mascot-hero { width: 150px; left: -6px; right: auto; bottom: -100px; } }

/* 작업표시줄(z 3) 위에 올라앉은 모양: 발이 표시줄 윗선(bottom 31%)에 닿게, 표시줄보다 앞(z 4) */
.mascot-scene { left: 4%; bottom: 31%; width: 32%; z-index: 4; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.story-stage .desk { position: relative; z-index: 3; }

/* 가리키는 포즈(정사각형에 가까움): 밴드 오른쪽에 서서 다운로드 버튼 쪽을 가리킨다 */
.mascot-band { right: 1%; bottom: -8%; width: 24%; max-width: 290px; z-index: 1; animation: cheer 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes cheer { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-12px) rotate(-3deg); } 60% { transform: translateY(-8px) rotate(2deg); } }
.band { overflow: visible; }
.band h2, .band p, .band .btn, .band .btn-note { position: relative; z-index: 2; }
@media (max-width: 900px) { .mascot-band { display: none; } }

#faq .wrap { position: relative; }
.mascot-faq { left: -40px; bottom: -20px; width: 220px; z-index: 0; opacity: .95; animation: bob 4s ease-in-out infinite; }
@media (max-width: 1240px) { .mascot-faq { display: none; } }

/* 골드 포인트: 숫자 단위 · 진행바 · 눈썹 라벨 점 */
.stat b small { color: var(--gold); }
.progress i { background: linear-gradient(90deg, #e81208, #ff6a3d, #f5b300); }
.step .bar i, .done-bar i { background: linear-gradient(90deg, #e81208, #f5b300); }
.carousel .caps button.on::after { background: linear-gradient(90deg, #e81208, #f5b300); }
.eyebrow i { background: var(--gold); box-shadow: 0 0 0 0 rgba(245,179,0,.5); }
.btn.primary { box-shadow: 0 10px 28px rgba(232,18,8,.30), 0 0 0 2px rgba(245,179,0,.35) inset; }

/* h1 끝의 브랜드 단어: 빨강→골드 그라데이션, 살짝 기울여 도장처럼 */
h1 .brand-word { display: inline-block; font-weight: 900; letter-spacing: -0.02em; background: linear-gradient(90deg, #e81208, #ff6a3d, #f5b300); -webkit-background-clip: text; background-clip: text; color: transparent; transform: rotate(-2deg); transform-origin: left bottom; }

/* h1 강조 구절은 줄 중간에서 끊기지 않게 한 덩어리로 (일본어 "すべての瞬間" 등) */
h1 em { white-space: nowrap; }

/* ==================== 일본어·중국어 글꼴 통일 ====================
   Pretendard 엔 한자·가나가 없어서 글자마다 맑은 고딕/YaHei 가 섞여 굵기가 들쭉날쭉했다.
   해당 언어 페이지는 Noto Sans JP/SC 를 맨 앞에 둬서 라틴까지 한 글꼴로 맞춘다. */
html[lang="ja"] body, html[lang="ja"] button, html[lang="ja"] input, html[lang="ja"] select { font-family: "Noto Sans JP", "Pretendard Variable", Pretendard, "Yu Gothic UI", Meiryo, "Segoe UI", sans-serif; }
html[lang="zh"] body, html[lang="zh"] button, html[lang="zh"] input, html[lang="zh"] select { font-family: "Noto Sans SC", "Pretendard Variable", Pretendard, "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; }
html[lang="ja"] h1 { font-size: clamp(28px, 3.7vw, 44px); letter-spacing: -0.02em; white-space: nowrap; }  /* 줄은 <br> 로만 나눈다 — 조사 하나가 혼자 내려오는 일 방지 */
html[lang="zh"] h1 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: 0; }
html[lang="ja"] h1 .brand-word, html[lang="zh"] h1 .brand-word { transform: none; }


/* ==================== 홈페이지 2버전 (2026-09-28): 기능 소개 중심 ====================
   지원 사이트 27개(3줄 마키 + 카테고리 알약) · 기능 벤토(12칸, 칸마다 움직이는 미니 화면) · 조합 섹션(숫자 띠 + 시나리오 회전) */

/* --- 카테고리 알약 + 칩 색점 --- */
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -14px 0 30px; }
.cat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--dim); box-shadow: 0 4px 12px rgba(0,0,0,.04); }
.cat b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12.5px; }
.cat-grid b, .chip.cat-grid::before { background: linear-gradient(180deg,#f0301e,#d40f06); }
.cat-photo b, .chip.cat-photo::before { background: linear-gradient(180deg,#f2a23a,#dd7d12); }
.cat-video b, .chip.cat-video::before { background: linear-gradient(180deg,#25b3a9,#158b83); }
.cat-audio b, .chip.cat-audio::before { background: linear-gradient(180deg,#8e70ea,#6b4bd6); }
.chip { position: relative; }
.chip::before { content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.marquee + .marquee { margin-top: 14px; }
.sites-note { margin-top: 26px; }

/* --- 기능 벤토 --- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bt { grid-column: span var(--span, 4); position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px 22px; overflow: hidden;
      display: flex; flex-direction: column; gap: 14px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; transform-style: preserve-3d; }
.bt::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), rgba(232,18,8,.08), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.bt:hover { box-shadow: 0 24px 48px rgba(0,0,0,.10); border-color: #f2c9c6; }
.bt:hover::before { opacity: 1; }
.bt.in { transition: transform .15s ease, box-shadow .25s, border-color .25s, opacity .7s; }
.bt h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }
.bt p { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.6; }
.bt .mock { position: relative; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); padding: 14px; min-height: 120px; overflow: hidden; flex: none; }
.bt-grid { grid-row: span 2; }
.bt-grid .mock { flex: 1; min-height: 260px; }
.bt .pill { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--dim); white-space: nowrap; transition: all .3s; }
.bt .pill.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px rgba(232,18,8,.25); }
.bt .row { display: flex; flex-wrap: wrap; gap: 6px; }
.bt .row + .row { margin-top: 8px; }
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bt { grid-column: span 3; } .bt-grid { grid-column: span 6; grid-row: auto; } .bt-clip, .bt-quality, .bt-queue { grid-column: span 3; }
}
@media (max-width: 720px) { .bento { grid-template-columns: 1fr; } .bt, .bt-grid, .bt-clip, .bt-quality, .bt-queue { grid-column: span 1; } }

/* 1. 프로필 그리드: 툴바 → 섹션 띠 → 12칸 타일에 체크가 차례로 켜진다 */
.mk-grid .tb { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.mk-grid .sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.band-mini { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--brand); background: var(--brand-soft); border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; }
.band-mini i { width: 3px; height: 14px; border-radius: 2px; background: var(--brand); }
.band-mini b { margin-left: auto; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 11px; }
.mk-grid .cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
@media (max-width: 1100px) { .mk-grid .cell:nth-child(n+13) { display: none; } }
.mk-grid .cell { position: relative; aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, hsl(calc(var(--k) * 31), 70%, 78%), hsl(calc(var(--k) * 31 + 40), 70%, 62%)); border: 2px solid transparent; transition: border-color .3s; }
.mk-grid .cell .ck { position: absolute; right: 5px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid rgba(0,0,0,.15); transform: scale(.7); opacity: .6; }
.mk-grid .cell .ck::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.bt.in .mk-grid .cell { animation: cell-pick 6s ease-in-out infinite; animation-delay: calc(var(--k) * .18s); }
.bt.in .mk-grid .cell .ck { animation: ck-on 6s ease-in-out infinite; animation-delay: calc(var(--k) * .18s); }
@keyframes cell-pick { 0%, 8% { border-color: transparent; } 14%, 70% { border-color: var(--brand); } 80%, 100% { border-color: transparent; } }
@keyframes ck-on { 0%, 8% { background: #fff; transform: scale(.7); opacity: .6; } 14%, 70% { background: var(--brand); border-color: var(--brand); transform: scale(1); opacity: 1; } 80%, 100% { background: #fff; transform: scale(.7); opacity: .6; } }
.bt.in .mk-grid .cell .ck::after { animation: ck-mark 6s ease-in-out infinite; animation-delay: calc(var(--k) * .18s); }
@keyframes ck-mark { 0%, 12% { opacity: 0; } 16%, 70% { opacity: 1; } 78%, 100% { opacity: 0; } }

/* 2. 구간 잘라 받기: 손잡이 두 개가 들어와 구간이 빨갛게 찬다 */
.mk-clip .tl { position: relative; height: 12px; border-radius: 6px; background: #e6e6e6; margin: 26px 8px 18px; }
.mk-clip .rng { position: absolute; top: 0; bottom: 0; left: 20%; right: 55%; border-radius: 6px; background: linear-gradient(90deg, #e81208, #ff6a3d, #f5b300); }
.mk-clip .h { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 6px 14px rgba(232,18,8,.3); }
.mk-clip .h1 { left: 20%; } .mk-clip .h2 { left: 45%; }
.bt.in .mk-clip .rng { animation: rng 5s var(--ease) infinite; }
.bt.in .mk-clip .h1 { animation: h1 5s var(--ease) infinite; }
.bt.in .mk-clip .h2 { animation: h2 5s var(--ease) infinite; }
@keyframes rng { 0%, 10% { left: 0; right: 0; } 40%, 90% { left: 20%; right: 55%; } 100% { left: 0; right: 0; } }
@keyframes h1 { 0%, 10% { left: 0; } 40%, 90% { left: 20%; } 100% { left: 0; } }
@keyframes h2 { 0%, 10% { left: 100%; } 40%, 90% { left: 45%; } 100% { left: 100%; } }
.mk-clip .lab { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--dim); }
.mk-clip .lab b { color: var(--ink); font-family: ui-monospace, Consolas, monospace; }
.mk-clip .arrow { font-weight: 800; color: var(--brand); font-family: ui-monospace, Consolas, monospace; }

/* 3. 화질·포맷: 알약이 차례로 빨갛게 켜진다 */
.bt.in .mk-quality .pill { animation: pill-cycle 10s linear infinite; animation-delay: calc(var(--k) * 1s); }
@keyframes pill-cycle { 0%, 4% { background: #fff; color: var(--dim); border-color: var(--line); box-shadow: none; transform: none; } 6%, 12% { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 14px rgba(232,18,8,.25); transform: translateY(-2px); } 16%, 100% { background: #fff; color: var(--dim); border-color: var(--line); box-shadow: none; transform: none; } }

/* 4. 날짜·정렬·개수 */
.mk-filter .date { display: flex; align-items: center; gap: 8px; font: 600 13px/1 ui-monospace, Consolas, monospace; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; margin-bottom: 10px; }
.mk-filter .date i { color: var(--brand); font-style: normal; font-weight: 800; }
.mk-filter .secs span { padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; background: #fff; border: 1px solid var(--line); color: var(--dim); }
.mk-filter .secs span.on { color: var(--brand); border-color: #f2c9c6; background: var(--brand-soft); }

/* 5. 미리보기: 썸네일 + 재생 + 커서가 들어온다 */
.mk-preview .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: linear-gradient(135deg, #2b2b36, #5a3a4a 60%, #b23a2a); margin-bottom: 10px; overflow: hidden; }
.mk-preview .play { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.mk-preview .play svg { width: 20px; height: 20px; fill: var(--brand); margin-left: 3px; }
.mk-preview .cursor { position: absolute; left: 70%; top: 70%; width: 22px; height: 22px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.mk-preview .cursor svg { width: 100%; height: 100%; fill: #fff; stroke: #000; stroke-width: 1.2; }
.bt.in .mk-preview .cursor { animation: cursor-in 4s var(--ease) infinite; }
.bt.in .mk-preview .play { animation: play-pulse 4s var(--ease) infinite; }
@keyframes cursor-in { 0%, 70% { transform: none; opacity: 1; } 85% { transform: translate(60px, 50px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes play-pulse { 0%, 20% { transform: scale(1); } 30% { transform: scale(.85); } 40%, 100% { transform: scale(1); } }

/* 6. 복사 감지 팝업 */
.mk-toast { background: #fff; }
.mk-toast .head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mk-toast .head img { width: 18px; height: 18px; }
.mk-toast .tag { font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 2px 7px; }
.mk-toast .ttl { height: 10px; border-radius: 5px; background: #e9e9e9; margin: 12px 0 12px; width: 70%; }
.mk-toast .btns { display: flex; gap: 8px; }
.mk-toast .btns span { flex: 1; text-align: center; font-size: 12.5px; font-weight: 700; padding: 8px 6px; border-radius: 8px; border: 1px solid var(--line); }
.mk-toast .btns .pri { background: linear-gradient(180deg,#f0301e,#d40f06); color: #fff; border-color: #c40f06; }
.mk-toast .note { font-size: 11px; color: var(--faint); margin-top: 10px; }
.bt.in .mk-toast { animation: toast-in 5s var(--ease) infinite; }
@keyframes toast-in { 0%, 86% { transform: none; opacity: 1; } 92% { transform: translateY(16px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* 7. 큐: 진행 막대 + 일시정지/재개/다시 받기 */
.mk-queue .q { position: relative; height: 12px; border-radius: 6px; background: #e6e6e6; margin: 0 0 16px; }
.mk-queue .q i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, #e81208, #ff6a3d, #f5b300); width: var(--w, 40%); }
.mk-queue .q1 i { width: 100%; } .mk-queue .q2 i { width: 62%; } .mk-queue .q3 i { width: 35%; } .mk-queue .q4 i { width: 18%; background: #d0d0d0; }
.mk-queue .q b, .mk-queue .q .ic { position: absolute; top: -3px; font-size: 11.5px; font-weight: 700; color: var(--dim); }
.mk-queue .q b { left: calc(var(--w, 40%) + 6px); }
.mk-queue .q1 b { left: auto; right: 0; color: var(--ok); } .mk-queue .q2 b { left: 64%; } .mk-queue .q3 b { left: 37%; } .mk-queue .q4 b { left: 20%; color: var(--brand); }
.mk-queue .q .ic { right: 0; color: var(--brand); }
.bt.in .mk-queue .q3 i { animation: q-grow 4s linear infinite; }
@keyframes q-grow { 0% { width: 35%; } 100% { width: 80%; } }
.bt.in .mk-queue .q3 b { animation: q-lab 4s linear infinite; }
@keyframes q-lab { 0% { left: 37%; } 100% { left: 82%; } }
.mk-queue .batch { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ok); background: #e8f7ec; border-radius: 999px; padding: 5px 10px; }

/* 8. 폴더 트리 */
.mk-folder { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.mk-folder span { position: relative; padding: 4px 0 4px 22px; }
.mk-folder span::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 11px; border-radius: 3px; background: #f5b300; }
.mk-folder span:nth-child(2) { margin-left: 12px; } .mk-folder span:nth-child(3) { margin-left: 24px; } .mk-folder span:nth-child(4) { margin-left: 36px; } .mk-folder span:nth-child(5) { margin-left: 48px; }
.mk-folder .last { color: var(--brand); }
.bt.in .mk-folder span { animation: slide-in .5s var(--ease) both; }
@keyframes slide-in { from { transform: translateX(-14px); } to { transform: none; } }
.bt.in .mk-folder span:nth-child(2) { animation-delay: .15s; } .bt.in .mk-folder span:nth-child(3) { animation-delay: .3s; } .bt.in .mk-folder span:nth-child(4) { animation-delay: .45s; } .bt.in .mk-folder span:nth-child(5) { animation-delay: .6s; }

/* 9. 로그인 */
.mk-login { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 100px; }
.mk-login .icons { display: flex; }
.mk-login .icons img { width: 38px; height: 38px; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 6px 14px rgba(0,0,0,.14); margin-left: -8px; }
.mk-login .icons img:first-child { margin-left: 0; }
.mk-login .lock { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg,#f0301e,#d40f06); box-shadow: 0 8px 18px rgba(232,18,8,.3); }
.mk-login .lock svg { width: 22px; height: 22px; }

/* 10. aria2 막대 */
.mk-speed .bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.mk-speed .bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #ff6a3d, #e81208); height: 30%; }
.bt.in .mk-speed .bars i { animation: bar 1.6s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.11s); }
@keyframes bar { from { height: 25%; } to { height: 100%; } }
.mk-speed .lab { margin-top: 10px; font-size: 12.5px; color: var(--dim); } .mk-speed .lab b { color: var(--ink); font-size: 16px; }

/* 11. 언어·테마 */
.mk-lang .codes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.mk-lang .codes span { font: 700 11.5px/1 ui-monospace, Consolas, monospace; padding: 6px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--dim); }
.bt.in .mk-lang .codes span { animation: pill-cycle 9s linear infinite; }
.bt.in .mk-lang .codes span:nth-child(1) { animation-delay: 0s; } .bt.in .mk-lang .codes span:nth-child(2) { animation-delay: 1s; } .bt.in .mk-lang .codes span:nth-child(3) { animation-delay: 2s; } .bt.in .mk-lang .codes span:nth-child(4) { animation-delay: 3s; } .bt.in .mk-lang .codes span:nth-child(5) { animation-delay: 4s; } .bt.in .mk-lang .codes span:nth-child(6) { animation-delay: 5s; } .bt.in .mk-lang .codes span:nth-child(7) { animation-delay: 6s; } .bt.in .mk-lang .codes span:nth-child(8) { animation-delay: 7s; } .bt.in .mk-lang .codes span:nth-child(9) { animation-delay: 8s; }
.mk-lang .theme { display: flex; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.mk-lang .theme span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; font-size: 12.5px; font-weight: 700; }
.mk-lang .theme svg { width: 15px; height: 15px; }
.mk-lang .sun { background: #fff; color: var(--ink); } .mk-lang .moon { background: #202020; color: #fff; }

/* 12. 트레이 */
.mk-tray .taskbar { padding: 8px 10px; }
.mk-tray .lab { text-align: center; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--dim); }
.bt.in .mk-tray .ping { animation: pulse-ping 1.8s ease-out infinite; }

/* --- 조합 섹션 --- */
.numbers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 56px; }
.numbers div { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 8px; }
.numbers b { display: block; font-size: 34px; font-weight: 900; letter-spacing: -0.02em; background: linear-gradient(90deg, #e81208, #ff6a3d, #f5b300); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.numbers span { font-size: 12.5px; color: var(--dim); font-weight: 600; }
@media (max-width: 720px) { .numbers { grid-template-columns: repeat(2, 1fr); } .numbers div:last-child { grid-column: span 2; } }
.combos { display: flex; flex-direction: column; gap: 10px; max-width: 900px; margin: 0 auto; }
.combo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border-radius: 16px; border: 1px solid transparent; opacity: .45; transition: all .5s var(--ease); }
.combo.on { opacity: 1; background: #fff; border-color: #f2c9c6; box-shadow: 0 16px 40px rgba(232,18,8,.10); transform: scale(1.02); }
.combo .c { padding: 8px 14px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); font-weight: 700; font-size: 14.5px; }
.combo.on .c { background: var(--brand); color: #fff; border-color: var(--brand); animation: pop-in .4s var(--ease) both; }
.combo.on .c:nth-child(1) { animation-delay: .05s; } .combo.on .c:nth-child(3) { animation-delay: .2s; background: linear-gradient(180deg,#f2a23a,#dd7d12); border-color: #dd7d12; } .combo.on .c:nth-child(5) { animation-delay: .35s; background: linear-gradient(180deg,#25b3a9,#158b83); border-color: #158b83; } .combo.on .c:nth-child(7) { animation-delay: .5s; background: linear-gradient(180deg,#8e70ea,#6b4bd6); border-color: #6b4bd6; }
@keyframes pop-in { from { transform: scale(.7); } to { transform: none; } }
.combo i { font-style: normal; font-weight: 800; color: var(--faint); }
.combo .ok { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-weight: 800; opacity: 0; transform: scale(.5); transition: all .4s var(--ease) .7s; }
.combo.on .ok { opacity: 1; transform: none; }
.combo-note { text-align: center; color: var(--faint); font-size: 13px; margin-top: 22px; }

/* --- 지원 사이트: 가장 많이 쓰는 6곳(유튜브·X·인스타·쓰레드·페북·틱톡) 큰 로고 — 부채꼴로 살짝 기울여 늘어놓고, 각자 브랜드색 광채 --- */
.big6 { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 6px 0 14px; }
.b6 { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 12px 10px; min-width: 96px; border-radius: 22px; background: #fff; border: 1px solid var(--line);
      box-shadow: 0 14px 34px color-mix(in srgb, var(--c, #e81208) 28%, transparent), 0 2px 6px rgba(0,0,0,.05); transform: rotate(var(--r, 0deg)) translateY(0); transition: transform .35s var(--ease), box-shadow .35s; text-decoration: none; }
.b6::before { content: ""; position: absolute; inset: -2px; border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--c, #e81208) 55%, #fff), transparent 60%); z-index: -1; opacity: .55; }
.b6 img { width: 58px; height: 58px; border-radius: 16px; box-shadow: 0 6px 14px rgba(0,0,0,.14); }
.b6 span { font-size: 12.5px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.b6:hover { transform: rotate(0deg) translateY(-10px) scale(1.06); box-shadow: 0 24px 46px color-mix(in srgb, var(--c, #e81208) 40%, transparent); }
.b6.more { min-width: 72px; padding: 0; height: 72px; justify-content: center; border-radius: 50%; background: linear-gradient(180deg,#f0301e,#d40f06); border-color: #c40f06; color: #fff; --c: #e81208; transform: none; margin-bottom: 14px; }
.b6.more b { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.sec-head.in .b6 { animation: b6-in .7s var(--ease) both, b6-float 4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .09s), calc(var(--i, 0) * -.7s + .8s); }
.sec-head.in .b6.more { animation: b6-in .7s var(--ease) .6s both; }
@keyframes b6-in { from { transform: rotate(var(--r, 0deg)) translateY(30px) scale(.6); opacity: 0; } to { transform: rotate(var(--r, 0deg)) translateY(0) scale(1); opacity: 1; } }
@keyframes b6-float { 0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); } 50% { transform: rotate(var(--r, 0deg)) translateY(-7px); } }
.b6:hover { animation-play-state: paused; }
.big6-note { text-align: center; font-size: 13.5px; font-weight: 600; color: var(--dim); margin: 0 0 18px; }
@media (max-width: 720px) { .big6 { flex-wrap: wrap; gap: 8px; } .b6 { min-width: 78px; padding: 8px 8px 6px; border-radius: 18px; } .b6 img { width: 44px; height: 44px; } .b6 span { font-size: 11px; } .b6.more { width: 56px; height: 56px; min-width: 56px; } }


/* ==================== 히어로 C안 (2026-09-28): 살아 있는 앱 창 ====================
   오른쪽 앱 창(.appwin)은 스크린샷이 아니라 HTML/CSS 로 그린 축소판. main.js "히어로 C안" 이 단계(class p0~p3)를 돌린다:
   p0 주소 타이핑 → p1 분석 결과 → p2 진행 중(막대) → p3 완료 + 코너 팝업. 되돌리기: git 태그 hero-v1. */
.hero-c .demo { perspective: 1200px; }
.hero-c .appwin { position: relative; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; font-size: 11.5px; line-height: 1.35; color: var(--ink);
  transform: rotateX(calc(var(--sy, 0) * 0.045deg + var(--ty, 0deg))) rotateY(var(--tx, 0deg)) scale(calc(1 - var(--sy, 0) / 4000)); transform-origin: 50% 100%; transition: transform .25s var(--ease); animation: floaty 6s ease-in-out infinite; }
.hero-c .tbar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: #f3f3f3; border-bottom: 1px solid var(--line); font-size: 12px; }
.hero-c .tbar img { width: 16px; height: 16px; }
.hero-c .tbar .wc { margin-left: auto; display: flex; gap: 14px; } .hero-c .tbar .wc i { width: 10px; height: 10px; border-radius: 2px; background: #cfcfcf; }
.hero-c .body { display: grid; grid-template-columns: 132px 1fr; min-height: 340px; }
.hero-c .side { padding: 12px 8px; border-right: 1px solid var(--line); background: #fafafa; display: flex; flex-direction: column; gap: 4px; }
.hero-c .nv { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 8px; border-radius: 6px; color: var(--dim); font-weight: 600; transition: background .3s, color .3s; }
.hero-c .nv.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.hero-c .nv.on::before { content: ""; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--brand); }
.hero-c .nv i, .hero-c .ph i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; flex: none; }
.hero-c .nv i svg, .hero-c .ph i svg { width: 12px; height: 12px; }
.hero-c .badge { margin-left: auto; min-width: 16px; height: 16px; padding: 0 5px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px; display: grid; place-items: center; opacity: 0; transform: scale(.5); transition: all .3s var(--ease); }
.hero-c .badge.show { opacity: 1; transform: none; }
.hero-c .main { position: relative; padding: 14px 16px; }
.hero-c .page { position: absolute; inset: 14px 16px; opacity: 0; transform: translateX(14px); transition: opacity .35s, transform .4s var(--ease); pointer-events: none; }
.hero-c .page.on { opacity: 1; transform: none; }
.hero-c .ph { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.hero-c .ph i { width: 28px; height: 28px; border-radius: 8px; } .hero-c .ph i svg { width: 15px; height: 15px; }
.hero-c .ph b { display: block; font-size: 16px; letter-spacing: -0.01em; } .hero-c .ph small { color: var(--dim); font-size: 10.5px; }
.hero-c .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; overflow: hidden; max-height: 34px; }
.hero-c .ch { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; transition: border-color .3s, box-shadow .3s; }
.hero-c .ch img { width: 20px; height: 20px; border-radius: 5px; }
.hero-c .appwin.typed .ch.hot { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(232,18,8,.15); }
.hero-c .urlrow { display: flex; gap: 8px; margin-bottom: 12px; }
.hero-c .ubox { flex: 1; position: relative; height: 32px; border: 1px solid var(--line); border-bottom: 2px solid var(--brand); border-radius: 6px; background: #fff; padding: 0 10px; display: flex; align-items: center; overflow: hidden; }
.hero-c .utxt { font: 500 11px/1 ui-monospace, Consolas, monospace; white-space: nowrap; }
.hero-c .utxt::after { content: ""; display: inline-block; width: 1.5px; height: 12px; background: var(--brand); margin-left: 2px; vertical-align: -2px; animation: caret 1s step-end infinite; }
.hero-c .uph { position: absolute; left: 10px; color: var(--faint); transition: opacity .2s; }
.hero-c .appwin.typing .uph, .hero-c .appwin.typed .uph { opacity: 0; }
.hero-c .ubtn { height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; background: #fff; }
.hero-c .info { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: #fbfbfb; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease); }
.hero-c .appwin.typed .info { opacity: 1; transform: none; }
.hero-c .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; background: linear-gradient(135deg, #2b2b36, #5a3a4a 60%, #b23a2a); overflow: hidden; }
.hero-c .thumb .play { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255,255,255,.9); }
.hero-c .thumb .play::after { content: ""; position: absolute; left: 11px; top: 8px; border-left: 11px solid var(--brand); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.hero-c .thumb .dur { position: absolute; right: 6px; bottom: 6px; font: 600 9.5px/1 ui-monospace, Consolas, monospace; color: #fff; background: rgba(0,0,0,.6); border-radius: 4px; padding: 3px 5px; }
.hero-c .meta { min-width: 0; }
.hero-c .meta b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hero-c .meta small { display: block; color: var(--dim); font-size: 10.5px; margin: 2px 0 8px; }
.hero-c .opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hero-c .sel, .hero-c .opt { height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; font-size: 10.5px; white-space: nowrap; }
.hero-c .sel { flex: 1 1 120px; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 26px; }
.hero-c .actions { display: flex; justify-content: flex-end; }
.hero-c .start { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 6px; color: #fff; font-weight: 700; background: linear-gradient(180deg,#f0301e,#d40f06); box-shadow: 0 6px 14px rgba(232,18,8,.3); transition: transform .15s; }
.hero-c .start svg { width: 13px; height: 13px; }
.hero-c .appwin.clicking .start { transform: scale(.94); }
.hero-c .ripple { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(232,18,8,.6); opacity: 0; pointer-events: none; }
.hero-c .appwin.clicking .ripple { animation: click .7s ease-out; }
/* 진행/완료 행 */
.hero-c .row { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.hero-c .rt { aspect-ratio: 3 / 2; border-radius: 4px; background: linear-gradient(135deg, #2b2b36, #5a3a4a 60%, #b23a2a); }
.hero-c .rb b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-c .tag { font-style: normal; color: var(--brand); font-weight: 700; }
.hero-c .bar { display: block; height: 5px; border-radius: 3px; background: var(--brand-soft); margin: 7px 0 5px; overflow: hidden; }
.hero-c .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #e81208, #ff6a3d, #f5b300); transition: width .12s linear; }
.hero-c .rb small { display: flex; justify-content: space-between; color: var(--dim); font-size: 10px; }
.hero-c .row.done .rb small { margin-top: 6px; } .hero-c .ok { color: var(--ok); font-weight: 700; }
/* 코너 팝업 */
.hero-c .popup { position: absolute; right: 12px; bottom: 12px; width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: 0 18px 40px rgba(0,0,0,.2); z-index: 5; opacity: 0; transform: translateY(20px) scale(.94); transition: opacity .3s, transform .45s var(--ease); }
.hero-c .appwin.p3 .popup { opacity: 1; transform: none; }
.hero-c .pp-h { display: flex; align-items: center; gap: 6px; font-size: 12px; } .hero-c .pp-h img { width: 14px; height: 14px; }
.hero-c .popup small { display: block; color: var(--dim); font-size: 10px; margin: 6px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-c .pp-b { display: flex; gap: 6px; } .hero-c .pp-b span { flex: 1; text-align: center; font-size: 10.5px; font-weight: 700; padding: 6px 4px; border-radius: 6px; border: 1px solid var(--line); }
.hero-c .pp-b .pri { background: linear-gradient(180deg,#f0301e,#d40f06); color: #fff; border-color: #c40f06; }
/* 폰: 사이드바는 줄바꿈으로 창을 잡아먹어 숨긴다(페이지 제목이 단계를 말해 준다). 창 폭이 좁으니 글자도 한 단계 작게 */
@media (max-width: 900px) { .hero-c .body { grid-template-columns: 1fr; min-height: 300px; } .hero-c .side { display: none; } .hero-c .appwin { font-size: 11px; } .hero-c .info { grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 10px; } }
@media (prefers-reduced-motion: reduce) { .hero-c .appwin { animation: none !important; transform: none !important; } }


/* ==================== 화면 캐러셀 (2026-09-28): 스크린샷 대신 HTML/CSS 목업 3장 ====================
   .shotwin = 히어로 C안의 .appwin 을 큰 크기(캐러셀 폭 ~1090px)로 다시 그린 것. .dark 는 앱 다크 팔레트, .grid 는 프로필 그리드 창. */
.carousel .slides { aspect-ratio: 16 / 10.5; background: #f3f3f3; }
.carousel .slide { padding: 26px 30px; }
.carousel .slide .shotwin { width: 100%; height: 100%; }
.carousel .slide.on .shotwin { animation: kenburns 6s ease-out forwards; transform-origin: 50% 40%; }
.shotwin { --w-bg: #fff; --w-panel: #f3f3f3; --w-panel2: #fafafa; --w-line: #e6e6e6; --w-ink: #1b1b1b; --w-dim: #5d5d5d; --w-faint: #8a8a8a; --w-input: #fff;
  position: relative; display: flex; flex-direction: column; background: var(--w-bg); color: var(--w-ink); border: 1px solid var(--w-line); border-radius: 12px; box-shadow: 0 18px 44px rgba(0,0,0,.14); overflow: hidden; font-size: 13.5px; line-height: 1.35; text-align: left; }
.shotwin.dark { --w-bg: #202020; --w-panel: #2a2a2a; --w-panel2: #262626; --w-line: #3a3a3a; --w-ink: #f2f2f2; --w-dim: #b8b8b8; --w-faint: #8a8a8a; --w-input: #2c2c2c; }
.shotwin .tbar { display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; background: var(--w-panel); border-bottom: 1px solid var(--w-line); font-size: 13px; flex: none; }
.shotwin .tbar img { width: 18px; height: 18px; } .shotwin .tbar .wc { margin-left: auto; display: flex; gap: 16px; } .shotwin .tbar .wc i { width: 11px; height: 11px; border-radius: 2px; background: var(--w-faint); opacity: .6; }
.shotwin .body { display: grid; grid-template-columns: 170px minmax(0, 1fr); flex: 1; min-height: 0; }
.shotwin .side { padding: 16px 10px; border-right: 1px solid var(--w-line); background: var(--w-panel2); display: flex; flex-direction: column; gap: 6px; }
.shotwin .nv { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 7px; color: var(--w-dim); font-weight: 600; }
.shotwin .nv.on { background: var(--w-bg); color: var(--w-ink); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.shotwin.dark .nv.on { background: #333; }
.shotwin .nv.on::before { content: ""; position: absolute; left: -10px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--brand); }
.shotwin .nv i, .shotwin .ph i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex: none; } .shotwin .nv i svg, .shotwin .ph i svg { width: 14px; height: 14px; }
.shotwin .main { padding: 18px 22px; min-width: 0; }
.shotwin .ph { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; } .shotwin .ph i { width: 34px; height: 34px; border-radius: 9px; } .shotwin .ph i svg { width: 18px; height: 18px; }
.shotwin .ph b { display: block; font-size: 20px; letter-spacing: -0.01em; } .shotwin .ph small { color: var(--w-dim); font-size: 12.5px; }
.shotwin .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.shotwin .ch { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--w-line); background: var(--w-input); display: grid; place-items: center; } .shotwin .ch img { width: 26px; height: 26px; border-radius: 6px; }
.shotwin .ch.hot { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(232,18,8,.15); }
.shotwin .urlrow { display: flex; gap: 10px; margin-bottom: 16px; }
.shotwin .ubox { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--w-line); border-bottom: 2px solid var(--brand); border-radius: 7px; background: var(--w-input); padding: 0 12px; display: flex; align-items: center; overflow: hidden; }
.shotwin .utxt { font: 500 13px/1 ui-monospace, Consolas, monospace; white-space: nowrap; }
.shotwin .ubtn { height: 40px; padding: 0 16px; border-radius: 7px; border: 1px solid var(--w-line); display: grid; place-items: center; font-weight: 600; background: var(--w-input); }
.shotwin .info { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: 10px; border: 1px solid var(--w-line); background: var(--w-panel2); }
.shotwin .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; background: linear-gradient(135deg, #2b2b36, #5a3a4a 60%, #b23a2a); overflow: hidden; }
.shotwin .thumb .play { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: rgba(255,255,255,.9); }
.shotwin .thumb .play::after { content: ""; position: absolute; left: 15px; top: 11px; border-left: 14px solid var(--brand); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.shotwin .thumb .dur { position: absolute; right: 8px; bottom: 8px; font: 600 11px/1 ui-monospace, Consolas, monospace; color: #fff; background: rgba(0,0,0,.6); border-radius: 4px; padding: 4px 6px; }
.shotwin .meta { min-width: 0; } .shotwin .meta b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .shotwin .meta small { display: block; color: var(--w-dim); font-size: 12.5px; margin: 3px 0 12px; }
.shotwin .opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.shotwin .sel, .shotwin .opt { height: 32px; padding: 0 11px; border-radius: 7px; border: 1px solid var(--w-line); background: var(--w-input); display: flex; align-items: center; font-size: 12.5px; white-space: nowrap; }
.shotwin .sel { flex: 1 1 160px; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 32px; }
.shotwin .actions { display: flex; justify-content: flex-end; }
.shotwin .start { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 7px; color: #fff; font-weight: 700; background: linear-gradient(180deg,#f0301e,#d40f06); box-shadow: 0 8px 18px rgba(232,18,8,.3); } .shotwin .start svg { width: 15px; height: 15px; }
/* 그리드 창 */
.shotwin.grid { padding: 18px 20px; gap: 12px; }
.shotwin .gh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.shotwin .gh b { display: block; font-size: 20px; letter-spacing: -0.01em; } .shotwin .gh small { color: var(--w-dim); font-size: 12.5px; }
.shotwin .rl { height: 36px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--w-line); display: flex; align-items: center; font-weight: 600; font-size: 13px; white-space: nowrap; }
.shotwin .gtb { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow: hidden; }
.shotwin .b { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--w-line); background: var(--w-input); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.shotwin .b svg { width: 14px; height: 14px; } .shotwin .b.pri { background: linear-gradient(180deg,#f0301e,#d40f06); color: #fff; border-color: #c40f06; } .shotwin .b.dim { color: var(--w-faint); }
.shotwin .sep { width: 1px; height: 22px; background: var(--w-line); margin: 0 4px; } .shotwin .lk { font-size: 12.5px; color: var(--w-dim); white-space: nowrap; }
.shotwin .band { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 9px; background: var(--brand-soft); border: 1px solid #f7c6c2; }
.shotwin .band i { width: 4px; height: 24px; border-radius: 2px; background: var(--brand); }
.shotwin .band b { font-size: 17px; color: var(--brand); } .shotwin .band em { font-style: normal; background: var(--brand); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 800; }
.shotwin .band small { margin-left: auto; color: #b0554d; font-size: 12px; }
.shotwin .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); position: relative; flex: none; box-shadow: 0 0 0 2px #fff; }
.shotwin .ck::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.shotwin .band .ck { border-radius: 5px; box-shadow: none; }
.shotwin .tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; overflow: hidden; }
.shotwin .tile { border-radius: 9px; border: 2px solid var(--brand); background: var(--brand-soft); padding: 0 0 10px; overflow: hidden; }
/* 타일 썸네일: 행성·로켓 흉내 대신 "영상 썸네일" 그 자체 — 타일마다 색이 다른 어두운 그라데이션 + 은은한 빛 + 가운데 재생 버튼 */
.shotwin .tt { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, hsl(calc(var(--k) * 37 + 200), 55%, 22%), hsl(calc(var(--k) * 37 + 250), 45%, 12%) 70%); overflow: hidden; }
.shotwin .tt::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(circle at 25% 20%, hsla(calc(var(--k) * 37 + 30), 90%, 70%, .55), transparent 45%), radial-gradient(circle at 80% 85%, hsla(calc(var(--k) * 37 + 120), 80%, 60%, .35), transparent 40%); }
.shotwin .tt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 6px 16px rgba(0,0,0,.35);
  }
/* 재생 삼각형(흰 원 위) */
.shotwin .tt .play-tri { position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -5px; border-left: 13px solid var(--brand); border-top: 8px solid transparent; border-bottom: 8px solid transparent; z-index: 1; }
.shotwin .tg { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); border-radius: 5px; padding: 3px 7px; }
.shotwin .tt .ck { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; } .shotwin .tt .ck::after { left: 9px; top: 5px; width: 6px; height: 12px; }
.shotwin .esa { position: absolute; left: 8px; bottom: 10px; font: 800 13px/1 sans-serif; color: #fff; background: #0b2a5e; border-radius: 999px; padding: 6px 11px; letter-spacing: .02em; }
.shotwin .tile b { display: block; font-size: 11.5px; font-weight: 500; color: var(--w-dim); padding: 7px 10px 5px; height: 40px; overflow: hidden; line-height: 1.35; }
.shotwin .get { display: block; margin: 0 10px; height: 26px; line-height: 24px; text-align: center; border-radius: 6px; border: 1px solid var(--w-line); background: var(--w-input); font-size: 12.5px; font-weight: 600; }
@media (max-width: 900px) {
  .carousel .slides { aspect-ratio: 4 / 7.6; } .carousel .slide { padding: 12px; } .shotwin { font-size: 11px; }
  .shotwin .body { grid-template-columns: minmax(0, 1fr); } .shotwin .side { display: none; } .shotwin .main { padding: 12px; } .shotwin .chips { display: none; }
  .shotwin .ph b { font-size: 16px; } .shotwin .info { grid-template-columns: 120px minmax(0,1fr); gap: 10px; padding: 10px; }
  .shotwin .tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; } .shotwin .tile:nth-child(n+7) { display: none; }
  .shotwin .gtb .lk, .shotwin .gtb .b.dim, .shotwin .band small { display: none; } .shotwin .gh b { font-size: 15px; }
}
