@font-face {
    font-family: Golos;
    src: url("brand/golos.woff2") format("woff2");
    font-weight: 400 900;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --base: #27252d;
    --text: #f5f2f8;
    --muted: #d7d1df;
    --violet: #7943a8;
    --gutter: clamp(20px, 5vw, 80px);
    --copy-size: clamp(1.05rem, 1.35vw, 1.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background: #18152b;
    color: var(--text);
    font: 400 1rem/1.55 Golos, system-ui, sans-serif;
}
html[lang="el"] body { font-family: system-ui, sans-serif; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.pusher {
    max-width: 2560px;
    margin-inline: auto;
    overflow: clip;
    background: var(--base);
}
.shell {
    width: min(1120px, calc(100% - var(--gutter) * 2));
    margin-inline: auto;
}

.opening, .safety {
    position: relative;
    isolation: isolate;
}
/* Один рисунок привязан к окну. Обрезка оставляет его видимым в нужном блоке. */
.fixed-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    clip-path: inset(0);
    pointer-events: none;
    background: #292044;
}
.fixed-backdrop::before {
    content: "";
    position: fixed;
    inset: 0 max(0px, calc((100% - 2560px) / 2));
    background: var(--wash), url("brand/violet.jpg") center top / cover;
}

.opening {
    --overlap: clamp(58px, 5vw, 82px);
    --wash: linear-gradient(90deg, #19122a20, #19122a36 50%, #19122a6b);
}
.opening .fixed-backdrop { bottom: var(--overlap); }
.languages {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 1.4vw, 22px);
    min-height: 65px;
}
.languages svg { width: 17px; height: 17px; opacity: .8; }
.languages a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #eae3f0;
    font-size: .86rem;
    text-decoration: none;
}
.languages a:is([aria-current="page"], :hover) {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 6px;
}
.hero {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
    padding-top: 12px;
}
.pitch {
    grid-area: 1 / 2;
    max-width: 510px;
    padding-block: 20px calc(var(--overlap) + 32px);
}
/* В оригинале под логотипом есть подпись. Здесь её роль выполняет заголовок HTML. */
.wordmark {
    position: relative;
    display: block;
    width: clamp(180px, 19.5vw, 292px);
    aspect-ratio: 476 / 152;
    overflow: hidden;
}
.wordmark img {
    position: absolute;
    width: 147.059%;
    height: auto;
    left: -23.529%;
    top: -28.947%;
}
h1 {
    margin: 20px 0 0;
    font-size: clamp(1.7rem, 3.25vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 550;
    text-wrap: balance;
}
.lead {
    max-width: 38ch;
    margin-top: 19px;
    color: #f2eaf5;
    font-size: var(--copy-size);
    text-wrap: pretty;
}
.stores {
    --badge-height: clamp(40px, 3.4vw, 48px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}
.stores a { display: inline-flex; align-items: center; min-height: 44px; }
.stores img { display: block; height: var(--badge-height); width: auto; }
.play-badge--el {
    position: relative;
    display: block;
    height: var(--badge-height);
    aspect-ratio: 646 / 192;
    overflow: hidden;
}
.play-badge--el img {
    position: absolute;
    width: 100%;
    height: auto;
    top: -15.104%;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .stores a { transition: transform .18s ease; }
    .stores a:hover { transform: translateY(-2px); }
}

.proof {
    padding: clamp(36px, 5.2vw, 76px) var(--gutter) clamp(64px, 7.2vw, 108px);
    text-align: center;
}
.proof p {
    max-width: 45ch;
    margin-inline: auto;
    font-size: clamp(1.32rem, 2.1vw, 1.6rem);
    text-wrap: balance;
}
.split { display: grid; align-items: center; }
.safety {
    --wash: linear-gradient(90deg, #22163b8a, #291a4152 55%, #2b204918);
}
.safety .split {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(26px, 4vw, 58px);
    padding-block: clamp(66px, 6.2vw, 94px) 90px;
}
.safety-copy {
    position: relative;
    top: -22px;
    max-width: 42ch;
    font-size: var(--copy-size);
    text-wrap: pretty;
}
.safety-copy p + p { margin-top: 1em; }

.closing .split {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(30px, 5vw, 72px);
    max-width: 960px;
    padding-bottom: 48px;
}
.closing-copy {
    color: var(--muted);
    text-align: center;
    padding-block: 48px;
}
.download-copy {
    font-size: var(--copy-size);
    text-wrap: balance;
}
.download-copy span { display: block; margin-top: .4em; }
.support {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 22px;
    padding: 8px 19px;
    border-radius: 100px;
    background: var(--violet);
    color: #fff;
    text-decoration: none;
}
.support:hover { background: #69358f; }
.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1em;
    row-gap: .35em;
    margin-top: 33px;
    color: #c4bdce;
    font-size: .81rem;
}
.footer a { text-underline-offset: 3px; }

.phone {
    position: relative;
    isolation: isolate;
}
.phone--front { aspect-ratio: 578 / 1176; }
.phone--tilted { aspect-ratio: 1188 / 780; }
.hero .phone {
    grid-area: 1 / 1;
    place-self: end;
    width: clamp(215px, 22vw, 295px);
}
.safety .phone {
    width: min(594px, 100%);
    justify-self: end;
}
.closing .phone {
    width: min(289px, 100%);
    justify-self: center;
    margin-top: -52px;
}
.phone-body, .phone-case, .phone-screen, .phone-screen img, .phone-clock {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.phone-body { z-index: 1; }
.phone--tilted .phone-body { height: 93.333%; }
.phone-screen {
    -webkit-mask: var(--screen-mask) center / 100% 100% no-repeat;
    mask: var(--screen-mask) center / 100% 100% no-repeat;
}
.phone-clock {
    color: white;
    fill: currentColor;
    pointer-events: none;
    font: normal 36px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    text-anchor: middle;
}
.phone-shadow {
    position: absolute;
    background: center / 100% 100% no-repeat;
    pointer-events: none;
}
.phone--front .phone-shadow {
    background-image: url("devices/floor_shadow@2x.png");
    width: 121.1%;
    height: 19.05%;
    top: 90.31%;
    left: -9.69%;
}
.phone--tilted .phone-shadow {
    background-image: url("devices/tilted_device_shadow@2x.png");
    width: 109.26%;
    height: 100.26%;
    top: 7.69%;
    left: -5.05%;
    opacity: .6;
}
@media (min-resolution: 2dppx) and (prefers-reduced-motion: no-preference) {
    .phone-body { animation: float 10s ease-in-out infinite; }
    .phone-shadow { animation: shadow 10s ease-in-out infinite; transform-origin: 50% 20%; }
}
@keyframes float { 50% { transform: translateY(-16px); } }
@keyframes shadow { 50% { transform: scale(1.05); opacity: .3; } }

@media (max-width: 760px) {
    .opening { --overlap: 46px; }
    .languages { min-height: 52px; justify-content: center; }
    .hero {
        display: flex;
        flex-direction: column;
        padding-top: 16px;
        gap: 32px;
    }
    .pitch { padding: 0; width: 100%; text-align: center; }
    .wordmark { width: clamp(160px, 42vw, 208px); margin-inline: auto; }
    h1 { margin-top: 13px; font-size: clamp(1.7rem, 6vw, 2.3rem); }
    .lead { max-width: 36ch; margin: 12px auto 0; }
    .lead, .safety-copy, .download-copy { font-size: 1rem; }
    .stores { justify-content: center; gap: 9px; margin-top: 18px; }
    .hero .phone { align-self: center; width: clamp(172px, 46vw, 225px); }
    .proof { padding-top: 34px; }
    .safety .split, .closing .split { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .safety .split {
        width: min(540px, 100%);
        padding-block: 55px 108px;
    }
    .safety .phone { grid-row: 1; justify-self: center; }
    .safety-copy {
        top: 0;
        width: calc(100% - 2 * var(--gutter));
        margin-inline: auto;
    }
    .closing .split { padding-bottom: 26px; }
    .closing .phone { width: min(289px, 86%); }
    .closing-copy { padding: 30px 0 24px; }
}

@media (max-width: 375px) {
    :root { --gutter: 16px; }
}
