/**
 * apps.jqdom.com - Software Archive Design System
 * Inspired by Linear, GitHub Releases, Raycast & Apple Developer portals.
 * Clean, restrained, highly legible and accessible.
 */

:root {
  /* 라이트 테마 팔레트 (Neutral Slate / Zinc) */
  --font-sans: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --bg-canvas: #fafafa;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f4f4f5;
  --bg-surface-hover: #f0f0f2;
  --bg-badge: #f1f5f9;

  --border-subtle: #e4e4e7;
  --border-muted: #d4d4d8;
  --border-focus: #18181b;

  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #71717a;
  --text-on-accent: #ffffff;

  --accent-primary: #09090b;
  --accent-hover: #27272a;
  --accent-subtle: #f4f4f5;

  --badge-blue-bg: #eff6ff;
  --badge-blue-text: #1d4ed8;
  --badge-blue-border: #bfdbfe;

  --badge-green-bg: #f0fdf4;
  --badge-green-text: #15803d;
  --badge-green-border: #bbf7d0;

  --badge-amber-bg: #fffbeb;
  --badge-amber-text: #b45309;
  --badge-amber-border: #fde68a;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  --header-height: 60px;
  --max-width: 1160px;
}

[data-theme="dark"] {
  /* 다크 테마 팔레트 (Zinc / Obsidian) */
  --bg-canvas: #09090b;
  --bg-surface: #121215;
  --bg-surface-subtle: #18181b;
  --bg-surface-hover: #202024;
  --bg-badge: #27272a;

  --border-subtle: #27272a;
  --border-muted: #3f3f46;
  --border-focus: #f4f4f5;

  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-on-accent: #09090b;

  --accent-primary: #f4f4f5;
  --accent-hover: #e4e4e7;
  --accent-subtle: #18181b;

  --badge-blue-bg: #1e293b;
  --badge-blue-text: #93c5fd;
  --badge-blue-border: #334155;

  --badge-green-bg: #064e3b33;
  --badge-green-text: #86efac;
  --badge-green-border: #065f46;

  --badge-amber-bg: #451a0333;
  --badge-amber-text: #fcd34d;
  --badge-amber-border: #78350f;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.4);
}

/* 기본 리셋 & 타이포그래피 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

/* 접근성 초점 표시 */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* 유틸리티 컨테이너 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* -------------------------------------------
   4.1 Header 고정 헤더
------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: var(--bg-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.brand-domain {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-left: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-subtle);
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-muted);
  background: var(--bg-surface-subtle);
}

.mobile-menu-btn {
  display: none;
}

/* -------------------------------------------
   4.2 Hero 섹션
------------------------------------------- */
.hero-section {
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 4px 10px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.hero-title {
  font-size: clamp(32px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.hero-visual-frame {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-subtle);
}

.hero-visual-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-muted);
}

.hero-visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* -------------------------------------------
   버튼 시스템
------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--border-muted);
}

.btn-subtle {
  background: transparent;
  color: var(--text-secondary);
}

.btn-subtle:hover {
  color: var(--text-primary);
  background: var(--bg-surface-subtle);
}

.btn-sm {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

/* -------------------------------------------
   섹션 공통 규격
------------------------------------------- */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* -------------------------------------------
   4.3 대표 앱 (Featured Apps)
------------------------------------------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.featured-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
  border-color: var(--border-muted);
  box-shadow: var(--shadow-sm);
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
}

.app-badge.blue {
  background: var(--badge-blue-bg);
  color: var(--badge-blue-text);
  border-color: var(--badge-blue-border);
}

.app-badge.green {
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
  border-color: var(--badge-green-border);
}

.featured-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-icon img, .app-icon svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.featured-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.featured-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.featured-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 12px 16px;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-md);
}

.featured-spec-item strong {
  color: var(--text-primary);
  font-weight: 600;
  margin-right: 4px;
}

