:root {
    --rx-black: #04060f;
    --rx-dark: #080c18;
    --rx-card: #0c1020;
    --rx-border: #1a1f35;
    --rx-pink: #c8316a;
    --rx-pink-light: #e05585;
    --rx-white: #f0f2ff;
    --rx-muted: #7a86a8;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--rx-black);
    color: var(--rx-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 999; opacity: 0.4;
}

/* NAV */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 48px;
    background: rgba(4,6,15,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rx-border);
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 26px; letter-spacing: 2px;
    color: var(--rx-white); text-decoration: none;
}
.nav-logo span { color: var(--rx-pink); }
.nav-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--rx-muted);
    text-decoration: none; transition: color 0.2s;
    font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px;
}
.nav-back:hover { color: var(--rx-white); }

/* HERO */
.hero {
    padding: 120px 48px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse at 50% 0%, rgba(200,49,106,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 11px; color: var(--rx-pink);
    letter-spacing: 0.2em; text-transform: uppercase;
    background: rgba(200,49,106,0.1); border: 1px solid rgba(200,49,106,0.3);
    padding: 7px 18px; border-radius: 100px; margin-bottom: 24px;
}
.hero-badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--rx-pink); animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
h1 {
    font-family: var(--font-display);
    font-size: clamp(52px, 6vw, 90px);
    line-height: 0.95; letter-spacing: 2px; margin-bottom: 20px;
}
h1 em { font-style: normal; color: var(--rx-pink); display: block; }
.hero-sub {
    font-size: 17px; color: var(--rx-muted);
    max-width: 560px; margin: 0 auto 16px; line-height: 1.7;
}
.hero-sub strong { color: var(--rx-white); }
.hero-steps {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    flex-wrap: wrap; margin-top: 24px;
}
.step-pill {
    display: flex; align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 10px;
    color: var(--rx-muted); text-transform: uppercase; letter-spacing: 0.1em;
    background: var(--rx-card); border: 1px solid var(--rx-border);
    padding: 6px 14px; border-radius: 100px;
}
.step-pill.active { color: var(--rx-pink); border-color: rgba(200,49,106,0.3); background: rgba(200,49,106,0.08); }
.step-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.step-arrow { color: var(--rx-border); font-size: 12px; }

/* MAIN DIAGNOSTIC AREA */
.diagnostic-wrapper {
    max-width: 1100px; margin: 0 auto;
    padding: 0 48px 80px;
}

/* STEPS */
.step-section { display: none; }
.step-section.active { display: block; }

/* STEP 1: Name input */
.step-intro {
    max-width: 520px; margin: 0 auto;
    background: var(--rx-card); border: 1px solid var(--rx-border);
    border-radius: 16px; padding: 48px;
    text-align: center; position: relative;
}
.step-intro::before {
    content: ''; position: absolute; top: -1px; left: 32px; right: 32px; height: 2px;
    background: var(--rx-pink); border-radius: 0 0 2px 2px;
}
.step-intro h2 { font-family: var(--font-display); font-size: 36px; margin-bottom: 10px; }
.step-intro p { font-size: 14px; color: var(--rx-muted); margin-bottom: 32px; line-height: 1.6; }
.intro-input {
    width: 100%; background: rgba(255,255,255,0.05);
    border: 1px solid var(--rx-border); border-radius: 8px;
    padding: 16px 20px; color: var(--rx-white);
    font-family: var(--font-body); font-size: 16px;
    outline: none; transition: border-color 0.2s; margin-bottom: 16px;
    text-align: center;
}
.intro-input:focus { border-color: var(--rx-pink); }

