:root {
    --bg-color: #111315;
    --primary-color: #16A8D2;
    --primary-dark: #0e87a9;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --font-main: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    /* Prevent scrolling */
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 50%, rgba(22, 168, 210, 0.15) 0%, #111315 100%);
    color: var(--text-color);
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 1400px;
    /* Wide screens */
    margin: 0 auto;
    padding: 2rem 5%;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
}

.logo {
    height: 32px;
    /* Sleek size */
    width: auto;
    display: block;
}

.btn-login {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* box-shadow: 0 4px 15px rgba(0, 168, 232, 0.25); */
}

.btn-login:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    /* box-shadow: 0 8px 20px rgba(0, 168, 232, 0.4); */
}

.btn-login:active {
    transform: translateY(0);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    min-height: 0;
    /* Crucial for flex box sizing */
    gap: 2rem;
}

.hero-visual {
    flex-shrink: 1;
    max-height: 55vh;
    /* Responsive height cap */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
}

/* Subtle glow behind hero */
.hero-visual::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.hero-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

.hero-text {
    flex-shrink: 0;
    width: 100%;
    max-width: 800px;
    animation: fadeIn Up 0.8s ease-out;
}

.hero-text h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    /* Responsive font size */
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.store-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-store {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.9rem 2.5rem;
    /* Wide padding */
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 200px;
}

.btn-store:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
}

.btn-store:active {
    transform: translateY(-1px);
}

.btn-store i {
    font-size: 1.5rem;
}

/* Footer */
.main-footer {
    flex-shrink: 0;
    text-align: center;
    padding-top: 1rem;
    z-index: 10;
}

.main-footer span {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .app-container {
        padding: 1rem 1.5rem;
    }

    .logo {
        height: 28px;
    }

    .hero-visual {
        max-height: 45vh;
        /* More space for text on mobile */
    }

    .hero-text h1 {
        margin-bottom: 2rem;
    }

    .store-buttons {
        flex-direction: column;
        /* Stack on mobile if needed, or keep side-by-side if they fit */
        gap: 1rem;
        align-items: center;
    }

    .btn-store {
        width: 100%;
        /* Full width buttons on mobile look good */
        max-width: 320px;
    }
}

@media (max-height: 700px) {

    /* Short screens fixes */
    .hero-visual {
        max-height: 40vh;
    }

    .hero-text h1 {
        margin-bottom: 1.5rem;
    }

    .app-container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}