@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");

:root {
    --primary: #0b6bff;
    --primary-bright: #6fb0ff;
    --primary-soft: #e7f1ff;
    --sparkle-blue: #9ffcff;
    --sparkle-blue-bright: #d8ffff;
    --route: #ff7a3d;
    --route-soft: #ffd3a7;
    --ink: #f8fffb;
    --ink-muted: #c9d8ee;
    --link: #e3efff;
    --link-hover: #ffffff;
    --surface-dark: #071225;
    --surface-dark-rgb: 7, 18, 37;
    --surface-raised: #102748;
    --surface-muted: #1b3f73;
    --border: #3267a8;
    --container-max-width: 117rem;
    --header-height: clamp(5.6rem, 4.2vw, 7.2rem);
    --layout-gutter: clamp(1.6rem, 2.5vw, 3rem);
    --brand-name-weight: 800;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 32rem;
    font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 2rem;
    line-height: 1.5;
    color: var(--ink);
    background: var(--surface-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--link);
    text-decoration: none;
}

a[href],
area[href] {
    cursor: pointer;
}

a:link,
a:visited {
    color: var(--link);
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.imageWrapper {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 16% 17%, rgba(255, 122, 61, 0.18) 0 18rem, transparent 34rem),
        radial-gradient(circle at 86% 14%, rgba(111, 176, 255, 0.38) 0 25rem, transparent 40rem),
        linear-gradient(180deg, rgba(7, 18, 37, 0.98) 0%, rgba(10, 31, 61, 0.96) 52%, #06101f 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.headerBackground {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        linear-gradient(rgba(var(--surface-dark-rgb), 0.42) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--surface-dark-rgb), 0.38) 1px, transparent 1px),
        rgba(7, 18, 37, 0.48);
    background-size: 6.8rem 6.8rem;
}

.container {
    width: min(100%, var(--container-max-width));
    min-height: 100vh;
    min-height: 100dvh;
    margin-inline: auto;
    padding-inline: var(--layout-gutter);
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    grid-template-areas:
        "h h"
        "p i"
        "f f";
    column-gap: clamp(2rem, 3.5vw, 4.8rem);
    row-gap: clamp(1.2rem, 1.8vw, 2.6rem);
}

header {
    grid-area: h;
    height: calc(var(--header-height) + 1.6rem);
    min-height: 0;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    position: sticky;
    top: 0;
    z-index: 30;
    padding-block: 0.8rem;
    backdrop-filter: blur(10px);
    background: rgba(7, 18, 37, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.headerInner {
    width: min(100%, var(--container-max-width));
    height: var(--header-height);
    min-height: 0;
    margin-inline: auto;
    padding-left: max(var(--layout-gutter), env(safe-area-inset-left));
    padding-right: max(var(--layout-gutter), env(safe-area-inset-right));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.6rem, 3vw, 3rem);
    position: relative;
}

.logo,
.brandLink {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    height: var(--header-height);
    min-height: 0;
    color: var(--ink);
}

.logoLink:hover,
.brandLink:hover {
    color: var(--ink);
    text-decoration: none;
}

.headerIcon {
    width: clamp(4.4rem, 3.2vw, 5rem);
    height: clamp(4.4rem, 3.2vw, 5rem);
    border-radius: 1.2rem;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(11, 107, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.38);
}

.headerName,
.brandLink span {
    margin: 0;
    color: var(--ink);
    font-weight: var(--brand-name-weight);
    white-space: nowrap;
}

.headerDownloadButtons {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    position: absolute;
    right: max(var(--layout-gutter), env(safe-area-inset-right));
    top: 50%;
    opacity: 0;
    transform: translateY(calc(-100% - 1.2rem));
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
    transition:
        opacity 0.24s ease,
        transform 0.28s ease,
        visibility 0s linear 0.22s;
}

.header-show-downloads .headerDownloadButtons {
    opacity: 1;
    transform: translateY(-50%);
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.24s ease,
        transform 0.28s ease,
        visibility 0s linear 0s;
}

.headerDownloadButtons .appStore,
.headerDownloadButtons .playStore {
    height: clamp(4.3rem, 3.8vw, 5rem);
}

.appInfo {
    grid-area: i;
    align-self: center;
    display: grid;
    min-width: 0;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon title"
        "desc desc"
        "buttons buttons";
    column-gap: clamp(1.4rem, 1.8vw, 3rem);
    row-gap: clamp(1.6rem, 2.4vw, 3rem);
}

.appIconShadow {
    grid-area: icon;
    align-self: center;
    display: flex;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28)) drop-shadow(0 2px 8px rgba(11, 107, 255, 0.18));
}

.appIconLarge {
    display: block;
    width: clamp(8rem, 9vw, 12rem);
    height: clamp(8rem, 9vw, 12rem);
    border-radius: clamp(2rem, 2vw, 2.8rem);
    object-fit: cover;
}

.appNamePriceContainer {
    grid-area: title;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--sparkle-blue);
    font-size: clamp(1.2rem, 1vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    text-shadow:
        0 0 12px rgba(67, 225, 255, 0.62),
        0 0 28px rgba(159, 252, 255, 0.3);
}

.appName {
    margin: 0;
    color: var(--ink);
    font-size: clamp(4rem, 4vw, 6.2rem);
    font-weight: var(--brand-name-weight);
    line-height: 1.04;
}

.appSteps {
    grid-area: desc;
    margin: 0;
    padding: 0;
    max-width: 44ch;
    color: #d5e4df;
    font-size: clamp(1.7rem, 1.25vw, 2.1rem);
    line-height: 1.38;
    list-style-position: inside;
}

