:root {
    --page: #f7fbff;
    --text: #18233a;
    --muted: #71829b;
    --line: #e8eef7;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --green: #22c55e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 8%, rgba(59, 130, 246, .11), transparent 32%),
        radial-gradient(circle at 84% 12%, rgba(139, 92, 246, .1), transparent 30%),
        linear-gradient(180deg, #fff 0%, #f7fbff 50%, #f4f9ff 100%);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    height: 76px;
    border-bottom: 1px solid rgba(226, 232, 240, .8);
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #18233a; font-size: 20px; font-weight: 850; text-decoration: none; }
.logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    overflow: hidden;
    background: #dff1ff;
    box-shadow: 0 10px 26px rgba(59, 130, 246, .18);
}
.logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nav-right { display: flex; align-items: center; gap: 22px; color: #60738e; font-size: 14px; }
.nav-link { text-decoration: none; }
.nav-link:hover { color: #2563eb; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.button-primary {
    color: #fff;
    background: linear-gradient(135deg, #4da3ff, #5b78f6 58%, #7d5df7);
    box-shadow: 0 13px 30px rgba(59, 130, 246, .22);
}
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(59, 130, 246, .28); }
.header-button { min-height: 40px; padding-inline: 16px; border-radius: 11px; font-size: 14px; }
[aria-disabled="true"] { cursor: not-allowed; opacity: .56; }
[aria-disabled="true"]:hover { transform: none; box-shadow: 0 13px 30px rgba(59, 130, 246, .14); }

.hero {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 68px;
    min-height: 590px;
    padding: 72px 0 62px;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid #d9ebff;
    border-radius: 999px;
    color: #3978bd;
    background: #eff7ff;
    font-size: 13px;
    font-weight: 750;
}
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(34, 197, 94, .35); }
.hero h1 { margin: 22px 0; font-size: clamp(44px, 5.5vw, 76px); line-height: 1.03; letter-spacing: -2.5px; }
.gradient-text {
    color: transparent;
    background: linear-gradient(90deg, #18233a 0%, #347fc8 42%, #7655e7 92%);
    background-clip: text;
    -webkit-background-clip: text;
}
.lead { max-width: 650px; margin: 0 0 26px; color: var(--muted); font-size: 18px; line-height: 1.9; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags span {
    padding: 9px 12px;
    border: 1px solid #e5edf8;
    border-radius: 11px;
    color: #657995;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 7px 18px rgba(35, 84, 130, .04);
    font-size: 13px;
}

.download-card {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border: 1px solid #e4edf8;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(247, 251, 255, .98));
    box-shadow: 0 35px 80px rgba(38, 82, 128, .13);
}
.download-card::before { content: ""; position: absolute; top: -120px; right: -120px; width: 260px; height: 260px; border-radius: 50%; background: rgba(91, 147, 255, .1); }
.app-head { position: relative; display: flex; align-items: center; gap: 16px; }
.app-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 22px;
    overflow: hidden;
    background: #dff1ff;
    box-shadow: 0 18px 30px rgba(79, 135, 245, .16);
}
.app-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-title { display: grid; gap: 5px; }
.app-title strong { font-size: 22px; }
.app-title small { color: var(--muted); font-size: 14px; }
.divider { height: 1px; margin: 24px 0; background: #eaf0f7; }
.qr-wrap { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 20px; }
.qr-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    padding: 8px;
    border: 1px solid #e7eef6;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(51, 93, 133, .08);
}
.qr-image img { width: 100%; height: 100%; border-radius: 10px; object-fit: contain; }
.qr-fallback { color: #60738e; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; text-align: center; }
.qr-copy h2 { margin: 0 0 8px; font-size: 18px; }
.qr-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.card-download { width: 100%; margin-top: 16px; }
.referral-note { display:grid; gap:4px; margin:0 0 16px; padding:12px 14px; border:1px solid #d8e8ff; border-radius:10px; background:#f4f8ff; color:#244468; }
.referral-note span { color:#377bd1; font-size:12px; font-weight:700; }
.referral-note strong { color:#162c49; font-size:15px; }
.referral-note small { color:#66809f; line-height:1.5; }
.referral-open { width:100%; margin-top:9px; border:1px solid #bcd6fb; color:#2369bc; background:#fff; }
.mobile-only { display: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.stat { padding: 14px; border: 1px solid #e6edf6; border-radius: 15px; background: #fbfdff; }
.stat b { display: block; margin-bottom: 4px; font-size: 16px; }
.stat span { color: var(--muted); font-size: 12px; }

.apps-section { padding: 26px 0 78px; }
.apps-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.apps-heading h2 { margin: 0 0 8px; font-size: 34px; letter-spacing: -1px; }
.apps-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.count-badge { padding: 9px 13px; border: 1px solid #e3ebf5; border-radius: 999px; color: #6d7f98; background: #fff; box-shadow: 0 7px 18px rgba(44, 91, 140, .05); font-size: 13px; white-space: nowrap; }
.apps-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 13px; }
.popular-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 112px;
    padding: 14px 10px;
    border: 1px solid #e6edf6;
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 9px 26px rgba(44, 91, 140, .055);
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.popular-app:hover { transform: translateY(-4px); border-color: #cfe3fb; box-shadow: 0 18px 38px rgba(44, 91, 140, .11); }
.popular-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    padding: 11px;
    border: 1px solid #e7eef7;
    border-radius: 16px;
    background: linear-gradient(145deg, #f8fbff, #edf5ff);
}
.popular-icon img { display: block; max-width: 100%; max-height: 100%; }
.icon-fallback { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 10px; color: #3b82f6; background: #eaf4ff; font-size: 20px; font-weight: 900; }
.popular-name { max-width: 100%; margin-top: 10px; overflow: hidden; color: #34465f; font-size: 12.5px; font-weight: 750; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.features-section { padding: 68px 0; }
.section-title { margin-bottom: 38px; text-align: center; }
.section-title h2 { margin: 0 0 12px; font-size: 34px; letter-spacing: -1px; }
.section-title p { margin: 0; color: var(--muted); line-height: 1.7; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features article { padding: 26px; border: 1px solid #e6edf6; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(44, 91, 140, .055); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 13px; background: #edf6ff; font-size: 22px; }
.features h3 { margin: 0 0 10px; font-size: 18px; }
.features p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.cta-wrap { padding-top: 20px; padding-bottom: 74px; }
.cta { padding: 38px; border: 1px solid #dfeaf7; border-radius: 26px; background: linear-gradient(135deg, #eef7ff, #f4f0ff); box-shadow: 0 18px 45px rgba(55, 100, 150, .07); text-align: center; }
.cta h2 { margin: 0 0 10px; font-size: 30px; }
.cta p { max-width: 680px; margin: 0 auto 22px; color: var(--muted); line-height: 1.7; white-space: pre-line; }
.site-footer { padding: 26px 0 40px; border-top: 1px solid #e6edf6; color: #7f91a9; background: rgba(255, 255, 255, .65); font-size: 13px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.mobile-download-bar { display: none; }

@media (max-width: 1050px) {
    .apps-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 900px) {
    body { padding-bottom: 74px; }
    .wrap { width: min(calc(100% - 28px), 720px); }
    .site-header { height: 66px; }
    .nav-right .nav-link { display: none; }
    .hero { grid-template-columns: 1fr; gap: 34px; min-height: auto; padding: 56px 0 44px; }
    .hero h1 { letter-spacing: -1.8px; }
    .lead { font-size: 16px; }
    .download-card { padding: 20px; }
    .qr-wrap { grid-template-columns: 1fr; }
    .qr-image, .desktop-only { display: none; }
    .mobile-only { display: block; }
    .apps-grid { grid-template-columns: repeat(5, 1fr); }
    .features { grid-template-columns: 1fr; }
    .features-section { padding: 52px 0; }
    .cta-wrap { padding-bottom: 48px; }
    .cta { padding: 28px 20px; }
    .mobile-download-bar {
        position: fixed;
        z-index: 40;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px max(15px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(15px, env(safe-area-inset-left));
        border-top: 1px solid #e3eaf4;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 -8px 28px rgba(37, 72, 112, .09);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
    }
    .mobile-download-bar div { display: grid; gap: 2px; }
    .mobile-download-bar strong { font-size: 13px; }
    .mobile-download-bar span { color: #7c8a9d; font-size: 10px; }
    .mobile-download-bar a { padding: 11px 21px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #4da3ff, #6e65f4); font-size: 12px; font-weight: 800; text-decoration: none; }
}

@media (max-width: 650px) {
    .apps-heading { flex-direction: column; align-items: flex-start; }
    .apps-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .popular-app { min-height: 98px; padding: 11px 7px; border-radius: 15px; }
    .popular-icon { width: 48px; height: 48px; padding: 9px; border-radius: 13px; }
    .popular-name { font-size: 11.5px; }
}

@media (max-width: 430px) {
    .brand { font-size: 18px; }
    .logo { width: 38px; height: 38px; }
    .header-button { min-height: 38px; padding-inline: 13px; font-size: 12px; }
    .hero { padding-top: 42px; }
    .hero h1 { font-size: 43px; }
    .hero-tags { gap: 8px; }
    .hero-tags span { padding: 8px 10px; font-size: 12px; }
    .app-icon { width: 66px; height: 66px; border-radius: 19px; }
    .app-title strong { font-size: 20px; }
    .stats { grid-template-columns: 1fr; }
    .apps-grid { grid-template-columns: repeat(3, 1fr); }
}

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