* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --primary-light: #a5b4fc;
    --secondary: #c4b5fd;
    --accent: #22d3ee;
    --text: #f1f5f9;
    --text-light: #a5b4fc;
    --background: #0f0a1e;
    --background-alt: #1a1333;
    --background-card: #251d3d;
    --border: rgba(139, 92, 246, 0.2);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --radius-lg: 20px;
    --gradient-bg: linear-gradient(135deg, #0f0a1e 0%, #1e1145 50%, #0c1a3d 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    background: var(--gradient-bg);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header - Glass Morphism Dark */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 10, 30, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 24px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

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

    .nav-links a {
        text-decoration: none;
        color: var(--text-light);
        font-weight: 500;
        font-size: 0.95rem;
        transition: color 0.2s ease;
        position: relative;
    }

        .nav-links a:not(.btn):hover {
            color: var(--primary-light);
        }

        .nav-links a:not(.btn)::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            transition: width 0.3s ease;
            border-radius: 2px;
        }

        .nav-links a:not(.btn):hover::after {
            width: 100%;
        }

        /* Active nav link */
.nav-links a.active {
    color: var(--primary-light);
}

/* Buttons - Modern Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(129, 140, 248, 0.4);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(129, 140, 248, 0.5);
    }

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1.5px solid var(--border);
}

    .btn-secondary:hover {
        border-color: var(--primary);
        color: var(--primary-light);
        background: rgba(129, 140, 248, 0.1);
    }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary-light);
    padding: 0.625rem 1.25rem;
}

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

/* Hero - Dark Gradient */
.hero {
    padding: 12rem 0 8rem;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.3), transparent), radial-gradient(ellipse 60% 40% at 80% 60%, rgba(34, 211, 238, 0.15), transparent), radial-gradient(ellipse 50% 30% at 10% 80%, rgba(99, 102, 241, 0.2), transparent), var(--gradient-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238b5cf6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        pointer-events: none;
    }

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

.highlight {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

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

.trusted-by {
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .trusted-by::before,
    .trusted-by::after {
        content: '';
        width: 40px;
        height: 1px;
        background: var(--border);
    }

.trusted-section {
    margin-top: 2rem;
}

.logo-carousel {
    margin-top: 2rem;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent, white 15%, white 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, white 15%, white 85%, transparent);
}

.logo-track {
    display: flex;
    gap: 3rem;
    animation: scroll 20s linear infinite;
    width: max-content;
}

.logo-slide {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-slide img {
        height: 40px;
        width: auto;
        opacity: 0.6;
        filter: grayscale(100%) brightness(1.5);
        transition: all 0.3s ease;
    }

    .logo-slide:hover img {
        opacity: 1;
        filter: grayscale(0%) brightness(1);
    }

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-120px * 6 - 3rem * 6));
    }
}

/* Pause on hover */
.logo-carousel:hover .logo-track {
    animation-play-state: paused;
}

/* Features */
.features {
    padding: 7rem 0;
    background: var(--background-alt);
}

h2 {
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 4rem;
    font-size: 1.125rem;
}

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

.feature-card {
    padding: 2rem;
    background: var(--background-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .feature-card:hover {
        border-color: rgba(139, 92, 246, 0.4);
        box-shadow: var(--shadow-lg), 0 0 40px rgba(139, 92, 246, 0.15);
        transform: translateY(-4px);
    }

        .feature-card:hover::before {
            opacity: 1;
        }

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}

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

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: 7rem 0;
    background: radial-gradient(ellipse 50% 50% at 20% 50%, rgba(99, 102, 241, 0.1), transparent), var(--background);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.step {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--background-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    border: 1px solid var(--border);
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.step h3 {
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}

.step p {
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA */
.cta {
    padding: 7rem 0;
    background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(139, 92, 246, 0.25), transparent), linear-gradient(135deg, #1a1333 0%, #0f0a1e 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

    .cta::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 70%);
        pointer-events: none;
    }

    .cta::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
        pointer-events: none;
    }

    .cta h2 {
        color: white;
        margin-bottom: 1rem;
        position: relative;
    }

    .cta p {
        margin-bottom: 2.5rem;
        opacity: 0.8;
        position: relative;
    }

.cta-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0.75rem;
    position: relative;
}

    .cta-form input {
        flex: 1;
        padding: 1rem 1.25rem;
        border: 2px solid var(--border);
        border-radius: var(--radius);
        font-size: 1rem;
        font-family: inherit;
        transition: border-color 0.2s ease;
        background: rgba(255, 255, 255, 0.05);
        color: var(--text);
    }

        .cta-form input::placeholder {
            color: var(--text-light);
        }

        .cta-form input:focus {
            outline: none;
            border-color: var(--primary);
            background: rgba(255, 255, 255, 0.1);
        }

    .cta-form .btn-primary {
        background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
        color: white;
        box-shadow: 0 4px 14px rgba(34, 211, 238, 0.3);
    }

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    background: var(--background);
    color: white;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand p {
    margin-top: 1rem;
    opacity: 0.6;
    line-height: 1.7;
}

