:root {
  color-scheme: light;
  --bg: #fbf8fe;
  --alt: #f4eefb;
  --card: #ffffff;
  --text: #211a2c;
  --muted: #6b6277;
  --accent: #6c4ab6;
  --accent-2: #8d6ad9;
  --accent-soft: #ede5fa;
  --border: #e9e1f2;
  --hero-1: #2b1458;
  --hero-2: #4b2a8c;
  --hero-3: #6c4ab6;
  --shadow: 0 18px 50px rgba(50, 28, 90, .14);
  --shadow-sm: 0 2px 8px rgba(50, 28, 90, .06);
  --radius: 22px;
  --max: 1120px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #141019;
    --alt: #1b1522;
    --card: #211a2b;
    --text: #f1eaf8;
    --muted: #b7adc5;
    --accent: #cfbcff;
    --accent-2: #b79bea;
    --accent-soft: #2c2140;
    --border: #352a44;
    --shadow: 0 18px 50px rgba(0, 0, 0, .35);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(108, 74, 182, .28);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: .94rem;
  font-weight: 600;
  color: var(--muted);
}
.nav a {
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); border-bottom-color: var(--accent-2); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn-small { padding: 11px 16px; font-size: .88rem; }
.btn-primary {
  background: #fff;
  color: #4b2a8c;
  box-shadow: 0 10px 26px rgba(20, 8, 40, .22);
}
.btn-primary:hover { background: #f7f1ff; }
.btn-solid {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(108, 74, 182, .25);
}
.btn-solid:hover { background: #5b3aa3; }
.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .06);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }
.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .45);
  background: transparent;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(184, 150, 255, .45), transparent 60%),
    linear-gradient(145deg, var(--hero-1) 0%, var(--hero-2) 48%, var(--hero-3) 100%);
  padding: 76px 0 92px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .12);
}
.hero::before {
  width: 620px;
  height: 620px;
  right: -260px;
  top: -220px;
}
.hero::after {
  width: 420px;
  height: 420px;
  right: -160px;
  top: -120px;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 65%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero .eyebrow { color: #d9c7ff; }

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a7ffcf;
  box-shadow: 0 0 0 4px rgba(167, 255, 207, .16);
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.55rem, 5.2vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 800;
}
.hero h1 span { color: #e6d8ff; }

.hero .lead {
  margin: 0;
  max-width: 30em;
  font-size: 1.12rem;
  color: #e8e0f6;
}

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

.hero-note {
  margin: 0 0 20px;
  font-size: .86rem;
  color: #c9bce2;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.badges li {
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .07);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: #eee7fb;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}
.hero-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(205, 180, 255, .5);
  filter: blur(70px);
}
.device {
  position: relative;
  z-index: 1;
  width: min(300px, 72vw);
  border: 8px solid #150e22;
  border-radius: 40px;
  overflow: hidden;
  background: #150e22;
  box-shadow: 0 40px 80px rgba(8, 2, 20, .45), 0 0 0 1px rgba(255,255,255,.16);
  transform: rotate(1.8deg);
}
.device img { width: 100%; height: auto; }
.device-tag {
  position: absolute;
  z-index: 2;
  bottom: 26px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 10, 36, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: .78rem;
  font-weight: 700;
  color: #f3ecff;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.device-tag span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a7ffcf;
}

/* ── Strip ──────────────────────────────────────────────── */
.strip {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.strip ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.strip li {
  padding: 24px 22px;
  border-left: 1px solid var(--border);
}
.strip li:first-child { border-left: 0; padding-left: 0; }
.strip strong {
  display: block;
  font-size: .97rem;
  letter-spacing: -.01em;
}
.strip span {
  display: block;
  margin-top: 2px;
  font-size: .82rem;
  color: var(--muted);
}

/* ── Sections ───────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--alt); }
section[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ── Features ───────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: -.015em;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--accent);
  background: var(--accent-soft);
}
.icon svg { width: 22px; height: 22px; }

/* ── How / steps ────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.step-no {
  display: inline-block;
  margin-bottom: 14px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--accent);
}
.step h3 { margin: 0 0 6px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--muted); font-size: .88rem; }

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 30px;
  padding: 26px 28px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 18px;
}
.callout-icon {
  width: 38px;
  height: 38px;
  color: var(--accent);
}
.callout h3 { margin: 0 0 6px; font-size: 1.02rem; }
.callout p { margin: 0; color: var(--muted); font-size: .91rem; }
.callout strong { color: var(--text); }

/* ── Screens ────────────────────────────────────────────── */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.shot { margin: 0; }
.shot img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card);
}
.shot figcaption {
  margin-top: 14px;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
}

