:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f97316;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #0f172a;
    --text: #334155;

    /* Added missing CSS custom properties for consistency */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
    --border-radius: 16px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f9fbff;
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    padding: 1rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.navbar-brand .highlight {
    color: var(--primary);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 4px;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    text-decoration: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f1f5f9;
    color: var(--text);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero .bold {
    font-weight: 800;
}

.hero-image {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image::before {
    align-items: center;
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    border-radius: 12px;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.ratings {
    margin-top: 2rem;
}

.avatars img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    object-fit: cover;
}

.avatars img:first-child {
    margin-left: 0;
}

* Hero Section */ .pricing-hero {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.pricing-hero p {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Pricing Cards */
.pricing-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 5rem;
    padding: 0 1.5rem;
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2.5rem;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    position: relative;
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.3rem 1.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    color: var(--dark);
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text);
    font-weight: normal;
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
    flex-grow: 1;
}

.pricing-card ul li {
    padding: 0.6rem 0;
    display: flex;
    align-items: center;
}

.pricing-card ul li i {
    color: var(--success);
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
}

/* Feature Comparison */
.feature-comparison {
    background-color: #f8fafc;
    padding: 5rem 1.5rem;
    margin: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

.comparison-table {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: var(--primary);
    color: white;
}

th {
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
}

th:first-child {
    width: 40%;
}

tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

td:first-child {
    font-weight: 600;
}

.check {
    color: var(--success);
    font-size: 1.2rem;
}

/* Testimonials */
.testimonials {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary);
}

.testimonial-info h4 {
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.testimonial-info p {
    color: var(--text);
    opacity: 0.8;
}

.rating {
    color: #fbbf24;
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 1.5rem;
    background-color: #f8fafc;
}

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

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text);
    display: none;
}

.faq-answer.active {
    display: block;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--border-radius);
    margin: 0 1.5rem 5rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.btn-light {
    background-color: white;
    color: var(--primary);
    font-weight: 600;
}

.btn-light:hover {
    background-color: var(--light);


    /* Footer */
    footer {
        background-color: var(--dark);
        color: #e2e8f0;
        padding: 5rem 0 2rem;
    }

    .footer-logo h2 {
        color: white;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .footer-logo p {
        color: #cbd5e1;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .footer-links h4 {
        color: white;
        margin-bottom: 1.5rem;
        font-size: 1.1rem;
        font-weight: 600;
    }

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

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        color: #94a3b8;
        text-decoration: none;
        transition: var(--transition);
    }

    .footer-links a:hover,
    .footer-links a:focus {
        color: white;
        text-decoration: none;
    }

    .footer-socials a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        margin-right: 0.75rem;
        transition: var(--transition);
        text-decoration: none;
    }

    .footer-socials a:hover,
    .footer-socials a:focus {
        background: var(--primary);
        transform: translateY(-3px);
    }

    .footer-bottom {
        border-top: 1px solid #1e293b;
        padding-top: 1.5rem;
        margin-top: 3rem;
        text-align: center;
        color: #94a3b8;
        font-size: 0.9rem;
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
        .container {
            padding: 0 1rem;
        }
    }

    @media (max-width: 992px) {
        section {
            padding: 3rem 0;
        }

        .hero {
            padding: 3rem 0;
        }
    }

    @media (max-width: 768px) {
        .hero {
            text-align: center;
        }

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

        .ratings {
            justify-content: center;
        }

        .navbar {
            padding: 1rem;
        }

        .section-title::after {
            left: 50%;
            transform: translateX(-50%);
        }
    }

    @media (max-width: 576px) {
        .hero-buttons .btn {
            width: 100%;
            margin-bottom: 0.5rem;
        }

        .pricing-card,
        .step-card,
        .card {
            margin-bottom: 2rem;
        }

        .contact-section {
            margin: 1rem;
            border-radius: 15px;
        }
    }

    /* Accessibility Improvements */
    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Focus states for better accessibility */
    .btn:focus,
    .nav-link:focus,
    .dropdown-item:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }