:root {
    --main: #5b4bff;
    --hot: #ff3d7f;
    --orange: #ff8a00;
    --dark: #161b2e;
    --muted: #667085;
    --card: #ffffff;
    --bg: #f7f7ff;
    --shadow: 0 18px 45px rgba(42, 35, 120, .16);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--dark);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 61, 127, .16), transparent 32%),
        radial-gradient(circle at 88% 8%, rgba(91, 75, 255, .20), transparent 34%),
        linear-gradient(180deg, #fff 0%, #f8f7ff 45%, #fff 100%);
    padding-bottom: 92px;
}

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

.wrap {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 42px 0 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 34px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 9px 14px;
    border: 1px solid rgba(91, 75, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 8px 22px rgba(91, 75, 255, .08);
    color: #4a42d8;
    font-size: 14px;
    font-weight: 700;
}

.dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #20c997;
    box-shadow: 0 0 0 5px rgba(32, 201, 151, .15);
}

h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: 0;
}

h1 span {
    background: linear-gradient(90deg, var(--main), var(--hot), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    margin: 0 0 24px;
    color: #475467;
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--hot), var(--main));
    box-shadow: 0 14px 30px rgba(91, 75, 255, .34);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(91, 75, 255, .42);
}

.btn-ghost {
    color: #4b3fff;
    background: #fff;
    border: 1px solid rgba(91, 75, 255, .18);
}

.trust {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.mobile-brand-logo {
    display: grid;
    width: 132px;
    height: 132px;
    margin: 24px auto 22px;
    place-items: center;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(145deg, #211052, #0b123a);
    box-shadow: 0 18px 36px rgba(44, 40, 92, .22);
}

.mobile-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-brand-logo span {
    color: #fff;
    background: linear-gradient(145deg, #4715a5, #ed1b74);
    font-size: 72px;
    font-weight: 900;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 28px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, #615dff, #7d4bd5);
    box-shadow: var(--shadow);
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1;
    font-weight: 1000;
}

.stat span {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    opacity: .92;
}

.section {
    padding: 54px 0 18px;
    text-align: center;
}

.section h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 42px);
}

.section p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.7;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.feature {
    padding: 24px;
    border: 1px solid rgba(91, 75, 255, .12);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .07);
    text-align: left;
}

.icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(91, 75, 255, .12), rgba(255, 61, 127, .16));
    font-size: 24px;
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.feature p {
    margin: 0;
    font-size: 15px;
    text-align: left;
}

.hot-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 30px;
    text-align: left;
}

.panel {
    padding: 26px;
    border: 1px solid rgba(91, 75, 255, .10);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel h3 {
    margin: 0 0 16px;
    font-size: 24px;
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 10px 13px;
    border-radius: 999px;
    color: #4d3bff;
    background: #f4f2ff;
    font-size: 14px;
    font-weight: 800;
}

.ticker {
    height: 228px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.ticker-list {
    animation: scroll-up 32s linear infinite;
}

.order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #e6e8f0;
    font-size: 14px;
}

.order b {
    color: #111827;
}

.order span {
    color: var(--muted);
    text-align: right;
}

@keyframes scroll-up {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

.price {
    position: relative;
    max-width: 860px;
    margin: 48px auto 0;
    padding: 30px;
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .24), transparent 26%),
        linear-gradient(135deg, #1b1640, #5b4bff 55%, #ff3d7f);
    box-shadow: 0 30px 80px rgba(91, 75, 255, .32);
    overflow: hidden;
    text-align: left;
}

.price h2 {
    margin: 0 0 10px;
    font-size: 34px;
}

.price p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, .88);
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    flex-wrap: wrap;
}

.money {
    font-size: 44px;
    font-weight: 1000;
}

.money small {
    font-size: 16px;
    opacity: .8;
}

.support {
    margin-top: 8px;
    opacity: .82;
}

