:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --bg-dark: #0f111a;
    --card-bg: rgba(25, 27, 38, 0.6);
    --border-light: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* STRICT OVERFLOW RULES TO KILL THE RIGHT-SIDE GAP */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

/* FIX: Removed html from overflow to restore native smooth scrolling on mobile */


@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.1); }
}

/* Glassmorphism Utilities */
.glass-nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 17, 26, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 36px;
    border-radius: 8px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}

.cta-btn, .buy-btn, .install-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.primary-glow:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.badge {
    background: rgba(102, 126, 234, 0.15);
    color: #a3b8ff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Sections Global */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Features */
.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    text-align: left;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing */
.pricing {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    padding: 3rem 2rem;
    position: relative;
    text-align: left;
}

.pricing-card.popular {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(25, 27, 38, 0.9) 0%, rgba(102, 126, 234, 0.1) 100%);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-main);
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.points {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2.5rem;
}

.pricing-card li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.pricing-card li i {
    color: #4CAF50;
    font-size: 1.1rem;
}

.pricing-card .buy-btn {
    width: 100%;
}

/* FAQ */
.faq {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.faq-item {
    padding: 2rem;
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 1.2rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.glass-footer {
    border-top: 1px solid var(--border-light);
    background: rgba(15, 17, 26, 0.8);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.2rem;
}

.brand-section p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0.8rem 0;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   DYNAMIC HERO VISUAL (Programmatic Image)
   ========================================= */
.hero-visual-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 400px;
    width: 100%;
}

.dynamic-hero-visual {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 400px;
    z-index: 10;
}

.center-file {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 28px;
    z-index: 5;
    background: linear-gradient(145deg, rgba(25, 27, 38, 0.9), rgba(15, 17, 26, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.center-file i {
    font-size: 4.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 10px 15px rgba(102, 126, 234, 0.4));
}

.file-extension {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
}

.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 50px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 10;
    animation: floatVisual 6s ease-in-out infinite alternate;
}

.badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.badge-security { top: 10%; right: 0%; animation-delay: 0s; }
.badge-earn { bottom: 15%; right: 5%; animation-delay: -2s; }
.badge-devices { top: 45%; left: -5%; animation-delay: -4s; }

@keyframes floatVisual {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-20px); }
}

/* =========================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ========================================= */

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto; 
        padding-top: 110px; 
        padding-bottom: 0rem; /* Reduced gap below hero */
        gap: 1.5rem; /* Reduced gap between text and visual */
    }
    
    .hero h1 { font-size: 2.8rem; }
    .hero p { margin: 0 auto 1.5rem; }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav { padding: 1rem; }
    
    /* FIX: Drastically reduce desktop padding for mobile to fix massive gaps */
    .features, .pricing, .faq { 
        padding-top: 3.5rem; 
        padding-bottom: 3.5rem; 
    }
    .section-header { 
        margin-bottom: 2rem; 
    }
    
    .hero, .features, .pricing, .faq, .glass-footer { 
        padding-left: 1.2rem; 
        padding-right: 1.2rem; 
    }
    
    .mobile-menu-btn { display: block; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 17, 26, 0.95);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-light);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
}

/* Specific fixes for the 3D Visual on Phones */
@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }

    .hero-visual-container {
        min-height: 250px; /* Shrunk visual container */
        margin-top: 0;
        width: 100%;
    }

    .dynamic-hero-visual {
        height: 250px; 
        max-width: 100%;
        width: 320px; 
        transform: none; 
    }

    .center-file {
        width: 110px;
        height: 130px;
    }
    .center-file i { font-size: 2.5rem; margin-bottom: 8px; }
    .file-extension { font-size: 1rem; }
    
    .float-badge { 
        padding: 8px 12px; 
        font-size: 0.75rem; 
        gap: 8px; 
    }
    .badge-icon { 
        width: 24px; 
        height: 24px; 
        font-size: 0.75rem; 
    }
    
    /* Pull badges strictly INSIDE the container */
    .badge-security { top: 5%; right: 0; }
    .badge-earn { bottom: 5%; right: 5%; }
    .badge-devices { top: 40%; left: 0; }
}