/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables & Theme */
:root {
    /* Colors - InfinityIA Exact Tokens */
    --bg-dark: hsl(222, 47%, 5%);
    /* #070B13 */
    --bg-card: hsl(222, 47%, 8%);
    --bg-card-hover: hsl(222, 47%, 12%);

    /* Primary: Neon Cyan */
    --primary: hsl(195, 100%, 50%);
    /* #00BFFF */
    --primary-glow: rgba(0, 191, 255, 0.4);

    /* Secondary: Neon Purple */
    --secondary: hsl(280, 100%, 60%);
    /* #A855F7 */

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --accent-neon-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);

    /* Glow Effects */
    --glow-cyan: 0 0 20px hsl(195 100% 50% / .5), 0 0 40px hsl(195 100% 50% / .3);
    --glow-purple: 0 0 20px hsl(280 100% 60% / .5), 0 0 40px hsl(280 100% 60% / .3);
    --glow-neon: 0 0 30px hsl(195 100% 50% / .4), 0 0 60px hsl(280 100% 60% / .3);

    --accent-neon: var(--primary);
    /* Mapping for existing classes */

    --success: #10B981;
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    /* HSL(215 20% 70%) match */

    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 191, 255, 0.3);

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;

    /* Animations */
    --transition-fast: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    /* More space between lines for readability */
    line-height: 1.7;
    overflow-x: hidden;
    /* Subtle unified background gradient */
    background-image: radial-gradient(circle at 50% 0%, hsl(222, 47%, 15%) 0%, var(--bg-dark) 70%);
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(15, 15, 22, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: white;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple hiding for mobile for now, can be improved later */
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-neon {
    color: var(--accent-neon);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Components: Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    /* More techy, less round */
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
    background: #1d4ed8;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

/* Section Specifics */
section {
    padding: var(--section-padding);
}

/* Scroll Bar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

/* Cards & Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(15, 15, 22, 0.6);
    /* Glassmorphism start */
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: var(--transition-fast);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    background: rgba(22, 22, 34, 0.8);
}

.feature-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--accent-neon);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.text-gold {
    color: var(--accent-neon);
    /* Remap old class to new color */
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    section {
        padding: 50px 20px;
    }
}

/* FAQ Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    color: white;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 0 24px 24px 24px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
    color: var(--primary);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating CTA (Mobile Only) */
.floating-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    padding: 15px 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    /* Hidden by default */
    border-top: 1px solid var(--primary);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.floating-cta.visible {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .floating-cta {
        display: block;
        /* Visible structure on mobile */
    }

    /* Adjust footer padding so button doesn't cover content */
    footer {
        padding-bottom: 100px !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-col {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Pulsing Button Animation */
@keyframes pulse-neon {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.btn-pulse {
    animation: pulse-neon 2s infinite;
}

/* Scarcity Bar */
.scarcity-container {
    width: 100%;
    margin-bottom: 20px;
}

.scarcity-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.scarcity-bar-fill {
    width: 92%;
    height: 100%;
    background: #ec4899;
    /* Pink for urgency/neon look */
    border-radius: 3px;
    position: relative;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* Exit Intent Popup */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.exit-popup-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.exit-popup-content {
    background: #111118;
    border: 1px solid var(--primary);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.2);
}

.exit-popup-overlay.visible .exit-popup-content {
    transform: scale(1);
}


/* Sales Notification Toast */
.sales-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--bg-card);
    border-left: 4px solid var(--success);
    /* Green accent */
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    /* Above floating CTA */
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(-200%);
    /* Hidden by default */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 320px;
}

.sales-notification.visible {
    transform: translateX(0);
}

.sales-notification img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--success);
}


/* Countdown Timer */
.countdown-wrapper {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid #FF4D4D;
    color: #FF4D4D;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {

    /* Adjust notification position on mobile to not overlap floating button */
    .sales-notification {
        bottom: 80px;
        left: 10px;
        right: 10px;
        max-width: none;
        width: auto;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

/* Pulse Animation for WhatsApp */
.whatsapp-pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px;
        /* Above potential floating CTA */
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}