.buy-big {
    min-width: 220px;
    color: #fff;
    background: linear-gradient(135deg, #ff8a00, #ff3d7f);
    box-shadow: 0 14px 34px rgba(255, 61, 127, .38);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.fixed-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    padding: 12px max(16px, calc((100vw - 1120px) / 2));
    color: #fff;
    background: rgba(22, 27, 46, .96);
    box-shadow: 0 -12px 36px rgba(0, 0, 0, .22);
    backdrop-filter: blur(12px);
}

.fixed-buy b {
    font-size: 16px;
}

.fixed-buy span {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.fixed-buy .btn {
    position: relative;
    min-height: 58px;
    padding: 0 34px;
    border-radius: 18px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 18px;
    box-shadow: 0 0 0 0 rgba(255, 61, 127, .55), 0 14px 34px rgba(255, 61, 127, .42);
    animation: buy-shake 1.8s ease-in-out infinite, glow 1.8s ease-in-out infinite;
}

.fixed-buy .btn::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -60%;
    width: 50%;
    height: 180%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: rotate(25deg);
    animation: shine 2.2s ease-in-out infinite;
}

@keyframes buy-shake {
    0%, 100% { transform: translateX(0) scale(1); }
    8% { transform: translateX(-2px) scale(1.04); }
    16% { transform: translateX(2px) scale(1.04); }
    24% { transform: translateX(-1px) scale(1.04); }
    32% { transform: translateX(1px) scale(1.04); }
    42% { transform: translateX(0) scale(1); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 61, 127, .48), 0 14px 34px rgba(255, 61, 127, .42); }
    50% { box-shadow: 0 0 0 10px rgba(255, 61, 127, 0), 0 18px 42px rgba(255, 138, 0, .50); }
}

@keyframes shine {
    0% { left: -70%; }
    55%, 100% { left: 130%; }
}

.notice {
    margin: 28px 0 10px;
    color: #98a2b3;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 820px) {
    .hero {
        padding-top: 28px;
    }

    .hero-grid,
    .hot-box {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 24px 14px;
    }

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

    .lead {
        font-size: 16px;
    }

    .fixed-buy {
        justify-content: space-between;
        padding: 10px 12px;
    }

    .fixed-buy b {
        font-size: 14px;
    }

    .fixed-buy span {
        display: none;
    }

    .fixed-buy .btn {
        min-height: 54px;
        padding: 0 24px;
        font-size: 17px;
    }
}

@media (max-width: 520px) {
    .badge {
        font-size: 13px;
        white-space: normal;
    }

    .btn {
        width: 100%;
    }

    .hero-actions .btn {
        width: auto;
        flex: 1 1 190px;
    }

    .panel {
        padding: 20px 16px;
        border-radius: 22px;
    }

    .ticker {
        height: 210px;
    }

    .order {
        align-items: flex-start;
        gap: 8px;
        padding: 11px 0;
        font-size: 13px;
    }

    .order b {
        min-width: 76px;
        flex-shrink: 0;
        font-size: 13px;
    }

    .order span {
        flex: 1;
        line-height: 1.45;
        text-align: right;
    }

    .money {
        font-size: 34px;
    }

    .fixed-buy {
        gap: 10px;
        padding: 9px 10px;
    }

    .fixed-buy b {
        font-size: 13px;
    }

    .fixed-buy .btn {
        width: auto;
        min-width: 128px;
        min-height: 52px;
        padding: 0 18px;
        font-size: 16px;
    }
}

/* The desktop view is a focused QR download page. The content view remains mobile-first. */
.desktop-download-panel {
    display: none;
}

.iphone-frame {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 9 / 19.5;
    padding: 9px;
    border: 5px solid #11131a;
    border-radius: 48px;
    background: linear-gradient(145deg, #60636d, #15171d 28%, #343842 72%, #11131a);
    box-shadow:
        0 34px 60px rgba(14, 14, 27, .32),
        inset 0 0 0 2px rgba(255, 255, 255, .24);
}

.iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 37px;
    background: #f5f5f7;
}

.iphone-screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.iphone-island {
    position: absolute;
    z-index: 2;
    top: 17px;
    left: 50%;
    width: 34%;
    height: 26px;
    border-radius: 999px;
    background: #050506;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, .12);
    transform: translateX(-50%);
}

.iphone-side-button {
    position: absolute;
    z-index: 3;
    left: -10px;
    width: 5px;
    border-radius: 5px 0 0 5px;
    background: #3c3f48;
}