/* STEP 2: Questions */
.progress-bar {
    background: var(--rx-card); border: 1px solid var(--rx-border);
    border-radius: 12px; padding: 20px 28px;
    display: flex; align-items: center; gap: 20px;
    margin-bottom: 32px;
}
.pb-label { font-family: var(--font-mono); font-size: 11px; color: var(--rx-muted); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.pb-track { flex: 1; height: 4px; background: var(--rx-border); border-radius: 2px; overflow: hidden; }
.pb-fill { height: 100%; background: linear-gradient(to right, var(--rx-pink), var(--rx-pink-light)); border-radius: 2px; transition: width 0.5s ease; width: 0%; }
.pb-count { font-family: var(--font-mono); font-size: 12px; color: var(--rx-pink); white-space: nowrap; }

.question-card {
    background: var(--rx-card); border: 1px solid var(--rx-border);
    border-radius: 16px; padding: 48px; margin-bottom: 24px;
    position: relative; overflow: hidden;
}
.question-card::before {
    content: ''; position: absolute; top: -1px; left: 32px; right: 32px; height: 2px;
    background: var(--rx-pink); border-radius: 0 0 2px 2px;
}
.q-pilar {
    font-family: var(--font-mono); font-size: 10px; color: var(--rx-pink);
    text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.q-pilar-icon { font-size: 16px; }
.q-number { font-family: var(--font-display); font-size: 80px; color: rgba(200,49,106,0.06); position: absolute; right: 32px; top: 20px; line-height: 1; }
.q-text { font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); margin-bottom: 10px; line-height: 1.1; }
.q-sub { font-size: 14px; color: var(--rx-muted); margin-bottom: 36px; line-height: 1.6; }

.score-slider-wrap { }
.score-labels {
    display: flex; justify-content: space-between;
    font-family: var(--font-mono); font-size: 10px; color: var(--rx-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.score-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 6px;
    background: var(--rx-border); border-radius: 3px;
    outline: none; cursor: pointer;
    accent-color: var(--rx-pink);
    margin-bottom: 20px;
}
.score-display {
    display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.score-btn {
    width: 52px; height: 52px;
    background: var(--rx-dark); border: 1px solid var(--rx-border);
    border-radius: 10px; color: var(--rx-muted);
    font-family: var(--font-display); font-size: 24px;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.score-btn:hover { border-color: var(--rx-pink); color: var(--rx-white); background: rgba(200,49,106,0.08); }
.score-btn.selected { background: var(--rx-pink); border-color: var(--rx-pink); color: #fff; transform: scale(1.08); }
.score-hint {
    text-align: center; font-size: 13px; color: var(--rx-muted);
    margin-top: 16px; min-height: 20px; transition: all 0.2s;
    font-style: italic;
}

.q-nav { display: flex; gap: 16px; justify-content: flex-end; margin-top: 32px; }

/* STEP 2 LAYOUT */
.step2-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
}
.q-col { }

/* Live Radar Card */
.radar-live-card {
    background: var(--rx-card);
    border: 1px solid var(--rx-border);
    border-radius: 16px;
    padding: 32px 24px;
    position: sticky;
    top: 90px;
    overflow: hidden;
}
.radar-live-card::before {
    content: '';
    position: absolute; top: -1px; left: 24px; right: 24px; height: 2px;
    background: var(--rx-pink); border-radius: 0 0 2px 2px;
}
.rlc-header { text-align: center; margin-bottom: 20px; }
.rlc-tag {
    font-family: var(--font-mono); font-size: 10px;
    color: var(--rx-pink); text-transform: uppercase;
    letter-spacing: 0.15em; margin-bottom: 6px;
    animation: tag-blink 2s ease-in-out infinite;
}
@keyframes tag-blink { 0%,100%{opacity:1} 50%{opacity:0.5} }
.rlc-title {
    font-family: var(--font-display); font-size: 28px;
    line-height: 1; margin-bottom: 4px;
}
.rlc-sub { font-size: 12px; color: var(--rx-muted); }

.live-score-row {
    display: flex; align-items: center; justify-content: center; gap: 0;
    background: rgba(200,49,106,0.06);
    border: 1px solid rgba(200,49,106,0.15);
    border-radius: 10px; margin: 16px 0; overflow: hidden;
}
.lsr-item { flex: 1; padding: 14px 12px; text-align: center; }
.lsr-divider { width: 1px; height: 44px; background: rgba(200,49,106,0.15); flex-shrink: 0; }
.lsr-num {
    font-family: var(--font-display); font-size: 36px;
    color: var(--rx-pink); line-height: 1;
    transition: all 0.4s ease;
}
.lsr-label { font-size: 10px; color: var(--rx-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

.live-pillars { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.lp-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s;
}
.lp-item:last-child { border-bottom: none; }
.lp-icon { font-size: 13px; opacity: 0.4; transition: opacity 0.3s; }
.lp-item.answered .lp-icon { opacity: 1; }
.lp-name { font-size: 11px; color: var(--rx-muted); flex: 1; transition: color 0.3s; }
.lp-item.answered .lp-name { color: var(--rx-white); }
.lp-item.active .lp-name { color: var(--rx-pink); }
.lp-bar { width: 48px; height: 3px; background: var(--rx-border); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.lp-fill { height: 100%; border-radius: 2px; width: 0%; transition: width 0.5s ease, background 0.3s; }
.lp-score { font-family: var(--font-mono); font-size: 10px; color: var(--rx-pink); min-width: 20px; text-align: right; opacity: 0; transition: opacity 0.3s; }
.lp-item.answered .lp-score { opacity: 1; }

@media(max-width:900px) {
    .step2-layout { grid-template-columns: 1fr; }
    .radar-live-card { position: static; }
}

/* STEP 3: Radar + Result */
.result-wrapper {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: start;
}
.result-radar-col {
    background: var(--rx-card); border: 1px solid var(--rx-border);
    border-radius: 16px; padding: 40px;
    position: relative;
}
.result-radar-col::before {
    content: ''; position: absolute; top: -1px; left: 32px; right: 32px; height: 2px;
    background: var(--rx-pink); border-radius: 0 0 2px 2px;
}
.radar-title-row {
    text-align: center; margin-bottom: 24px;
}
.radar-title-row h3 { font-family: var(--font-display); font-size: 28px; }
.radar-title-row p { font-size: 12px; color: var(--rx-muted); margin-top: 4px; }
.score-total-badge {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    background: rgba(200,49,106,0.08); border: 1px solid rgba(200,49,106,0.2);
    border-radius: 10px; padding: 16px 24px; margin-top: 20px;
}
.stb-score { font-family: var(--font-display); font-size: 56px; color: var(--rx-pink); line-height: 1; }
.stb-info { }
.stb-label { font-size: 11px; color: var(--rx-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.stb-level { font-size: 15px; font-weight: 700; margin-top: 2px; }

/* Result right col */
.result-right { }
.result-summary {
    background: var(--rx-card); border: 1px solid var(--rx-border);
    border-radius: 16px; padding: 32px; margin-bottom: 20px;
}
.rs-title { font-family: var(--font-display); font-size: 24px; margin-bottom: 16px; }
.rs-title em { color: var(--rx-pink); font-style: normal; }
.rs-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid var(--rx-border);
}
.rs-item:last-child { border-bottom: none; }
.rs-bar-col { flex: 1; }
.rs-name { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: flex; justify-content: space-between; }
.rs-score-text { font-family: var(--font-mono); font-size: 12px; color: var(--rx-pink); }
.rs-bar { height: 4px; background: var(--rx-border); border-radius: 2px; overflow: hidden; }
.rs-fill { height: 100%; border-radius: 2px; transition: width 1s ease; }
.rs-icon { font-size: 18px; margin-top: 2px; }

/* Diagnosis text */
.diagnosis-box {
    background: linear-gradient(135deg, rgba(200,49,106,0.1), rgba(200,49,106,0.05));
    border: 1px solid rgba(200,49,106,0.25); border-radius: 12px; padding: 28px;
    margin-bottom: 20px;
}
.db-tag { font-family: var(--font-mono); font-size: 10px; color: var(--rx-pink); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 10px; }
.db-title { font-family: var(--font-display); font-size: 26px; margin-bottom: 12px; }
.db-text { font-size: 14px; color: var(--rx-muted); line-height: 1.7; }
.db-text strong { color: var(--rx-white); }

/* CTA box */
.cta-box {
    background: var(--rx-card); border: 1px solid var(--rx-border);
    border-radius: 16px; padding: 32px; text-align: center;
}
.cta-box h3 { font-family: var(--font-display); font-size: 28px; margin-bottom: 10px; }
.cta-box h3 em { color: var(--rx-pink); font-style: normal; }
.cta-box p { font-size: 14px; color: var(--rx-muted); margin-bottom: 24px; line-height: 1.6; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--rx-pink); color: #fff;
    padding: 16px 32px; border-radius: 6px;
    font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none; border: none; cursor: pointer;
    transition: all 0.25s;
}
.btn-primary:hover { background: var(--rx-pink-light); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(200,49,106,0.4); }
.btn-wpp {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25D366; color: #fff;
    padding: 16px 32px; border-radius: 6px;
    font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none; transition: all 0.25s;
}
.btn-wpp:hover { background: #20ba5a; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,211,102,0.4); }
.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    border: 2px solid var(--rx-pink); color: var(--rx-white);
    padding: 14px 28px; border-radius: 6px;
    font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
    text-decoration: none; cursor: pointer; background: transparent;
    transition: all 0.25s;
}
.btn-outline:hover { background: rgba(200,49,106,0.1); }

/* Footer */
footer {
    text-align: center; padding: 40px 24px;
    border-top: 1px solid var(--rx-border);
    font-size: 12px; color: var(--rx-muted);
}
footer a { color: var(--rx-pink); text-decoration: none; }

/* WhatsApp float */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px; z-index: 9999;
    width: 58px; height: 58px; background: #25D366; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    transition: all 0.3s; text-decoration: none;
    animation: wpp-pulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover { background: #20ba5a; transform: scale(1.12); animation: none; }
@keyframes wpp-pulse {
    0%,100%{ box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50%{ box-shadow: 0 4px 32px rgba(37,211,102,0.75), 0 0 0 8px rgba(37,211,102,0.1); }
}

@media(max-width:768px){
    nav { padding: 14px 20px; }
    .hero { padding: 100px 20px 40px; }
    .diagnostic-wrapper { padding: 0 20px 60px; }
    .result-wrapper { grid-template-columns: 1fr; }
    .step-intro, .question-card { padding: 28px 20px; }
    .cta-btns { flex-direction: column; align-items: center; }
}