:root {
  --grad-a: #7c3aed;
  --grad-b: #2563eb;
  --ink: #1c1c2e;
  --muted: #5b5b6e;
  --bg: #f6f7fb;
  --card: #ffffff;
  --line: #e7e8f0;
  --radius: 16px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
               "Pretendard", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

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

/* 언어 토글 */
body[data-lang="en"] .ko { display: none; }
body[data-lang="ko"] .en { display: none; }

.header {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff;
  padding: 56px 20px 48px;
  text-align: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
  font-size: 22px;
}
.header h1 { font-size: clamp(28px, 6vw, 46px); margin: 18px 0 8px; letter-spacing: -0.03em; }
.header p { margin: 0 auto; max-width: 620px; opacity: .92; font-size: 18px; }

.langbar {
  display: flex; gap: 6px; justify-content: center; margin-bottom: 22px;
}
.langbar button {
  border: 1px solid rgba(255,255,255,.45);
  background: transparent; color: #fff;
  padding: 5px 14px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 600;
}
.langbar button.active { background: #fff; color: var(--grad-a); border-color: #fff; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.nav {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  padding: 18px; border-bottom: 1px solid var(--line); background: var(--card);
  position: sticky; top: 0; z-index: 10;
}
.nav a { font-weight: 600; color: var(--ink); }

.section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.section h2 { font-size: 24px; margin: 0 0 14px; letter-spacing: -0.02em; }
.section h3 { font-size: 18px; margin: 22px 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin: 14px 0;
}

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature .ico { font-size: 24px; }
.feature h4 { margin: 8px 0 4px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

ul.clean { padding-left: 20px; }
ul.clean li { margin: 6px 0; }

.cta {
  display: inline-block; margin-top: 18px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700;
}
.cta:hover { text-decoration: none; opacity: .94; }

.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 20px 50px; }
.footer a { color: var(--muted); }

.updated { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* 히어로 액션(다운로드 배지 + 보조 버튼) */
.hero-actions {
  display: flex; gap: 12px; justify-content: center; align-items: center;
  flex-wrap: wrap; margin-top: 26px;
}
.btn-ghost {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  font-weight: 700; color: #fff; border: 1px solid rgba(255,255,255,.55);
}
.btn-ghost:hover { text-decoration: none; background: rgba(255,255,255,.12); }

/* App Store 다운로드 배지 */
.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  padding: 9px 18px; border-radius: 14px; line-height: 1;
}
.appstore:hover { text-decoration: none; opacity: .92; }
.appstore svg { width: 24px; height: 28px; flex: 0 0 auto; }
.appstore .t { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.appstore .t small { font-size: 10px; opacity: .92; letter-spacing: .01em; }
.appstore .t b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }

/* 신뢰 칩 */
.trust { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.trust .pill {
  font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  padding: 5px 12px; border-radius: 999px;
}

/* How it works 단계 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.step .n {
  width: 30px; height: 30px; border-radius: 999px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
}
.step h4 { margin: 12px 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* 하단 다운로드 CTA 밴드 */
.cta-band {
  margin: 34px 0 6px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: #fff; border-radius: 20px; padding: 34px 24px; text-align: center;
}
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: 24px; letter-spacing: -0.02em; }
.cta-band p { margin: 0 auto 20px; max-width: 520px; opacity: .92; }

/* sticky 내비가 앵커 점프 시 제목을 가리지 않도록 */
.section[id], .cta-band[id] { scroll-margin-top: 72px; }

/* 스크린샷 갤러리 */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto; display: block;
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(28,28,46,.16);
}
@media (max-width: 560px) {
  .shots {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 22px -20px 0; padding: 0 20px 8px;
    -webkit-overflow-scrolling: touch;
  }
  .shot { scroll-snap-align: center; }
}

/* 제목 줄바꿈 균형 — 모바일에서 외톨이 단어 방지 */
.header h1, .section h2, .cta-band h2, .feature h4 { text-wrap: balance; }

/* 모바일 폴리시 — 여백 정리 + 탭 타깃 확대(Apple HIG 44px 권장) */
@media (max-width: 560px) {
  .header { padding: 44px 18px 38px; }
  .header p { font-size: 16.5px; }
  .section { padding: 30px 0; }
  .section h2 { font-size: 22px; }
  .nav { padding: 12px 14px; gap: 8px; }
  .nav a { padding: 6px 10px; }
  .langbar button { padding: 8px 16px; }
}
