/* StarPlayer 브랜드 홍보 사이트 — 공통 스타일 */

:root {
  --brand: #e8192c;
  --ink: #1a1c26;
  --sub: #4b5563;
  --line: #f2b8be;
  --card-line: #e5e7eb;
  --bg: #ffffff;

  --c-scms: #0e9488;
  --c-ovp: #2563eb;
  --c-drm: #7c3aed;
  --c-watermark: #f97316;
  --c-live: #dc2626;
  --c-shell: #1e3a8a;
  --c-downloader: #16a34a;
  --c-lms: #ea580c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

.wrap { max-width: 1280px; 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 6px 18px rgba(232, 25, 44, 0.35);
}
.logo-mark svg { display: block; }

/* ---------- 히어로 ---------- */
.hero { padding: 48px 0 28px; text-align: center; position: relative; }
.hero-row { display: flex; align-items: center; justify-content: center; gap: 20px; }
.hero-rule {
  flex: 1; max-width: 260px; height: 2px; background: var(--brand); position: relative;
}
.hero-rule::before {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px;
  background: var(--brand); border-radius: 50%; transform: translateY(-50%);
}
.hero-rule.left::before { right: 0; }
.hero-rule.right::before { left: 0; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; letter-spacing: -0.02em;
}
.hero .tagline { color: var(--brand); font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 800; margin-top: 2px; }
.hero .motto { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-top: 6px; }
.hero .motto b { color: var(--ink); }
.hero .motto .dot { color: var(--brand); margin: 0 10px; }

/* ---------- 플랫폼 바 ---------- */
.platform-bar {
  border: 1.5px solid var(--line); border-radius: 12px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 18px 24px; margin: 26px 0 40px;
}
.platform-bar .brand-cell { display: flex; align-items: center; gap: 12px; padding-right: 20px; }
.platform-bar .brand-cell .name { font-weight: 800; font-size: 1.15rem; color: var(--brand); }
.platform-bar .brand-cell .desc { font-size: 0.82rem; color: var(--sub); }
.platform-bar .sep { width: 1px; align-self: stretch; background: #e5e7eb; margin: 0 14px; }
.platform-bar .os { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; padding: 0 14px; }
.platform-bar .os svg { width: 26px; height: 26px; }
.platform-bar .blurb { margin-left: auto; font-size: 0.85rem; color: var(--sub); max-width: 320px; }

/* ---------- 섹션 타이틀 ---------- */
.section-title {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 24px 0 22px; color: var(--brand); font-size: 1.5rem; font-weight: 800;
}
.section-title::before, .section-title::after {
  content: "·"; color: var(--brand); font-weight: 900;
}

/* ---------- 제품 그리드 ---------- */
.suite {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 44px;
}
@media (max-width: 1100px) { .suite { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .suite { grid-template-columns: 1fr; } }

.card {
  border: 1.5px solid var(--card-line); border-radius: 12px; padding: 22px 18px;
  display: flex; flex-direction: column; text-align: center; position: relative;
  color: inherit; text-decoration: none; background: #fff;
}
.card.active { border-color: color-mix(in srgb, var(--accent) 45%, white); }
.card.active:hover {
  transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  border-color: var(--accent); transition: all 0.15s ease;
}
.card .badge-sample {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
}
.card h3 { color: var(--accent); font-size: 1.22rem; font-weight: 800; line-height: 1.25; }
.card .en-sub { font-size: 0.86rem; color: var(--sub); margin-top: 4px; min-height: 2.6em; }
.card .icon { margin: 14px auto; }
.card .icon svg { width: 64px; height: 64px; }
.card hr { border: 0; border-top: 1px solid var(--card-line); margin: 4px 18px 12px; }
.card ul { list-style: none; text-align: left; font-size: 0.86rem; color: #374151; }
.card ul li { padding: 2.5px 0 2.5px 14px; position: relative; }
.card ul li::before { content: "·"; position: absolute; left: 2px; font-weight: 900; color: var(--accent); }
.card .note {
  margin-top: auto; background: #f4f6f8; border-radius: 8px; padding: 10px;
  font-size: 0.78rem; color: var(--sub); text-align: left;
}
.card .note.accent { border: 1px solid color-mix(in srgb, var(--accent) 35%, white); background: color-mix(in srgb, var(--accent) 5%, white); }
.card .note b { color: var(--accent); }
.card .tag-box {
  margin-top: auto; border: 1px solid color-mix(in srgb, var(--accent) 40%, white);
  background: color-mix(in srgb, var(--accent) 6%, white);
  border-radius: 8px; padding: 10px; font-size: 0.85rem; font-weight: 700; color: var(--accent);
}
.card .tag-box .small { font-size: 0.75rem; font-weight: 500; color: var(--sub); }

/* ---------- 인프라 ---------- */
.infra {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 26px 28px; margin-bottom: 44px;
}
.infra h2 { color: var(--brand); text-align: center; font-size: 1.35rem; margin-bottom: 20px; }
.infra-flex { display: flex; gap: 28px; flex-wrap: wrap; align-items: stretch; }
.infra-col { flex: 1 1 260px; }
.infra-col h4 { font-size: 1.1rem; margin-bottom: 8px; }
.infra-col.cdn h4 { color: #2563eb; }
.infra-col.lms h4 { color: var(--c-lms); }
.infra-col ul { list-style: none; font-size: 0.88rem; color: #374151; columns: 1; }
.infra-col ul li { padding: 2.5px 0 2.5px 14px; position: relative; }
.infra-col ul li::before { content: "·"; position: absolute; left: 2px; font-weight: 900; }
.infra-plus { align-self: center; font-size: 2rem; font-weight: 900; color: var(--sub); }

/* 통합 활용 예시 */
.flow-box {
  flex: 1.4 1 300px; min-width: 0; border: 1.5px dashed #d1d5db; border-radius: 12px; padding: 18px;
  overflow-x: auto;
}
.flow-box h4 { color: var(--brand); text-align: center; margin-bottom: 14px; }
.flow { display: flex; align-items: center; justify-content: center; gap: 3px; }
.flow .step { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--sub); }
.flow .step .bubble {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 4px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.56rem; font-weight: 800;
}
.flow .arrow { color: #9ca3af; font-weight: 900; font-size: 0.8rem; }
.flow-lms { text-align: center; margin-top: 12px; font-size: 0.78rem; color: var(--sub); }
.flow-lms .bubble {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 4px; background: var(--c-lms);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.58rem; font-weight: 800;
}

/* ---------- 푸터 ---------- */
footer { background: #14161f; color: #e5e7eb; margin-top: 20px; }
footer .wrap {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; flex-wrap: wrap;
}
footer .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
footer .slogan { flex: 1; text-align: center; font-size: 0.92rem; color: #cbd5e1; min-width: 260px; }
footer .motto { color: var(--brand); font-weight: 800; white-space: nowrap; }
footer .motto span { color: #e5e7eb; font-weight: 400; margin: 0 6px; }

/* ---------- 상세/샘플 페이지 공통 ---------- */
.page-header { border-bottom: 1.5px solid var(--line); padding: 18px 0; }
.page-header .wrap { display: flex; align-items: center; gap: 12px; }
.page-header a.home { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.page-header .crumb { color: var(--sub); font-size: 0.9rem; }

/* ---------- 제품 상세 페이지 ---------- */
.product-hero { padding: 44px 0 6px; text-align: center; }
.product-hero .en { color: var(--sub); font-weight: 600; letter-spacing: 0.02em; }
.product-hero h1 { font-size: 2.3rem; color: var(--accent); line-height: 1.2; }
.product-hero p.desc { max-width: 760px; margin: 14px auto 0; color: #374151; }
.product-hero .muted-badge { margin-top: 12px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 30px 0; }
.feature { border: 1.5px solid var(--card-line); border-radius: 10px; padding: 16px; }
.feature h4 { color: var(--accent); margin-bottom: 6px; font-size: 0.98rem; }
.feature p { font-size: 0.85rem; color: var(--sub); }

.detail-section { margin: 36px 0; }
.detail-section h2 { font-size: 1.3rem; margin-bottom: 14px; border-left: 4px solid var(--accent); padding-left: 10px; }
.detail-section p { color: #374151; margin-bottom: 10px; }

pre.code { background: #14161f; color: #e5e7eb; border-radius: 10px; padding: 16px; overflow-x: auto; font-size: 0.82rem; line-height: 1.55; }
pre.code .c { color: #7d8590; }

.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 8px; text-decoration: none; border: none; font-size: 0.95rem; cursor: pointer; font-family: inherit; }
.btn.ghost { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
.btn:hover { opacity: 0.88; }
.btn:disabled { opacity: 0.45; cursor: default; }

.cta { border: 1.5px dashed var(--accent); border-radius: 12px; padding: 28px; text-align: center; margin: 38px 0; }
.cta h3 { color: var(--accent); margin-bottom: 8px; font-size: 1.25rem; }
.cta p { color: var(--sub); font-size: 0.9rem; margin-bottom: 16px; }

.spec-wrap { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.spec th, table.spec td { border: 1px solid var(--card-line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.spec th { background: #f8fafc; white-space: nowrap; }
table.spec code { background: #f3f4f6; padding: 1px 5px; border-radius: 4px; font-size: 0.82rem; }

.muted-badge { display: inline-block; background: #f3f4f6; color: var(--sub); border-radius: 999px; padding: 4px 12px; font-size: 0.78rem; font-weight: 700; }

.step-flow { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.step-flow .s { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--card-line); border-radius: 10px; padding: 12px 14px; }
.step-flow .s .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.step-flow .s b { display: block; margin-bottom: 2px; }
.step-flow .s p { font-size: 0.85rem; color: var(--sub); margin: 0; }

/* ---------- 샘플 데모 공통 ---------- */
.demo-panel { border: 1.5px solid var(--card-line); border-radius: 12px; padding: 20px; margin: 22px 0; }
.demo-panel h3 { margin-bottom: 12px; }
.demo-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.demo-row label { font-size: 0.85rem; font-weight: 700; color: var(--sub); }
.demo-row input, .demo-row select {
  flex: 1; min-width: 220px; padding: 10px 12px; border: 1.5px solid var(--card-line);
  border-radius: 8px; font-size: 0.9rem; font-family: inherit;
}
.demo-log {
  background: #14161f; color: #9fe8af; border-radius: 10px; padding: 12px 14px;
  font-family: Consolas, monospace; font-size: 0.78rem; line-height: 1.6;
  max-height: 220px; overflow-y: auto; white-space: pre-wrap; word-break: break-all;
}
.demo-log .err { color: #ff8f8f; }
.player-frame { background: #000; border-radius: 10px; overflow: hidden; margin: 14px 0; }
.player-frame video { width: 100%; display: block; aspect-ratio: 16/9; }
.deeplink-box {
  background: #f8fafc; border: 1.5px solid var(--card-line); border-radius: 10px;
  padding: 12px 14px; font-family: Consolas, monospace; font-size: 0.78rem;
  word-break: break-all; margin: 12px 0; max-height: 140px; overflow-y: auto;
}
.channel-list { display: flex; flex-direction: column; gap: 10px; }
.channel-item { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--card-line); border-radius: 10px; padding: 14px; flex-wrap: wrap; }
.channel-item .st { flex: none; font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.channel-item .st.active { background: #fee2e2; color: #dc2626; }
.channel-item .st.idle { background: #f3f4f6; color: #6b7280; }
.channel-item .meta { flex: 1; min-width: 200px; }
.channel-item .meta b { display: block; }
.channel-item .meta span { font-size: 0.78rem; color: var(--sub); font-family: Consolas, monospace; }
