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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #06b6d4;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-xl);
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(var(--shadow-md));
}

header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Main Content */
main {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: var(--shadow-xl);
}

section {
    margin-bottom: 60px;
}

section:last-child {
    margin-bottom: 0;
}

h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

/* Intro Section */
.intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.intro p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.platform-note {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    border-left: 4px solid var(--primary-color);
}

.platform-note p {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.platform-note p:last-child {
    margin-bottom: 0;
}

/* Section Headers */
.apps-section {
    margin-bottom: 80px;
}

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

.section-header h2 {
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin: 0;
}

.desktop-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #f9f0ff 100%);
    padding: 40px;
    border-radius: 16px;
}

/* App Cards Grid */
.app-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.desktop-cards {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    max-width: 1000px;
    margin: 40px auto 0;
}

.app-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: visible;
    box-shadow: var(--shadow-sm);
}

.app-card-featured {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.app-card:hover::before {
    transform: scaleX(1);
}

/* Desktop Badge */
.desktop-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* App Icon */
.app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
}

.app-icon svg {
    width: 40px;
    height: 40px;
}

.app-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.app-brief {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
    min-height: 48px;
    font-size: 0.95rem;
}

/* Hover Information */
.app-hover-info {
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary-color);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.app-card:hover .app-hover-info {
    opacity: 1;
    max-height: 200px;
    margin-bottom: 20px;
}

.app-hover-info p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

/* App Actions */
.app-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.learn-more {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    font-size: 0.9rem;
}

.learn-more:hover {
    background: var(--primary-color);
    color: white;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.app-link:hover {
    background: var(--primary-dark);
    gap: 12px;
}

.download-link {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
}

.download-link:hover {
    background: linear-gradient(135deg, #5a0fb1, #1e65dc);
}

.arrow {
    transition: transform 0.3s ease;
}

.app-link:hover .arrow {
    transform: translateX(4px);
}

/* Features Section */
.features {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 40px;
    border-radius: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

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

/* CTA Section */
.cta {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    color: white;
}

.cta h2 {
    color: white;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.cta-button-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: white;
    margin-top: 40px;
}

.footer-content p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

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

.divider {
    color: rgba(255, 255, 255, 0.5);
}

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

    .tagline {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    main {
        padding: 40px 20px;
    }

    .app-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .desktop-cards {
        grid-template-columns: 1fr;
    }

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

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

    .divider {
        display: none;
    }

    .app-actions {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .platform-note {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 20px;
    }

    header h1 {
        font-size: 1.75rem;
    }

    .container {
        padding: 15px;
    }

    .app-card {
        padding: 20px;
    }

    .desktop-section {
        padding: 20px;
    }
}
