/* Base */

:root {
    --purple-950: #1b0630;
    --purple-900: #280744;
    --purple-800: #3b0a63;
    --purple-700: #5a1687;
    --cream: #fff8ec;
    --cream-deep: #f5ead6;
    --gold: #c99a49;
    --gold-light: #ebcb8c;
    --text: #2a1735;
    --text-soft: #715f77;
    --white: #ffffff;
    --page-width: 1180px;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 24px 70px rgba(38, 8, 63, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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


/* Header */

.site-header {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
}

.site-header__inner {
    width: min(calc(100% - 40px), var(--page-width));
    height: 84px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand__parrot {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand__name {
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.96);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.08;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 8px rgba(10, 0, 24, 0.35);
}

.brand__name span:last-child {
    color: var(--gold-light);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 650;
}

.site-nav a {
    transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover {
    opacity: 0.78;
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav__play,
.site-nav__download {
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.site-nav__play {
    border-color: rgba(235, 203, 140, 0.85);
    color: var(--purple-950);
    background: linear-gradient(180deg, #f8dda4, #d4a451);
    box-shadow: 0 6px 20px rgba(201, 154, 73, 0.22);
}

.site-nav__download {
    background: rgba(255, 255, 255, 0.08);
}


/* Hero */

.hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(27, 6, 48, 0.50), rgba(27, 6, 48, 0.08)),
        url("assets/hero-background.webp") center bottom / cover no-repeat,
        var(--purple-900);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 35% 28%, rgba(174, 75, 255, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(10, 0, 20, 0.08), rgba(10, 0, 20, 0.22));
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 40px), var(--page-width));
    min-height: 760px;
    margin: 0 auto;
    padding-top: 118px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.78fr);
    align-items: center;
    gap: 50px;
}

.hero__copy {
    padding-bottom: 36px;
    text-align: center;
}

.hero__heading-art {
    width: min(220px, 45%);
    margin: 0 auto 10px;
}

.hero__logo {
    width: min(100%, 610px);
    max-height: 230px;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

.hero__tagline {
    max-width: 610px;
    margin: 24px auto 30px;
    color: rgba(255, 255, 255, 0.92);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 2.6vw, 38px);
    line-height: 1.22;
    text-wrap: balance;
}

.hero__play-area {
    margin: -4px auto 14px;
    display: flex;
    justify-content: center;
}

.play-online-button {
    min-width: 270px;
    padding: 13px 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid #f6d790;
    border-radius: 999px;
    color: var(--purple-950);
    background: linear-gradient(180deg, #ffe7b2 0%, #e2b45c 58%, #c9953e 100%);
    box-shadow:
        0 10px 28px rgba(10, 0, 24, 0.34),
        0 0 22px rgba(235, 203, 140, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    font-size: 19px;
    font-weight: 650;
    letter-spacing: 0.01em;
    transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.play-online-button:hover {
    opacity: 1;
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow:
        0 13px 32px rgba(10, 0, 24, 0.40),
        0 0 26px rgba(235, 203, 140, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.play-online-button__icon {
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid currentColor;
}

.hero__download-label {
    margin: 0 0 9px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.hero__visual {
    align-self: end;
    display: flex;
    justify-content: center;
}

.hero__phone {
    width: min(100%, 465px);
    max-height: 650px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 28px 35px rgba(10, 0, 24, 0.38));
}

.store-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero .store-buttons {
    justify-content: center;
}

.store-button {
    display: block;
    transition: transform 160ms ease, filter 160ms ease;
}

.store-button[href]:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.store-button img {
    width: auto;
    height: 48px;
    object-fit: contain;
}


/* Shared sections */

.section {
    padding: 88px 0;
}

.section__inner {
    width: min(calc(100% - 40px), var(--page-width));
    margin: 0 auto;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading h2,
.download-card h2 {
    margin: 6px 0 0;
    color: var(--purple-800);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 66px);
    font-weight: 500;
    line-height: 1.02;
    text-wrap: balance;
}

.ornament {
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--gold);
}

.ornament span {
    width: 76px;
    height: 1px;
    background: currentColor;
    opacity: 0.72;
}

.ornament svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}


/* Gallery */

.gallery {
    position: relative;
    padding: 18px 0 30px;
    background: var(--cream);
}

.gallery .section-heading {
    max-width: none;
    margin-bottom: 20px;
}

.section-heading .lined-heading {
    margin: 0;
	margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.2vw, 26px);
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.15;
}

.lined-heading::before,
.lined-heading::after {
    content: "";
    height: 2px;
    width: clamp(48px, 9vw, 110px);
    flex: 0 1 110px;
}

.lined-heading::before {
    background: linear-gradient(90deg, transparent, var(--gold-light));
}

.lined-heading::after {
    background: linear-gradient(90deg, var(--gold-light), transparent);
}

.screenshot-shell {
    position: relative;
}

.screenshot-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.screenshot-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid #aeb0b3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(38, 8, 63, 0.14);
    transform: translateZ(0);
}

.screenshot-card img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.carousel-button,
.carousel-dots {
    display: none;
}


/* Features */

.features {
    position: relative;
    padding: 22px 0 0;
    color: var(--white);
    background:
        linear-gradient(rgba(31, 6, 50, 0.62), rgba(31, 6, 50, 0.72)),
        url("assets/feature-background.webp") center / cover no-repeat,
        var(--purple-900);
}

.features .section-heading {
    max-width: none;
    margin-bottom: 6px;
}

.features .lined-heading {
    font-size: clamp(22px, 2.4vw, 30px);
}

.section-heading--light h2 {
    color: var(--white);
}

.ornament--light {
    color: var(--gold-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.feature {
    position: relative;
    padding: 18px 18px 16px;
    text-align: center;
}

.feature + .feature::before {
    content: "";
    position: absolute;
    top: 46px;
    bottom: 46px;
    left: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(231, 195, 125, 0.52),
        transparent
    );
}

.feature__gem {
    width: 92px;
    height: 92px;
    margin: 0 auto 22px;
    object-fit: contain;
    filter: drop-shadow(0 13px 14px rgba(12, 0, 22, 0.25));
}

.feature h3 {
    margin: 0 0 10px;
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 600;
}

.feature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.65;
}


/* Download */

.download {
    padding: 20px 0 24px;
    color: var(--white);
    background: var(--purple-950);
}

.download-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(110, 70, 120, 0.08);
    border-radius: 24px;
    background: #fff2e8;
    box-shadow: none;
}

.download-card::before,
.download-card::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    width: 34%;
    pointer-events: none;
    background-image: url("assets/cta-background.webp");
    background-repeat: no-repeat;
    background-size: auto 100%;
}

.download-card::before {
    left: 0;
    background-position: left center;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 70%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 70%, transparent 100%);
}