.featured-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.featured-preview {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.featured-preview img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.featured-card:hover .featured-preview img {
  transform: scale(1.01);
}

/* -------------------------------------------
   4.4 전체 앱 카탈로그 & 필터
------------------------------------------- */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 400px;
}

.search-input {
  width: 100%;
  padding: 9px 12px 9px 38px;
  font-size: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: border-color 0.15s ease;
}

.search-input:focus {
  border-color: var(--border-focus);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-primary);
}

.filter-chip.active {
  background: var(--accent-primary);
  color: var(--text-on-accent);
  border-color: var(--accent-primary);
}

.catalog-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.reset-filter-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
}

/* 카탈로그 그리드 */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.app-catalog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-catalog-card:hover {
  border-color: var(--border-muted);
  box-shadow: var(--shadow-sm);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.card-titles {
  flex: 1;
}

.card-title-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.card-version-tag {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  margin-top: 2px;
}

.card-short-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.card-platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.platform-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.card-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

/* -------------------------------------------
   4.5 최근 업데이트 (Changelog)
------------------------------------------- */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.changelog-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.changelog-aside {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.changelog-app-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.changelog-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.changelog-version {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.changelog-date {
  font-size: 13px;
  color: var(--text-tertiary);
}

.changelog-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.changelog-bullets li {
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 18px;
}

.changelog-bullets li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--text-tertiary);
}

/* -------------------------------------------
   4.6 개발자 소개 (Developer Profile)
------------------------------------------- */
.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: flex-start;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.profile-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.profile-role {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.profile-bio {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 720px;
}

.profile-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.link-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.link-item:hover {
  color: var(--text-primary);
}

/* -------------------------------------------
   4.7 후원 안내 (Sponsor)
------------------------------------------- */
.sponsor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.sponsor-content {
  max-width: 640px;
}

.sponsor-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.sponsor-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.sponsor-channels {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* -------------------------------------------
   4.8 Footer
------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-tertiary);
  max-width: 320px;
}

.footer-col h5 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 12px;
}

/* -------------------------------------------
   5. 앱 상세 페이지 (App Detail Layout)
------------------------------------------- */
.detail-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.breadcrumbs a:hover {
  color: var(--text-primary);
}

.detail-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.detail-app-identity {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.detail-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.detail-icon img, .detail-icon svg {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.detail-name {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.detail-short-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 650px;
}

.detail-meta-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.detail-body-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 40px 0;
  align-items: start;
}

/* 본문 섹션들 */
.detail-section {
  margin-bottom: 48px;
}

.detail-section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.detail-long-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-line;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}

.screenshot-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-caption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-subtle);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.feature-check {
  color: #10b981;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}

.spec-table th, .spec-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-table th {
  width: 140px;
  color: var(--text-secondary);
  font-weight: 600;
  background: var(--bg-surface-subtle);
}

.spec-table td {
  color: var(--text-primary);
}

/* 다운로드 사이드바 패널 */
.download-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.download-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.download-target-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  background: var(--bg-surface);
  transition: border-color 0.15s ease;
}

.download-target-card.recommended {
  border-color: var(--border-focus);
  background: var(--bg-surface-subtle);
}

.target-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.target-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.target-meta {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.sha-box {
  margin-top: 12px;
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  word-break: break-all;
}

.sha-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-secondary);
}

.copy-hash-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.copy-hash-btn:hover {
  color: var(--text-primary);
}

.trust-notice {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-tertiary);
}

.trust-notice strong {
  color: var(--text-secondary);
}

/* -------------------------------------------
   모바일 내비게이션 드로어
------------------------------------------- */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--bg-canvas);
  z-index: 40;
  padding: 24px;
  border-top: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-drawer-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* -------------------------------------------
   9. 반응형 미디어 쿼리
------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .featured-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail-body-grid {
    grid-template-columns: 1fr;
  }
  .download-panel {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-section {
    padding: 36px 0 28px;
  }
  .section {
    padding: 40px 0;
  }
  .changelog-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .profile-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .sponsor-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* prefers-reduced-motion 준수 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
