:root {
    --bg: #ffffff;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --muted-soft: #8d8d92;
    --accent: #ff9b32;
    --divider: rgba(17, 17, 17, 0.08);
    --shadow-icon: 0 10px 28px rgba(24, 24, 24, 0.10), 0 2px 8px rgba(24, 24, 24, 0.06);
    --shadow-badge: 0 10px 22px rgba(17, 17, 17, 0.10), 0 2px 6px rgba(17, 17, 17, 0.08);
    --shadow-shot: 0 30px 65px rgba(12, 12, 16, 0.14), 0 8px 18px rgba(12, 12, 16, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    min-height: 100%;
    background-color: var(--bg);
    background-image: none;
    color: var(--text);
    font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    overflow-x: hidden;
    overflow-y: hidden;
}

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

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

.page {
    width: min(1110px, calc(100% - 56px));
    height: 100svh;
    margin: 0 auto;
    padding: clamp(18px, 3vw, 34px) 0 20px;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(340px, 380px) minmax(380px, 500px);
    align-items: center;
    justify-content: center;
    gap: clamp(54px, 7vw, 110px);
    min-height: 0;
}

.hero-copy {
    order: 2;
    max-width: 490px;
    padding-top: 0;
}

.app-lockup {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    box-shadow: var(--shadow-icon);
}

.app-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    line-height: 1;
}

.app-name {
    font-size: clamp(1.68rem, 2.18vw, 2.42rem);
    font-weight: 680;
    letter-spacing: -0.035em;
}

.app-tagline {
    font-size: clamp(1rem, 1.38vw, 1.42rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: var(--muted);
}

.app-tagline-muted {
    color: var(--muted);
}

.intro,
.plus-copy {
    max-width: 35ch;
    font-size: clamp(1.18rem, 1.38vw, 1.34rem);
    font-weight: 450;
    line-height: 1.6;
    letter-spacing: -0.012em;
    color: var(--muted);
}

.plus-copy {
    margin-top: 16px;
}

.plus-emphasis {
    font-weight: 590;
    color: var(--text);
}

.app-store-badge {
    display: inline-block;
    margin-top: 32px;
    transition: opacity 0.18s ease;
}

.app-store-badge:hover {
    opacity: 0.7;
}

.app-store-badge:active {
    opacity: 0.58;
}

.app-store-badge-image {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    object-fit: contain;
}

.hero-media {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.shot-stage {
    position: relative;
    width: min(25vw, 310px);
    aspect-ratio: 1290 / 2796;
    filter: drop-shadow(var(--shadow-shot));
}

.shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.35s ease-in-out;
    object-fit: contain;
}

.shot.is-active {
    opacity: 1;
}

.footer {
    padding-top: clamp(14px, 2.4vw, 22px);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--divider);
}

.footer-copy,
.footer-link {
    font-size: 0.8rem;
    color: var(--muted-soft);
    letter-spacing: -0.01em;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-link {
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: var(--text);
}

@media (max-width: 920px) {
    body {
        overflow-y: auto;
    }

    .page {
        width: min(100% - 40px, 720px);
        height: auto;
        min-height: 100svh;
        padding-top: 20px;
        overflow: visible;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 26px;
        justify-items: center;
        text-align: center;
    }

    .hero-media {
        order: 1;
    }

    .hero-copy {
        order: 2;
        max-width: 560px;
        padding-top: 0;
    }

    .app-lockup {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        margin-bottom: 20px;
    }

    .app-title {
        align-items: center;
        text-align: center;
    }

    .intro,
    .plus-copy {
        margin-left: auto;
        margin-right: auto;
    }

    .shot-stage {
        width: min(44vw, 264px);
    }
}

@media (max-width: 640px) {
    .page {
        width: calc(100% - 32px);
        padding-top: 18px;
    }

    .app-lockup {
        justify-content: center;
    }

    .app-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }

    .app-title {
        gap: 2px;
    }

    .app-name {
        font-size: clamp(1.26rem, 5.7vw, 1.58rem);
    }

    .app-tagline {
        font-size: clamp(0.92rem, 4.6vw, 1.18rem);
    }

    .intro,
    .plus-copy {
        font-size: 0.98rem;
    }

    .app-store-badge {
        margin-top: 24px;
    }

    .app-store-badge-image {
        width: min(220px, 72vw);
    }

    .shot-stage {
        width: min(44vw, 192px);
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
