:root {
  --canvas: #ffffff;
  --surface: #fafafa;
  --surface-strong: #f2f3f5;
  --line: #e5e6e9;
  --ink: #30353c;
  --muted: #747b85;
  --dim: #9198a1;
  --accent: #ad584a;
  --accent-soft: #fff0ec;
  --accent-light: #ed9788;
  --success: #687e72;
  --max-width: 1184px;
  --content-width: 760px;
  --radius: 8px;
  --font: "Pretendard", "Noto Sans KR", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
code { font-family: Consolas, "Courier New", monospace; font-size: .88em; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: #fff;
  background: var(--accent);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(229, 230, 233, .92);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.brand-mark { width: 26px; height: 26px; display: block; }
.site-nav { margin-left: auto; display: flex; gap: 28px; }
.site-nav a, .text-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}
.site-nav a:hover, .text-link:hover { color: var(--ink); text-decoration-color: currentColor; }

.button {
  min-height: 44px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.button:hover { background: var(--accent-soft); }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { border-color: #954438; background: #954438; }
.button-small { min-height: 36px; padding: 6px 14px; }
.button:focus-visible, .site-nav a:focus-visible, .text-link:focus-visible, .brand:focus-visible {
  outline: 3px solid rgba(173, 88, 74, .28);
  outline-offset: 3px;
}

.hero {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: min(640px, calc(100vh - 64px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
}
.product-kicker { margin: 0 0 14px; color: var(--accent); font-size: 14px; font-weight: 700; }
.hero h1 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.2; font-weight: 700; word-break: keep-all; }
.hero-description { max-width: 460px; margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.7; word-break: keep-all; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.development-note { max-width: 460px; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; word-break: keep-all; }
.hero-facts { margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: 13px; list-style: none; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { width: 6px; height: 6px; border-radius: 50%; background: var(--success); content: ""; }
.hero-visual { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.hero-visual img { display: block; width: 100%; height: auto; max-height: calc(100vh - 160px); object-fit: cover; object-position: top left; }

.section { padding: 64px max(24px, calc((100% - var(--max-width)) / 2)); }
.section-title { margin: 0 0 32px; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.3; word-break: keep-all; }

.flow { border-top: 1px solid var(--line); background: var(--surface); }
.flow-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.flow-list img { display: block; width: 100%; height: 220px; margin-bottom: 16px; object-fit: cover; object-position: top left; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.flow-list h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; font-size: 18px; }
.flow-list h3 span { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-size: 12px; }
.flow-list p { margin: 0; color: var(--muted); font-size: 14px; word-break: keep-all; }

.feature-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 2px solid var(--ink); list-style: none; }
.feature-grid li { padding: 20px 16px 4px 0; }
.feature-grid h3 { margin: 0 0 4px; font-size: 17px; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.install { padding-top: 48px; padding-bottom: 48px; display: flex; align-items: center; justify-content: space-between; gap: 48px; background: var(--accent-soft); }
.install h2 { margin: 0 0 8px; font-size: 24px; }
.install-copy p { max-width: 640px; margin: 0; color: var(--muted); font-size: 14px; }
.install-copy code { color: var(--ink); }
.install-note { margin-top: 10px !important; }
.install-buttons { display: flex; flex-direction: column; gap: 10px; flex: none; }
.button-download { min-height: 52px; padding: 10px 28px; flex: none; }

.site-footer { width: min(calc(100% - 48px), var(--max-width)); min-height: 80px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .site-nav { gap: 4px; }
  .header-inner { gap: 16px; }
  .header-inner .button { margin-left: auto; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 32px; }
  .hero-visual img { max-height: 420px; }
  .flow-list { grid-template-columns: 1fr; }
  .flow-list li { display: grid; grid-template-columns: 200px 1fr; column-gap: 20px; align-items: center; }
  .flow-list img { grid-row: 1 / 3; height: 130px; margin: 0; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .install { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 560px) {
  .header-inner, .hero, .site-footer { width: min(calc(100% - 32px), var(--max-width)); }
  .header-inner { min-height: 56px; }
  .brand { font-size: 16px; }
  .header-inner .button { min-height: 34px; padding: 5px 10px; font-size: 12px; }
  .hero { padding: 32px 0; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .hero-actions .text-link { text-align: center; }
  .section { padding: 48px 20px; }
  .flow-list li { grid-template-columns: 1fr; }
  .flow-list img { grid-row: auto; height: 180px; margin-bottom: 14px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .button-download, .install-buttons { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* 페이지 이동은 모든 화면 폭에서 유지하고, 본문 목차는 별도 줄로 구분합니다. */
.header-inner { gap: 24px; }
.site-nav { gap: 8px; flex-wrap: wrap; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 12px; font-size: 16px; text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.page-nav { width: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 4px 8px; border-bottom: 1px solid var(--line); }
.page-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; font-size: 14px; color: var(--muted); text-decoration: none; }
.page-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.page-nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-actions .button-guide { min-height: 48px; padding: 12px 20px; font-size: 16px; color: var(--ink); border-color: var(--ink); }
section[id] { scroll-margin-top: 96px; }
@media (max-width: 760px) {
 .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 8px 0; }
 .header-inner .brand { grid-column: 1; grid-row: 1; }
 .header-inner > .button { grid-column: 2; grid-row: 1; margin-left: 0; }
 .site-nav { grid-column: 1 / -1; grid-row: 2; display: flex; margin-left: 0; gap: 4px; }
 .site-nav a { font-size: 16px; }
 .page-nav { width: min(calc(100% - 32px), var(--max-width)); }
 section[id] { scroll-margin-top: 144px; }
}

/* 나란한 주요 버튼은 글자·높이·안쪽 여백·너비를 같은 단계로 맞춥니다. */
.hero-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
.hero-actions .button { width: 100%; min-height: 48px; padding: 12px 20px; font-size: 16px; line-height: 1.5; }
@media (max-width: 560px) { .hero-actions { grid-template-columns: 1fr; } }

/* 긴 한국어 설명은 자연스럽게 감싸고, 주소나 긴 단어만 필요할 때 나눕니다. */
main :is(p, li), figcaption { text-wrap: pretty; overflow-wrap: anywhere; }
.hero h1, .section-title, .install h2 { text-wrap: balance; }
.install-copy p + p { margin-top: 12px; }
