* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8e4f8 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for feature cards */
.feature-card.scroll-animate {
    transition-delay: calc(var(--card-index, 0) * 0.1s);
}

.feature-card:nth-child(1) { --card-index: 0; }
.feature-card:nth-child(2) { --card-index: 1; }
.feature-card:nth-child(3) { --card-index: 2; }
.feature-card:nth-child(4) { --card-index: 3; }
.feature-card:nth-child(5) { --card-index: 4; }
.feature-card:nth-child(6) { --card-index: 5; }

/* Stagger animation for steps */
.step.scroll-animate {
    transition-delay: calc(var(--step-index, 0) * 0.15s);
}

.step:nth-child(1) { --step-index: 0; }
.step:nth-child(2) { --step-index: 1; }
.step:nth-child(3) { --step-index: 2; }

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d2d2d;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #7c3aed;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn-signin {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: #4b5563;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-signin:hover {
    color: #7c3aed;
}

.btn-getstarted-nav {
    padding: 0.75rem 1.5rem;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-getstarted-nav:hover {
    background: #6d28d9;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 5rem 5%;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content .highlight {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    padding: 1rem 2rem;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: white;
    color: #7c3aed;
    border: 2px solid #7c3aed;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #f5f3ff;
    transform: translateY(-2px);
}

/* Brain Image Container */
.hero-image {
    position: relative;
}

.brain-container {
    background: #000000;
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgb(0, 0, 0);
}

.brain-container::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 200px;
    background: radial-gradient(circle, rgb(0, 0, 0) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    border-radius: 50%;
}

.brain-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 40px rgb(0, 0, 0));
    animation: float 3s ease-in-out infinite;
    border-radius: 12px;
    object-fit: contain;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.decorative-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -100px;
    right: -100px;
    z-index: -1;
}

/* Features Section */
.features {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.features-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blue-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.pink-card {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

.green-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.orange-card {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
}

.teal-card {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
}

.yellow-card {
    background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.blue-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.pink-icon {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.green-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.orange-icon {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.teal-icon {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.yellow-icon {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works {
    padding: 6rem 5%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.how-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out;
}

.how-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.how-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
}

.step h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.step p {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    padding: 1.25rem 2.5rem;
    background: white;
    color: #7c3aed;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary {
    padding: 1.25rem 2.5rem;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    color: white;
}

.footer-brand p {
    font-size: 1rem;
    line-height: 1.7;
    color: #9ca3af;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #7c3aed;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background: #7c3aed;
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 5%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-header h2 {
        font-size: 2.25rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .how-header h2 {
        font-size: 2.25rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .features {
        padding: 4rem 5%;
    }

    .features-header h2 {
        font-size: 1.875rem;
    }

    .how-header h2 {
        font-size: 1.875rem;
    }

    .how-it-works {
        padding: 4rem 5%;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 3rem 5% 1.5rem;
    }
}