/* ── Privacy ────────────────────────────────────────────── */
.privacy-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.privacy-grid h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.035em; }
.muted { color: var(--muted); }
.check-list {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 9px 0;
  font-size: .94rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}
.text-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

.privacy-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.shield {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 12px;
}
.privacy-big {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.privacy-card .muted { font-size: .86rem; margin: 0; }
.privacy-card code, .checksum code { font-size: .82em; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { max-width: 820px; }
details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 18px 22px;
  margin-bottom: 10px;
}
details summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent);
}
details[open] summary::after { content: "–"; }
details p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .92rem;
}
details a { color: var(--accent); font-weight: 600; }

/* ── Download ───────────────────────────────────────────── */
.download-section { padding-top: 20px; }
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 46px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(190, 160, 255, .4), transparent 65%),
    linear-gradient(135deg, #2b1458, #5b3aa3 60%, #7b57c9);
  box-shadow: var(--shadow);
}
.download-card .eyebrow { color: #d9c7ff; margin-bottom: 8px; }
.download-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -.035em;
}
.download-card p { margin: 0; color: #d9cff0; font-size: .9rem; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.checksum {
  margin-top: 14px;
  padding: 16px 20px;
  font-size: .82rem;
  color: var(--muted);
}
.checksum code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--alt);
  border-radius: 8px;
  word-break: break-all;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
}
.checksum p { margin: 8px 0 0; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 28px;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
}
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { border-radius: 10px; }
.footer-brand strong { display: block; font-size: .98rem; }
.footer-brand p { margin: 0; color: var(--muted); font-size: .82rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  font-size: .85rem;
  color: var(--muted);
}
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .76rem;
}
.footer-meta p { margin: 0; }

/* ── Privacy page ───────────────────────────────────────── */
.prose {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 0 80px;
}
.prose h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -.035em;
}
.prose .meta { color: var(--muted); font-size: .86rem; margin: 0 0 28px; }
.prose h2 {
  margin: 42px 0 10px;
  font-size: 1.15rem;
  letter-spacing: -.015em;
}
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 1.25em; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); }
.prose code {
  background: var(--alt);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: .88em;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ── 404 ────────────────────────────────────────────────── */
.not-found {
  text-align: center;
  padding: 120px 24px 140px;
}
.not-found h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 12px; letter-spacing: -.04em; }
.not-found p { color: var(--muted); margin: 0 0 24px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual { min-height: 0; margin-top: 4px; }
  .device { width: min(280px, 70vw); }
  .device-tag { left: 50%; transform: translateX(-50%); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: 1fr; gap: 32px; }
  .download-card { flex-direction: column; align-items: flex-start; padding: 38px 32px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 20px; }
  .nav { display: none; }
  .header-inner { gap: 12px; }
  .brand { font-size: .95rem; }
  .brand img { width: 36px; height: 36px; }
  .header-inner > .btn { margin-left: auto; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3.1rem); }
  .hero .lead { font-size: 1.02rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .strip li { padding: 18px 16px; }
  .strip li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid var(--border); }
  .section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
  .callout { grid-template-columns: 1fr; }
  .callout-icon { width: 32px; height: 32px; }
  .download-card { padding: 32px 24px; }
  .download-actions { width: 100%; }
  .download-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .badges li { font-size: .72rem; padding: 5px 10px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .device { width: 240px; }
}

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

@media print {
  .site-header, .hero-visual, .download-section, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  .prose { padding: 0; }
}
