:root {
    --bg-color: #050210;
    /* Deep Purple Void */
    --card-bg: rgba(20, 20, 30, 0.4);
    --primary-color: #A020F0;
    /* Neon Purple */
    --secondary-color: #4F46E5;
    /* Indigo */
    --accent-pink: #D946EF;
    /* Fuchsia */
    --text-color: #ffffff;
    --text-muted: #9CA3AF;
    --gradient-main: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
    --gradient-text: linear-gradient(to right, #818cf8, #d946ef);
    /* Blue to Pink */
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    /* Beautiful Purple Nebula Effect */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(217, 70, 239, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(109, 40, 217, 0.1) 0%, transparent 60%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    /* Clean tech font */
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none;
    /* Hide default cursor */
}

/* Disable old custom cursor elements */


/* Custom Cursor */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

/* Global CTA Button Styles */
.cta-primary {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    white-space: normal;
    text-align: center;
}

@media (max-width: 768px) {
    .cta-primary {
        font-size: 1rem !important;
        padding: 0.8rem 1.5rem !important;
        width: 100%;
        box-sizing: border-box;
    }
}

.cursor-dot {
    width: 10px;
    height: 10px;
    background: var(--gradient-text);
    /* Blue-Purple Gradient */
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    /* Violet ring */
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

body:hover .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(217, 70, 239, 0.05);
    border-color: rgba(217, 70, 239, 0.8);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #d946ef 100%);
    /* Indigo to Fuchsia */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 2px rgba(99, 102, 241, 0.2));
    /* Subtle glow */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(138, 43, 226, 0.1);
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo Constraint */
.logo img {
    height: 85px;
    width: auto;
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.centered-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 10;
}

.header-actions .cta-button {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
}

/* Navigation Styles */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    /* White/Light Grey */
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    opacity: 0.8;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-text);
    /* Blue to Pink Gradient */
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(217, 70, 239, 0.6);
    /* Neon Glow */
}

.nav-links a:hover {
    opacity: 1;
    text-shadow: 0 0 12px rgba(138, 43, 226, 0.5);
    /* Violet Glow on Text */
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:active {
    transform: scale(0.95);
    color: var(--accent-pink);
}

/* Hero Section */
/* Hero Section - Reflect Style */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure horizontal centering */
    padding-top: var(--nav-height);
    background-color: transparent;
    /* Use body background */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* ... existing hero background styles ... */

.hero-content {
    text-align: center;
    /* Force center alignment */
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Align flex children (buttons) to center */
}

.hero-title {
    font-size: 5.5rem;
    margin-bottom: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 700;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
    /* Subtle text glow */
}

.hero-description {
    font-size: 1.4rem;
    color: #e0e0e0;
    margin-bottom: 4rem;
    /* Increased spacing */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-dynamic-wrapper {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    min-height: 1.2em;
    /* Prevent layout shift */
    margin-top: -1.5rem;
    /* Pull closer to title if needed */
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    /* Increased spacing between buttons */
    justify-content: center;
    margin-top: 1rem;
}

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

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

.nav-links a:hover {
    color: var(--primary-glow);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.cta-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(160, 32, 240, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(160, 32, 240, 0.5);
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Sections General */
section {
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 90%;
    max-width: 1200px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Hero Section */
/* Old duplicate hero removed */

/* ... existing styles ... */

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

/* Glass Cards */
.card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    /* More rounded */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle white border */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(217, 70, 239, 0.5);
    /* Bright pink border on hover */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(217, 70, 239, 0.2);
    /* Glow */
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(160, 32, 240, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

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

/* Icon Style - Minimalist */
.card-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
    /* White Icon */
    background: rgba(139, 92, 246, 0.2);
    /* Violet Background Container */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: none;
}

.card-icon i {
    background: none;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: white;
    color: white;
    display: inline-block;
}

.card:hover .card-icon {
    background: linear-gradient(135deg, #4f46e5 0%, #d946ef 100%);
    /* Full Gradient on Hover */
    box-shadow: 0 10px 25px rgba(217, 70, 239, 0.4);
    transform: scale(1.1) rotate(5deg) translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--primary-glow);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}


.card-text {
    color: var(--text-muted);
}

/* Why NeuroFlow (Stats/Features) - Redesigned */
.why-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(138, 43, 226, 0.05) 50%, var(--bg-color) 100%);
    position: relative;
}

.feature-list {
    list-style: none;
    counter-reset: feature-counter;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(217, 70, 239, 0.08) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #6366f1 0%, #d946ef 100%) 1;
    border-image-slice: 1;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #6366f1 0%, #d946ef 100%);
    transition: width 0.4s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(217, 70, 239, 0.15) 100%);
    box-shadow: 0 12px 48px rgba(138, 43, 226, 0.3);
    border-color: rgba(217, 70, 239, 0.5);
}

.feature-item:hover::before {
    width: 8px;
}

.feature-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(135deg, #6366f1 0%, #d946ef 100%);
    -webkit-background-clip: text;
    background-clip: text;
    margin-right: 2rem;
    line-height: 1;
    min-width: 40px;
    text-align: center;
}

.feature-content h3 {
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

/* Process Timeline (Simplified) */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
    display: none;
    /* Hidden on mobile, shown on desktop */
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    z-index: 1;
    background: transparent;
    padding: 1rem;
}

.step-number {
    width: 65px;
    height: 65px;
    background: var(--bg-color);
    /* Solid circle to hide line */
    border: 2px solid #D946EF;
    /* Pink/Purple border to match image/buttons */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    color: white;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.4);
    /* Outer glow only */
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(217, 70, 239, 0.8);
}

/* Optional: Connect steps with a line */
@media (min-width: 768px) {
    .process-steps::before {
        content: '';
        position: absolute;
        top: 49px;
        left: 50px;
        right: 50px;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(217, 70, 239, 0.3), transparent);
        /* Fading line */
        z-index: 0;
        display: block;
    }
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, #1a0b2e 0%, #000000 100%);
    text-align: center;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

/* Footer */
/* Professional Footer */
footer {
    background: #050508;
    border-top: 1px solid rgba(138, 43, 226, 0.1);
    padding: 3rem 0 2rem 0;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.5), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr 0.8fr 1.2fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
    align-items: flex-start;
    /* Better for centered text lists */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 15% 15%, rgba(79, 70, 229, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(217, 70, 239, 0.15) 0%, transparent 50%);
    background-attachment: fixed;
    /* Keeps glow static while scrolling */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-about p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-quote-pro {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #e2e8f0;
    font-weight: 300;
    line-height: 1.4;
}

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

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

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateX(5px);
}

