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

:root {
    --primary-purple: #6C5CE7;
    --dark-bg: #1a1a1a;
    --text-gray: #666;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Page Management */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Header */
.main-header {
    padding: 1.5rem 0;
    background: white;
    border-bottom: 1px solid var(--border-gray);
}

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

.logo svg {
    display: block;
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    margin-left: auto;
    margin-right: 2rem;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-purple);
}

/* Buttons */
.btn-primary {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-dark {
    background: var(--dark-bg);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background: #000;
}

.btn-light {
    background: white;
    color: var(--primary-purple);
    border: 2px solid white;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Hero Section */
.hero {
    padding: 4rem 2rem 3rem;
    background: white;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.rating {
    margin-top: 1.5rem;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Platform Logos */
.platforms {
    max-width: 1200px;
    margin: 3rem auto 0;
    text-align: center;
    padding: 2rem;
}

.platforms-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.platform-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.platform-logo {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
}

/* Sections */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 2rem;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
    background: var(--light-gray);
}

.how-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 3rem 0;
    align-items: center;
}

.how-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-purple);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.step p {
    color: var(--text-gray);
    line-height: 1.6;
}

.how-it-works button {
    display: block;
    margin: 2rem auto 0;
}

/* Learning Formats Section */
.formats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.format-card {
    text-align: center;
    padding: 2rem;
}

.format-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.format-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.format-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Study Plan Preview */
.study-plan-preview {
    background: var(--light-gray);
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.preview-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.preview-text > p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.features-list {
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.check {
    color: var(--primary-purple);
    font-weight: bold;
    font-size: 1.2rem;
}

.preview-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Testimonial */
.testimonial {
    background: white;
}

.testimonial blockquote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial p {
    font-size: 1.3rem;
    font-style: italic;
    color: #333;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial cite {
    color: var(--text-gray);
    font-style: normal;
    font-size: 1rem;
}

/* FAQ Section */
.faq {
    background: var(--light-gray);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    user-select: none;
    transition: background 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: var(--light-gray);
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Books Section */
.books {
    background: white;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.book-cover {
    aspect-ratio: 2/3;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: translateY(-5px);
}

.book-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Quiz CTA Section */
.quiz-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quiz-cta h2 {
    color: white;
    text-align: left;
}

.quiz-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quiz-left {
    text-align: left;
}

.quiz-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.quiz-left p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.quiz-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quiz-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 8px;
}

.quiz-step-number {
    background: white;
    color: var(--primary-purple);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.quiz-step span:last-child {
    color: white;
}

/* About Section */
.about {
    background: var(--light-gray);
}

.about p {
    max-width: 900px;
    margin: 0 auto 3rem;
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

.video-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.video-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    aspect-ratio: 16/9;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.video-placeholder p {
    color: white;
    font-weight: 600;
}

/* Footer */
.main-footer {
    background: white;
    border-top: 1px solid var(--border-gray);
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-brand {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-gray);
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

/* Wizard Styles */
#wizard-page {
    background: var(--light-gray);
    min-height: 100vh;
    padding: 2rem;
}

.wizard-container {
    max-width: 700px;
    margin: 2rem auto;
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wizard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.wizard-header h2 {
    color: #1a1a1a;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-purple);
    transition: width 0.3s ease;
    width: 33.33%;
}

.step-indicator {
    color: #666;
    font-size: 0.9rem;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.wizard-step h3 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #666;
    margin-bottom: 2rem;
}

.options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-card {
    display: block;
    position: relative;
    cursor: pointer;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
}

.option-card input[type="radio"]:checked + .option-content {
    border-color: var(--primary-purple);
    background: rgba(108, 92, 231, 0.05);
}

.option-card:hover .option-content {
    border-color: var(--primary-purple);
}

.option-icon {
    font-size: 2rem;
}

.option-label {
    font-weight: 600;
    color: #333;
    flex-grow: 1;
}

.option-desc {
    color: #666;
    font-size: 0.9rem;
    margin-left: 3rem;
    margin-top: 0.3rem;
}

.wizard-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.wizard-btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.next-btn {
    background: var(--primary-purple);
    color: white;
    margin-left: auto;
}

.next-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.next-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.back-btn {
    background: #f0f0f0;
    color: #333;
}

.back-btn:hover {
    background: #e0e0e0;
}

/* Email Page Styles */
#email-page {
    background: var(--light-gray);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-container {
    max-width: 500px;
    background: white;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.email-container h2 {
    color: #1a1a1a;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.email-container p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

#email-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#email-input {
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

#email-input:focus {
    outline: none;
    border-color: var(--primary-purple);
}

/* Results Page Styles */
#results-page {
    background: var(--light-gray);
    min-height: 100vh;
    padding: 2rem;
}

.results-container {
    max-width: 1200px;
    margin: 2rem auto;
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.results-container h2 {
    color: #1a1a1a;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.preferences-summary {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.preferences-summary p {
    margin: 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.preferences-summary strong {
    color: var(--primary-purple);
}

.results-container h3 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.results-intro {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.video-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.video-info {
    padding: 1.5rem;
}

.video-info h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.video-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.video-link {
    display: inline-block;
    background: var(--primary-purple);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}

.results-footer {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-nav {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .how-content,
    .preview-content,
    .quiz-content {
        grid-template-columns: 1fr;
    }

    .formats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .wizard-container {
        padding: 2rem 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    section h2 {
        font-size: 2rem;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .platform-logos {
        gap: 1rem;
    }

    .platform-logo {
        font-size: 0.8rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}
