:root {
  --bg: #f6f2ff; --card: #ffffff; --ink: #1d1838; --subtle: #6f6a8a; --line: #e6e0f7;
  --primary: #6b54f5; --primary-soft: #ece8ff; --accent: #ff8fb1; --shadow: 0 10px 40px rgba(107, 84, 245, .12);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14112a; --card: #1e1a3a; --ink: #f3f0ff; --subtle: #a49fc4; --line: #302a58; --primary: #8f7dff; --primary-soft: #2b2458; --shadow: 0 10px 40px rgba(0,0,0,.35); }
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", system-ui, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

nav.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid transparent; }
nav.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: .2px; }
.brand img { width: 30px; height: 30px; }
nav.top .links { margin-left: auto; display: flex; gap: 6px; }
nav.top .links a { padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--subtle); }
nav.top .links a:hover { background: var(--primary-soft); color: var(--primary); }
@media (max-width: 640px) { nav.top .links a:not(.keep) { display: none; } }

.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.15; font-weight: 800; letter-spacing: -1px; }
h1 em { font-style: normal; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 18px 0 28px; font-size: 18px; color: var(--subtle); max-width: 30em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(107,84,245,.35); }
.btn.soon { background: var(--card); color: var(--subtle); border: 1px dashed var(--line); cursor: default; }
.hero .art { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero .art::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--primary-soft), transparent 70%); }
.hero .art img { position: relative; width: min(320px, 70%); filter: drop-shadow(0 24px 40px rgba(107,84,245,.28)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero .art img { animation: none; } }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; } .hero .art { order: -1; min-height: 240px; } }

section { padding: 56px 0; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.5px; }
.sub { color: var(--subtle); margin: 8px 0 32px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); }
.card .ic { width: 48px; height: 48px; border-radius: 16px; background: var(--primary-soft); display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--subtle); font-size: 15px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 26px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; font-size: 18px; }
.step p { color: var(--subtle); font-size: 15px; }

.trust { background: linear-gradient(135deg, var(--primary), #9b6bff); color: #fff; border-radius: 36px; padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.trust h2 { color: #fff; }
.trust p { opacity: .9; margin-top: 10px; }
.trust ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.trust li { background: rgba(255,255,255,.16); border-radius: 18px; padding: 14px 16px; font-weight: 600; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; padding: 28px; } }

details { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--primary); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; color: var(--subtle); }

footer { border-top: 1px solid var(--line); padding: 36px 0 56px; margin-top: 24px; font-size: 14px; color: var(--subtle); }
footer .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-bottom: 14px; }
footer .row a { font-weight: 600; color: var(--ink); }
footer .disclaimer { max-width: 46em; font-size: 13px; line-height: 1.7; }

/* 약관 페이지 */
.doc { max-width: 760px; margin: 0 auto; padding: 28px 20px 64px; }
.doc .tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 18px; }
.doc .tabs a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--subtle); }
.doc .tabs a.on { background: var(--primary-soft); color: var(--primary); }
.doc article { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 34px 38px; box-shadow: var(--shadow); }
.doc h1 { font-size: 26px; letter-spacing: -.3px; }
.doc .meta { color: var(--subtle); margin: 6px 0 22px; font-size: 14px; }
.doc p { margin-bottom: 4px; line-height: 1.8; }
.doc p.h { font-weight: 800; margin-top: 12px; font-size: 16px; }
.doc p.li { padding-left: 14px; text-indent: -14px; }
.doc .gap { height: 10px; }
@media (max-width: 600px) { .doc article { padding: 22px 18px; } }
