/* Base styles and reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color palette - red/blue theme - completely different from previous sites */
    --primary: #4361EE; /* Blue */
    --primary-light: #4CC9F0; /* Light Blue */
    --primary-dark: #3A0CA3; /* Dark Blue */
    --secondary: #FF6B6B; /* Red */
    --secondary-light: #FF9E9E; /* Light Red */
    --secondary-dark: #E02D44; /* Dark Red */
    --dark: #2B2D42; /* Dark Navy */
    --dark-light: #1D1E2C; /* Slightly lighter Navy */
    --light: #F8F9FA; /* Light Gray */
    --gray: #8D99AE; /* Medium Gray */
    --accent: #F1C40F; /* Yellow Accent */

    /* Other variables */
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --gradient: linear-gradient(135deg, var(--secondary), var(--primary));
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(67, 97, 238, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 30%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-light);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

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

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: var(--border-radius);
}

.text-center h1::after {
    left: 50%;
    transform: translateX(-50%);
}

h2 {
    font-size: 2.2rem;
    color: var(--primary-light);
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 20px;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transition: all 0.4s;
    z-index: -1;
}

.btn:hover {
    color: white;
    box-shadow: var(--shadow);
}

.btn:hover::before {
    left: 0;
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
}

/* Header styles */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(43, 45, 66, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(67, 97, 238, 0.1);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    margin-left: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--light);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient);
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--secondary-light);
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--gray);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 600px;
    opacity: 0.8;
}

/* Features */
.features {
    background-color: var(--dark-light);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 90%, rgba(67, 97, 238, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(255, 107, 107, 0.1) 0%, transparent 30%);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--dark);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(67, 97, 238, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient);
    transition: var(--transition);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* How It Works */
.steps {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: var(--gradient);
    display: none;
}

/* CTA section */
.cta {
    background: var(--gradient);
    padding: 80px 0;
    text-align: center;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.cta-title {
    color: white;
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn-cta {
    background: white;
    color: var(--primary-dark);
}

.btn-cta:hover {
    color: var(--secondary-dark);
}

/* FAQ */
.faq-section {
    background-color: var(--dark-light);
}

.faq-items {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(67, 97, 238, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: var(--dark);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background-color: rgba(67, 97, 238, 0.05);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* Footer */
footer {
    background-color: var(--dark-light);
    padding: 80px 0 30px;
    position: relative;
    border-top: 1px solid rgba(67, 97, 238, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo p {
    margin-top: 20px;
    color: var(--gray);
}

.footer-links h4 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray);
}

.footer-links a:hover {
    color: var(--secondary-light);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
}

/* Media Queries */
@media (max-width: 992px) {
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-image {
        opacity: 0.4;
        width: 60%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--dark);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
        visibility: hidden;
    }
    
    nav.active {
        max-height: 300px;
        visibility: visible;
        border-bottom: 1px solid rgba(67, 97, 238, 0.1);
        box-shadow: var(--shadow);
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    
    nav ul li {
        margin: 10px 20px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero {
        text-align: center;
        padding: 130px 0 60px;
    }
    
    h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}
