:root {
    color-scheme: dark;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    color: #ffffff;
    background: #09184c;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: #09184c;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    background:
        linear-gradient(90deg, rgba(4, 13, 48, 0.26), rgba(4, 13, 48, 0.03) 52%, rgba(4, 13, 48, 0.16)),
        url("/assets/home-bg.jpg") center / cover no-repeat fixed,
        #09184c;
}

a {
    color: inherit;
}

.page-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
}

.page-shell::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 12, 42, 0.2), transparent 36%),
        radial-gradient(circle at 22% 50%, rgba(46, 38, 105, 0.18), transparent 34rem);
    content: "";
    pointer-events: none;
}

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1500px, calc(100% - 64px));
    margin: 0 auto;
    padding: max(22px, env(safe-area-inset-top)) 0 14px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: 0.015em;
    text-decoration: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.wordmark img {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.28);
}

.language-control {
    position: relative;
}

.language-control::after {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.88);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.88);
    content: "";
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

select {
    min-height: 42px;
    padding: 0 38px 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    appearance: none;
    background: rgba(5, 11, 42, 0.48);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
    color: #ffffff;
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

select:focus-visible,
a:focus-visible {
    outline: 3px solid #f4c968;
    outline-offset: 4px;
}

select option {
    background: #111b50;
}

.hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: min(1500px, 100%);
    min-height: 0;
    margin: 0 auto;
    padding: clamp(34px, 8vh, 98px) 32px clamp(60px, 10vh, 110px);
}

.hero-copy {
    position: relative;
    z-index: 4;
    width: min(58%, 790px);
    margin-left: clamp(0px, 3.2vw, 48px);
    text-shadow: 0 5px 28px rgba(0, 0, 0, 0.5);
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 22px;
    padding: 8px 14px;
    border: 1px solid rgba(244, 201, 104, 0.28);
    border-radius: 999px;
    background: rgba(15, 20, 65, 0.3);
    color: #f4d688;
    font-size: clamp(0.8rem, 1.15vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(3.3rem, 6.7vw, 7.25rem);
    font-weight: 870;
    letter-spacing: -0.055em;
    line-height: 0.98;
    text-wrap: balance;
}

.description {
    max-width: 630px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.55vw, 1.35rem);
    line-height: 1.65;
    text-wrap: balance;
}

.actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 36px;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-height: 62px;
    padding: 10px 25px 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
    color: #071233;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.store-button:hover {
    background: #fffdf7;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.apple-mark {
    font-size: 2.2rem;
    line-height: 1;
}

.store-button span:last-child {
    display: grid;
    text-align: left;
}

.store-button small {
    font-size: 0.64rem;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.store-button strong {
    font-size: 1.22rem;
    line-height: 1.15;
}

.availability {
    max-width: 150px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.83rem;
    line-height: 1.45;
}

.character-art {
    position: absolute;
    z-index: 2;
    right: clamp(-190px, -7vw, -50px);
    bottom: -1px;
    width: min(105vw, 1760px);
    max-height: 100vh;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(-24px 10px 45px rgba(0, 0, 0, 0.32));
    pointer-events: none;
    user-select: none;
}

.site-footer {
    position: relative;
    z-index: 8;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 48px max(32px, calc((100vw - 1436px) / 2)) max(24px, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, rgba(2, 8, 31, 0.82));
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.78rem;
}

.legal-links,
.footer-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.legal-links a,
.footer-meta a {
    text-underline-offset: 4px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 650;
    text-decoration: none;
}

.legal-links a:hover,
.footer-meta a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-meta {
    justify-content: flex-end;
}

.footer-meta a {
    color: rgba(255, 255, 255, 0.58);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 980px) {
    .hero-copy {
        width: min(64%, 620px);
    }

    .character-art {
        right: -22vw;
        width: 110vw;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-meta {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    body {
        background-attachment: scroll;
        background-position: 42% center;
    }

    .page-shell {
        display: flex;
        min-height: 100svh;
        flex-direction: column;
        overflow: hidden;
    }

    .site-header {
        width: calc(100% - 36px);
        padding-top: max(16px, env(safe-area-inset-top));
    }

    .wordmark {
        gap: 9px;
        font-size: 0.92rem;
    }

    .wordmark img {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    select {
        max-width: 122px;
        min-height: 40px;
        padding-left: 13px;
        font-size: 0.8rem;
    }

    .hero {
        display: flex;
        min-height: auto;
        flex: 1;
        flex-direction: column;
        justify-content: flex-start;
        padding: clamp(42px, 8vh, 76px) 18px 0;
        text-align: center;
    }

    .hero-copy {
        width: 100%;
        margin: 0;
    }

    .eyebrow {
        margin-bottom: 17px;
        font-size: 0.72rem;
    }

    h1 {
        font-size: clamp(3rem, 14.7vw, 4.65rem);
        line-height: 1;
    }

    .description {
        max-width: 530px;
        margin: 20px auto 0;
        font-size: 1rem;
    }

    .actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 26px;
    }

    .store-button {
        min-height: 58px;
        border-radius: 16px;
    }

    .availability {
        max-width: none;
    }

    .character-art {
        position: relative;
        right: auto;
        bottom: auto;
        width: 148vw;
        max-width: none;
        max-height: none;
        margin: clamp(-30px, -2vh, -10px) 0 -1px -49vw;
        align-self: flex-start;
        filter: drop-shadow(-12px 8px 30px rgba(0, 0, 0, 0.25));
    }

    .site-footer {
        align-items: center;
        gap: 18px;
        padding: 32px 18px max(20px, env(safe-area-inset-bottom));
        text-align: center;
    }

    .legal-links,
    .footer-meta {
        justify-content: center;
    }
}

@media (max-width: 410px) {
    .wordmark span {
        max-width: 105px;
        line-height: 1.08;
    }

    h1 {
        font-size: clamp(2.8rem, 14vw, 3.55rem);
    }

    .character-art {
        width: 165vw;
        margin-left: -58vw;
    }
}

@media (max-height: 720px) and (min-width: 701px) {
    .hero {
        padding-top: 20px;
        padding-bottom: 32px;
    }

    .eyebrow {
        margin-bottom: 14px;
    }

    .description {
        margin-top: 18px;
    }

    .actions {
        margin-top: 24px;
    }

    .character-art {
        max-height: 110vh;
    }
}

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