.download-card::after {
    right: 0;
    background-position: right center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%, #000 100%);
}

.download-card__content {
    position: relative;
    z-index: 1;
    width: min(780px, calc(100% - 48px));
    padding: 14px 0 20px;
    text-align: center;
}

.download-card h2 {
    margin: 0 0 14px;
    font-size: clamp(19px, 2vw, 26px);
}

.download-card .store-button img {
    height: 54px;
}

.store-buttons--center {
    justify-content: center;
}


/* Footer */

.site-footer {
    padding: 28px 0;
    color: rgba(255, 255, 255, 0.70);
    background: var(--purple-950);
    font-size: 15px;
}

.site-footer__inner {
    width: min(calc(100% - 40px), var(--page-width));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer nav {
    display: flex;
    gap: 22px;
}


/* Tablet */

@media (min-width: 961px) {
    .hero__copy {
        transform: translateX(20px);
    }
}

@media (max-width: 960px) {
    .site-nav__play,
    .hero__play-area,
    .hero__download-label {
        display: none;
    }

    .hero {
        min-height: auto;
    }

    .hero__inner {
        min-height: 700px;
        grid-template-columns: 1.08fr 0.92fr;
        gap: 24px;
    }

    .hero__phone {
        width: min(100%, 380px);
    }

    .store-button img {
        height: 44px;
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border: 0;
        gap: 16px;
    }

    .feature {
        padding: 32px 22px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.035);
    }

    .feature + .feature::before {
        display: none;
    }

    .feature:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 8px);
        justify-self: center;
    }
}


/* Mobile */

