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

:root {
    --core-primary-action: #6a39f4;
    --core-primary-action-shadow: #341a7d;
    --keemak-green: #9eeea9;
    --keemak-green-rgb: 158, 238, 169;
    --keemak-cyan: #62d5ff;
    --ink: #f8fbff;
    --ink-muted: #bcc1cf;
    --link-green: #d9ffe1;
    --link-green-hover: #ffffff;
    --surface-dark: #101114;
    --surface-raised: #1d1f26;
    --surface-muted: #252832;
    --border: #353a46;
    --container-max-width: 117rem;
    --header-height: clamp(6rem, 5.4vw, 8.8rem);
    --layout-gutter: clamp(1.6rem, 2.5vw, 3rem);
    --brand-name-weight: 700;
}

html {
    font-size: 62.5%;
}

body {
    margin: 0;
    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-green);
    text-decoration: none;
}

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

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

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

.imageWrapper {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(180deg, rgba(7, 9, 12, 0.98) 0%, rgba(21, 27, 28, 0.94) 56%, rgba(11, 13, 17, 1) 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.headerBackground {
    min-height: 100vh;
    min-height: 100dvh;
    background: rgba(16, 17, 20, 0.64);
}

.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.8rem, 2.6vw, 3.8rem);
}

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

.headerInner {
    width: min(100%, var(--container-max-width));
    min-height: var(--header-height);
    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 {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-height: var(--header-height);
}

.headerIcon {
    width: 5rem;
    height: 5rem;
    border-radius: 1.2rem;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(var(--keemak-green-rgb), 0.18), 0 2px 8px rgba(0, 0, 0, 0.35);
}

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

.headerDownloadButtons {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    position: absolute;
    right: 0;
    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"
        "buttons buttons";
    column-gap: clamp(1.4rem, 1.8vw, 3rem);
    row-gap: clamp(2rem, 2.8vw, 3.6rem);
}

.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(var(--keemak-green-rgb), 0.16));
}

.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(--keemak-green);
    font-size: clamp(1.2rem, 1vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

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

.appTagline {
    margin: 1rem 0 0;
    color: var(--ink-muted);
    font-size: clamp(2rem, 1.7vw, 2.6rem);
    font-weight: 400;
    line-height: 1.3;
    text-wrap: balance;
}

.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;
}

.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;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

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

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

@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"
            "buttons";
        justify-items: center;
        text-align: center;
        padding-top: 1rem;
    }

    .appNamePriceContainer {
        align-items: center;
    }

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

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

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

    .headerDownloadButtons {
        gap: 0.7rem;
        right: 0.8rem;
    }

    .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);
    }

    .appTagline {
        max-width: 20ch;
    }

    .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: 0.6rem;
    }

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