/* MEDIABROWSER 사이트 공용 디자인 시스템
   라이트 단일 테마(사용자 지정) · 글래스모피즘 · 절제된 스크롤 모션
   반경 체계: 버튼=필, 카드/패널=20px, 칩/입력=12px */

:root {
  --bg: #f5f7fc;
  --bg-deep: #e9edf8;
  --ink: #171a23;
  --muted: #5b6273;
  --line: rgba(23, 26, 35, 0.08);
  --accent: #2050f0;
  --accent-deep: #1740c8;
  --accent-soft: rgba(32, 80, 240, 0.09);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-brd: rgba(255, 255, 255, 0.72);
  --shadow-soft: 0 24px 60px -24px rgba(32, 60, 160, 0.18);
  --shadow-lift: 0 32px 80px -28px rgba(32, 60, 160, 0.28);
  --r-card: 20px;
  --r-chip: 12px;
  --nav-h: 68px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Wanted Sans Variable", "Wanted Sans", system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; vertical-align: -0.25em; }

/* ── 배경 오브(패럴랙스 레이어) ─────────────────────────────── */
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; }
.orb--a { width: 560px; height: 560px; left: -140px; top: -120px;
  background: radial-gradient(circle at 35% 35%, #c9d6ff, #eef1fb 70%); }
.orb--b { width: 480px; height: 480px; right: -120px; top: 160px;
  background: radial-gradient(circle at 40% 40%, #d8e4ff, #f0f3fc 70%); }
.orb--c { width: 380px; height: 380px; left: 34%; top: 560px;
  background: radial-gradient(circle at 50% 40%, #dfe9ff, #f4f6fd 72%); opacity: 0.45; }

/* 스크롤 패럴랙스: 지원 브라우저에서만, 모션 축소 설정이면 정지 */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .orb { animation: orb-drift linear both; animation-timeline: scroll(); }
    .orb--a { --drift: 180px; }
    .orb--b { --drift: -240px; }
    .orb--c { --drift: 120px; }
  }
}
@keyframes orb-drift { to { transform: translateY(var(--drift, 0px)); } }

/* ── 글래스 재질 ────────────────────────────────────────────── */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16)), var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-brd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), var(--shadow-soft);
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: rgba(255, 255, 255, 0.96); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ── 내비게이션 ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px)); height: var(--nav-h);
  display: flex; align-items: center; gap: 28px; padding: 0 22px;
  border-radius: 999px; z-index: 50;
}
.nav__brand {
  font-weight: 800; letter-spacing: 0.04em; font-size: 15px;
  color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 9px;
}
.nav__mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #4d79ff); color: #fff;
}
.nav__mark .icon { width: 16px; height: 16px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 0; white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s, background 0.18s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--primary {
  background: var(--accent); color: #fff; padding: 12px 22px; font-size: 15px;
  box-shadow: 0 10px 24px -10px rgba(32, 80, 240, 0.55);
}
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.6); color: var(--ink); padding: 12px 22px; font-size: 15px;
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: #fff; }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ── 공통 레이아웃 ──────────────────────────────────────────── */
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
section { position: relative; }
.section-pad { padding: 108px 0; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -0.02em; font-weight: 800; }
.sub { color: var(--muted); font-size: 17px; max-width: 58ch; }

/* 스크롤 등장 — JS 가 html 에 .js 를 붙였을 때만 숨김(no-JS 에서도 내용이 보이는 점진적 향상) */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } }

