/* Homepage Layout Cleanup */

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

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

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--purple);
    box-shadow: 0 10px 40px rgba(124, 91, 245, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Screenshot Sections - Consistent Layout */
.screenshot-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.screenshot-section.reverse {
    direction: rtl;
}

.screenshot-section.reverse > * {
    direction: ltr;
}

.screenshot-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.screenshot-text p {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
}

.screenshot-image {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.screenshot-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Brands Section */
.brands {
    padding: 5rem 0;
    text-align: center;
    background: var(--card);
}

.brands .container {
    max-width: 1200px;
}

.brands h2 {
    margin-bottom: 0.5rem;
}

.brands .container > p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.brand-logos {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.brand-logos img {
    width: 100%;
    max-width: 140px;
    height: 60px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.brand-logos a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logos a:hover img,
.brand-logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* CTA Section */
.cta {
    padding: 5rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.cta p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .brand-logos {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .screenshot-section,
    .screenshot-section.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
    
    .screenshot-section.reverse .screenshot-text {
        order: 2;
    }
    
    .screenshot-section.reverse .screenshot-image {
        order: 1;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-logos {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .brand-logos img {
        max-width: 80px;
        height: 40px;
    }
}

/* Footer Cleanup */
footer p {
    text-align: center;
    color: var(--text-muted);
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .brand-logos {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .brand-logos img {
        max-width: 70px;
        height: 35px;
    }
}