* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --success-color: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
}

.container {
    max-width: 600px;
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: visible;
    animation: slideUp 0.5s ease-out;
    position: relative;
    margin: 20px auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content {
    padding: 40px 30px;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.app-content {
    animation: fadeIn 0.6s ease-out;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.logo-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    max-height: 150px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.logo-img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    display: block;
}

/* Hide logo if image fails to load */
.logo-img[src=""],
.logo-img:not([src]) {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.main-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.main-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0 40px 0;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.feature-text {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    text-align: center;
}

.download-button {
    width: 100%;
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    position: relative;
    z-index: 10;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(102, 126, 234, 0.4);
}

.download-button:active {
    transform: translateY(-1px);
}

.direct-apk-option {
    margin-top: 12px;
    text-align: center;
}

.direct-apk-btn {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid rgba(102, 126, 234, 0.6);
    border-radius: 10px;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.direct-apk-btn:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: #667eea;
}

.download-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 57px;
    height: 57px;
    object-fit: contain;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.download-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.download-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-top: 2px;
}

.download-arrow {
    font-size: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.download-button:hover .download-arrow {
    transform: translateX(5px);
}

.alternative-download {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.alt-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.alt-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.alt-btn {
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.alt-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.android-alt:hover {
    border-color: #34d399;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.ios-alt:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
}

/* Mobile optimizations */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 15px;
    }

    .content {
        padding: 30px 20px;
    }

    .logo-img {
        max-width: 100%;
        max-height: 120px;
    }
    
    .logo-container {
        max-height: 120px;
        margin-bottom: 20px;
    }

    .main-title {
        font-size: 26px;
    }

    .main-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 30px;
    }

    .feature-item {
        padding: 15px;
    }

    .feature-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .feature-text {
        font-size: 12px;
    }

    .download-button {
        padding: 18px 20px;
    }

    .download-icon {
        font-size: 28px;
    }

    .download-title {
        font-size: 18px;
    }

    .download-subtitle {
        font-size: 13px;
    }

    .download-arrow {
        font-size: 20px;
    }

    .alt-buttons {
        flex-direction: column;
    }

    .alt-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

