:root {
    --bg: #0A0A0F;
    --bg-alt: #111118;
    --bg-card: #16161F;
    --surface: #1E1E2A;
    --surface-light: #252535;
    --text: #F0EFF4;
    --text-primary: #F0EFF4;
    --text-secondary: #B8B5C8;
    --text-muted: #7A7690;
    --accent: #A78BFA;
    --accent-light: #C4B5FD;
    --accent-dark: #7C3AED;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 64px;
}

a { color: inherit; }

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

body > nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    display: flex;
    gap: 8px;
}

.logo span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    background: var(--accent-dark);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 500;
}

.nav-cta:hover { background: var(--accent); }

.nav-lang { font-size: .82rem; color: var(--text-muted); white-space: nowrap; }
.nav-lang a { color: var(--text-secondary); text-decoration: none; }
.nav-lang a:hover { color: var(--text); }
.nav-lang strong { color: var(--accent); font-weight: 700; }

@media (max-width: 720px) {
    .nav-links > a:not(.nav-cta) { display: none; }
}

footer.site-footer {
    border-top: 1px solid var(--surface);
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer.site-footer .disclaimer { margin-top: 8px; }

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.btn-primary {
    background: var(--accent-dark);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.btn-ghost {
    border: 1px solid var(--surface-light);
    color: var(--text-secondary);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

/* Lead capture gate */
.quiz-lead-card {
    max-width: 480px;
    margin: 48px auto;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--surface-light);
    border-radius: var(--radius-lg);
    text-align: center;
}
.quiz-lead-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 12px;
}
.quiz-lead-card h1 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.2;
}
.quiz-lead-sub {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 28px;
}
.quiz-lead-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}
.quiz-lead-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 8px;
}
.quiz-lead-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--surface-light);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
}
.quiz-lead-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow, rgba(167, 139, 250, 0.15));
}
.quiz-lead-error {
    color: #f87171;
    font-size: 0.88rem;
    margin-top: 4px;
}
.quiz-lead-btn {
    margin-top: 16px;
    padding: 14px 24px;
    border: none;
    border-radius: 999px;
    background: var(--accent-dark);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.quiz-lead-btn:hover {
    background: var(--accent);
    transform: translateY(-1px);
}
.quiz-lead-note {
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}
.quiz-save-status {
    max-width: 640px;
    margin: 16px auto 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    text-align: center;
}
.quiz-save-saving {
    background: rgba(167, 139, 250, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(167, 139, 250, 0.25);
}
.quiz-save-ok {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.quiz-save-err {
    background: rgba(248, 113, 113, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.25);
}
