:root {
    --bg-dark: #050505;
    --primary: #00F0FF;
    /* Cyber Cyan */
    --secondary: #7000FF;
    /* Electric Purple */
    --accent: #FF0055;
    /* Neon Pink */
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Background Effects */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--secondary);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MDAiIGhlaWdodD0iNTAwIj48ZmlsdGVyIGlkPSJnoiPjZmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjAzIi8+PC9zdmc+');
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Header */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 30px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dot {
    color: var(--primary);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.cta-button-small {
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.cta-button-small:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 10% 80px;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, #A0A0A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.download-area {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.store-badge img {
    height: 50px;
    transition: transform 0.2s opacity 0.2s;
}

.store-badge:hover img {
    transform: translateY(-3px);
    opacity: 0.9;
}

.store-badge.disabled {
    opacity: 0.5;
    filter: grayscale(100%);
    cursor: default;
}

.stats-row {
    display: flex;
    gap: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .count {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #222;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
    overflow: hidden;
}

.screen-content {
    height: 100%;
    width: 100%;
    background: #0070F0;
    /* Android Update Blue */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.update-text {
    font-weight: 500;
    margin-bottom: 15px;
}

.progress-bar {
    width: 60%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.fill {
    width: 0%;
    height: 100%;
    background: white;
    animation: loading 3s ease-in-out infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loading {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* Features Section */
.features-section {
    padding: 100px 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-main);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.3s, border-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.glass-card p {
    color: var(--text-muted);
}

/* Preview Section */
.preview-section {
    padding: 100px 0;
    overflow: hidden;
}

.gallery-scroller {
    display: flex;
    gap: 40px;
    padding: 0 10%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 40px;
}

.gallery-item {
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mockup-frame {
    width: 260px;
    height: 520px;
    background: #111;
    border-radius: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    background-image: linear-gradient(45deg, #1a1a1a, #2a2a2a);
}

.mockup-frame.ios {
    background: #000;
    border-color: #333;
}

.mockup-frame.pixel {
    background: #1F1F1F;
}

.caption {
    font-weight: 600;
    color: var(--text-muted);
}

/* Reviews */
.reviews-section {
    padding: 100px 10%;
    margin-bottom: 100px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
}

.author {
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 10%;
    background: rgba(0, 0, 0, 0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    font-weight: 700;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 20px;
    font-size: 0.9rem;
}

.social-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
}

/* Animations Helper */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .glass-header {
        top: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--glass-border);
        padding: 15px 5%;
        padding-top: max(15px, env(safe-area-inset-top));
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 60px;
    }

    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .stats-row {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 20px;
    }

    h1 {
        font-size: 2.5rem;
    }

    /* Scale down mockup for mobile */
    .hero-visual {
        transform: scale(0.9);
        margin-top: -20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .download-area {
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        transform: scale(0.8);
        margin-top: -40px;
        margin-bottom: -50px;
    }

    .phone-mockup {
        height: 500px;
        width: 260px;
    }
}

/* --- Fake Update Screen Visuals --- */

/* Shared */
.screen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: white;
}

/* Samsung */
.samsung-screen {
    background: #000;
}

.logo-text {
    font-family: sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.loader-ring {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #0070F0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.update-text-sm {
    font-size: 0.8rem;
    color: #aaa;
}

/* iOS */
.ios-screen {
    background: #000;
}

.apple-logo {
    font-size: 3rem;
    margin-bottom: 30px;
}

.ios-bar {
    width: 60%;
    height: 3px;
    background: #333;
    border-radius: 2px;
}

.ios-fill {
    width: 0%;
    height: 100%;
    background: #fff;
    animation: loading 4s ease-in-out infinite;
}

/* Pixel */
.pixel-screen {
    background: #000;
}

.g-logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.bar-pill {
    width: 70%;
    height: 4px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
}

.pill-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4285F4, #34A853, #FBBC05, #EA4335);
    animation: loading 3s linear infinite;
}

/* Xiaomi */
.xiaomi-screen {
    background: #000;
}

.mi-logo {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.mi-loader {
    font-size: 2rem;
    font-weight: 300;
    animation: pulse 1s alternate infinite;
}

@keyframes pulse {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}