/* === ROOT VARIABLES & GLOBAL STYLE === */
:root {
    /* Your App's Color Theme */
    --primary-color: #3B82F6;
    --secondary-color: #6366F1;
    --gradient-cta: linear-gradient(90deg, #3B82F6 0%, #6366F1 100%);

    /* NEW Light Theme Supporting Colors */
    --text-dark: #1F2937;
    --text-light: #FFFFFF;
    --text-muted: #6B7280;
    --page-bg: #F9FAFB;
    --component-bg: #FFFFFF;
    --border-color: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Saira', sans-serif;
    background-color: var(--page-bg);
}

.mobile-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--page-bg);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    padding-bottom: 0; 
}


/* === BRAND LOGO === */
.brand-logo {
    font-family: 'Saira', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 28px;
    text-decoration: none;
    background: var(--gradient-cta);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    border: none;
    font-family: 'Saira', sans-serif;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn--header {
    background: var(--gradient-cta);
    color: var(--text-light);
    font-size: 14px;
    padding: 8px 14px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn--download-hero {
    width: 100%;
    background: var(--gradient-cta);
    color: var(--text-light);
    font-size: 17px;
    padding: 16px;
    font-weight: 700;
    border-radius: 12px;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}
.btn--download-hero:hover {
    transform: scale(1.03);
}

/* === HEADER === */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    /* UPDATED: Increased bottom padding to create space for the arrow */
    padding: 32px 16px 80px;
    overflow: hidden;
    background-color: #F0F4FF;
}
.hero-shape {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.6;
}
.hero-shape-1 {
    width: 250px;
    height: 250px;
    background: #dbeafe;
    top: -80px;
    left: -100px;
}
.hero-shape-2 {
    width: 200px;
    height: 200px;
    background: #e0e7ff;
    bottom: -60px;
    right: -80px;
}
.hero-card {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px -10px rgba(100, 116, 139, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; 
}
.hero-logo {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 22px;
    box-shadow: 0 5px 12px -2px rgba(0, 0, 0, 0.15), 0 20px 30px -10px rgba(29, 42, 60, 0.3);
    margin-bottom: 4px; 
}
.hero-title {
    color: var(--text-dark);
    font-size: 34px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    font-style: italic;
}
.hero-title span {
    display: block;
}
.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 90%;
    margin-top: 0;
    margin-bottom: 8px; 
    font-weight: 600;
}

/* === TRUST METRICS (INSIDE HERO CARD) === */
.trust-metrics {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: var(--text-dark);
    text-align: center;
    padding-top: 16px;
    margin-top: 8px; 
    border-top: 1px solid var(--border-color);
}
.metric-item strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
}
.metric-item strong i {
    font-size: 12px;
    color: #FFC940;
}
.metric-item span {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
    position: absolute;
    /* UPDATED: Adjusted position to fit in the new padding area */
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 3;
    animation: bounce 2.5s infinite;
}
.scroll-indicator i {
    font-size: 32px;
    color: var(--text-muted);
    line-height: 0.5;
    opacity: 0.6;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, 10px); }
    60% { transform: translate(-50%, 5px); }
}

/* === INSTALLATION GUIDE SECTION === */
.install-section {
    background-color: var(--page-bg);
    padding: 48px 16px 24px; 
}
.section-header {
    text-align: center;
    margin-bottom: 32px;
}
.section-title {
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 800;
}
.install-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.install-step {
    background-color: var(--component-bg);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.install-step__number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--gradient-cta);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}
.install-step__content h3 {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.install-step__content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}
.play-protect-warning {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border: 1px solid var(--border-color);
}
.play-protect-warning__icon i {
    font-size: 24px;
    color: var(--primary-color);
}
.play-protect-warning__text h4 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 15px;
}
.play-protect-warning__text p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 4px 0 16px;
}
.play-protect-warning__actions {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    font-weight: 700;
    font-size: 14px;
}
.play-protect-warning__actions span:first-child {
    color: var(--primary-color);
}
.play-protect-warning__actions span:last-child {
    color: var(--text-muted);
}
.install-step__content .highlight {
    color: var(--primary-color);
    font-weight: 700;
}

/* === FOOTER === */
.footer {
    text-align: center;
    padding: 0 16px 90px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}


/* === SMART STICKY BOTTOM BAR === */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    padding: 12px 16px;
    max-width: 480px; 
    margin: 0 auto;
    box-shadow: none;
    border-top: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.bottom-bar.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn--download {
    width: 100%;
    background: var(--gradient-cta);
    color: var(--text-light);
    font-size: 18px;
    padding: 14px 20px;
    font-weight: 800;
    border-radius: 12px;
    border: 1px solid var(--primary-color);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1),
        0 4px 15px rgba(59, 130, 246, 0.4);
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    justify-content: space-between;
}
.btn--download i {
    font-size: 24px;
    line-height: 1;
}

/* === Styling for the downloading state === */
.btn.is-downloading {
    justify-content: center !important; /* Force center alignment */
    cursor: wait; /* Show a waiting cursor */
}

/* === NEW: Loading dots animation === */
.loading-dots::after {
  display: inline-block;
  animation: ellipsis 1.4s infinite;
  content: ".";
  width: 1.2em; /* Gives space for all three dots */
  text-align: left;
}
@keyframes ellipsis {
    0%   { content: "."; }
    33%  { content: ".."; }
    66%  { content: "..."; }
    100% { content: "."; }
}


/* Shine Effect for Buttons */
.shine-effect {
    position: relative;
    overflow: hidden;
}
.shine-effect::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 5s infinite;
}
@keyframes shine {
    100% { left: 125%; }
}