/* ============================================
   Template 6: App Showcase
   Modern app landing page design
   ============================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    padding-bottom: 100px;
}

/* Hero Section */
.app-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(var(--primary-color-rgb, 99, 102, 241), 0.05) 100%);
    text-align: center;
}

.app-hero-content {
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.app-logo-wrapper {
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease-out;
}

.app-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.app-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-color);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.app-tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: rgba(var(--text-color-rgb, 31, 41, 55), 0.7);
    margin-bottom: 30px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.app-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(var(--text-color-rgb, 31, 41, 55), 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.app-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn-primary,
.btn-secondary,
.btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 180px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb, 99, 102, 241), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--primary-color-rgb, 99, 102, 241), 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 48px;
    font-size: 1.2rem;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 30px rgba(var(--primary-color-rgb, 99, 102, 241), 0.3);
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(var(--primary-color-rgb, 99, 102, 241), 0.4);
}

/* Store Badges */
.store-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.store-badge img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.store-badge:hover img {
    transform: scale(1.05);
}

/* Features Section */
.app-features {
    padding: 80px 20px;
    background: rgba(var(--primary-color-rgb, 99, 102, 241), 0.02);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-color);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), rgba(var(--primary-color-rgb, 99, 102, 241), 0.7));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.feature-text {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Screenshots Section */
.app-screenshots {
    padding: 80px 20px;
    background: var(--bg-color);
}

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

.screenshot-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.screenshot-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-card:hover .screenshot-img {
    transform: scale(1.05);
}

/* Final CTA Section */
.app-final-cta {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 99, 102, 241), 0.05) 0%, var(--bg-color) 100%);
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .app-hero {
        min-height: 80vh;
        padding: 60px 20px 40px;
    }
    
    .app-logo {
        width: 90px;
        height: 90px;
    }
    
    .app-cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-large {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .app-features,
    .app-screenshots,
    .app-final-cta {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .app-name {
        font-size: 2rem;
    }
    
    .app-tagline {
        font-size: 1rem;
    }
    
    .app-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .store-badge img {
        height: 40px;
    }
}
