/* SnapVu 홈페이지 — 다크 테마 전용 */

:root {
  color-scheme: dark;
  --bg: #1b1b1f;
  --bg-elevated: #222228;
  --bg-card: #26262c;
  --bg-hero: linear-gradient(160deg, #1a2430 0%, #1b1b1f 50%, #1f2832 100%);
  --text: #e8e8ed;
  --text-muted: #9a9aa5;
  --border: #34343c;
  --accent: #0e639c;
  --accent-hover: #1574b0;
  --accent-pressed: #0b527f;
  --green: #16a34a;
  --red: #da3633;
  --gold: #e3b341;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --container: 1140px;
  --header-h: 64px;
  --shot-bg: #141418;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* ── 헤더 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.hero-logo-wrap {
  margin: 0 0 12px;
  line-height: 0;
}

.hero-logo {
  height: clamp(44px, 9vw, 58px);
  width: auto;
}

.why-story { margin-bottom: 16px; }

.download-lead {
  margin: 0 0 8px;
  color: var(--text-muted);
  max-width: 42ch;
}

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

/* ── 버튼 ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-primary:active { background: var(--accent-pressed); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--accent); color: var(--text); }

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-green:hover { background: #15803d; color: #fff; }

/* ── Hero ── */
.hero {
  min-height: calc(100svh - var(--header-h));
  max-height: 900px;
  display: flex;
  align-items: center;
  background: var(--bg-hero);
  padding: 48px 0 64px;
}

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

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-slogan {
  margin: 0 0 24px;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-version {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
}

.hero-visual img,
.hero-visual svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--shot-bg);
}

/* ── 섹션 공통 ── */
section {
  padding: 72px 0;
}

section:nth-child(even) {
  background: color-mix(in srgb, var(--bg-elevated) 50%, var(--bg));
}

.section-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
}

.section-desc {
  margin: 0 0 40px;
  color: var(--text-muted);
  max-width: 60ch;
}

/* ── 카드 그리드 ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ── 기능 소개 (좌우) ── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-media { order: 1; }

.feature-text h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.feature-text .why {
  margin: 0 0 16px;
  color: var(--text-muted);
  max-width: 42ch;
}

.feature-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--text);
}

.feature-list li { margin-bottom: 6px; }

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
}

.feature-media img,
.feature-media svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--shot-bg);
}

/* ── 갤러리 ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--shot-bg);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--shot-bg);
}

.gallery-item figcaption {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-card);
}

/* ── 타임라인 ── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

.step {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.step h4 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

/* ── 비교표 (데스크탑) ── */
.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.compare-table th:first-child,
.compare-table td:first-child { text-align: left; }

.compare-table thead th {
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-card));
  font-weight: 600;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table .highlight {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-weight: 600;
}

.mark-yes { color: var(--green); font-weight: 700; }
.mark-partial { color: var(--gold); font-weight: 600; }
.mark-no { color: var(--red); font-weight: 600; }

/* ── 비교 카드 (모바일) ── */
.compare-cards { display: none; }

.compare-card {
  padding: 20px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare-card h4 { margin: 0 0 12px; }

.compare-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  margin: 0;
  font-size: 0.9rem;
}

.compare-card dt { color: var(--text-muted); }
.compare-card dd { margin: 0; text-align: right; }

/* ── 다운로드 ── */
.download-section {
  background: color-mix(in srgb, var(--accent) 10%, var(--bg)) !important;
  border-block: 1px solid var(--border);
}

.download-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.download-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin: 20px 0 0;
  font-size: 0.9rem;
}

.download-meta dt { color: var(--text-muted); margin-bottom: 2px; }
.download-meta dd { margin: 0; font-weight: 500; }

.download-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-width: 200px;
}

/* ── 업데이트 아코디언 ── */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.accordion-item { border-bottom: 1px solid var(--border); background: var(--bg-card); }
.accordion-item:last-child { border-bottom: none; }

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 14px 20px;
  border: none;
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.accordion-trigger:hover { background: color-mix(in srgb, var(--accent) 6%, var(--bg-card)); }

.accordion-trigger::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.accordion-item.open .accordion-trigger::after {
  content: "−";
}

.accordion-panel {
  display: none;
  padding: 0 20px 16px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.95rem;
  overflow: hidden;
}

.accordion-item.open .accordion-panel {
  display: block;
  padding-top: 4px;
}

.accordion-panel p,
.accordion-panel ul {
  margin: 0;
}

.accordion-panel ul { padding-left: 1.2em; }

.release-note-md {
  line-height: 1.55;
  word-break: break-word;
}
.release-note-md p { margin: 0; }
.release-note-md ul { margin: 0; padding-left: 1.2em; }
.release-note-md li { margin: 0; }
.release-note-md h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.65em 0 0.2em;
  color: inherit;
}
.release-note-md h2:first-child { margin-top: 0; }

/* ── FAQ ── */
.faq-list .accordion-trigger { font-weight: 500; }

/* ── 신뢰 / 왜 만들었는가 ── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.trust-item {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-item h4 { margin: 0 0 8px; font-size: 1rem; }
.trust-item p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

.placeholder-note {
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, var(--bg-card));
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 24px;
}

/* ── 푸터 ── */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer a { margin: 0 12px; }

/* ── 반응형 ── */
@media (max-width: 768px) {
  .hero-grid,
  .feature-row,
  .download-box {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-media { order: unset; }

  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }

  .compare-table-wrap { display: none; }
  .compare-cards { display: block; }

  .download-box { padding: 24px; }
  .download-meta { grid-template-columns: 1fr; }
  .download-cta { min-width: unset; }

  section { padding: 56px 0; }
  .hero { min-height: auto; padding: 40px 0 56px; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
