/* ========================================
   BILAN RAPIDE - STYLES
   No Break Point - BPPI Assessment
   ======================================== */

/* Variables */
:root {
    --bg-primary: #0B1120;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --accent-purple: #A855F7;
    --accent-blue: #38BDF8;
    --accent-green: #10B981;
    --accent-yellow: #F59E0B;
    --accent-red: #EF4444;
    --gradient-start: #A855F7;
    --gradient-end: #38BDF8;
    --border-color: rgba(148, 163, 184, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 17, 32, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon.small {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.logo-icon.small svg {
    width: 16px;
    height: 16px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-purple);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding: 140px 24px 80px;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-purple);
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--accent-purple), #9333EA);
    color: white;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(168, 85, 247, 0.4);
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

.cta-button-large {
    padding: 20px 40px;
    font-size: 18px;
}

.hero-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    padding: 80px 24px;
    background: var(--bg-secondary);
}

.features-container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   ABOUT BPPI SECTION
   ======================================== */
.about-bppi {
    padding: 80px 24px;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-content strong {
    color: var(--accent-purple);
}

.score-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-item span {
    font-size: 14px;
    color: var(--text-secondary);
}

.about-note {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.score-demo {
    text-align: center;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-yellow) 0% 42%, var(--bg-tertiary) 42% 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 auto 16px;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--bg-primary);
}

.score-value {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent-yellow);
    position: relative;
    z-index: 1;
}

.score-label {
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.score-status {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-yellow);
}

/* ========================================
   TRUST SECTION
   ======================================== */
.trust {
    padding: 60px 24px;
    background: var(--bg-secondary);
}

.trust-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-number {
    font-size: 24px;
}

.trust-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    padding: 100px 24px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 18px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-purple);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   QUESTIONNAIRE STYLES
   ======================================== */
.questionnaire-page {
    padding-top: 80px;
    min-height: 100vh;
}

.questionnaire-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 32px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-section {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-count {
    font-size: 13px;
    color: var(--text-muted);
}

.progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Question Card */
.question-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-purple);
    margin-bottom: 8px;
}

.question-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.4;
}

/* Input Types */
.options-grid {
    display: grid;
    gap: 12px;
}

.options-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.option-button {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    transition: all 0.2s;
    cursor: pointer;
}

.option-button:hover {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.05);
}

.option-button.selected {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
}

.option-button.multi-select.selected {
    border-color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
}

/* Slider */
.slider-container {
    padding: 20px 0;
}

.slider-value-display {
    text-align: center;
    margin-bottom: 20px;
}

.slider-value {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent-purple);
}

.slider-unit {
    font-size: 20px;
    color: var(--text-muted);
    margin-left: 4px;
}

.slider-input {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-purple);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
    transition: transform 0.2s;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Number Input */
.number-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.number-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.number-btn:hover {
    background: var(--accent-purple);
}

.number-input {
    width: 120px;
    height: 70px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    outline: none;
}

.number-input:focus {
    border-color: var(--accent-purple);
}

.number-unit {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.nav-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.nav-btn svg {
    width: 18px;
    height: 18px;
}

.nav-btn.secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-btn.secondary:hover {
    background: var(--bg-primary);
}

.nav-btn.primary {
    background: var(--accent-purple);
    color: white;
}

.nav-btn.primary:hover {
    background: #9333EA;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   RESULTS PAGE STYLES
   ======================================== */
.results-page {
    padding-top: 80px;
    min-height: 100vh;
}

.results-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
}

.results-header {
    margin-bottom: 32px;
}

.results-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.results-header p {
    color: var(--text-secondary);
}

/* Score Circle */
.score-result-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-result-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 8px;
    background: conic-gradient(var(--score-color) calc(var(--score) * 1%), var(--bg-tertiary) 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.score-result-value {
    font-size: 64px;
    font-weight: 900;
    color: var(--score-color);
}

.score-result-label {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.risk-level {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.risk-description {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 400px;
    margin: 0 auto 32px;
}

/* Details Cards */
.details-section {
    text-align: left;
    margin-top: 40px;
}

.details-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.detail-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.detail-label {
    font-size: 14px;
    font-weight: 600;
}

.detail-value {
    font-size: 16px;
    font-weight: 700;
}

.detail-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.detail-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Recommendations */
.recommendations {
    margin-top: 40px;
    text-align: left;
}

.recommendation-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    border-left: 4px solid var(--accent-purple);
}

.recommendation-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Email Capture */
.email-section {
    margin-top: 48px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-color);
}

.email-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.email-section p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.email-form {
    display: flex;
    gap: 12px;
}

.email-input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

.email-input:focus {
    border-color: var(--accent-purple);
}

.email-input::placeholder {
    color: var(--text-muted);
}

.email-submit {
    padding: 14px 24px;
    background: var(--accent-purple);
    color: white;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.email-submit:hover {
    background: #9333EA;
}

/* App Promo */
.app-promo {
    margin-top: 48px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(56, 189, 248, 0.1));
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.app-promo h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.app-promo p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    text-align: left;
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.app-feature-icon {
    color: var(--accent-green);
}

.app-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
}

.app-btn:hover {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.1);
}

/* Loading */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 17, 32, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 20px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-container {
        flex-direction: column;
        gap: 24px;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .app-features {
        grid-template-columns: 1fr;
    }
    
    .app-buttons {
        flex-direction: column;
    }
    
    .options-grid.two-columns {
        grid-template-columns: 1fr;
    }
}
