/* 브랜드 포털 — 프레임워크 없는 정적 스타일.
 * 브랜드 색은 빌드 시 <html style="--brand:..."> 로 주입되는 단일 변수만 사용한다. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #15181d;
  --text-sub: #5c6470;
  --line: #e4e7ec;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101318;
    --surface: #191d24;
    --text: #eef1f5;
    --text-sub: #9aa3b0;
    --line: #2a303a;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px clamp(16px, 5vw, 40px);
}
.site-header img { border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 17px; }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px 48px; }

/* ---- 중앙 WTS ---- */
.hero { text-align: center; padding: clamp(28px, 7vh, 64px) 0 36px; }
.hero h1 { font-size: clamp(26px, 5.2vw, 38px); line-height: 1.25; margin: 0 0 10px; letter-spacing: -0.02em; }
.hero-sub { color: var(--text-sub); margin: 0 0 26px; font-size: 15.5px; }
.cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 44px;
  border-radius: 999px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 35%, transparent);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 45%, transparent); }
.cta-sub { font-weight: 500; font-size: 12.5px; opacity: 0.85; }

/* ---- 다운로드 카드 ---- */
.downloads h2 { font-size: 15px; color: var(--text-sub); font-weight: 600; margin: 26px 0 14px; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card.primary-os { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-head h3 { margin: 0; font-size: 16.5px; }
.os-badge {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  color: var(--brand);
}
.meta { margin: 2px 0 0; font-size: 12.5px; color: var(--text-sub); }
.dl-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--brand);
  border: 1.5px solid color-mix(in srgb, var(--brand) 55%, transparent);
  border-radius: 10px;
  padding: 11px 0;
  transition: background 0.12s ease;
}
.dl-btn:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }

/* ---- 설치 안내 ---- */
.guide { border-top: 1px solid var(--line); padding-top: 10px; font-size: 13.5px; }
.guide summary { cursor: pointer; color: var(--text-sub); font-weight: 600; }
.guide ol { padding-left: 20px; margin: 10px 0 6px; display: grid; gap: 6px; }
.guide .note {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  color: var(--text-sub);
  font-size: 12.5px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  padding: 22px 16px 28px;
  border-top: 1px solid var(--line);
  color: var(--text-sub);
  font-size: 12.5px;
}
.site-footer a { color: inherit; }
