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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* Top Navigation */
.top-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

.logo-accent {
    color: #e53935;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-auth-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-login {
    color: #555555;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: color 0.2s;
}

.nav-login:hover {
    color: #333;
}

.nav-signup {
    background-color: #e53935;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.nav-signup:hover {
    background-color: #c62828;
}

/* Hero Section */
.hero-section {
    padding: 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Quiz Preview */
.quiz-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


/* Marketing Content */
.marketing-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.cta-button {
    background-color: #e53935;
    color: #ffffff;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: fit-content;
}

.cta-button:hover {
    background-color: #c62828;
}

.university-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
}

.university-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #666;
}

.student-count {
    margin-top: 20px;
}

.count-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.count-number {
    font-weight: 700;
    color: #333;
}


/* Features Section */
.features-section {
    padding: 80px 40px;
    background-color: #fafafa;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.feature-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px;
    width: 100%;
}

.feature-logo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.feature-logo-container:hover .feature-logo {
    transform: scale(1.05);
}

.browser-preview {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.browser-bar {
    background-color: #f5f5f5;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}

.browser-url {
    flex: 1;
}

.browser-title {
    flex: 1;
    text-align: center;
    font-weight: 600;
}

.browser-time {
    flex: 1;
    text-align: right;
}

.browser-content {
    display: flex;
    min-height: 400px;
}

.sidebar {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 20px 15px;
    width: 180px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 13px;
}

.sidebar-item {
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-item:hover {
    background-color: #34495e;
}

.badge {
    background-color: #e53935;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 5px;
}

.main-content {
    flex: 1;
    padding: 25px;
    background-color: #ffffff;
    position: relative;
}

.content-placeholder {
    background: #e0e0e0;
    border-radius: 4px;
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
}

.aceify-popup-placeholder {
    position: absolute;
    background: #d0d0d0;
    border-radius: 6px;
    width: 200px;
    height: 120px;
    top: 80px;
    right: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-top: 10px;
    text-align: center;
}

.feature-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
}

/* Bottom CTA */
.bottom-cta {
    padding: 60px 40px;
    text-align: center;
    background-color: #ffffff;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
}

/* FAQ Section */
.faq-section {
    padding: 80px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    background-color: #ffffff;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-header:hover {
    background-color: #f5f5f5;
}

.faq-item.active .faq-header {
    background-color: #f5f5f5;
}

.faq-question {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    flex: 1;
    padding-right: 20px;
    margin: 0;
}

.faq-chevron {
    color: #666;
    font-size: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    display: inline-block;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
    background-color: #ffffff;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 25px 20px;
}

.faq-answer p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding-top: 0;
}

.compatibility-note {
    margin-top: 30px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}


/* Footer Section */
.main-footer {
    background-color: #f8f8f8;
    padding: 60px 40px;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 13px;
    color: #999;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 36px;
    }

    .feature-logo-container {
        min-height: 250px;
        padding: 30px;
    }

    .feature-logo {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .nav-container,
    .hero-section,
    .features-section,
    .faq-section {
        padding-left: 20px;
        padding-right: 20px;
    }

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

    .cta-title {
        font-size: 32px;
    }

    .faq-title {
        font-size: 32px;
    }

    .feature-logo-container {
        min-height: 200px;
        padding: 25px;
    }

    .feature-logo {
        width: 120px;
        height: 120px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-container {
    background-color: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1;
}

.modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.modal-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin: 0;
    margin-top: 10px;
}

.modal-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    margin-top: -10px;
}

.google-signin-button {
    width: 100%;
    padding: 12px 20px;
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.google-signin-button:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-signin-button:active {
    background-color: #f1f3f4;
}

.google-signin-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.google-icon {
    flex-shrink: 0;
}

/* Email/Password Auth Form */
.email-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: all 0.2s;
    background-color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.email-auth-button {
    width: 100%;
    padding: 12px 20px;
    background-color: #e53935;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.email-auth-button:hover {
    background-color: #c62828;
}

.email-auth-button:active {
    background-color: #b71c1c;
}

.email-auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 8px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
    padding: 0 16px;
    color: #666;
    font-size: 14px;
}

.auth-toggle {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.auth-toggle-link {
    color: #e53935;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-toggle-link:hover {
    color: #c62828;
    text-decoration: underline;
}

.modal-terms {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.terms-link {
    color: #666;
    text-decoration: underline;
    transition: color 0.2s;
}

.terms-link:hover {
    color: #333;
}

.auth-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.auth-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e53935;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-loading p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* User Navigation Styles */
.nav-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.user-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-signout {
    background-color: transparent;
    color: #555555;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.nav-signout:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

/* Protected Content Section */
.protected-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    margin-top: 40px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.protected-container {
    max-width: 900px;
    width: 100%;
}

.protected-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #ffffff;
}

.protected-subtitle {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.protected-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    color: #333;
}

.protected-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #000;
}

.protected-card > p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.protected-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.protected-features li {
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    padding-left: 28px;
}

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

.protected-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #34a853;
    font-weight: bold;
    font-size: 18px;
}

.stripe-placeholder {
    text-align: center;
    padding: 32px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dadce0;
}

.stripe-button {
    background-color: #635bff;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.stripe-button:hover {
    background-color: #5851ea;
}

.stripe-note {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Subscription Styles */
.subscription-loading {
    text-align: center;
    padding: 40px;
}

.subscription-active {
    text-align: center;
    padding: 20px 0;
}

.subscription-badge {
    display: inline-block;
    background-color: #34a853;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.subscription-info {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.subscription-price {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
}

.stripe-button-secondary {
    background-color: #ffffff;
    color: #635bff;
    border: 2px solid #635bff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.stripe-button-secondary:hover {
    background-color: #635bff;
    color: #ffffff;
}

.premium-features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
}

.premium-features li {
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

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

.subscription-pricing {
    text-align: center;
    padding: 32px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 24px;
}

.price-display {
    margin-bottom: 24px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: #000;
}

.price-period {
    font-size: 18px;
    color: #666;
    margin-left: 4px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        margin: 20px;
    }

    .modal-content {
        padding: 30px 24px;
    }

    .modal-title {
        font-size: 24px;
    }

    .nav-user-info {
        gap: 12px;
    }

    .user-name {
        max-width: 100px;
        font-size: 14px;
    }

    .protected-section {
        padding: 60px 20px;
    }

    .protected-title {
        font-size: 32px;
    }

    .protected-card {
        padding: 30px 24px;
    }
}

