:root {
    --al-header: #1a1a1a;
    --al-bg-0: #0e0e0e;
    --al-bg-1: #1a1a1a;
    --al-bg-2: #242424;
    --al-accent: #00ccff;
    --al-accent-soft: rgba(0, 204, 255, 0.16);
    --al-menu-title: #bee2fa;
    --al-text: #f2f7fa;
    --al-muted: #9cb4c6;
    --al-card: rgba(255, 255, 255, 0.06);
    --al-border: rgba(255, 255, 255, 0.12);
    --al-font: "Segoe UI", Tahoma, Helvetica, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body.app-landing {
    font-family: var(--al-font);
    color: var(--al-text);
    background: var(--al-bg-0);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.app-landing__page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.app-landing__sky {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 204, 255, 0.16), transparent 55%),
        radial-gradient(ellipse 55% 40% at 90% 15%, rgba(142, 124, 195, 0.14), transparent 50%),
        radial-gradient(ellipse 45% 35% at 8% 75%, rgba(255, 204, 128, 0.08), transparent 45%),
        linear-gradient(180deg, var(--al-bg-1) 0%, var(--al-bg-0) 55%, #050505 100%);
}

.app-landing__sky::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 28% 42%, rgba(255, 255, 255, 0.45), transparent),
        radial-gradient(1.5px 1.5px at 67% 22%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(1px 1px at 82% 58%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 45% 78%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 91% 12%, rgba(0, 204, 255, 0.7), transparent);
    opacity: 0.85;
    animation: al-twinkle 8s ease-in-out infinite alternate;
}

@keyframes al-twinkle {
    from { opacity: 0.55; }
    to { opacity: 0.95; }
}

.app-landing__top {
    position: relative;
    z-index: 1;
    background: var(--al-header);
}

.app-landing__top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 20px;
}

.app-landing__brand {
    display: flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
    color: #fff;
}

.app-landing__brand:hover,
.app-landing__brand:focus-visible {
    text-decoration: none;
    color: #fff;
}

.app-landing__brand-logo {
    display: block;
    width: 60px;
    height: auto;
    flex-shrink: 0;
}

.app-landing__brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0 10px;
}

.app-landing__brand-name {
    font-size: 1.6em;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
}

.app-landing__brand-slogan {
    font-size: 13px;
    line-height: 1.2;
    color: #fff;
    margin-left: auto;
}

.app-landing__langs {
    display: flex;
    flex-shrink: 0;
    gap: 4px;
    padding: 4px;
    border-radius: 8px;
    background: var(--al-bg-2);
}

.app-landing__lang {
    min-width: 40px;
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--al-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}

.app-landing__lang.is-active {
    background: var(--al-accent-soft);
    color: var(--al-accent);
}

.app-landing__lang:hover:not(.is-active),
.app-landing__lang:focus-visible:not(.is-active) {
    color: var(--al-accent);
}

.app-landing__body {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 48px;
}

.app-landing__hero {
    text-align: center;
    padding: 24px 0 40px;
    animation: al-rise 0.7s ease-out both;
}

@keyframes al-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-landing__logo {
    width: 156px;
    height: 156px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--al-card);
    box-shadow: 0 0 40px rgba(0, 204, 255, 0.12);
    animation: al-glow 3.5s ease-in-out infinite alternate;
}

@keyframes al-glow {
    from { box-shadow: 0 0 24px rgba(0, 204, 255, 0.08); }
    to { box-shadow: 0 0 48px rgba(0, 204, 255, 0.22); }
}

.app-landing__logo img {
    display: block;
    width: 156px;
    height: 156px;
}

.app-landing__title {
    margin: 0 0 12px;
    font-size: clamp(1.85rem, 5vw, 2.6rem);
    font-weight: normal;
    line-height: 1.2;
    color: #fff;
}

.app-landing__tagline {
    margin: 0 auto 32px;
    max-width: 28em;
    font-size: 1.05rem;
    color: var(--al-muted);
}

.app-landing__download-label {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--al-menu-title);
}

.app-landing__stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.app-landing__store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 52px;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    color: #041018;
    background: var(--al-accent);
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.app-landing__store:hover,
.app-landing__store:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.05);
    text-decoration: none;
}

.app-landing__store--rustore {
    color: var(--al-text);
    background: transparent;
    border: 1px solid var(--al-border);
}

.app-landing__store--rustore:hover,
.app-landing__store--rustore:focus-visible {
    border-color: var(--al-accent);
    color: var(--al-accent);
    filter: none;
}

.app-landing__features {
    margin-top: 8px;
    padding: 24px 22px;
    border-radius: 12px;
    background: var(--al-card);
    backdrop-filter: blur(8px);
    animation: al-rise 0.7s ease-out 0.15s both;
}

.app-landing__features-title {
    margin: 0 0 14px;
    font-size: 1.4rem;
    font-weight: normal;
    color: #fff;
}

.app-landing__features-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-landing__features-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    color: var(--al-muted);
    border-top: 1px solid var(--al-border);
}

.app-landing__features-list li:first-child {
    border-top: 0;
}

.app-landing__features-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--al-accent);
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.6);
}

@media (max-width: 990px) {
    .app-landing__brand-name {
        font-size: 1.2em;
    }

    .app-landing__brand-slogan {
        font-size: 10px;
    }

    .app-landing__brand-logo {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .app-landing__top-inner,
    .app-landing__body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .app-landing__body {
        padding-top: 28px;
    }

    .app-landing__store {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-landing__sky::after,
    .app-landing__logo,
    .app-landing__hero,
    .app-landing__features {
        animation: none;
    }
}
