/* DreamAX Desktop 다운로드 페이지 — WDS(wever-front) 라이트 토큰 재현.
   본서비스와 동일한 웜 뉴트럴 라이트 고정 테마(유채 악센트 없음, CTA는 반전 뉴트럴). */

@font-face {
  font-family: "Pretendard Variable";
  src: url("assets/fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f4f1;
  --surface: #ede8e4;
  --container: #e6dfd8;
  --surface-high: #fbf9f8;
  --on: #1d1b20;
  --on-variant: #49454f;
  --outline: #9c9a97;
  --outline-weak: #c6c4c0;
  --cta-bg: #21201f;
  --cta-on: #fbf9f8;
  --mauve: #8e6b6c;
  --error: #dc362e;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--on);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all; /* 한국어 어절 단위 줄바꿈 */
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: 2px;
  border-radius: 4px;
}

.mono {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
}

.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--on-variant); font-weight: 450; }

/* ---------- 헤더 ---------- */

.site-header {
  border-bottom: 1px solid var(--container);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-block;
  width: 158px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("assets/dreamax_logo_v001.svg") no-repeat left center / contain;
  mask: url("assets/dreamax_logo_v001.svg") no-repeat left center / contain;
  color: var(--on);
}

.header-link {
  font-size: 14px;
  font-weight: 550;
  color: var(--on-variant);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.header-link:hover { background: var(--surface); color: var(--on); }

/* ---------- 히어로 ---------- */

.hero {
  padding: 88px 24px 72px;
  text-align: center;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(29, 27, 32, 0.16);
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mauve);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.4vw, 54px);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.hero .sub {
  margin: 0 auto 40px;
  max-width: 560px;
  font-size: 17px;
  color: var(--on-variant);
  text-wrap: pretty;
}

.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.hero-caption {
  margin: 0;
  font-size: 14px;
  color: var(--on-variant);
  font-variant-numeric: tabular-nums;
}

.hero-alt { margin: 0; font-size: 14px; color: var(--on-variant); }
.hero-alt a { color: var(--on); font-weight: 550; }

/* ---------- 버튼 (WDS: md 40/r10 · xl 60/r16) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn-cta {
  height: 60px;
  padding: 0 40px;
  border-radius: var(--r-lg);
  background: var(--cta-bg);
  color: var(--cta-on);
  font-size: 17px;
  box-shadow: 0 10px 24px rgba(29, 27, 32, 0.22);
}

.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(29, 27, 32, 0.26); }
.btn-cta:active { transform: translateY(0); }

.btn-sm {
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--container);
  color: var(--on);
  font-size: 14px;
}

.btn-sm:hover { background: var(--outline-weak); }

/* ---------- 섹션 공통 ---------- */

main section { padding: 40px 24px; }

main section h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.section-sub {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--on-variant);
  max-width: 640px;
}

.card {
  background: var(--surface-high);
  border: 1px solid var(--container);
  border-radius: var(--r-xl);
  overflow: hidden;
}

/* ---------- 다운로드 표 ---------- */

.table-scroll { overflow-x: auto; }

.dl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}

.dl-table th[scope="col"] {
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-variant);
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--container);
}

.dl-table td, .dl-table th[scope="row"] {
  padding: 14px 20px;
  text-align: left;
  font-weight: 450;
  vertical-align: middle;
}

.dl-table th[scope="row"] { font-weight: 600; white-space: nowrap; }

.dl-table tbody tr + tr { border-top: 1px solid var(--surface); }

.dl-table tr.hl { background: var(--surface); }
.dl-table tr.hl th[scope="row"]::after {
  content: "감지됨";
  margin-left: 10px;
  font-size: 11px;
  font-weight: 650;
  color: var(--mauve);
  border: 1px solid color-mix(in srgb, var(--mauve) 40%, transparent);
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: 1px;
}

.dl-table .act { text-align: right; }

/* ---------- 설치 안내 탭 ---------- */

.tabs {
  display: none;
  width: max-content;
  gap: 4px;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 20px;
}

.js .tabs { display: flex; }

.tab {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--on-variant);
  padding: 8px 18px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.tab:hover { color: var(--on); }

.tab.active {
  background: var(--surface-high);
  color: var(--on);
  box-shadow: 0 1px 4px rgba(29, 27, 32, 0.1);
}

.os-panel {
  background: var(--surface-high);
  border: 1px solid var(--container);
  border-radius: var(--r-lg);
  padding: 24px 28px;
}

.os-panel + .os-panel { margin-top: 16px; }

.js .os-panel { display: none; }
.js .os-panel.active { display: block; }

.os-panel h3 { margin: 0 0 12px; font-size: 17px; font-weight: 650; }
.js .os-panel h3 { display: none; }

.os-panel ol { margin: 0; padding-left: 22px; }
.os-panel ol li { margin: 8px 0; }
.os-panel .fine { font-size: 13.5px; color: var(--on-variant); margin: 14px 0 0; }

kbd {
  font-family: inherit;
  font-size: 0.88em;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--outline-weak);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 7px;
  white-space: nowrap;
}

pre.cmd {
  background: var(--cta-bg);
  color: var(--cta-on);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  overflow-x: auto;
  margin: 12px 0;
}

/* ---------- 시스템 요구사항 ---------- */

.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.req-card {
  background: var(--surface-high);
  border: 1px solid var(--container);
  border-radius: var(--r-lg);
  padding: 20px 22px;
}

.req-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 650; }
.req-card p { margin: 0; font-size: 14px; color: var(--on-variant); }

/* ---------- 릴리스 노트 ---------- */

.notes-card { padding: 8px 28px 24px; }

.notes-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 4px;
  letter-spacing: -0.01em;
}

.notes-card h3 .date {
  font-size: 13px;
  font-weight: 500;
  color: var(--on-variant);
  margin-left: 10px;
  font-variant-numeric: tabular-nums;
}

.notes-card h4 {
  font-size: 14px;
  font-weight: 650;
  color: var(--on-variant);
  margin: 14px 0 4px;
}

.notes-card ul { margin: 6px 0; padding-left: 20px; }
.notes-card li { margin: 4px 0; font-size: 14.5px; }
.notes-card p { font-size: 14.5px; margin: 6px 0; }
.notes-card code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--surface);
  border-radius: 5px;
  padding: 1px 5px;
}

/* ---------- 푸터 ---------- */

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--container);
  padding: 36px 0 48px;
  font-size: 13.5px;
  color: var(--on-variant);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

.site-footer a { color: var(--on-variant); text-decoration: none; }
.site-footer a:hover { color: var(--on); text-decoration: underline; }

@media (max-width: 640px) {
  .hero { padding: 56px 20px 48px; }
  .btn-cta { width: 100%; max-width: 360px; }
  main section { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tab, .header-link { transition: none; }
}
