:root {
    --page-background: #f3f5f8;
    --card-background: #ffffff;
    --heading-color: #131722;
    --button-background: #145f55;
    --button-hover: #0e4e46;
    --button-active: #0b403a;
    --button-text: #ffffff;
    --focus-ring: rgba(20, 95, 85, 0.25);
    --card-border: rgba(19, 23, 34, 0.08);
    --card-shadow: 0 24px 70px rgba(31, 40, 55, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background:
        radial-gradient(
            circle at top left,
            rgba(20, 95, 85, 0.08),
            transparent 32%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(20, 95, 85, 0.06),
            transparent 30%
        ),
        var(--page-background);

    color: var(--heading-color);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.page {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding:
        max(24px, env(safe-area-inset-top))
        max(18px, env(safe-area-inset-right))
        max(24px, env(safe-area-inset-bottom))
        max(18px, env(safe-area-inset-left));
}

.download-box {
    width: min(100%, 410px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 46px 32px 34px;
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.logo-box {
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 28px;
    box-shadow:
        0 12px 28px rgba(31, 40, 55, 0.12),
        0 0 0 1px rgba(19, 23, 34, 0.05);
}

.app-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.app-title {
    margin-bottom: 30px;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.1;
    font-weight: 750;
    letter-spacing: -0.035em;
    color: var(--heading-color);
}

.download-button {
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 14px 24px;
    border: 0;
    border-radius: 15px;
    background: var(--button-background);
    color: var(--button-text);
    font-size: 17px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(20, 95, 85, 0.22);
    transition:
        background-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.download-button:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(20, 95, 85, 0.28);
}

.download-button:active {
    background: var(--button-active);
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(20, 95, 85, 0.2);
}

.download-button:focus-visible {
    outline: 4px solid var(--focus-ring);
    outline-offset: 4px;
}

.download-button.is-downloading {
    pointer-events: none;
    opacity: 0.88;
}

.download-symbol {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.download-button.is-downloading .download-symbol {
    animation: downloadMove 650ms ease-in-out infinite alternate;
}

@keyframes downloadMove {
    from {
        transform: translateY(-2px);
    }

    to {
        transform: translateY(3px);
    }
}

@media (max-width: 480px) {
    .page {
        padding: 18px;
    }

    .download-box {
        padding: 38px 22px 24px;
        border-radius: 24px;
    }

    .logo-box {
        width: 102px;
        height: 102px;
        margin-bottom: 22px;
        border-radius: 24px;
    }

    .app-title {
        margin-bottom: 26px;
    }

    .download-button {
        min-height: 56px;
        border-radius: 14px;
        font-size: 16px;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    .page {
        padding: 16px;
    }

    .download-box {
        padding: 22px 26px;
    }

    .logo-box {
        width: 78px;
        height: 78px;
        margin-bottom: 14px;
        border-radius: 18px;
    }

    .app-title {
        margin-bottom: 18px;
        font-size: 28px;
    }

    .download-button {
        min-height: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}