/* Replace bg.jpg with bg.svg here when desired; both scale with the viewport width. */
:root {
    --background-image:url("../assets/bg.jpg");
    --text:#fff;
    --pink:#d42ff5;
    --max:#c338f0;
    --telegram:#0099e5;
    --vk:#0077ff
}

* {
    box-sizing:border-box
}

html {
    min-width:400px;
    min-height:100%;
    scroll-behavior:smooth
}

body {
    margin:0;
    min-width:400px;
    min-height:100vh;
    color:var(--text);
    font-family:Montserrat,Arial,sans-serif;
    background:#222c71;
    -webkit-font-smoothing:antialiased
}

/* Background: the artwork can be replaced with an SVG by changing --background-image. */
.background {
    position:fixed;
    inset:0;
    z-index:0;
    overflow:hidden;
    background-image:var(--background-image);
    background-repeat:no-repeat;
    background-position:center top;
    background-size:100% auto;
    background-color:#162660;
    pointer-events:none;
    isolation:isolate
}

.background::after {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(180deg,rgba(8,15,65,.02),rgba(0,9,51,.09));
    pointer-events:none
}

.aurora-canvas {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    display:block;
    mix-blend-mode:screen;
    opacity:.93
}

.aurora-haze {
    position:absolute;
    inset:-12%;
    pointer-events:none;
    mix-blend-mode:screen;
    opacity:.7;
    background:radial-gradient(ellipse 46% 30% at 23% 41%,rgba(108,218,255,.14),transparent 78%),radial-gradient(ellipse 42% 40% at 79% 32%,rgba(215,220,255,.17),transparent 78%);
    filter:blur(38px);
    animation:haze-drift 15s ease-in-out infinite alternate
}

@keyframes haze-drift {
    0% {
        transform:translate3d(-5%,2%,0) scale(1);
        opacity:.55
    }
    50% {
        opacity:.78
    }
    100% {
        transform:translate3d(5%,-3%,0) scale(1.12);
        opacity:.65
    }
}

.page {
    position:relative;
    z-index:1
}

.page {
    width:min(100%,1600px);
    min-height:100vh;
    margin:auto;
    padding:clamp(80px,12vh,145px) 24px 90px;
    text-align:center;
    display:flex;
    align-items:center;
    flex-direction:column
}

.logo-link {
    display:block;
    width:min(400px,75vw);
    flex:none
}

.logo {
    display:block;
    width:100%;
    height:auto;
    object-fit:contain
}

.hero {
    width:100%;
    margin-top:clamp(65px,10vh,115px)
}

h1 {
    font-size:77px;
    line-height:1.12;
    letter-spacing:.030em;
    font-weight:900;
    margin:0 auto 38px;
    text-wrap:balance
}

.description {
    max-width:860px;
    margin:0 auto;
    font-size:20px;
    line-height:1.43;
    font-weight:800
}

.description a {
    color:var(--pink);
    text-decoration:none;
    transition:color .25s ease
}

.description a:hover,.description a:focus-visible {
    color:#fff;
    text-decoration:underline
}

.social {
    display:flex;
    justify-content:center;
    align-items:stretch;
    gap:14px;
    flex-wrap:wrap;
    margin:70px auto 0;
    max-width:1000px
}

.social-button {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    width:clamp(210px,20vw,260px);
    min-height:72px;
    padding:16px 22px;
    border-radius:999px;
    color:#fff;
    text-decoration:none;
    font-size:22px;
    font-weight:800;
    line-height:1.15;
    transition:background-color .35s ease,transform .35s ease,box-shadow .35s ease
}

.social-button img {
    width:28px;
    height:28px;
    object-fit:contain;
    flex:none
}

.social-button--max {
    background:var(--max)
}

.social-button--telegram {
    background:var(--telegram)
}

.social-button--vk {
    background:var(--vk)
}

.social-button:hover,.social-button:focus-visible {
    background:#000;
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(0,0,0,.18)
}

.social-button:focus-visible {
    outline:2px solid white;
    outline-offset:4px
}

/* A soft, repeating specular highlight travels across every button. */
.social-button::before {
    content:"";
    position:absolute;
    z-index:-1;
    inset:-100% auto -100% -65%;
    width:32%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.23),transparent);
    transform:skewX(-23deg) translateX(-160%);
    animation:button-shine 5.4s ease-in-out infinite;
    pointer-events:none
}

.social-button:nth-child(2)::before {
    animation-delay:1.1s
}

.social-button:nth-child(3)::before {
    animation-delay:2.2s
}

@keyframes button-shine {
    0%,20% {
        left:-65%
    }
    45%,100% {
        left:155%
    }
}

@media(max-width:800px) {
    .page {
        padding-top:clamp(75px,10vh,110px)
    }
    .hero {
        margin-top:70px
    }
    h1 {
        margin-bottom:30px
    }
    .description {
        max-width:620px
    }
    .social {
        margin-top:50px;
        gap:12px
    }
    .social-button {
        width:calc(50% - 12px);
        max-width:300px
    }
}

@media(max-width:600px) {
    .page {
        padding:76px 24px 64px
    }
    .logo-link {
        width:min(320px,78vw)
    }
    .hero {
        margin-top:75px
    }
    h1 {
        font-size:clamp(38px,9vw,54px);
        margin-bottom:26px
    }
    .description {
        font-size:17px;
        line-height:1.55;
        font-weight:700
    }
    .social {
        margin-top:45px;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:14px;
        width:100%
    }
    .social-button {
        width:min(100%,330px);
        max-width:none;
        min-height:64px;
        font-size:20px
    }
}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        animation:none!important;
        transition:none!important;
        scroll-behavior:auto!important
    }
}
