/*
 * Date: 2025-01-04
 * Update Date: 2025-01-04
 * Author Name: Aahaan
 * File Name: landing.css
 * Purpose: Landing page specific styles - hero, features, pricing, testimonials, FAQ, animations
 */

/* ========================================
   Accessibility - Skip Link
======================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-dark);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   Landing Navbar
======================================== */
.landing-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    transition: all var(--transition);
}

.landing-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.landing-navbar .brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    color: white;
    font-size: 1.125rem;
}

.landing-navbar .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.landing-navbar .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
}

.landing-navbar .nav-link:hover {
    color: var(--primary-dark);
}

.nav-auth-buttons {
    margin-top: 1rem;
}

@media (min-width: 992px) {
    .nav-auth-buttons {
        margin-top: 0;
    }
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, #f0fdfa 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, var(--primary-light) 0%, transparent 50%);
    opacity: 0.5;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: #92400e;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-hero-primary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d9488 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
    transition: all var(--transition);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.5);
    color: white;
}

.btn-hero-secondary {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.btn-hero-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-image-placeholder {
    background: linear-gradient(135deg, var(--primary-light) 0%, white 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-image-placeholder i {
    font-size: 4rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.hero-image-placeholder p {
    color: var(--text-muted);
    margin: 0;
}

/* Floating elements */
.floating-badge {
    position: absolute;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: float 3s ease-in-out infinite;
}

.floating-badge.badge-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.floating-badge.badge-2 {
    bottom: 20%;
    left: -5%;
    animation-delay: 1s;
}

.floating-badge.badge-3 {
    bottom: 5%;
    right: 5%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   Trust Badges Section
======================================== */
.trust-section {
    padding: 3rem 0;
    background: white;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.trust-item i {
    font-size: 1.25rem;
    color: var(--primary-dark);
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-icon.icon-primary {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.feature-icon.icon-warning {
    background: var(--secondary-light);
    color: #b45309;
}

.feature-icon.icon-success {
    background: #dcfce7;
    color: #16a34a;
}

.feature-icon.icon-info {
    background: #e0f2fe;
    color: #0284c7;
}

.feature-icon.icon-danger {
    background: #fee2e2;
    color: #dc2626;
}

.feature-icon.icon-purple {
    background: #f3e8ff;
    color: #9333ea;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ========================================
   How It Works Section
======================================== */
.how-it-works-section {
    padding: 5rem 0;
    background: white;
}

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

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d9488 100%);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
}

.step-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-description {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* Connector line between steps */
.step-connector {
    position: absolute;
    top: 40px;
    left: calc(50% + 35px);
    width: calc(100% - 70px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

@media (max-width: 767.98px) {
    .step-connector {
        display: none;
    }
}

/* ========================================
   Pricing Section
======================================== */
.pricing-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg) 0%, #f0fdfa 100%);
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
    border: 2px solid var(--border);
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-dark);
    box-shadow: 0 10px 40px rgba(20, 184, 166, 0.2);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d9488 100%);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-plan {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.pricing-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-description {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.pricing-features li i {
    color: var(--success-dark);
    font-size: 1rem;
    margin-top: 2px;
}

.pricing-features li.disabled {
    color: var(--text-light);
}

.pricing-features li.disabled i {
    color: var(--text-light);
}

.btn-pricing {
    width: 100%;
    padding: 0.875rem;
    font-weight: 600;
}

/* ========================================
   Testimonials Section
======================================== */
.testimonials-section {
    padding: 5rem 0;
    background: white;
}

.testimonial-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--border);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #f59e0b;
    font-size: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1.125rem;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.faq-accordion .accordion-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    font-weight: 600;
    color: var(--text-primary);
    background: white;
    box-shadow: none;
    padding: 1.25rem 1.5rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.faq-accordion .accordion-button::after {
    background-size: 1rem;
}

.faq-accordion .accordion-body {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0d9488 100%);
    color: white;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: white;
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: var(--primary-dark);
}

/* ========================================
   Footer
======================================== */
.landing-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 4rem 0 0;
}

.landing-footer .footer-brand {
    display: flex;
    align-items: center;
}

.landing-footer .brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: var(--radius);
    color: white;
    font-size: 1.125rem;
}

.landing-footer .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-description {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: #9ca3af;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary);
    color: white;
}

.footer-heading {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: #9ca3af;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.newsletter-form .form-control::placeholder {
    color: #6b7280;
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0;
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.btn-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-image-wrapper {
        margin-top: 3rem;
    }
    
    .floating-badge {
        display: none;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 100px 0 50px;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .hero-stat-value {
        font-size: 1.5rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .pricing-value {
        font-size: 2.75rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
}

/* ========================================
   Animation Classes
======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for multiple elements */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
