/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

:root {
    --primary: #ff0066;
    --primary-dark: #cc0052;
    --secondary: #9d00ff;
    --accent: #00ffff;
    --dark-bg: #0a0a0f;
    --dark-card: #15151f;
    --dark-hover: #1f1f2e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8c8;
    --success: #00ff88;
    --warning: #ffaa00;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* Partículas de Fundo */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Container Principal */
.container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 15px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    flex-direction: column;
}

/* Barra de Progresso */
.progress-container {
    background: var(--dark-card);
    border-radius: 50px;
    padding: 8px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 4px 20px rgba(255, 0, 102, 0.2);
}

.progress-bar {
    height: 12px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 50px;
    width: 10%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.6);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    to {
        left: 200%;
    }
}

.progress-text {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Sistema de Pontuação */
.score-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.score-badge, .streak-badge {
    background: var(--dark-card);
    padding: 12px 24px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.score-badge {
    border-color: var(--primary);
}

.streak-badge {
    border-color: var(--accent);
}

.score-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

#streakValue {
    color: var(--accent);
    font-weight: 700;
}

/* Quiz Container */
.quiz-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-screen {
    display: none;
    width: 100%;
    animation: fadeInUp 0.6s ease;
}

.quiz-screen.active {
    display: block;
}

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

/* Tela de Boas-Vindas */
.welcome-content {
    text-align: center;
    padding: 20px 15px;
}

.glitch {
    font-size: 48px;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    text-shadow:
        0 0 20px var(--primary),
        0 0 40px var(--primary),
        0 0 60px var(--primary);
    animation: glitch 3s infinite;
    margin-bottom: 15px;
}

@keyframes glitch {
    0%, 90%, 100% {
        text-shadow:
            0 0 20px var(--primary),
            0 0 40px var(--primary),
            0 0 60px var(--primary);
    }
    95% {
        text-shadow:
            -2px 0 var(--accent),
            2px 0 var(--secondary);
    }
}

.subtitle {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Features Preview */
.features-preview {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background: var(--dark-card);
    border-radius: 10px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    font-size: 13px;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 102, 0.4);
}

.feature-icon {
    font-size: 24px;
}

/* Banner de Urgência */
.urgency-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 12px 25px;
    border-radius: 10px;
    margin: 20px auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: bounceIn 1s ease;
    font-size: 14px;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* Botões */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 0, 102, 0.6);
}

.btn-pulse {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(255, 0, 102, 0);
    }
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(5px);
}

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

/* Tela de Perguntas */
.question-content {
    background: var(--dark-card);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 0, 102, 0.2);
}

.question-header {
    text-align: center;
    margin-bottom: 25px;
}

.question-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.question-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Grid de Respostas */
.answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.answer-option {
    background: var(--dark-hover);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.answer-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 102, 0.1), transparent);
    transition: left 0.5s ease;
}

.answer-option:hover::before {
    left: 100%;
}

.answer-option:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 102, 0.3);
}

.answer-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.2), rgba(157, 0, 255, 0.2));
}

.answer-icon {
    font-size: 32px;
    margin-bottom: 8px;
    display: block;
}

.answer-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.answer-description {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Timer */
.question-footer {
    display: flex;
    justify-content: center;
}

.timer-container {
    text-align: center;
}

.timer-circle {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
}

.timer-circle svg {
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: var(--dark-hover);
    stroke-width: 4;
}

.timer-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 157;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.timer-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.timer-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Tela de Carregamento */
.loading-content {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    border: 4px solid var(--dark-hover);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-title {
    font-size: 28px;
    margin-bottom: 40px;
}

.loading-stats {
    max-width: 400px;
    margin: 0 auto;
}

.stat-item {
    margin-bottom: 25px;
}

.stat-label {
    display: block;
    text-align: left;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-bar {
    height: 10px;
    background: var(--dark-hover);
    border-radius: 10px;
    overflow: hidden;
}

.stat-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0;
    border-radius: 10px;
    animation: fillBar 2s ease forwards;
}

@keyframes fillBar {
    to {
        width: 100%;
    }
}

/* Modal de Feedback */
.feedback-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--dark-card);
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    transition: transform 0.3s ease;
    border: 2px solid var(--primary);
}

.feedback-modal.show {
    transform: translate(-50%, -50%) scale(1);
}

.feedback-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.feedback-icon {
    font-size: 48px;
}

.feedback-text {
    font-size: 18px;
    font-weight: 600;
}

.feedback-points {
    font-size: 24px;
    font-weight: 800;
    color: var(--success);
}

/* Resultado/Oferta */
.result-content {
    padding: 40px 20px;
    max-width: 100%;
    overflow-x: hidden;
}

/* Ocultar feedback modal quando estiver na tela de resultado */
#resultScreen.active ~ #feedbackModal {
    display: none !important;
}

.result-header {
    text-align: center;
    margin-bottom: 50px;
}

.result-badge {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.result-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.result-score {
    font-size: 20px;
    color: var(--text-secondary);
}

.result-score strong {
    color: var(--success);
    font-size: 32px;
}

/* Planos */
.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.plan-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 35px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.plan-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 0, 102, 0.4);
}

.plan-card.recommended {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.1), rgba(157, 0, 255, 0.1));
}

.plan-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

.plan-price {
    margin-bottom: 30px;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 18px;
    display: block;
}

.price-current {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
}

.price-current small {
    font-size: 20px;
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--dark-hover);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li:last-child {
    border-bottom: none;
}

.feature-check {
    color: var(--success);
    font-weight: 700;
}

.btn-plan {
    width: 100%;
    padding: 16px;
    background: var(--dark-hover);
    border: 2px solid var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

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

.plan-card.recommended .btn-plan {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
}

/* Garantia */
.guarantee-section {
    text-align: center;
    background: var(--dark-card);
    border-radius: 20px;
    padding: 40px;
    margin: 50px 0;
    border: 2px solid var(--success);
}

.guarantee-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.guarantee-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.guarantee-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

/* Depoimentos */
.testimonials-section {
    margin: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--dark-card);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid rgba(255, 0, 102, 0.2);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-rating {
    color: var(--warning);
}

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

/* FAQ */
.faq-section {
    margin: 50px 0;
}

.faq-item {
    background: var(--dark-card);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Countdown Timer */
.countdown-section {
    text-align: center;
    background: var(--dark-card);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid var(--primary);
}

.countdown-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 700;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.countdown-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 10px;
    }

    .glitch {
        font-size: 36px;
    }

    .subtitle {
        font-size: 14px;
    }

    .features-preview {
        gap: 10px;
    }

    .feature-item {
        padding: 10px 15px;
        font-size: 12px;
    }

    .question-content {
        padding: 15px;
    }

    .question-title {
        font-size: 18px;
    }

    .answers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .answer-icon {
        font-size: 28px;
    }

    .answer-title {
        font-size: 12px;
    }

    .answer-description {
        font-size: 10px;
    }

    .result-title {
        font-size: 28px;
    }

    .plans-container {
        grid-template-columns: 1fr !important;
        padding: 0 5px !important;
        max-width: 100% !important;
    }

    .plan-card {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .result-content {
        padding: 20px 10px !important;
    }

    .countdown-value {
        font-size: 32px;
    }
}

/* Animações de entrada */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-left {
    animation: slideInLeft 0.6s ease;
}

.animate-right {
    animation: slideInRight 0.6s ease;
}
