/* StarPlayer 고객용 메인 — 마케팅 페이지 스타일 */

:root {
  --brand: #e8192c;
  --brand-deep: #b3121f;
  --ink: #1a1c26;
  --sub: #4b5563;
  --line: #e5e7eb;
  --dark: #14161f;
  --dark2: #1d2029;

  --c-drm: #7c3aed;
  --c-live: #dc2626;
  --c-shell: #1e3a8a;
  --c-downloader: #16a34a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--ink); background: #fff; line-height: 1.6; word-break: keep-all;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff4d3d, #e8192c); border-radius: 22%;
  box-shadow: 0 4px 14px rgba(232, 25, 44, 0.35);
}

/* ---------- 네비 ---------- */
nav.top {
  position: sticky; top: 0; z-index: 100; background: rgba(20, 22, 31, 0.92);
  backdrop-filter: blur(8px); color: #fff;
}
nav.top .wrap { display: flex; align-items: center; gap: 26px; height: 62px; }
nav.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #fff; text-decoration: none; }
nav.top a.item { color: #cbd5e1; text-decoration: none; font-size: 0.92rem; font-weight: 600; }
nav.top a.item:hover { color: #fff; }
nav.top .spacer { flex: 1; }
nav.top .cta-btn {
  background: var(--brand); color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 9px 18px; border-radius: 8px; text-decoration: none;
}
nav.top .cta-btn:hover { background: var(--brand-deep); }
@media (max-width: 860px) { nav.top a.item { display: none; } }

/* ---------- 히어로 ---------- */
.hero {
  background: radial-gradient(1000px 500px at 70% -10%, rgba(232, 25, 44, 0.25), transparent 60%), var(--dark);
  color: #fff; padding: 92px 0 84px; text-align: center;
}
.hero .kicker { color: #ff7a86; font-weight: 800; letter-spacing: 0.14em; font-size: 0.85rem; margin-bottom: 16px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 900; letter-spacing: -0.02em; line-height: 1.25; }
.hero h1 .pt { color: var(--brand); }
.hero p.lead { color: #b9c0cc; max-width: 640px; margin: 20px auto 0; font-size: 1.08rem; }
.hero .actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .motto { margin-top: 44px; color: #8b93a1; font-weight: 700; letter-spacing: 0.06em; }
.hero .motto b { color: #e5e7eb; }
.hero .motto span { color: var(--brand); margin: 0 12px; }

.btn { display: inline-block; padding: 14px 28px; border-radius: 10px; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; border: none; font-family: inherit; }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-deep); }
.btn.outline { background: transparent; color: #fff; border: 1.5px solid #4b5563; }
.btn.outline:hover { border-color: #9ca3af; }
.btn.dark-outline { background: #fff; color: var(--ink); border: 1.5px solid #d1d5db; }
.btn.dark-outline:hover { border-color: var(--ink); }

/* 플랫폼 스트립 */
.platform-strip { background: var(--dark2); color: #9ca3af; padding: 14px 0; }
.platform-strip .wrap { display: flex; align-items: center; justify-content: center; gap: 34px; flex-wrap: wrap; font-weight: 700; font-size: 0.95rem; }
.platform-strip .os { display: flex; align-items: center; gap: 8px; }
.platform-strip svg { width: 20px; height: 20px; opacity: 0.85; }
.platform-strip .label { color: #6b7280; font-size: 0.82rem; font-weight: 600; }

/* ---------- 섹션 공통 ---------- */
section.block { padding: 84px 0; }
section.block.gray { background: #f8fafc; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.sec-head .tag { color: var(--brand); font-weight: 800; letter-spacing: 0.1em; font-size: 0.82rem; }
.sec-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; margin-top: 8px; letter-spacing: -0.01em; }
.sec-head p { color: var(--sub); margin-top: 12px; }

/* 가치 3포인트 */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; } }
.value { border: 1.5px solid var(--line); border-radius: 14px; padding: 30px 26px; }
.value .ic { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.value h3 { font-size: 1.15rem; margin-bottom: 8px; }
.value h3 small { display: block; color: var(--brand); font-size: 0.78rem; letter-spacing: 0.1em; font-weight: 800; margin-bottom: 4px; }
.value p { color: var(--sub); font-size: 0.92rem; }

/* ---------- 제품 쇼케이스 ---------- */
.show-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .show-grid { grid-template-columns: 1fr; } }
.show {
  border: 1.5px solid var(--line); border-radius: 16px; padding: 30px;
  display: flex; flex-direction: column; gap: 10px; background: #fff; position: relative;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.show:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09); }
.show .head { display: flex; align-items: center; gap: 12px; }
.show .head .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pc); }
.show .head h3 { font-size: 1.2rem; }
.show .head .en { color: var(--sub); font-size: 0.8rem; font-weight: 600; }
.show p.pitch { color: #374151; font-size: 0.95rem; }
.show ul { list-style: none; color: var(--sub); font-size: 0.88rem; }
.show ul li { padding: 2px 0 2px 16px; position: relative; }
.show ul li::before { content: "✓"; position: absolute; left: 0; color: var(--pc); font-weight: 900; }
.show .links { margin-top: auto; padding-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.show .links a { font-weight: 700; font-size: 0.9rem; text-decoration: none; color: var(--pc); }
.show .links a.try { background: var(--pc); color: #fff; padding: 9px 16px; border-radius: 8px; }
.show .links a.more { align-self: center; padding: 9px 4px; }
.etc-strip { margin-top: 26px; text-align: center; color: var(--sub); font-size: 0.9rem; }
.etc-strip b { color: var(--ink); }
.etc-strip a { color: var(--brand); font-weight: 700; text-decoration: none; }

/* ---------- 체험 ---------- */
.demo-stage { background: var(--dark); border-radius: 18px; padding: 26px; color: #e5e7eb; }
.demo-stage .frame { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.demo-stage video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #000; }
.demo-stage .cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: linear-gradient(160deg, rgba(232,25,44,0.18), rgba(0,0,0,0.65)), var(--dark2); cursor: pointer;
}
.demo-stage .cover .play-big {
  width: 78px; height: 78px; border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 34px rgba(232, 25, 44, 0.45);
}
.demo-stage .cover b { font-size: 1.05rem; }
.demo-stage .cover span { color: #9ca3af; font-size: 0.85rem; }
.demo-stage .status { margin-top: 12px; font-size: 0.82rem; color: #8b93a1; min-height: 1.4em; }
.demo-side { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .demo-side { grid-template-columns: 1fr; } }
.try-list { display: flex; flex-direction: column; gap: 12px; }
.try-item {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff;
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit;
  transition: border-color 0.12s ease;
}
.try-item:hover { border-color: var(--pc); }
.try-item .n { width: 38px; height: 38px; border-radius: 10px; background: var(--pc); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; flex: none; }
.try-item b { display: block; font-size: 0.95rem; }
.try-item span { color: var(--sub); font-size: 0.82rem; }

/* ---------- 활용 사례 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .case-grid { grid-template-columns: 1fr; } }
.case { border-radius: 16px; padding: 30px 26px; color: #fff; background: var(--dark2); }
.case .emoji { font-size: 1.8rem; }
.case h3 { margin: 12px 0 8px; }
.case p { color: #b9c0cc; font-size: 0.9rem; }
.case ul { margin-top: 12px; list-style: none; font-size: 0.85rem; color: #cbd5e1; }
.case ul li { padding: 2px 0 2px 16px; position: relative; }
.case ul li::before { content: "·"; position: absolute; left: 4px; color: var(--brand); font-weight: 900; }

/* ---------- 도입 절차 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 28px 24px; position: relative; background: #fff; }
.step-card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.step-card h3 { margin: 6px 0 8px; font-size: 1.05rem; }
.step-card p { color: var(--sub); font-size: 0.9rem; }

/* ---------- 요금 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
.plan { border: 1.5px solid var(--line); border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; background: #fff; }
.plan.hot { border-color: var(--brand); box-shadow: 0 14px 40px rgba(232, 25, 44, 0.12); position: relative; }
.plan.hot .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.15rem; }
.plan .for { color: var(--sub); font-size: 0.85rem; margin: 4px 0 18px; }
.plan .price { font-size: 1.5rem; font-weight: 900; margin-bottom: 18px; }
.plan .price small { font-size: 0.8rem; color: var(--sub); font-weight: 600; }
.plan ul { list-style: none; font-size: 0.88rem; color: #374151; margin-bottom: 24px; }
.plan ul li { padding: 4px 0 4px 20px; position: relative; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.plan .btn { margin-top: auto; text-align: center; }

/* ---------- 문의 CTA ---------- */
.contact-cta { background: linear-gradient(135deg, #1d2029, #14161f); color: #fff; border-radius: 20px; padding: 56px 40px; text-align: center; }
.contact-cta h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 900; }
.contact-cta p { color: #b9c0cc; margin: 12px auto 26px; max-width: 520px; }

/* ---------- 푸터 ---------- */
footer { background: var(--dark); color: #9ca3af; margin-top: 84px; }
footer .wrap { padding: 34px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
footer .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 1.05rem; }
footer .foot-links { margin-left: auto; display: flex; gap: 20px; font-size: 0.88rem; }
footer .foot-links a { color: #9ca3af; text-decoration: none; }
footer .foot-links a:hover { color: #fff; }
footer .motto { width: 100%; text-align: center; color: var(--brand); font-weight: 800; padding-top: 8px; border-top: 1px solid #23262f; }
footer .motto span { color: #6b7280; font-weight: 400; margin: 0 8px; }

/* ---------- Shell 재생 토글 ---------- */
.stage-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.stage-head .sw-label { font-weight: 800; font-size: 0.95rem; color: #e5e7eb; }
.stage-head .sw-hint { font-size: 0.78rem; color: #8b93a1; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .knob {
  position: absolute; inset: 0; background: #3a3f4d; border-radius: 999px;
  transition: background 0.15s ease; cursor: pointer;
}
.switch .knob::before {
  content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform 0.15s ease;
}
.switch input:checked + .knob { background: var(--c-shell); }
.switch input:checked + .knob::before { transform: translateX(20px); }

.install-strip {
  margin-top: 12px; border: 1.5px dashed #cbd5e1; border-radius: 10px;
  padding: 12px 16px; font-size: 0.88rem; color: var(--sub);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.install-strip a { color: var(--c-shell); font-weight: 800; text-decoration: none; }
.install-strip a:hover { text-decoration: underline; }

/* Shell 토글 ON — 라이브 항목이 Shell 모드로 전환됨을 표시 */
.try-item .shell-chip {
  display: none; background: var(--c-shell); color: #fff; font-size: 0.64rem; font-weight: 800;
  padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 2px;
}
body.shell-on #tryLive { --pc: var(--c-shell); border-color: var(--c-shell); background: #f5f7ff; }
body.shell-on #tryLive .shell-chip { display: inline-block; }

/* ---------- 다운로드 선택 레이어 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 12, 18, 0.62); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 620px;
  max-height: 80vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.modal .m-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1.5px solid var(--line); }
.modal .m-head h3 { font-size: 1.05rem; flex: 1; }
.modal .m-head .m-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--sub); line-height: 1; padding: 4px; }
.modal .m-body { padding: 16px 22px; overflow-y: auto; }
.modal .m-hint { font-size: 0.8rem; color: var(--sub); margin-bottom: 12px; }
.dl-item {
  display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; flex-wrap: wrap;
}
.dl-item.done { opacity: 0.55; }
.dl-item .meta { flex: 1; min-width: 180px; }
.dl-item .meta b { display: block; font-size: 0.92rem; }
.dl-item .meta span { font-size: 0.74rem; color: var(--sub); }
.dl-item .mark { font-size: 0.76rem; color: var(--c-downloader); font-weight: 700; }
.dl-item .btn.small { padding: 8px 16px; font-size: 0.85rem; background: var(--c-downloader); color: #fff; }