@media (max-width: 720px) {
    .site-header__inner {
        width: min(calc(100% - 28px), var(--page-width));
        height: 72px;
    }

    .brand__parrot {
        width: 46px;
        height: 46px;
    }

    .brand {
        gap: 9px;
    }

    .brand__name {
        font-size: 16px;
    }

    .site-nav > a:not(.site-nav__download) {
        display: none;
    }

    .site-nav__download {
        padding: 8px 15px;
        font-size: 14px;
    }

    .hero {
        background-position: 56% bottom;
    }

    .hero__inner {
        width: min(calc(100% - 28px), var(--page-width));
        min-height: auto;
        padding-top: 88px;
        padding-bottom: 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero__copy {
        width: 100%;
        min-width: 0;
        padding-bottom: 0;
    }

    .hero__logo {
        width: min(88vw, 430px);
        margin: 0 auto;
        object-position: center;
    }

    .hero__tagline {
        margin: 14px auto 18px;
        max-width: 520px;
        font-size: clamp(22px, 6.2vw, 28px);
    }

    .store-buttons {
        justify-content: center;
    }

    .store-button img {
        height: 44px;
    }

    .hero__visual {
        width: 100%;
        margin-top: 4px;
    }

    .hero__phone {
        width: min(72vw, 330px);
        max-height: 470px;
    }

    .section {
        padding: 66px 0;
    }

    .gallery {
        padding: 18px 0 32px;
    }

    .section__inner {
        width: min(calc(100% - 28px), var(--page-width));
    }

    .section-heading {
        margin-bottom: 22px;
    }

    .section-heading .lined-heading {
        gap: 10px;
        font-size: clamp(20px, 5vw, 24px);
        line-height: 1.2;
    }

    .lined-heading::before,
    .lined-heading::after {
        width: clamp(32px, 8vw, 54px);
        flex-basis: 54px;
    }

    .gallery .section-heading {
        margin-bottom: 16px;
    }

    .screenshot-shell {
        margin-inline: -14px;
    }

    .screenshot-track {
        display: flex;
        gap: 14px;
        padding: 8px 22px 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .screenshot-track::-webkit-scrollbar {
        display: none;
    }

    .screenshot-card {
        flex: 0 0 min(78vw, 330px);
        scroll-snap-align: center;
    }

    .carousel-button {
        position: absolute;
        z-index: 3;
        top: 50%;
        width: 38px;
        height: 38px;
        padding: 0;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 50%;
        color: var(--purple-800);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 10px 30px rgba(38, 8, 63, 0.16);
        font-size: 27px;
        line-height: 1;
        cursor: pointer;
        transform: translateY(-50%);
    }

    .carousel-button--prev {
        left: 4px;
    }

    .carousel-button--next {
        right: 4px;
    }

    .carousel-dots {
        min-height: 14px;
        margin-top: 2px;
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(90, 22, 135, 0.22);
        cursor: pointer;
    }

    .carousel-dot.is-active {
        background: var(--purple-700);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature:last-child {
        grid-column: auto;
        width: auto;
        justify-self: stretch;
    }

    .feature {
        padding: 20px 18px;
    }

    .feature__gem {
        width: 68px;
        height: 68px;
        margin-bottom: 10px;
    }

    .feature h3 {
        margin-bottom: 6px;
        font-size: 17px;
    }

    .feature p {
        font-size: 14px;
        line-height: 1.5;
    }

    .features {
        padding: 30px 0 26px;
    }

    .features .section-heading {
        margin-bottom: 14px;
    }

    .download {
        padding: 18px 0 22px;
    }

    .download-card {
        min-height: 0;
        border-radius: 18px;
    }

    .download-card::before,
    .download-card::after {
        width: 58%;
        background-size: auto 72%;
    }

    .download-card__content {
        width: min(100% - 32px, 560px);
        padding: 28px 0;
    }

    .download-card h2 {
        margin-bottom: 12px;
        font-size: clamp(20px, 5.2vw, 24px);
    }

    .download-card .store-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .download-card .store-button img {
        height: 46px;
    }

    .site-footer {
        padding: 20px 0 24px;
        font-size: 14px;
    }

    .site-footer__inner {
        width: min(calc(100% - 28px), var(--page-width));
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    .site-footer nav {
        justify-content: center;
        gap: 18px;
    }
}


/* Small phones */

@media (max-width: 390px) {
    .site-header__inner {
        width: calc(100% - 22px);
    }

    .brand__parrot {
        width: 42px;
        height: 42px;
    }

    .brand__name {
        font-size: 15px;
    }

    .site-nav__download {
        padding: 7px 12px;
        font-size: 13px;
    }

    .hero__tagline {
        font-size: 21px;
    }

    .store-buttons {
        gap: 8px;
    }

    .hero .store-button img {
        height: 40px;
    }

    .section-heading .lined-heading {
        gap: 8px;
        font-size: 19px;
    }

    .lined-heading::before,
    .lined-heading::after {
        width: 26px;
        flex-basis: 26px;
    }

    .screenshot-card {
        flex-basis: 82vw;
    }
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .store-button,
    .play-online-button,
    .site-nav a {
        transition: none;
    }

    .screenshot-track {
        scroll-behavior: auto;
    }
}