/* ── 히어로 ─────────────────────────────────────────────────── */
.hero { padding: calc(var(--nav-h) + 78px) 0 96px; min-height: 86dvh; display: flex; align-items: center; }
.hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); }
.hero .sub { margin-top: 22px; font-size: 18px; }
.hero__cta { display: flex; gap: 14px; margin-top: 34px; }
.hero__visual { position: relative; }
.hero__panel {
  border-radius: var(--r-card); padding: 14px;
  transform: rotate(1.8deg);
}
.hero__panel img {
  display: block; width: 100%; border-radius: 12px;
  box-shadow: 0 18px 44px -18px rgba(10, 16, 40, 0.45);
}
.hero__caption { margin-top: 12px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ── 벤토 ───────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: auto auto; gap: 20px; margin-top: 52px; }
.bento__cell { border-radius: var(--r-card); padding: 34px; position: relative; overflow: hidden; }
.bento__cell--wide { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px;
  background: linear-gradient(160deg, #1b2440 0%, #22346e 55%, #2050f0 130%); color: #fff; }
.bento__cell--wide h3, .bento__cell--wide p { color: #fff; }
.bento__cell--wide p { opacity: 0.82; }
.bento__wave { position: absolute; top: 30px; left: 34px; opacity: 0.9; }
.bento__wave .icon { width: 44px; height: 44px; color: #9db6ff; }
.bento__cell h3 { font-size: 21px; margin-bottom: 10px; }
.bento__cell p { color: var(--muted); font-size: 15.5px; }
.bento__chipline { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); color: #dfe8ff;
}

/* ── 기능 그리드(카드 없는 정리) ────────────────────────────── */
.featlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 64px; margin-top: 56px; }
.featlist__item { display: flex; gap: 16px; align-items: flex-start; }
.featlist__icon {
  width: 42px; height: 42px; flex: none; border-radius: var(--r-chip); display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.featlist__icon .icon { width: 21px; height: 21px; }
.featlist__item h3 { font-size: 17px; margin-bottom: 4px; }
.featlist__item p { color: var(--muted); font-size: 15px; }

/* ── 모바일 섹션 ────────────────────────────────────────────── */
.mobile__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.mobile__stage { position: relative; min-height: 320px; }
.mobile__card { position: absolute; border-radius: var(--r-card); display: flex; align-items: center; gap: 14px; padding: 20px 24px; }
.mobile__card .icon { width: 30px; height: 30px; color: var(--accent); }
.mobile__card strong { display: block; font-size: 15.5px; }
.mobile__card span { font-size: 13.5px; color: var(--muted); }
.mobile__card--a { top: 8%; left: 4%; transform: rotate(-2.4deg); }
.mobile__card--b { top: 40%; right: 6%; transform: rotate(1.6deg); }
.mobile__card--c { bottom: 4%; left: 14%; transform: rotate(-1deg); }

/* ── 플랫폼 밴드 ────────────────────────────────────────────── */
.band { border-radius: 28px; padding: 64px 56px; text-align: center; }
.band h2 { font-size: clamp(28px, 3.6vw, 40px); }
.band .sub { margin: 16px auto 0; }
.band__oses { display: flex; gap: 34px; justify-content: center; margin: 36px 0 40px; color: var(--muted); }
.band__os { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.band__os .icon { width: 34px; height: 34px; color: var(--ink); }
.band__os--soon { opacity: 0.55; }

/* ── 푸터 ───────────────────────────────────────────────────── */
footer { padding: 48px 0 60px; }
.footer__row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 32px; }
.footer__row a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.footer__row a:hover { color: var(--ink); }
.footer__brand { font-weight: 800; letter-spacing: 0.04em; font-size: 14px; }
.footer__copy { margin-left: auto; color: var(--muted); font-size: 13.5px; }

/* ── 릴리스 페이지 ──────────────────────────────────────────── */
.pagehead { padding: calc(var(--nav-h) + 74px) 0 30px; }
.pagehead h1 { font-size: clamp(32px, 4.2vw, 48px); }
.pagehead .sub { margin-top: 16px; }

.rel-layout { display: grid; grid-template-columns: 280px 1fr; gap: 44px; align-items: start; padding-bottom: 110px; }
.rel-rail { position: sticky; top: calc(var(--nav-h) + 30px); display: flex; flex-direction: column; gap: 10px; }
.rel-rail__box { border-radius: var(--r-card); padding: 22px; }
.rel-rail__box h3 { font-size: 15px; margin-bottom: 12px; }
.rel-rail__os { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-chip);
  color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.rel-rail__os:hover { background: rgba(255, 255, 255, 0.75); }
.rel-rail__os .icon { width: 19px; height: 19px; color: var(--muted); }
.rel-rail__note { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.rel-rail__note a { color: var(--accent); font-weight: 700; text-decoration: none; }

.rel-featured { border-radius: 24px; padding: 40px; }
.rel-featured__meta { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rel-featured__tag { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.rel-featured__date { color: var(--muted); font-size: 14.5px; }
.rel-pill { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
  background: var(--accent-soft); color: var(--accent); }
.rel-pill--pre { background: rgba(214, 122, 20, 0.12); color: #a35a00; }
.rel-featured__notes { margin-top: 18px; color: var(--muted); font-size: 15px; white-space: pre-line; max-width: 70ch; }

.dl-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.dl-group { border-radius: var(--r-card); background: rgba(255, 255, 255, 0.66); border: 1px solid var(--line); padding: 22px; }
.dl-group__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-weight: 800; font-size: 16px; }
.dl-group__head .icon { width: 21px; height: 21px; color: var(--ink); }
.dl-group__sub { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.dl-asset { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.dl-asset + .dl-asset { border-top: 1px solid var(--line); }
.dl-asset__name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.dl-asset__size { color: var(--muted); font-size: 12.5px; }
.dl-asset .btn { flex: none; }
.dl-reco { outline: 2px solid var(--accent); outline-offset: 2px; }

.rel-old { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.rel-old details { border-radius: var(--r-card); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); }
.rel-old summary { cursor: pointer; padding: 18px 22px; font-weight: 700; display: flex; align-items: center; gap: 12px; list-style: none; }
.rel-old summary::-webkit-details-marker { display: none; }
.rel-old summary .rel-featured__date { margin-left: auto; }
.rel-old__body { padding: 0 22px 20px; }

.rel-empty { border-radius: 24px; padding: 72px 40px; text-align: center; }
.rel-empty .icon { width: 44px; height: 44px; color: var(--accent); }
.rel-empty h2 { font-size: 24px; margin: 18px 0 10px; }
.rel-empty p { color: var(--muted); max-width: 48ch; margin: 0 auto; }

/* ── 가이드 페이지 ──────────────────────────────────────────── */
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: 52px; align-items: start; padding-bottom: 110px; }
.guide-toc { position: sticky; top: calc(var(--nav-h) + 30px); border-radius: var(--r-card); padding: 22px; }
.guide-toc a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.guide-toc a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.75); }
.guide-step { padding: 44px 0; border-top: 1px solid var(--line); }
.guide-step:first-of-type { border-top: 0; padding-top: 10px; }
.guide-step h2 { font-size: 24px; display: flex; align-items: center; gap: 13px; }
.guide-step h2 .featlist__icon { width: 38px; height: 38px; }
.guide-step > p { color: var(--muted); margin-top: 14px; max-width: 66ch; }
.guide-step ul { margin: 16px 0 0 2px; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.guide-step li { display: flex; gap: 10px; color: var(--ink); font-size: 15px; }
.guide-step li .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 4px; }
.guide-step li span b { font-weight: 750; }
.guide-media { margin-top: 24px; border-radius: var(--r-card); padding: 12px; max-width: 460px; }
.guide-media img { display: block; width: 100%; border-radius: 12px; }
.guide-media figcaption { font-size: 13px; color: var(--muted); padding: 10px 6px 2px; }
.guide-faq { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.guide-faq details { border: 1px solid var(--line); border-radius: var(--r-chip); background: rgba(255, 255, 255, 0.55); }
.guide-faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: 15px; list-style: none; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq p { padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; }

/* ── 모바일 반응형 ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav { gap: 14px; }
  .nav__links { display: none; }
  .hero { min-height: auto; padding-bottom: 64px; }
  .hero__grid, .mobile__grid { grid-template-columns: 1fr; gap: 40px; }
  .bento { grid-template-columns: 1fr; }
  .bento__cell--wide { min-height: 300px; }
  .featlist { grid-template-columns: 1fr; gap: 28px; }
  .section-pad { padding: 72px 0; }
  .band { padding: 48px 24px; }
  .band__oses { gap: 22px; flex-wrap: wrap; }
  .rel-layout, .guide-layout { grid-template-columns: 1fr; gap: 28px; }
  .rel-rail, .guide-toc { position: static; }
  .dl-groups { grid-template-columns: 1fr; }
  .mobile__stage { min-height: 380px; }
  .rel-featured { padding: 26px; }
}
