/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero section */
.hero-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* App icon */
.app-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.app-icon img {
    border-radius: 24px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

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

/* App name */
.app-name {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* App description */
.app-description {
    font-size: 1.25rem;
    font-weight: 400;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA section */
.cta-section {
    margin-top: 2rem;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    margin-bottom: 1.5rem;
    display: inline-block;
    text-decoration: none;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.download-btn:active {
    transform: translateY(0);
}

.website-info {
    font-size: 1rem;
    color: #888;
    margin-top: 1rem;
}

.website-url {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.website-url:hover {
    border-bottom-color: #667eea;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.legal-links {
    margin-bottom: 1rem;
}

.legal-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.separator {
    margin: 0 1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
    color: #333;
}

.modal-body p {
    margin-bottom: 1rem;
}

/* Mobile responsive for modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .legal-links {
        margin-bottom: 0.5rem;
    }
    
    .separator {
        margin: 0 0.5rem;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1rem;
    }
    
    .hero-section {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .app-name {
        font-size: 2.5rem;
    }
    
    .app-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .app-icon img {
        width: 100px;
        height: 100px;
    }
    
    .download-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 1rem;
    }
    
    .app-name {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .app-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .app-icon img {
        width: 80px;
        height: 80px;
    }
    
    .download-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

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

.hero-section {
    animation: fadeInUp 0.8s ease-out;
}

.app-icon {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.app-name {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.app-description {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-section {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}