/* ============================================================
   OER Remix Platform - Landing Page Stylesheet
   Modern Academic design: authority + approachability
   ============================================================ */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
    --land-heading: #0F172A;
    --land-text: #334155;
    --land-muted: #64748b;
    --land-accent: #10B981;
    --land-accent-hover: #059669;
    --land-blue: #2563eb;
    --land-blue-hover: #1d4ed8;
    --land-warm: #FFFBEB;
    --land-base: #F8FAFC;
    --land-white: #FFFFFF;
    --land-border: #E2E8F0;
    --land-dark: #0F172A;
    --land-dark-soft: #1E293B;
    --land-gradient-start: #0F172A;
    --land-gradient-end: #1E293B;
}

/* ============================================================
   Typography
   ============================================================ */
.landing-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--land-text);
    overflow-x: hidden;
}

.landing-page h1,
.landing-page h2,
.landing-page h3 {
    color: var(--land-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.landing-page .display-heading {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 800;
}

.landing-page .section-heading {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.landing-page .section-subheading {
    font-size: 1.125rem;
    color: var(--land-muted);
    max-width: 40rem;
    margin: 0 auto 3rem;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, var(--land-gradient-start) 0%, var(--land-dark-soft) 50%, #0F2027 100%);
    color: white;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section h1 {
    color: white;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 38rem;
    line-height: 1.7;
}

.hero-section .btn-accent {
    background-color: var(--land-accent);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.hero-section .btn-accent:hover {
    background-color: var(--land-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    color: white;
}

.hero-section .btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.hero-section .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* ============================================================
   Trust Strip
   ============================================================ */
.trust-section {
    background: var(--land-white);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--land-border);
}

.trust-section .trust-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--land-muted);
    font-weight: 600;
}

.trust-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.5;
}

.trust-logos span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--land-muted);
    letter-spacing: 0.05em;
}

/* ============================================================
   How It Works
   ============================================================ */
.how-section {
    background: var(--land-base);
    padding: 5rem 0;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--land-accent);
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--land-muted);
    font-size: 0.95rem;
}

/* Arrow connector between steps */
@media (min-width: 768px) {
    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 2rem;
        right: -1.5rem;
        width: 3rem;
        height: 2px;
        background: linear-gradient(to right, var(--land-accent), transparent);
        transform: translateY(1.25rem);
    }
}

/* ============================================================
   Features Grid
   ============================================================ */
.features-section {
    background: var(--land-white);
    padding: 5rem 0;
}

.feature-card {
    background: var(--land-white);
    border: 1px solid transparent;
    border-radius: 0.75rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    background-image: linear-gradient(var(--land-white), var(--land-white)),
                      linear-gradient(135deg, var(--land-accent), transparent);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--land-accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--land-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================================
   Pricing Section
   ============================================================ */
.pricing-section {
    background: var(--land-base);
    padding: 5rem 0;
}

.pricing-card {
    background: var(--land-white);
    border: 1px solid var(--land-border);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--land-accent);
    box-shadow: 0 8px 40px rgba(16, 185, 129, 0.15);
    transform: scale(1.03);
}

.pricing-card.featured .pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--land-accent);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card .plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--land-heading);
    margin-bottom: 0.5rem;
}

.pricing-card .plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--land-heading);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.pricing-card .plan-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.pricing-card .plan-price .period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--land-muted);
}

.pricing-card .plan-desc {
    color: var(--land-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.pricing-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-card .feature-list li {
    padding: 0.375rem 0;
    font-size: 0.9rem;
    color: var(--land-text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pricing-card .feature-list .check {
    color: var(--land-accent);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.pricing-card .feature-list .cross {
    color: #CBD5E1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.btn-plan-primary {
    background: var(--land-accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    width: 100%;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-plan-primary:hover {
    background: var(--land-accent-hover);
    color: white;
    transform: translateY(-1px);
}

.btn-plan-secondary {
    background: transparent;
    color: var(--land-heading);
    border: 1px solid var(--land-border);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    width: 100%;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-plan-secondary:hover {
    border-color: var(--land-heading);
    background: var(--land-base);
    color: var(--land-heading);
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials-section {
    background: var(--land-white);
    padding: 5rem 0;
}

.testimonial-card {
    background: var(--land-warm);
    border: 1px solid rgba(217, 119, 6, 0.1);
    border-radius: 0.75rem;
    padding: 2rem;
    height: 100%;
}

.testimonial-card .quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--land-text);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.testimonial-card .author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--land-heading);
}

.testimonial-card .role {
    font-size: 0.8rem;
    color: var(--land-muted);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
    background: var(--land-base);
    padding: 5rem 0;
}

.faq-item {
    background: var(--land-white);
    border: 1px solid var(--land-border);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--land-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: var(--land-base);
}

.faq-question .faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.25rem;
    color: var(--land-muted);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--land-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

/* ============================================================
   Final CTA
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--land-gradient-start), var(--land-dark-soft));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* ============================================================
   Expanded Footer
   ============================================================ */
.landing-footer {
    background: var(--land-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 4rem 0 2rem;
}

.landing-footer h6 {
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.landing-footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.landing-footer a:hover {
    color: var(--land-accent);
}

.landing-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-size: 0.8rem;
}

/* ============================================================
   Scroll Reveal Animations
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   Mobile Responsive
   ============================================================ */
@media (max-width: 767px) {
    .hero-section {
        padding: 4rem 0 3rem;
        text-align: center;
    }

    .hero-section .lead {
        margin: 0 auto 1.5rem;
    }

    .hero-section .d-flex {
        flex-direction: column;
    }

    .hero-section .btn-accent,
    .hero-section .btn-ghost {
        width: 100%;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .trust-logos {
        gap: 1.5rem;
    }

    .step-card:not(:last-child)::after {
        display: none;
    }
}

/* Mobile sticky CTA */
@media (max-width: 575px) {
    .mobile-sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--land-dark);
        padding: 0.75rem 1rem;
        z-index: 1000;
        display: flex;
        gap: 0.5rem;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }

    .mobile-sticky-cta .btn {
        flex: 1;
        font-size: 0.9rem;
        padding: 0.625rem;
    }

    /* Add padding to prevent content hiding behind sticky CTA */
    .landing-footer {
        padding-bottom: 5rem;
    }
}

@media (min-width: 576px) {
    .mobile-sticky-cta {
        display: none;
    }
}

/* ============================================================
   Annual toggle
   ============================================================ */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--land-white);
    border: 1px solid var(--land-border);
    border-radius: 2rem;
    padding: 0.375rem;
    margin-bottom: 2.5rem;
}

.billing-toggle .toggle-option {
    padding: 0.5rem 1.25rem;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--land-muted);
    border: none;
    background: none;
}

.billing-toggle .toggle-option.active {
    background: var(--land-heading);
    color: white;
}

.save-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--land-accent);
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
}
