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

:root {
    --bg-dark: #0a1628;
    --bg-card: #111d33;
    --gold: #c8a84e;
    --gold-light: #e8d48b;
    --gold-dark: #a07830;
    --white: #ffffff;
    --white-muted: rgba(255, 255, 255, 0.6);
    --radius: 14px;
}

html,
body {
    height: 100dvh;
    overflow: hidden;
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
        Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

body {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    padding: clamp(10px, 3dvh, 20px) clamp(16px, 5vw, 28px);
    animation: fadeIn 0.6s ease-out;
}

/* ---- HEADER ---- */

.header {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.header__logo {
    width: clamp(75px, 23vw, 116px);
    height: clamp(75px, 23vw, 116px);
    filter: drop-shadow(0 0 10px rgba(200, 168, 78, 0.5));
}

/* ---- MAIN ---- */

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2.5dvh, 20px);
    min-height: 0;
}

/* ---- HERO ---- */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 2dvh, 16px);
    width: 100%;
}

.hero__phone {
    position: relative;
}

.phone-frame {
    width: clamp(160px, 50vw, 260px);
    height: clamp(280px, 50dvh, 440px);
    background: var(--bg-card);
    border: 2px solid rgba(200, 168, 78, 0.25);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(200, 168, 78, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.4);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: rgba(200, 168, 78, 0.2);
    border-radius: 4px;
}

.phone-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 30% 20%,
        rgba(200, 168, 78, 0.06),
        transparent 60%
    );
    pointer-events: none;
}

.phone-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    display: block;
}

/* ---- HERO TEXT ---- */

.hero__text {
    text-align: center;
}

.hero__heading {
    font-size: clamp(18px, 5.5vw, 28px);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 4px;
}

.hero__sub {
    font-size: clamp(11px, 3.2vw, 15px);
    color: var(--white-muted);
    line-height: 1.3;
    max-width: 260px;
    margin: 0 auto;
}

/* ---- DOWNLOAD BUTTON ---- */

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: clamp(12px, 3.5vw, 18px) clamp(28px, 10vw, 56px);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-dark);
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    box-shadow:
        0 4px 20px rgba(200, 168, 78, 0.3),
        0 0 0 0 rgba(200, 168, 78, 0);
    animation: pulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

.btn-download:active {
    transform: scale(0.96);
}

.btn-download__icon {
    flex-shrink: 0;
}

/* ---- BADGES ---- */

.badge-row {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.badge {
    font-size: clamp(9px, 2.5vw, 11px);
    padding: 3px 10px;
    border: 1px solid rgba(200, 168, 78, 0.2);
    border-radius: 20px;
    color: var(--white-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---- FOOTER ---- */

.footer {
    text-align: center;
    flex-shrink: 0;
    padding-top: clamp(6px, 1.5dvh, 12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer p {
    font-size: clamp(8px, 2.4vw, 11px);
    color: var(--white-muted);
    line-height: 1.5;
}

.footer p:first-child {
    font-weight: 600;
    color: var(--gold);
    font-size: clamp(9px, 2.6vw, 12px);
}

/* ---- ANIMATIONS ---- */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        box-shadow:
            0 4px 20px rgba(200, 168, 78, 0.3),
            0 0 0 0 rgba(200, 168, 78, 0.15);
    }
    50% {
        box-shadow:
            0 4px 24px rgba(200, 168, 78, 0.45),
            0 0 0 8px rgba(200, 168, 78, 0);
    }
}

@keyframes shimmer {
    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* ---- LANDSCAPE ---- */

@media (orientation: landscape) and (max-height: 500px) {
    body {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 8px 20px;
    }

    .header {
        width: 100%;
        justify-content: center;
    }

    .main {
        flex-direction: row;
        gap: 20px;
    }

    .hero {
        flex-direction: row;
        gap: 16px;
    }

    .phone-frame {
        width: 80px;
        height: 110px;
        border-radius: 14px;
    }

    .hero__text {
        text-align: left;
    }

    .footer {
        width: 100%;
    }
}

/* ---- BACKGROUND DECORATION ---- */

.bg-particles {
    position: fixed;
    inset: 0;
    background: url('bg-particles.svg') center / cover no-repeat;
    pointer-events: none;
    z-index: 0;
}

.header,
.main,
.footer {
    position: relative;
    z-index: 1;
}