.iphone-action {
    top: 112px;
    height: 34px;
}

.iphone-volume-up {
    top: 170px;
    height: 52px;
}

.iphone-volume-down {
    top: 235px;
    height: 52px;
}

.screenshot-placeholder {
    display: grid;
    min-height: 100%;
    place-content: center;
    gap: 8px;
    color: #6b7280;
    text-align: center;
}

.screenshot-placeholder strong {
    color: #171821;
    font-size: 22px;
}

.screenshot-placeholder span {
    font-size: 13px;
}

@media (min-width: 821px) {
    body {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 0;
        overflow-x: hidden;
        background:
            radial-gradient(circle at 13% 32%, rgba(137, 174, 255, .24), transparent 30%),
            radial-gradient(circle at 86% 30%, rgba(174, 241, 167, .28), transparent 32%),
            linear-gradient(135deg, #edf4ff 0%, #f8ffff 48%, #f2faeb 100%);
    }

    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        padding: 0;
    }

    .hero-grid {
        display: block;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-copy,
    .phone-card,
    .mobile-content,
    .fixed-buy {
        display: none;
    }

    .desktop-download-panel {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: min(710px, calc(100vw - 32px));
        height: 100vh;
        height: 100dvh;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0 auto;
        padding: clamp(22px, 5vh, 78px) 36px clamp(22px, 5vh, 58px);
        border-radius: 32px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 28px 80px rgba(86, 113, 144, .15);
        text-align: center;
        overflow: auto;
    }

    .desktop-download-panel h1 {
        margin: 0 0 clamp(14px, 3vh, 36px);
        color: #16171d;
        font-size: clamp(25px, 4vh, 42px);
        line-height: 1.25;
    }

    .desktop-brand {
        width: clamp(140px, 21vh, 244px);
        height: clamp(140px, 21vh, 244px);
        overflow: hidden;
        border-radius: 52px;
        background: linear-gradient(145deg, #211052, #0b123a);
        box-shadow: 0 18px 36px rgba(44, 40, 92, .22);
    }

    .desktop-brand img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .desktop-brand-placeholder {
        display: grid;
        width: 100%;
        height: 100%;
        place-items: center;
        color: #fff;
        background: linear-gradient(145deg, #4715a5, #ed1b74);
        font-size: clamp(64px, 9vh, 108px);
        font-weight: 900;
    }

    .desktop-download-panel h2 {
        margin: clamp(16px, 3vh, 34px) 0 clamp(18px, 3vh, 36px);
        color: #171821;
        font-size: clamp(28px, 4.5vh, 48px);
        line-height: 1;
    }

    .qr-shell {
        display: grid;
        place-items: center;
        width: calc(clamp(210px, 30vh, 320px) + 40px);
        height: calc(clamp(210px, 30vh, 320px) + 40px);
        max-width: 100%;
        padding: 20px;
        border-radius: 26px;
        background: #fff;
        box-shadow: 0 18px 40px rgba(27, 39, 59, .10);
    }

    #qrcode {
        display: grid;
        place-items: center;
        width: clamp(210px, 30vh, 320px);
        height: clamp(210px, 30vh, 320px);
        max-width: 100%;
        max-height: 100%;
    }

    #qrcode img,
    #qrcode canvas {
        display: block;
        width: 100% !important;
        height: 100% !important;
        image-rendering: pixelated;
    }

    .desktop-download-panel p {
        margin: clamp(16px, 3vh, 42px) 0 clamp(6px, 1vh, 12px);
        color: #9aa4b2;
        font-size: clamp(14px, 2.4vh, 21px);
    }

    .desktop-download-panel > span {
        color: #9aa4b2;
        font-size: clamp(13px, 2.2vh, 20px);
    }
}

@media (max-width: 820px) {
    .phone-card {
        display: flex;
        justify-content: center;
        min-height: 0;
        padding: 10px 0 34px;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }

    .iphone-frame {
        width: min(82vw, 360px);
    }
}

@media (max-width: 420px) {
    .iphone-frame {
        border-radius: 39px;
    }

    .iphone-screen {
        border-radius: 30px;
    }
}
