body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    background-color: #00618e;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

.container {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

h2 {
    font-size: 1.8rem;
    margin-top: 0;
}

.slogan {
    font-style: italic;
    margin-bottom: 2rem;
}

.buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 80%;
    max-width: 250px;
    color: white;
    font-weight: bold;
}

.android {
    background-color: #4CAF50;
}

.ios {
    background-color: #2196F3;
}

.mini-program {
    background-color: #00C853;
}

button:hover {
    opacity: 0.8;
}

.coming-soon {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFC107;
}

#screenshots {
    margin-top: 2rem;
}

#screenshots h3 {
    margin-bottom: 1rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.screenshots-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

@media (min-width: 768px) {
    .screenshots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: #111;
    color: #fff;
    border-radius: 10px;
    padding: 1rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .buttons {
        flex-direction: row;
        justify-content: center;
    }

    button {
        width: auto;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Small devices fine-tuning */
@media (max-width: 390px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.4rem;
    }
    .container {
        padding: 1.25rem;
    }
    button {
        font-size: 0.95rem;
        padding: 0.7rem 1.2rem;
        max-width: none;
        width: 100%;
    }
}

/* Safe area support for iOS notch */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

.copyright {
    margin-top: 2rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.copyright p {
    margin: 0.3rem 0;
}

.copyright a {
    color: white;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}
