:root {
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #f1f2f7; --text: #0f1424; --text-2: #4a5165; --text-3: #8a91a3;
  --border: #e3e5ea; --accent: #5452e0; --accent-2: #8b5cf6; --pink: #ec4899; --amber: #f59e0b;
  --quest: #10b981; --item: #f97316; --skill: #3b82f6; --ledger: #ca8a04; --ok: #0e9f6e; --bad: #e5484d;
  --hero-bg: #0b0d1a; --shadow: 0 20px 60px rgba(20, 22, 60, .18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12; --surface: #12151c; --surface-2: #181c25; --text: #e8eaf0; --text-2: #a2a9b9; --text-3: #6a7284;
    --border: #262b36; --accent: #7c7fff; --accent-2: #a78bfa; --shadow: 0 20px 60px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; word-break: keep-all;
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 750; }
.sub { color: var(--text-2); font-size: 17px; margin: 0 auto 28px; max-width: 680px; }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .12em; font-size: 13px; margin: 0 0 10px; }
.fine { color: var(--text-3); font-size: 13.5px; margin: 8px 0 0; }
section { padding: 96px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 750; font-size: 15.5px;
  padding: 12px 22px; border-radius: 12px; text-decoration: none; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 6px 18px rgba(84, 82, 224, .35); font-family: inherit; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(84, 82, 224, .45); }
.btn:disabled { opacity: .6; transform: none; }
.btn-lg { padding: 15px 28px; font-size: 17px; border-radius: 14px; }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(11, 13, 26, .72); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { color: #fff; font-weight: 800; font-size: 19px; text-decoration: none; display: flex; align-items: center; gap: 8px; margin: 0; }
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 15px;
  background: linear-gradient(135deg, var(--accent), var(--pink)); color: #fff; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.links a:hover { color: #fff; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 50% -10%, #2a2777 0%, var(--hero-bg) 60%);
  color: #fff; padding: 88px 0 0; text-align: center; }
.stars { position: absolute; inset: 0; opacity: .7; pointer-events: none;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 68%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 46% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 78% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 8% 78%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 92% 82%, #fff 50%, transparent 51%); }
.hero-in { position: relative; }
.hero .eyebrow { color: #b8b6ff; }
.hero h1 { font-size: clamp(32px, 5.4vw, 60px); font-weight: 850; margin-bottom: 18px; }
.grad { background: linear-gradient(90deg, #8b8aff, #f472b6 55%, #fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, .78); margin: 0 auto 30px; max-width: 640px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { color: rgba(255, 255, 255, .55); margin-top: 16px; }
.shot { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); background: var(--surface); }
.shot.win { width: fit-content; max-width: 100%; margin: 0 auto; border-radius: 16px; }
.hero-shot { margin: 56px auto -1px; max-width: 1100px; border-radius: 16px 16px 0 0; border: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 0; box-shadow: 0 -10px 80px rgba(124, 127, 255, .35); }

/* pain */
.pain { padding: 88px 0 40px; }
.tabs-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 22px; }
.tabs-row span { padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-3); font-size: 13.5px; text-decoration: line-through; text-decoration-color: rgba(229, 72, 77, .7); }

/* features */
.features { padding-top: 56px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 22px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.card .ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--c); color: #fff;
  font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.card p { color: var(--text-2); margin: 0; font-size: 15px; }
.card b { color: var(--text); }
.c-quest { --c: var(--quest); } .c-item { --c: var(--item); } .c-skill { --c: var(--skill); } .c-ledger { --c: var(--ledger); }

/* flow */
.flow { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { padding: 22px; border-radius: 14px; background: var(--surface-2); position: relative; }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 30px; color: var(--text-3); font-weight: 800; }
.steps .n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.steps p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* screens */
.split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; margin-bottom: 88px; }
.split:last-child { margin-bottom: 0; }
.split.rev .txt { order: 2; }
.split .sub { margin: 0; }

/* ai */
.ai { background: radial-gradient(800px 400px at 50% 0%, rgba(236, 72, 153, .10), transparent 70%); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; font-weight: 600; }

/* pricing */
.pricing { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.plan { border: 1px solid var(--border); border-radius: 18px; padding: 30px 28px; background: var(--bg); display: flex; flex-direction: column; }
.plan.main { border: 2px solid var(--accent); box-shadow: 0 12px 40px rgba(84, 82, 224, .18); }
.tag { font-weight: 800; color: var(--accent); margin: 0 0 6px; }
.amount { font-size: 42px; font-weight: 850; margin: 0 0 14px; letter-spacing: -0.02em; }
.plan ul { padding-left: 18px; margin: 0 0 22px; color: var(--text-2); }
.plan li { margin: 4px 0; }
.plan .btn { margin-top: auto; }
.credits { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.credits td { padding: 11px 0; border-bottom: 1px solid var(--border); font-weight: 650; }
.credits td:last-child { text-align: right; color: var(--text-2); }
.credits small { color: var(--ledger); font-weight: 800; }

/* beta */
.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; }
.form label { display: grid; gap: 6px; font-weight: 650; font-size: 14.5px; }
.form input[type=email], .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text-2); font-size: 13.5px; }
.form .check input { margin-top: 4px; width: 16px; height: 16px; flex: none; }
.opt { color: var(--text-3); font-weight: 400; }
.trap { position: absolute; left: -9999px; }
.msg { margin: 0; font-weight: 650; min-height: 1.4em; }
.msg.ok { color: var(--ok); } .msg.bad { color: var(--bad); }

/* faq */
details { border-bottom: 1px solid var(--border); padding: 18px 4px; }
summary { cursor: pointer; font-weight: 700; font-size: 16.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--text-3); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--text-2); margin: 12px 0 0; }

/* footer */
.foot { background: var(--hero-bg); color: rgba(255, 255, 255, .8); padding: 44px 0 52px; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot .fine { color: rgba(255, 255, 255, .55); }
.foot a { color: rgba(255, 255, 255, .8); }
.biz p { margin: 2px 0; }

/* document pages (약관 · 개인정보) */
.doc { max-width: 820px; margin: 0 auto; padding: 56px 20px 96px; }
.doc h1 { font-size: 32px; }
.doc h2 { font-size: 21px; margin-top: 36px; }
.doc p, .doc li { color: var(--text-2); }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 14.5px; }
.doc th, .doc td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); }
.doc pre { white-space: pre-wrap; font-family: inherit; color: var(--text-2); background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; }
.draft { background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .5); border-radius: 10px; padding: 10px 14px; color: var(--text); }

@media (max-width: 960px) {
  .grid4, .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .split, .split.rev { grid-template-columns: 1fr; gap: 24px; }
  .split.rev .txt { order: 0; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .links { display: none; }
  .nav-in { justify-content: space-between; }
  .grid4, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero h1 br { display: none; }
  .hero-shot { margin-top: 40px; }
  .cta .btn { width: 100%; }
}
