/* ======== GLOBAL STYLES & VARIABLES ======== */
:root {
    --color-navy: #0a192f;
    --color-light-navy: #112240;
    --color-slate: #8892b0;
    --color-light-slate: #a8b2d1;
    --color-white: #e6f1ff;
    --color-accent: #64ffda; /* Electric Green/Teal */
    --color-accent-dark: #13a286;
    
    --font-primary: 'Poppins', sans-serif;
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-navy);
    color: var(--color-slate);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--color-white);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
p { margin-bottom: 1rem; }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* ======== ANIMATIONS ======== */

/* Fade-in and slide-up animation for elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glowing effect for borders */
@keyframes glow {
    0% { box-shadow: 0 0 5px var(--color-accent), 0 0 10px var(--color-accent); }
    50% { box-shadow: 0 0 20px var(--color-accent), 0 0 30px var(--color-accent); }
    100% { box-shadow: 0 0 5px var(--color-accent), 0 0 10px var(--color-accent); }
}

/* Pulsing effect for stats */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Gradient shift for CTA background */
@keyframes gradientShift {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}


/* Apply animations with delays for a staggered effect */
.animate-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}
.hero-content h1 { animation-delay: 0.2s; }
.hero-content p { animation-delay: 0.4s; }
.hero-content .btn { animation-delay: 0.6s; }


/* ======== BUTTONS ======== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-speed);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-navy);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-navy);
}

/* ======== HEADER & NAV ======== */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    transition: var(--transition-speed);
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--color-accent);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-speed);
}
.logo:hover {
    filter: brightness(1.2);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--color-light-slate);
    text-decoration: none;
    transition: var(--transition-speed);
}

.nav-links a:hover {
    color: var(--color-accent);
}

/* ======== HERO SECTION ======== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Offset for sticky header */
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--color-light-slate);
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* ======== FEATURES SECTION ======== */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--color-light-navy);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #1d2d50;
    transition: var(--transition-speed);
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

/* ======== STATS SECTION ======== */
.stats {
    padding: 80px 0;
    background-color: var(--color-light-navy);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-card {
    animation: pulse 3s infinite ease-in-out;
}
.stat-card:nth-child(2) { animation-delay: 0.5s; }
.stat-card:nth-child(3) { animation-delay: 1s; }
.stat-card:nth-child(4) { animation-delay: 1.5s; }

.stat-card h3 {
    font-size: 3rem;
    color: var(--color-accent);
}

/* ======== TESTIMONIALS SECTION ======== */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px); /* Glassmorphism */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

/* Glowing border effect */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(45deg, var(--color-accent), var(--color-light-navy));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: var(--transition-speed);
}
.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-author {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
}
.testimonial-author h4 {
    color: var(--color-white);
}
.testimonial-author span {
    font-size: 0.9rem;
    color: var(--color-accent);
}


/* ======== PRICING SECTION ======== */
.pricing {
    padding: 100px 0;
    background-color: var(--color-light-navy);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background: var(--color-navy);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition-speed);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: var(--color-accent);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-navy);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 1rem 0;
}
.price sup { font-size: 1.5rem; }
.price span { font-size: 1rem; color: var(--color-slate); }

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}
.pricing-card ul li {
    margin-bottom: 1rem;
}
.pricing-card ul li i {
    color: var(--color-accent);
    margin-right: 10px;
}
.pricing-card ul li i.fa-times {
    color: var(--color-slate);
}


/* ======== CTA SECTION ======== */
.cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(-45deg, var(--color-navy), var(--color-light-navy), var(--color-accent-dark), var(--color-navy));
	background-size: 400% 400%;
	animation: gradientShift 15s ease infinite;
}

.cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

/* ======== FOOTER ======== */
.footer {
    padding: 40px 0;
    background-color: var(--color-light-navy);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand .logo {
    font-size: 1.5rem;
}
.footer-brand p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-social a {
    color: var(--color-slate);
    font-size: 1.5rem;
    margin-left: 20px;
    transition: var(--transition-speed);
}
.footer-social a:hover {
    color: var(--color-accent);
    transform: translateY(-3px);
}

/* ======== RESPONSIVENESS (Mobile-First) ======== */

/* Hide nav button on desktop */
.header .nav-toggle { display: none; }

@media (max-width: 1024px) {
    .features-grid, .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .nav-links { display: none; } /* Simplified for example; a real mobile menu needs JS */
    .header .btn-secondary { display: none; } /* Hide button on mobile nav */

    .features-grid,
    .stats-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1); /* Reset featured scale */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-social a { margin: 0 10px; }
}