:root {
  --ink: #241f3d;
  --ink-soft: #5b5478;
  --purple: #7c6df0;
  --purple-dark: #5d4de0;
  --lilac: #f1edff;
  --cream: #fffaf2;
  --yellow: #ffd166;
  --pink: #ff9ec4;
  --card: #ffffff;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(90, 70, 200, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  word-break: keep-all;
}

a { color: var(--purple-dark); }

.wrap { width: min(1040px, 92vw); margin: 0 auto; }

/* --- hero --- */

.hero {
  position: relative;
  padding: 56px 0 72px;
  background:
    radial-gradient(900px 420px at 15% -10%, #e9e2ff 0%, transparent 60%),
    radial-gradient(700px 380px at 90% 0%, #ffeccc 0%, transparent 55%);
  overflow: hidden;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
}

.nav img { width: 34px; height: 34px; border-radius: 9px; }
.nav b { font-size: 19px; letter-spacing: -.2px; }
.nav .spacer { flex: 1; }

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
  padding: 7px 13px;
  border-radius: 999px;
}

.nav a:hover { background: #fff; color: var(--purple-dark); }

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

.hero h1 {
  font-size: clamp(30px, 4.6vw, 47px);
  line-height: 1.28;
  margin: 0 0 18px;
  letter-spacing: -1px;
}

.hero h1 .hl {
  background: linear-gradient(180deg, transparent 62%, #ffe08a 62%);
  padding: 0 3px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 30px;
}

.mascot { width: 100%; max-width: 330px; margin: 0 auto; display: block; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-13px) rotate(1.5deg); }
}

.mascot { animation: bob 4.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .mascot { animation: none; }
}

/* --- download --- */

.dl-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid #efe9ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 22px;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}

.btn:hover { background: var(--purple-dark); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sub {
  display: block;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13.5px;
  margin-top: 10px;
}

.others {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e7e0fb;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.others a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--lilac);
  padding: 8px 14px;
  border-radius: 999px;
}

.others a:hover { background: #e4dcff; color: var(--purple-dark); }

/* --- sections --- */

section { padding: 68px 0; }

section h2 {
  font-size: clamp(24px, 3.2vw, 33px);
  margin: 0 0 10px;
  letter-spacing: -.6px;
}

section .sub { color: var(--ink-soft); margin: 0 0 36px; font-size: 17px; }

.alt { background: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid #f0ebff;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 4px 16px rgba(90, 70, 200, .06);
}

.alt .card { background: var(--cream); }

.card .emoji {
  font-size: 30px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--lilac);
  margin-bottom: 14px;
}

.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

.shot {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid #ece5ff;
  box-shadow: var(--shadow);
  display: block;
}

.safe-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.safe-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid #f0ebff;
  border-radius: 14px;
  padding: 16px 18px;
}

.safe-list .tick {
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}

.safe-list b { display: block; }
.safe-list span.d { color: var(--ink-soft); font-size: 15px; }

details {
  background: var(--card);
  border: 1px solid #f0ebff;
  border-radius: 14px;
  padding: 4px 20px;
  margin-bottom: 12px;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
}

details summary::-webkit-details-marker { display: none; }
details summary::before { content: "＋ "; color: var(--purple); font-weight: 800; }
details[open] summary::before { content: "− "; }
details .body { padding-bottom: 16px; color: var(--ink-soft); }

code {
  background: var(--lilac);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--purple-dark);
}

.note {
  background: #fff6e0;
  border: 1px solid #ffe3a8;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 15px;
  color: #6b5626;
}

footer {
  padding: 44px 0 60px;
  background: #2b2350;
  color: #bdb4e8;
  font-size: 15px;
}

footer a { color: #fff; }

footer .foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .mascot { max-width: 230px; }
  .cards { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
