/* Modern Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Frontend Colors Integration */
    --primary: #2563EB;          /* Blue from frontend */
    --primary-dark: #1D4ED8;     /* Darker blue */
    --secondary: #10B981;        /* Emerald Green */
    --accent: #22D3EE;           /* Cyan */
    
    /* Light Theme Base */
    --bg-body: #F8FAFC;          /* Light gray background */
    --bg-surface: #FFFFFF;       /* White surface for cards */
    --text-main: #0F172A;        /* Dark blue-gray for text */
    --text-muted: #475569;       /* Medium gray for secondary text */
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    --bg-gradient: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);

    /* Utility */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-sm: 0 1px 2px 0 rgba(37, 99, 235, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -1px rgba(37, 99, 235, 0.06);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .logo, .nav-links {
    font-family: 'Space Grotesk', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 5rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.05); /* Blue tint */
    border-color: var(--primary);
    color: var(--primary);
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9); /* White glass */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
    color: var(--primary); /* Logo colored in blue */
}

.logo span {
    color: var(--primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    height: 45px !important;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links li a.btn {
    color: white;
}

.nav-links li a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding-top: 10rem; /* More space for fixed navbar */
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: var(--primary-light); /* Lighter blue */
    filter: blur(120px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: var(--accent); /* Cyan */
    filter: blur(120px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

.hero-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    color: var(--text-main);
}

.text-gradient {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Removed hero-image styles */

/* Stats Section */
.stats-section {
    padding: 2rem 0 4rem;
    background: transparent;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm), 0 4px 6px -1px rgba(0, 0, 0, 0.05); /* Extra subtle shadow */
    border: 1px solid rgba(0,0,0,0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .stats-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Features */
.features {
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid rgba(0,0,0,0.05); /* Very light border */
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-md);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: var(--bg-surface);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1); /* Primary light opacity */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.25;
    }
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
        border-left: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        color: var(--text-main);
    }

    .nav-links li a.btn {
        border-bottom: none;
        margin-top: 1rem;
        text-align: center;
        padding: 0.8rem 2rem;
        color: white;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

/* How It Works Timeline */
.how-it-works {
    position: relative;
    background: var(--bg-surface);
    overflow: hidden;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Connecting Line (Desktop) */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(37, 99, 235, 0) 0%, 
        var(--primary) 50%, 
        rgba(37, 99, 235, 0) 100%
    );
    z-index: 0;
    opacity: 0.2;
}

.step-card {
    text-align: center;
    padding: 1rem;
    position: relative;
}

.step-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    width: 60px;
    height: 60px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
    transition: transform 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 15px rgba(37, 99, 235, 0.2);
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    background: none;
    -webkit-text-fill-color: initial;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Mobile Responsive Steps */
@media (max-width: 768px) {
    .steps-grid::before {
        width: 2px;
        height: 80%;
        left: 30px;
        top: 10%;
        background: linear-gradient(180deg, 
            rgba(37, 99, 235, 0) 0%, 
            var(--primary) 50%, 
            rgba(37, 99, 235, 0) 100%
        );
    }

    .step-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding-left: 5rem;
        position: relative;
    }

    .step-number {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-surface);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.stars {
    color: #FBBF24;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.user-info h4 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-main);
}

.user-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-surface);
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .steps-grid {
        gap: 1rem;
    }

    .step-card {
        padding: 1.5rem;
    }
}