* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #111827;
    background: #edf1f7;
}

body {
    overflow-x: hidden;
}

body.desktop-device {
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(18, 24, 38, 0.92), rgba(44, 62, 86, 0.72)),
        url("../images/distribute-bg.jpeg") center/cover no-repeat fixed;
}

body.mobile-device {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(237, 241, 247, 0.95) 55%),
        var(--mobile-bg-image) center top/cover no-repeat fixed;
}

.shdow {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    background-color: rgba(8, 13, 24, 0.62);
}

.desktop-wrapper {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 48px 28px;
}

.desktop-shell {
    width: min(1040px, 100%);
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.36);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.desktop-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 42px;
    padding: 54px;
}

.brand-panel {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-app-icon,
.icon-wrap img {
    display: block;
    object-fit: cover;
}

.desktop-app-icon {
    width: 92px;
    height: 92px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.eyebrow {
    margin: 0 0 12px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.desktop-app-name {
    display: none;
}

.desktop-app-info,
.name-info {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.desktop-app-info span,
.name-info span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 10px 8px 0;
    padding: 0 12px;
    color: #334155;
    background: #eef2f7;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

.headline-block {
    max-width: 620px;
}

.headline-block h2 {
    margin: 0 0 18px;
    color: #101827;
    font-size: 58px;
    line-height: 1;
    font-weight: 800;
}

.headline-block p {
    max-width: 520px;
    margin: 0;
    color: #516070;
    font-size: 18px;
    line-height: 1.7;
}

.desktop-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.status-item {
    min-height: 92px;
    padding: 18px;
    border: 1px solid #dce4ee;
    border-radius: 8px;
    background: #f8fafc;
}

.status-item span {
    display: block;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-item strong {
    color: #0f172a;
    font-size: 21px;
}

.desktop-qr-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px;
    background: #0f172a;
    color: #ffffff;
}

.qr-frame {
    width: 210px;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

.desktop-qrcode,
.download-code {
    width: 178px;
    height: 178px;
}

.desktop-qrcode canvas,
.download-code canvas,
.download-code img {
    width: 100% !important;
    height: 100% !important;
}

.desktop-qrcode-tip {
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
}

.distribute-wrap {
    display: none;
    min-height: 100vh;
}

.mobile-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 16px 28px;
}

.mobile-topbar {
    width: min(430px, 100%);
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 12px rgba(15, 23, 42, 0.38);
}

.download-card {
    width: min(430px, 100%);
    margin: 15vh auto 0;
    padding: 26px 22px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.84);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.icon-wrap {
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -74px auto 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.icon-wrap img {
    width: 82px;
    height: 82px;
    border-radius: 8px;
}

.download {
    margin-top: 18px;
}

.download-btn {
    width: 100%;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn-main {
    border: 0;
    background: #111827;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.26);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-main:hover {
    transform: translateY(-1px);
    background: #0f766e;
    box-shadow: 0 18px 38px rgba(15, 118, 110, 0.26);
}

.download-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.trust-row span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    background: #f1f5f9;
    border-radius: 8px;
}

.mobile-qr-section {
    width: min(430px, 100%);
    margin: 0 auto;
    padding: 18px;
    text-align: center;
    border: 1px solid #dde6f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 44px rgba(15, 23, 42, 0.12);
}

.download-code {
    overflow: hidden;
    margin: 0 auto;
}

.tip {
    margin-top: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

#mask-tip {
    width: 92%;
    margin: 5px 4%;
    opacity: 1;
    z-index: 1060;
    position: relative;
}

.modal {
    width: min(92%, 430px);
    margin: 120px auto;
    z-index: 1060;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.modal-head {
    padding: 18px 20px;
    text-align: center;
    border-bottom: 1px solid #eef2f7;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
}

.modal-head p {
    margin: 0;
}

.modal-body {
    padding: 22px 20px 24px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

.modal-body p {
    margin: 0 0 24px;
}

.modal-btn-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-btn-wrap .btn {
    min-height: 42px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.btn-bor {
    color: #0f766e;
    background: transparent;
    border: 1px solid #0f766e;
}

@media (max-width: 860px) {
    .desktop-shell {
        grid-template-columns: 1fr;
    }

    .desktop-main {
        padding: 34px 24px;
    }

    .headline-block h2 {
        font-size: 38px;
    }

    .desktop-status-grid {
        grid-template-columns: 1fr;
    }

    .desktop-qr-panel {
        padding: 32px 24px;
    }
}

@media (max-width: 420px) {
    .mobile-hero {
        padding-left: 12px;
        padding-right: 12px;
    }

    .download-card {
        margin-top: 12vh;
        padding: 24px 16px 20px;
    }

    .trust-row {
        grid-template-columns: 1fr;
    }
}
