/* Landing Page CSS */

html,
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Scope everything under .landing-page to avoid conflicts if possible */
.landing-page-wrapper {
    color: #1f2937;
    /* Gray 800 */
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
    /* Reset base font size to 16px (standard for web) */
    font-size: 16px;
}

/* Override the global * selector from main.css */
.landing-page-wrapper * {
    font-family: inherit;
}

.landing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header/Nav */
.landing-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 24px 0;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.landing-logo img {
    height: 48px;
    width: auto;
}

.landing-logo span {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.landing-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #2563eb;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
    border: none;
    cursor: pointer;
}

.landing-btn-primary:hover {
    background-color: #1d4ed8;
}

/* Hero Section */
.landing-hero {
    position: relative;
    padding-top: 128px;
    padding-bottom: 96px;
    overflow: hidden;
    background: linear-gradient(to bottom right, #eff6ff, #ffffff);
}

.landing-hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

@media (min-width: 992px) {
    .landing-hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.landing-hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    margin-bottom: 32px;
}

.landing-hero-text p {
    font-size: 20px;
    color: #4b5563;
    margin-bottom: 48px;
    max-width: 650px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid #e5e7eb;
}

.stat-item .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
}

.stat-item p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.landing-hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.landing-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.landing-hero-image:hover img {
    transform: rotateY(0) rotateX(0);
}

/* Features Section */
.landing-section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}

.section-header p {
    font-size: 18px;
    color: #6b7280;
}

/* About Section Text - Scaled for better readability, matching other 18px text */
.about-text {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 18px !important;
    line-height: 1.8;
    color: #4b5563;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Make the last odd card span both columns */
    .feature-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-card:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

.feature-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s, transform 0.3s;
}

.feature-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: #eff6ff;
    color: #2563eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .landing-page-wrapper {
        font-size: 18px;
    }

    .landing-container {
        padding: 0 20px;
    }

    .landing-nav {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
    }

    .landing-logo span {
        font-size: 22px;
    }

    .landing-btn-primary {
        padding: 14px 28px;
        font-size: 16px;
    }

    .landing-hero {
        padding-top: 100px;
        padding-bottom: 70px;
    }

    .landing-hero-content {
        gap: 40px;
    }

    .landing-hero-text h1 {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 24px;
    }

    .landing-hero-text p {
        font-size: 18px;
        margin-bottom: 32px;
        line-height: 1.7;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: space-between;
        gap: 16px;
        margin-top: 32px;
        padding-top: 32px;
    }

    .stat-item .stat-value {
        font-size: 24px;
    }

    .stat-item p {
        font-size: 14px;
    }

    .landing-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .section-header p {
        font-size: 17px;
        line-height: 1.6;
    }

    .about-text p {
        font-size: 17px !important;
        line-height: 1.7;
    }

    .features-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-card:last-child:nth-child(odd) {
        grid-column: auto !important;
        max-width: 100%;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 18px;
    }

    .feature-icon svg {
        width: 28px;
        height: 28px;
    }

    .feature-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .feature-desc {
        font-size: 16px;
        line-height: 1.6;
    }

    .benefits-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .benefit-item {
        gap: 16px;
    }

    .check-icon {
        padding: 8px;
    }

    .check-icon svg {
        width: 20px;
        height: 20px;
    }

    .benefit-content h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .benefit-content p {
        font-size: 16px;
        line-height: 1.6;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .footer-link {
        font-size: 16px;
    }

    .copyright {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .feature-card {
        padding: 32px;
    }
}

/* Dark Section (Why Choose) */
.bg-dark {
    background-color: #111827;
    color: #ffffff;
}

.bg-dark .section-header h2 {
    color: #ffffff;
}

.bg-dark .section-header p {
    color: #9ca3af;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.check-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.benefit-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.benefit-content p {
    font-size: 16px;
    color: #9ca3af;
    line-height: 1.6;
}

/* Footer */
.landing-footer {
    padding: 64px 0 32px;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 48px;
}

.footer-links {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-link {
    font-size: 16px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
}

.footer-link:hover {
    color: #2563eb;
}

.copyright {
    color: #4b5563;
    font-size: 14px;
}