.appSteps li + li {
    margin-top: 0.8rem;
}

.downloadButtonsContainer {
    grid-area: buttons;
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    max-width: 96rem;
    flex-wrap: wrap;
    gap: 1.6rem;
    justify-self: start;
    filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.28)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.24));
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.header-show-downloads .appInfo .downloadButtonsContainer {
    opacity: 0;
    transform: translateY(-0.8rem);
    pointer-events: none;
}

.appStore,
.playStore {
    height: clamp(5.8rem, 4.9vw, 7.5rem);
    width: auto;
    display: block;
}

.appStoreLink,
.playStoreLink {
    display: inline-flex;
}

.appStoreLink:hover,
.playStoreLink:hover {
    text-decoration: none;
}

.iphonePreview {
    grid-area: p;
    justify-self: center;
    align-self: center;
    width: min(100%, clamp(27rem, 27vw, 39rem));
}

.iphoneScreen {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 34px 80px rgba(0, 0, 0, 0.42));
}

footer {
    grid-area: f;
    display: grid;
    justify-items: center;
    align-self: end;
    gap: clamp(1.8rem, 2.6vw, 2.8rem);
    padding-block: clamp(1.6rem, 2.4vw, 3.2rem) clamp(2.8rem, 3vw, 4.2rem);
}

.footerLinks {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 0 1.4rem;
}

.footerLinks a {
    margin: 0;
    color: var(--sparkle-blue);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    text-shadow:
        0 0 10px rgba(67, 225, 255, 0.54),
        0 0 24px rgba(159, 252, 255, 0.28);
}

.footerLinks a:hover {
    color: var(--sparkle-blue-bright);
}

.footerLinks a + a {
    padding-left: 2rem;
    position: relative;
}

.footerLinks a + a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(185, 204, 197, 0.72);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.pageShell {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 16% 17%, rgba(255, 122, 61, 0.14) 0 18rem, transparent 34rem),
        radial-gradient(circle at 86% 14%, rgba(111, 176, 255, 0.32) 0 25rem, transparent 40rem),
        linear-gradient(180deg, rgba(7, 18, 37, 0.98) 0%, rgba(10, 31, 61, 0.96) 52%, #06101f 100%);
}

.legalPage {
    width: min(100% - 2 * var(--layout-gutter), 84rem);
    margin-inline: auto;
    padding-block: clamp(3.6rem, 5vw, 7.2rem);
    color: var(--ink-muted);
}

.legalPage h1,
.legalPage h2 {
    color: var(--ink);
}

.legalPage h1 {
    margin: 0 0 1.6rem;
    font-size: clamp(4rem, 4vw, 6.4rem);
    line-height: 1.05;
}

.legalPage h2 {
    margin: 4rem 0 1.2rem;
    font-size: clamp(2.2rem, 2.1vw, 3rem);
    line-height: 1.2;
}

.legalPage p,
.legalPage li {
    color: var(--ink-muted);
    font-size: clamp(1.6rem, 1.4vw, 1.9rem);
}

.legalPage p {
    margin: 0 0 1.6rem;
}

.legalPage ul {
    margin: 0 0 1.8rem;
    padding-left: 2.4rem;
}

.legalPage li + li {
    margin-top: 0.8rem;
}

.legalPage a {
    font-weight: 700;
}

.footerInner {
    width: min(100%, var(--container-max-width));
    margin-inline: auto;
    padding: 3rem var(--layout-gutter);
    display: grid;
    justify-items: center;
    gap: 1.4rem;
    color: var(--ink-muted);
    font-size: 1.5rem;
    font-weight: 700;
}

.footerInner p {
    margin: 0;
}

.legalBody .headerDownloadButtons {
    opacity: 1;
    transform: translateY(-50%);
    visibility: visible;
    pointer-events: auto;
}

@media only screen and (max-width: 992px) {
    .container {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "h"
            "i"
            "p"
            "f";
    }

    header,
    .headerInner {
        min-height: clamp(6rem, 7vw, 8rem);
    }

    .appInfo {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "icon"
            "title"
            "desc"
            "buttons";
        justify-items: center;
        text-align: center;
        padding-top: 1rem;
    }

    .appNamePriceContainer {
        align-items: center;
    }

    .appSteps {
        max-width: 36ch;
    }

    .downloadButtonsContainer {
        justify-content: center;
        justify-self: center;
    }

    .iphonePreview {
        width: min(100%, 39rem);
    }
}

@media only screen and (max-width: 768px) {
    .headerName,
    .brandLink span {
        display: none;
    }

    .headerDownloadButtons {
        gap: 0.7rem;
        right: max(var(--layout-gutter), env(safe-area-inset-right));
    }

    .headerDownloadButtons .appStore,
    .headerDownloadButtons .playStore {
        height: clamp(3.1rem, 6.8vw, 3.9rem);
        width: auto;
    }

    .appInfo {
        row-gap: 1.8rem;
    }

    .appName {
        font-size: clamp(3.6rem, 10vw, 5rem);
    }

    .footerLinks a + a {
        padding-left: 1.8rem;
    }
}

@media only screen and (max-width: 528px) {
    .headerDownloadButtons .appStore,
    .headerDownloadButtons .playStore {
        height: clamp(2.8rem, 8vw, 3.4rem);
        width: auto;
    }

    .headerDownloadButtons {
        right: max(var(--layout-gutter), env(safe-area-inset-right));
    }

    .appStore,
    .playStore {
        height: clamp(4.6rem, 12vw, 5.8rem);
    }

    .footerLinks {
        row-gap: 0.8rem;
    }
}
