* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --bg:#0f0c1d; --panel:#1c1738; --line:#2f2860; --text:#f1f1f7; --muted:#a9abc9; --accent:#a855f7; --accent2:#38bdf8; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
a { color: #c084fc; }
main { flex: 1; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* Header */
header.site { background: #17132b; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; max-width: 1000px; margin: 0 auto; }
.logo { font-weight: 700; font-size: 1.2rem; color: #e9d5ff; text-decoration: none; }
.nav ul { display: flex; gap: 18px; list-style: none; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a.active { color: #fff; }

/* Hero and sections */
.hero { text-align: center; padding: 60px 0 36px; }
.hero h1 { font-size: 2.3rem; line-height: 1.2; margin-bottom: 14px; }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto 22px; }
.section { padding: 40px 0; }
.section h2 { font-size: 1.6rem; margin-bottom: 12px; text-align: center; }
.section .intro { color: var(--muted); text-align: center; max-width: 680px; margin: 0 auto 24px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border: none; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; color: #fff; text-decoration: none; background: linear-gradient(90deg, var(--accent), #6366f1); }
.btn:hover { opacity: .9; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Quiz */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; max-width: 600px; margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.progress { height: 8px; background: #2b2550; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .3s; }
.step { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.question { font-size: 1.25rem; margin-bottom: 18px; line-height: 1.4; }
.options { display: grid; gap: 12px; }
.option { width: 100%; text-align: left; padding: 14px 16px; background: #251f4a; color: var(--text); border: 1px solid #3a3270; border-radius: 10px; font-size: 1rem; cursor: pointer; }
.option:hover { border-color: var(--accent); background: #2e2760; }
.result-icon { font-size: 3.5rem; text-align: center; }
.result-label { text-align: center; color: var(--muted); }
.result-name { text-align: center; font-size: 1.9rem; color: #e9d5ff; margin: 8px 0 12px; }
.result-desc { text-align: center; margin-bottom: 22px; color: #d6d8ea; }

/* Tiles and FAQ */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-align: center; }
.tile .icon { font-size: 2.4rem; }
.tile h3 { margin: 8px 0 6px; color: #e9d5ff; }
.tile p { color: var(--muted); font-size: .95rem; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin-top: 8px; }

/* Text pages (about, privacy, terms, contact) */
.prose { max-width: 760px; margin: 0 auto; padding: 44px 20px; }
.prose h1 { font-size: 2rem; margin-bottom: 8px; }
.prose h2 { font-size: 1.2rem; color: #e9d5ff; margin: 24px 0 8px; }
.prose p, .prose li { color: #d6d8ea; margin-bottom: 10px; }
.prose ul { padding-left: 22px; }
.prose .updated { color: var(--muted); font-size: .9rem; }

/* Footer */
footer.site { background: #17132b; border-top: 1px solid var(--line); padding: 28px 20px; color: var(--muted); font-size: .92rem; text-align: center; }
footer.site ul { list-style: none; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
footer.site a { color: #c084fc; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .disclaimer { font-size: .85rem; margin-top: 10px; max-width: 700px; margin-left: auto; margin-right: auto; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.75rem; }
  .card { padding: 20px; }
}