/* General Styling & Variables */
:root {
    --primary-color: #38bdf8;
    --secondary-color: #a78bfa;
    --dark-bg: #0f0f0f;
    --light-text: #e2e8f0;
    --medium-text: #94a3b8;
    --border-color: rgba(56, 189, 248, 0.15);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Background Animations */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 20% 20%, rgba(120, 119, 198, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.1) 0%, transparent 30%),
        linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(56, 189, 248, 0.3);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10px) rotate(360deg); opacity: 0; }
}

.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(167, 139, 250, 0.1), transparent 40%);
    transition: background 0.2s ease-out;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.4s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--light-text);
    z-index: 1002; /* Ensure logo is above mobile menu overlay */
}

.logo span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: linear-gradient(45deg, var(--primary-color), #0ea5e9);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

.mobile-cta {
    display: none; /* Hidden by default, shown in mobile menu */
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002; /* Ensure it's above mobile menu overlay */
}

.mobile-menu-btn span {
    width: 2rem;
    height: 0.15rem;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(56, 189, 248, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 10%, var(--primary-color) 40%, var(--secondary-color) 70%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}

.hero .subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #0ea5e9);
    color: white;
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 45px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    border-color: rgba(56, 189, 248, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* General Section Styling */
section {
    padding: 5rem 1.5rem;
}

/* Story Section */
.story-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.story-content {
    max-width: 800px;
    margin: 0 auto;
}
.story-intro {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.story-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 2rem;
}
.story-highlight {
    background: rgba(56, 189, 248, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    margin: 3rem auto;
    font-style: italic;
    color: var(--light-text);
    text-align: left;
    max-width: 90%;
    backdrop-filter: blur(10px);
}

/* Problem/Solution Section */
.problem-solution {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.problem, .solution {
    padding: 2.5rem;
    border-radius: 25px;
}
.problem {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.solution {
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.problem-solution h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.problem h3 { color: #fca5a5; }
.solution h3 { color: #86efac; }
.problem-solution ul { list-style: none; padding: 0; }
.problem-solution li {
    margin-bottom: 1rem;
    color: #cbd5e1;
    position: relative;
    padding-left: 2rem;
}
.problem li::before { content: "✗"; position: absolute; left: 0; color: #ef4444; }
.solution li::before { content: "✓"; position: absolute; left: 0; color: #22c55e; }

/* Features Section */
.features-header { text-align: center; margin-bottom: 4rem; }
.features h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.features .subtitle {
    color: var(--medium-text);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 25px 50px rgba(56, 189, 248, 0.15);
    background: rgba(255, 255, 255, 0.05);
}
.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.3);
    color: white;
}
.feature-card h3 { font-size: 1.3rem; margin-bottom: 1rem; font-weight: 600; }
.feature-card p { color: var(--medium-text); }

/* Journey Section */
.journey-section { background: rgba(255, 255, 255, 0.02); border-top: 1px solid var(--border-color); }
.journey-content { max-width: 1200px; margin: 0 auto; text-align: center; }
.journey-title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.journey-subtitle { color: var(--medium-text); font-size: 1.2rem; margin-bottom: 4rem; }
.journey-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 4rem; }
.journey-step { background: rgba(255, 255, 255, 0.03); border-radius: 20px; padding: 2.5rem 2rem; border: 1px solid var(--border-color); position: relative; transition: all 0.3s ease; }
.journey-step:hover { transform: translateY(-5px); border-color: rgba(56, 189, 248, 0.3); }
.step-number { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.journey-step h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; margin-top: 1rem; }
.journey-step p { color: var(--medium-text); }

/* Social Proof Section */
.social-proof { background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(167, 139, 250, 0.05) 100%); text-align: center; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.social-proof h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.2rem); font-weight: 700; margin-bottom: 3rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; max-width: 900px; margin: 0 auto; }
.stat-number { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4rem); font-weight: 900; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: block; margin-bottom: 0.5rem; }
.stat-label { color: var(--medium-text); font-size: 1rem; }

/* Testimonials Section */
.testimonials { max-width: 1200px; margin: 0 auto; }
.testimonials h2 { font-family: var(--font-display); text-align: center; font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 4rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.testimonial { background: rgba(255, 255, 255, 0.03); border-radius: 25px; padding: 2.5rem; border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.testimonial-text { font-size: 1.1rem; color: var(--medium-text); margin-bottom: 2rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.author-info h4 { margin-bottom: 0.2rem; }
.author-info p { color: var(--medium-text); font-size: 0.9rem; }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta-content { max-width: 800px; margin: 0 auto; }
.final-cta h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 900; margin-bottom: 1.5rem; }
.final-cta p { color: var(--medium-text); font-size: 1.2rem; margin-bottom: 2.5rem; }
.final-cta-buttons { margin-bottom: 2.5rem; }
.guarantee { background: rgba(34, 197, 94, 0.05); border: 1px solid rgba(34, 197, 94, 0.2); border-radius: 15px; padding: 1.5rem; color: #86efac; max-width: 500px; margin: 2rem auto 0; }

/* Footer */
footer { border-top: 1px solid var(--border-color); padding: 4rem 1.5rem 2rem; }
.footer-content { max-width: 1200px; margin: 0 auto 3rem; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-brand h4 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--medium-text); margin-bottom: 1.5rem; }
.social-links { display: flex; gap: 1rem; }
.social-links a { color: var(--light-text); text-decoration: none; font-size: 1.2rem; }
.footer-section h4 { font-family: var(--font-display); margin-bottom: 1.5rem; }
.footer-section a { color: var(--medium-text); text-decoration: none; display: block; margin-bottom: 0.8rem; transition: color 0.3s ease; }
.footer-section a:hover { color: var(--primary-color); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border-color); text-align: center; color: var(--medium-text); font-size: 0.9rem; }


/* =================================== */
/* MOBILE RESPONSIVENESS OVERHAUL     */
/* =================================== */

@media (max-width: 992px) {
    .problem-solution-grid, .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-content {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Hide desktop CTA, show mobile menu button */
    .desktop-cta {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }

    /* Full-screen mobile menu styles */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
    }
    .nav-links.active {
        display: flex;
        transform: translateY(0);
    }
    .nav-links a {
        font-size: 1.5rem; /* Larger, easier to tap links */
        padding: 1rem;
    }
    
    /* Show CTA inside the mobile menu */
    .mobile-cta {
        display: block;
        margin-top: 2rem;
        padding: 0.8rem 2rem;
        font-size: 1.2rem;
    }

    /* Adjust stats grid for better stacking */
    .stats {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* General section padding reduction */
    section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Make hero buttons stack vertically */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    /* Further reduce section padding on very small screens */
    section {
        padding: 3rem 1rem;
    }
    
    /* Adjust hero section for small screens */
    .hero {
        padding-top: 7rem;
        padding-bottom: 3rem;
    }

    /* Adjust heading sizes for better readability */
    .hero h1 {
        font-size: 2.5rem;
    }
    .story-title, .features h2, .journey-title, .testimonials h2, .final-cta h2 {
        font-size: 2rem;
    }
}


/* Scroll Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.slide-left { opacity: 0; transform: translateX(-30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.slide-left.visible { opacity: 1; transform: translateX(0); }
.slide-right { opacity: 0; transform: translateX(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.slide-right.visible { opacity: 1; transform: translateX(0); }