.footer-links i {
    color: #8b5cf6 !important;
    /* Violet enforced */
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.1);
    /* Subtle Violet Bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c084fc;
    /* Light Violet Icon */
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.3);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--gradient-main);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
    border-color: transparent;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Pro FAQ Styles */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    font-weight: 500;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.faq-item.active .faq-toggle {
    background: var(--primary-color);
    transform: rotate(135deg);
    /* Plus to X */
    color: white;
    box-shadow: 0 0 10px var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
    padding-top: 0.5rem;
}

@media (max-width: 768px) {

    /* Header & Nav Fixes */
    .centered-nav {
        display: none !important;
    }

    .header-actions .cta-button {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .logo img {
        height: 60px !important;
    }

    /* FAQ Fixes */
    .faq-question {
        padding: 1.2rem 1rem !important;
    }

    .faq-question h3 {
        font-size: 1rem !important;
    }

    .faq-answer {
        padding: 0 1rem !important;
    }

    .faq-answer p {
        font-size: 0.85rem !important;
    }

    /* Footer Fixes */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 Columns for footer */
        gap: 1.5rem !important;
        padding: 0 0.5rem !important;
        text-align: center;
        /* Center everything */
    }

    .footer-col {
        /* Default order for others */
        order: 5;
    }

    /* Target Navigation (2nd child) and Info (3rd child) to be first row */
    .footer-col:nth-child(2) {
        order: 1;
    }

    .footer-col:nth-child(3) {
        order: 2;
    }

    /* Target Brand (1st child) and Contact (4th child) to be second row */
    .footer-col:nth-child(1) {
        order: 3;
    }

    .footer-col:nth-child(4) {
        order: 4;
    }

    .footer-col h4 {
        font-size: 0.65rem !important;
        margin-bottom: 0.5rem !important;
    }

    .footer-links a {
        font-size: 0.5rem !important;
    }

    .footer-about img {
        height: 30px !important;
        margin-bottom: 0.4rem !important;
    }

    .footer-quote-pro {
        font-size: 0.4rem !important;
        line-height: 1.1 !important;
        padding-left: 0.4rem !important;
    }

    .social-icon {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.55rem !important;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        font-size: 0.6rem;
    }

    /* Other Sections */
    .grid-3 {
        grid-template-columns: 1fr !important;
        /* 1 Column for cards */
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-dynamic-wrapper {
        font-size: 1.8rem !important;
    }
}