.footer-links h4 {
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-light);
}

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

.footer-links a {
    color: white;
    opacity: 0.6;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

    .footer-links a:hover {
        opacity: 1;
        transform: translateX(4px);
        color: var(--accent);
    }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.5;
    font-size: 0.875rem;
}

/* ========== PRICING PAGE STYLES ========== */

/* Pricing Hero */
.pricing-hero {
    padding: 10rem 0 4rem;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.3), transparent),
        var(--gradient-bg);
    text-align: center;
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.toggle-label {
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.6;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .toggle-label.active {
        opacity: 1;
        color: var(--text);
    }

.save-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

.toggle-switch {
    width: 56px;
    height: 30px;
    background: var(--background-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}

    .toggle-switch:hover {
        border-color: var(--primary);
    }

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    transform: translateX(26px);
}

/* Pricing Cards */
.pricing-cards {
    padding: 4rem 0 6rem;
    background: var(--background);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--background-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

    .pricing-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    .pricing-card.featured {
        border-color: var(--primary);
        background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, var(--background-card) 100%);
        transform: scale(1.05);
    }

        .pricing-card.featured:hover {
            transform: scale(1.05) translateY(-4px);
        }

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.plan-description {
    color: var(--text-light);
    font-size: 0.95rem;
}

.card-price {
    margin: 2rem 0;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

    .amount.custom {
        font-size: 2.5rem;
    }

.period {
    font-size: 1rem;
    color: var(--text-light);
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

    .features-list li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.95rem;
    }

        .features-list li:last-child {
            border-bottom: none;
        }

        .features-list li.disabled {
            opacity: 0.5;
        }

    .features-list .check {
        color: var(--accent);
        font-weight: 700;
    }

    .features-list .x {
        color: var(--text-light);
        opacity: 0.5;
    }

.btn-full {
    width: 100%;
    text-align: center;
}

/* Comparison Table */
.comparison {
    padding: 6rem 0;
    background: var(--background-alt);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

    .comparison-table th,
    .comparison-table td {
        padding: 1.25rem 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        text-align: left;
    }

    .comparison-table thead th {
        background: var(--background-card);
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--text);
    }

        .comparison-table thead th.featured {
            background: linear-gradient(180deg, rgba(139, 92, 246, 0.2) 0%, var(--background-card) 100%);
            color: var(--primary-light);
        }

    .comparison-table tbody td {
        color: var(--text-light);
    }

        .comparison-table tbody td.featured {
            background: rgba(139, 92, 246, 0.05);
        }

    .comparison-table .check {
        color: var(--accent);
        font-size: 1.25rem;
    }

    .comparison-table .x {
        color: var(--text-light);
        opacity: 0.4;
        font-size: 1.25rem;
    }

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: var(--background);
}

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

.faq-item {
    background: var(--background-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: all 0.3s ease;
}

    .faq-item:hover {
        border-color: rgba(139, 92, 246, 0.4);
    }

    .faq-item h4 {
        color: var(--text);
        font-weight: 700;
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
    }

    .faq-item p {
        color: var(--text-light);
        line-height: 1.7;
    }

/* CTA Buttons for Pricing */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive Pricing */
@media (max-width: 768px) {
    .pricing-card.featured {
        transform: none;
    }

        .pricing-card.featured:hover {
            transform: translateY(-4px);
        }

    .pricing-grid {
        gap: 1.5rem;
    }

    .billing-toggle {
        flex-wrap: wrap;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
