/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #C62E2E;
    --secondary: #1e1e1e;
    --accent: #C1E172;
    --background: #f8f9fa;
    --text-dark: #1e1e1e;
    --text-muted: #6c757d;
    --white: #ffffff;
    --border: #e0e0e0;
    --success: #28a745;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #a32424 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    padding: 3rem 0;
    min-height: 600px;
}

/* Quiz Screens */
.quiz-screen {
    display: none;
    animation: fadeIn 0.4s ease;
}

.quiz-screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Quiz Card */
.quiz-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.quiz-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.quiz-card h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.quiz-card > p {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Benefits List */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
}

.check-icon {
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 0.4s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Question */
.question-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

/* Answers Container */
.answers-container {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.answer-option {
    padding: 1.5rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.answer-option:hover {
    border-color: var(--primary);
    background: #fff;
    transform: translateX(4px);
}

.answer-option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(198, 46, 46, 0.1), rgba(193, 225, 114, 0.1));
}

.answer-option input[type="radio"] {
    margin-right: 1rem;
    transform: scale(1.2);
    cursor: pointer;
}

.answer-text {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Quiz Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #a32424;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 46, 46, 0.3);
}

.btn-primary:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: var(--text-muted);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-primary-large,
.btn-secondary-large,
.btn-outline-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn-primary-large {
    background-color: var(--primary);
    color: var(--white);
    border: none;
}

.btn-primary-large:hover {
    background-color: #a32424;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 46, 46, 0.3);
}

.btn-secondary-large {
    background-color: var(--accent);
    color: var(--text-dark);
    border: none;
}

.btn-secondary-large:hover {
    background-color: #a8c755;
    transform: translateY(-2px);
}

.btn-outline-large {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border);
}

.btn-outline-large:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Results */
.results-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.results-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.results-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* Niche Results */
.niche-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.niche-result-card {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(198, 46, 46, 0.05), rgba(193, 225, 114, 0.05));
    border-radius: 12px;
    border: 2px solid var(--border);
    position: relative;
}

.niche-result-card::before {
    content: attr(data-rank);
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.niche-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.niche-title-group h3 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.niche-match {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent);
    color: var(--text-dark);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.niche-rate {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

.niche-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.niche-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-dark);
}

.niche-actions {
    display: flex;
    gap: 1rem;
}

.niche-actions .btn {
    flex: 1;
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.next-steps {
    text-align: center;
    padding: 2rem;
    background: var(--background);
    border-radius: 12px;
    margin-top: 2rem;
}

.next-steps h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.next-steps p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* How To Section */
.how-to-section {
    padding: 4rem 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #a32424);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.step p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Niches Section */
.niches-section {
    padding: 4rem 0;
    background: var(--white);
}

.niches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.niche-card {
    padding: 2rem;
    background: var(--background);
    border-radius: 12px;
    transition: var(--transition);
    text-align: center;
}

.niche-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.niche-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.niche-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.niche-card .niche-rate {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
}

.niche-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, #a32424 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary-large {
    background-color: var(--white);
    color: var(--primary);
}

.cta-section .btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-outline-large {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-section .btn-outline-large:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    background: var(--white);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.content-wrapper h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.content-wrapper p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.link-group h4 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.link-group a {
    display: block;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.link-group a:hover {
    opacity: 1;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-badge {
        width: 100%;
    }

    .quiz-card {
        padding: 2rem 1rem;
    }

    .quiz-navigation {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .niche-header {
        flex-direction: column;
        gap: 1rem;
    }

    .niche-rate {
        text-align: left;
    }

    .niche-actions {
        flex-direction: column;
    }

    .results-actions {
        flex-direction: column;
    }

    .btn-primary-large,
    .btn-secondary-large,
    .btn-outline-large {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .quiz-card h2 {
        font-size: 1.5rem;
    }

    .question-title {
        font-size: 1.25rem;
    }

    .results-icon {
        font-size: 3rem;
    }

    .results-header h2 {
        font-size: 1.75rem;
    }
}