/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #1d1d1f;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Hero Section */
.header {
    padding: 60px 20px 50px;
    text-align: center;
    color: white;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
}

/* Main Content Area */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 60px;
    text-align: center;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    font-weight: 500;
}

.footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Apps Section */
.apps-section {
    padding-top: 1rem;
}

.apps-section h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
}

.apps-section .subheading {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

/* App Cards */
.app-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card.clickable {
    cursor: pointer;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.app-card .img-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 16px;
}

.app-card h3 {
    font-size: 1.4rem;
    margin: 8px 0;
    color: #1d1d1f;
    font-weight: 600;
}

.app-card .tagline {
    color: #6e6e73;
    font-size: 1rem;
    margin-bottom: 12px;
}

.badge-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 8px 0;
}

.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 20px;
}

.card-link:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
    border-radius: 20px;
}

.store-cta {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 16px;
}

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

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

/* Contact Section */
.contact-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto 0;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.contact-section p {
    margin: 8px 0;
    font-size: 1.1rem;
}

.contact-section strong {
    font-weight: 600;
    color: #1d1d1f;
}

.contact-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 768px) {
    .header h1 {
        font-size: 4rem;
    }

    .header p {
        font-size: 1.5rem;
    }

    .apps-section h2 {
        font-size: 2.5rem;
    }

    .apps-section .subheading {
        font-size: 1.2rem;
    }

    .apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .header h1 {
        font-size: 2.2rem;
    }

    .header p {
        font-size: 1.1rem;
    }

    .apps-section h2 {
        font-size: 1.6rem;
    }

    .contact-section {
        padding: 30px 20px;
    }

    .app-card {
        padding: 25px 16px;
    }
}
