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

:root {
    /* Color Palette from Header Image */
    --primary-purple: #8B3E9F;
    --primary-magenta: #E91E63;
    --primary-blue: #4A5FBA;
    --primary-orange: #FF6B35;
    --primary-red: #E91E63;
    --text-black: #000000;
    --bg-light: #F5F5F5;
    --text-gray: #4a5568;
    --text-dark: #2d3748;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-black);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 50%, var(--primary-magenta) 100%);
    color: white;
    padding: 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header with text content (for app pages) */
header .container {
    padding: 60px 20px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.tagline {
    font-size: 1.2rem;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
}

.header-banner {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    background-color: white;
    object-fit: contain;
    border-radius: 24px;
}

/* Scroll Indicator */
.scroll-indicator {
    padding: 30px 20px;
    text-align: center;
    animation: fadeIn 1s ease-in;
}

.scroll-arrow {
    font-size: 2rem;
    color: white;
    animation: bounce 2s infinite;
    display: inline-block;
}

.scroll-text {
    color: white;
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.9;
    font-weight: 500;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Main Content */
main {
    padding: 60px 20px;
}

.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.app-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 2px solid transparent;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(139, 62, 159, 0.2);
    border: 2px solid var(--primary-purple);
}

.app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-magenta) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-weight: 700;
}

.app-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    text-align: center;
    min-height: 60px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-magenta) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    transform: scale(1.02);
}

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

.btn-secondary:hover {
    background: var(--primary-purple);
    color: white;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 50%, var(--primary-magenta) 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

/* Legal Pages */
.legal-page {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.legal-page h1 {
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 700;
}

.legal-page .last-updated {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.legal-page h2 {
    color: var(--primary-purple);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-page p, .legal-page ul {
    color: #4a5568;
    margin-bottom: 15px;
}

.legal-page ul {
    padding-left: 30px;
}

.legal-page li {
    margin-bottom: 8px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        padding: 40px 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .header-banner {
        padding: 15px;
    }

    .header-image {
        max-height: 250px;
        border-radius: 16px;
    }

    .scroll-indicator {
        padding: 20px 10px;
    }

    .scroll-arrow {
        font-size: 1.5rem;
    }

    .scroll-text {
        font-size: 0.8rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .legal-page {
        padding: 20px;
    }
}
