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

:root {
    --red: #e61d31;
    --sea: #2fabe2;
    --deep: #253a7f;
    --deep-d: #1a2a5e;
    --white: #ffffff;
    --bg: #f4f6fa;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --r-lg: 20px;
    --r-md: 14px;
    --r-sm: 10px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family:
        'Inter',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: env(safe-area-inset-left) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
    background: linear-gradient(165deg, var(--red) 0%, #c4182a 60%, #8b1120 100%);
    padding: 2.5rem 1.25rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative orbs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.7;
}
.hero::before {
    width: 280px;
    height: 280px;
    top: -140px;
    right: -90px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}
.hero::after {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08) 0%, transparent 70%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

/* Logo */
.app-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: var(--white);
    padding: 8px;
    margin: 0 auto 1.25rem;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: floatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero h1 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.4rem;
    animation: floatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
    animation: floatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

/* Rating stars */
.rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: floatIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.stars {
    color: #facc15;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

.rating-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   CONTENT AREA
   ═══════════════════════════════════════════════════════════ */
.main {
    flex: 1;
    padding: 0 1rem 1.5rem;
    max-width: 480px;
    width: 100%;
    margin: -2rem auto 0;
    position: relative;
    z-index: 2;
}

/* ── Download Card ──────────────────────────────────────── */
.download-card {
    background: var(--card);
    border-radius: var(--r-lg);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1rem;
    animation: floatIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.download-card__header {
    text-align: center;
    margin-bottom: 1rem;
}

.download-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.download-card__sub {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 400;
}

/* Store buttons */
.store-btns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: var(--r-md);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    border: none;
    position: relative;
    min-height: 44px;
    font-size: 0.95rem;
}

.store-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* Black style — like real App Store / Play Store badges */
.store-btn--dark {
    background: #111827;
    color: var(--white);
}

.store-btn--dark:hover {
    background: #1f2937;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Outlined style */
.store-btn--outline {
    background: var(--white);
    color: var(--text);
    border: 1.5px solid var(--border);
}

.store-btn--outline:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.store-btn__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.store-btn__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.store-btn__label {
    font-size: 0.62rem;
    font-weight: 500;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.store-btn__name {
    font-size: 0.95rem;
    font-weight: 700;
}

.store-btn__arrow {
    margin-left: auto;
    opacity: 0.3;
    font-size: 1.1rem;
}

/* "Best for you" pill */
.best-pill {
    position: absolute;
    top: -7px;
    right: 14px;
    background: var(--red);
    color: var(--white);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 2.5px 9px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(230, 29, 49, 0.3);
}

/* ── Separator ─────────────────────────────────────────── */
.sep {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.25rem 0;
}

.sep::before,
.sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.sep span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ── Features ──────────────────────────────────────────── */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.feat {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.7rem 0.65rem;
    border-radius: var(--r-md);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    border: 1px solid transparent;
}

.feat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Brand-colored variants */
.feat--red {
    background: #fef2f2;
    border-color: rgba(230, 29, 49, 0.1);
}
.feat--sea {
    background: #eff9fe;
    border-color: rgba(47, 171, 226, 0.12);
}
.feat--deep {
    background: #eef1fa;
    border-color: rgba(37, 58, 127, 0.1);
}
.feat--grey {
    background: #f8f9fa;
    border-color: rgba(100, 116, 139, 0.1);
}
.feat--gold {
    background: #fefce8;
    border-color: rgba(250, 204, 21, 0.15);
}

.feat__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feat__icon--red {
    color: var(--red);
}
.feat__icon--sea {
    color: var(--sea);
}
.feat__icon--deep {
    color: var(--deep);
}
.feat__icon--gold {
    color: #d97706;
}

.feat__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.feat__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.feat__desc {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.3;
}

/* ── Trust Bar ─────────────────────────────────────────── */
.trust {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.trust-item {
    text-align: center;
}

.trust-item__value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--deep);
}

.trust-item__label {
    font-size: 0.65rem;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    text-align: center;
    padding: 1.25rem 1rem 1.75rem;
}

.footer p {
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.5;
}

.footer a {
    color: var(--deep);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════ */
.hidden {
    display: none !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Improve touch experience on mobile */
@media (hover: none) and (pointer: coarse) {
    .store-btn:hover {
        background: #111827;
        box-shadow: none;
    }

    .feat:hover {
        transform: none;
        box-shadow: none;
    }

    .store-btn--dark:hover {
        background: #1f2937;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Small phones (360px) */
@media (min-width: 360px) {
    .hero h1 {
        font-size: 1.65rem;
    }
    .download-card {
        padding: 1.5rem 1.2rem;
    }
}

/* Medium phones (480px) */
@media (min-width: 480px) {
    .hero {
        padding: 3rem 1.5rem 4.5rem;
    }

    .app-logo {
        width: 80px;
        height: 80px;
        padding: 10px;
        margin-bottom: 1.5rem;
    }

    .hero h1 {
        font-size: 1.85rem;
        margin-bottom: 0.5rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .rating {
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        margin-top: 1.5rem;
    }

    .main {
        padding: 0 1.5rem 2rem;
        margin-top: -2.25rem;
    }

    .download-card {
        padding: 1.5rem 1.5rem;
    }

    .store-btn {
        padding: 0.85rem 1.1rem;
        gap: 0.85rem;
    }

    .store-btn__icon {
        width: 30px;
        height: 30px;
    }

    .sep {
        margin: 1.5rem 0;
    }

    .features {
        gap: 0.7rem;
    }

    .feat {
        padding: 0.8rem 0.75rem;
        gap: 0.6rem;
    }
}

/* Tablets & larger (640px) */
@media (min-width: 640px) {
    .hero {
        padding: 4rem 2rem 5.5rem;
    }

    .app-logo {
        width: 96px;
        height: 96px;
        padding: 12px;
        margin-bottom: 1.75rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    .hero-tagline {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 350px;
    }

    .rating {
        gap: 0.6rem;
        padding: 0.5rem 1.1rem;
        margin-top: 1.75rem;
        font-size: 1rem;
    }

    .main {
        padding: 0 2rem 2.5rem;
        max-width: 500px;
        margin-top: -3rem;
    }

    .download-card {
        padding: 2rem 2rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }

    .download-card__header {
        margin-bottom: 1.5rem;
    }

    .download-card__title {
        font-size: 1.25rem;
    }

    .store-btns {
        gap: 0.75rem;
    }

    .store-btn {
        padding: 1rem 1.25rem;
        gap: 1rem;
        font-size: 1rem;
    }

    .store-btn__icon {
        width: 32px;
        height: 32px;
    }

    .store-btn__name {
        font-size: 1.05rem;
    }

    .sep {
        margin: 1.75rem 0;
        gap: 0.85rem;
    }

    .sep span {
        font-size: 0.75rem;
    }

    .features {
        gap: 0.8rem;
    }

    .feat {
        padding: 1rem 0.9rem;
        gap: 0.7rem;
    }

    .feat__icon {
        width: 40px;
        height: 40px;
    }

    .feat__label {
        font-size: 0.8rem;
    }

    .feat__desc {
        font-size: 0.68rem;
    }

    .footer {
        padding: 2rem 2rem 2.5rem;
    }

    .footer p {
        font-size: 0.75rem;
    }
}

/* Large screens (1024px+) */
@media (min-width: 1024px) {
    .hero {
        padding: 5rem 2rem 7rem;
    }

    .app-logo {
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
        max-width: 400px;
    }

    .main {
        max-width: 550px;
        padding: 0 2rem 3rem;
        margin-top: -3.5rem;
    }

    .download-card {
        padding: 2.5rem 2.5rem;
    }

    .store-btn {
        padding: 1.1rem 1.4rem;
    }
}
