/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --accent-from: #0c8eb0;
    --accent-to:   #007293;
    --bg:          #edfcff;
    --card-bg:     rgba(255, 255, 255, 0.88);
    --card-border: #D5E8EE;
    --text:        #11181C;
    --text-muted:  #687076;
    --radius-card: 28px;
    --radius-btn:  16px;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    overflow-x: hidden;
}

/* ─── Ambient Background Orbs ───────────────────────────── */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 1;
    animation: drift 14s ease-in-out infinite alternate;
}

.orb-1 {
    width: 560px;
    height: 560px;
    background: rgba(12, 142, 176, 0.18);
    top: -160px;
    right: -120px;
    animation-delay: 0s;
}

.orb-2 {
    width: 420px;
    height: 420px;
    background: rgba(95, 196, 232, 0.15);
    bottom: -120px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 320px;
    height: 320px;
    background: rgba(244, 148, 49, 0.13);
    top: 42%;
    left: 46%;
    animation-delay: -9s;
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(28px, 18px) scale(1.1); }
}

/* ─── Card ───────────────────────────────────────────────── */
.card {
    position: relative;
    z-index: 1;
    width: min(92vw, 420px);
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 40px 36px 32px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 60px rgba(12, 142, 176, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    animation: fadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    text-align: center;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ─── App Icon ───────────────────────────────────────────── */
.app-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow:
        0 12px 36px rgba(12, 142, 176, 0.28),
        0 0 0 1px rgba(213, 232, 238, 0.8);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.app-icon img {
    width: 88px;
    height: 88px;
    display: block;
    object-fit: cover;
}

.app-icon:hover {
    transform: rotate(-4deg) scale(1.05);
}

/* ─── App Info ───────────────────────────────────────────── */
.app-info {
    margin-bottom: 14px;
}

h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.tagline {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── Rating ─────────────────────────────────────────────── */
.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 26px;
}

.stars {
    color: #fbbf24;
    font-size: 13px;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ─── Download Button ────────────────────────────────────── */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    font-family: inherit;
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    box-shadow:
        0 8px 24px rgba(12, 142, 176, 0.38),
        0 2px 6px rgba(0, 0, 0, 0.10);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    margin-bottom: 22px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 36px rgba(12, 142, 176, 0.50),
        0 4px 8px rgba(0, 0, 0, 0.12);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(12, 142, 176, 0.30);
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ─── Divider ────────────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

/* ─── Store Badges ───────────────────────────────────────── */
.stores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    outline-offset: 3px;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 8px 20px rgba(12, 142, 176, 0.20);
}

.store-badge:focus-visible {
    outline: 2px solid var(--accent-from);
}

.store-badge img {
    height: 44px;
    width: auto;
    display: block;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
    font-size: 12.5px;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
    padding-top: 18px;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 380px) {
    .card {
        padding: 32px 22px 26px;
    }

    h1 {
        font-size: 21px;
    }

    .app-icon {
        width: 76px;
        height: 76px;
        font-size: 38px;
    }

    .stores {
        flex-direction: column;
        align-items: center;
    }
}