/* Global box-sizing fix */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* CSS Variables for consistent theming */
:root {
    /* Primary Colors */
    --primary-purple: #9333ea;
    --primary-purple-dark: #7c3aed;
    --primary-purple-medium: #a78bfa;
    --primary-purple-light: #c084fc;
    --primary-purple-lighter: #e9d5ff;

    /* Background Colors */
    --bg-gradient-1: #f3e7ff;
    --bg-gradient-2: #e7f0ff;
    --bg-gradient-3: #ede9fe;

    /* Light Backgrounds */
    --bg-light-purple: #e9d5ff;
    --bg-light-lavender: #f3e8ff;
    --bg-light-periwinkle: #f0e7ff;

    /* Accent Colors */
    --accent-blue: #93c5fd;
    --accent-lavender: #d8b4fe;
    --accent-pink: #f9a8d4;
    --accent-yellow: #fde047;

    /* Text Colors */
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light-gray: #9ca3af;

    /* Border Colors */
    --border-gray: #d1d5db;
    --border-light: #e5e7eb;
    --border-purple: #e9d5ff;

    /* Shadow Colors */
    --shadow-purple: rgba(147, 51, 234, 0.2);
    --shadow-purple-light: rgba(147, 51, 234, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.1);
}


/* Main container - matching prediction_results */
.react-form-container {
    min-height: 100vh;
    background: linear-gradient(to bottom right, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3));
    position: relative;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 0;
    z-index: 1;
}

/* Remove spacing before footer */
.footer-spacer {
    display: none;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px 0;
}


.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-purple);
    margin-bottom: 32px;
    border: 1px solid var(--border-purple);
    animation: fadeInUp 0.6s ease-out;
}

.badge-icon {
    width: 16px;
    height: 16px;
    fill: var(--primary-purple);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-purple) 50%, var(--primary-purple-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--text-gray);
    margin-bottom: 48px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-search-container {
    max-width: 600px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-search-form {
    background: white;
    backdrop-filter: blur(20px);
    border-radius: 9999px;
    padding: 8px;
    box-shadow: 0 20px 40px var(--shadow-purple-light);
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.hero-search-form:hover {
    box-shadow: 0 25px 50px var(--shadow-purple);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 24px;
    font-size: 16px;
    color: var(--text-dark);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-light-gray);
}

.search-button {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px var(--shadow-purple);
}

.search-button svg {
    width: 20px;
    height: 20px;
}


/* Services Section */
.services-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-light-purple);
    color: var(--primary-purple);
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: white;
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 10px 30px var(--shadow-purple-light);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-purple);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: var(--bg-gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary-purple);
    stroke-width: 2;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.service-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

.service-link {
    color: var(--primary-purple);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 12px;
}

.service-link svg {
    width: 16px;
    height: 16px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, var(--bg-gradient-1) 100%);
}

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

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-purple-light);
    transition: all 0.3s ease;
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: var(--bg-light-purple);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-purple);
    stroke-width: 2;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-description {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.5;
}


/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: var(--primary-purple);
    padding: 16px 32px;
    border-radius: 9999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 16px 32px;
    border-radius: 9999px;
    border: 2px solid white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-purple);
    transform: translateY(-2px);
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blob animation - matching prediction_results */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Main container fix */
    .react-form-container {
        overflow-x: hidden;
        width: 100vw;
        position: relative;
    }

    /* Hero Section Mobile Fixes */
    .hero-section {
        min-height: calc(100vh - 64px);
        padding: 40px 0;
        overflow: hidden;
        width: 100%;
    }

    .hero-content {
        padding: 0 16px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-badge {
        padding: 6px 16px;
        font-size: 12px;
        margin-bottom: 24px;
    }

    .badge-icon {
        width: 14px;
        height: 14px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 2.5rem);
        margin-bottom: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
        padding: 0 10px;
        line-height: 1.5;
    }

    .hero-search-container {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .hero-search-form {
        flex-direction: column;
        padding: 0;
        gap: 0;
        width: 100%;
        box-sizing: border-box;
        background: white;
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .search-input {
        width: 100%;
        padding: 20px 24px;
        font-size: 16px;
        text-align: left;
        box-sizing: border-box;
        border-radius: 16px 16px 0 0;
        border: 2px solid transparent;
        background: white;
    }

    .search-input:focus {
        outline: none;
        border-color: var(--primary-purple-light);
    }

    .search-input::placeholder {
        font-size: 14px;
        color: var(--text-light-gray);
    }

    .search-button {
        width: 100%;
        padding: 18px 24px;
        font-size: 16px;
        justify-content: center;
        white-space: nowrap;
        border-radius: 0 0 16px 16px;
        border: none;
        margin: 0;
    }

    .search-button svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Blob animations - hide or reduce on mobile */
    .animate-blob {
        display: none;
    }

    /* Services Section */
    .services-section {
        padding: 60px 0;
    }

    .section-header {
        padding: 0 16px;
        text-align: center;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 0.875rem;
    }

    .section-description {
        font-size: 0.9375rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 20px;
    }

    .service-card {
        padding: 24px;
    }

    /* Features Section */
    .features-section {
        padding: 60px 0;
    }

    .features-container {
        padding: 0 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 20px;
    }

    /* FAQ Section */
    .faq-container {
        padding: 0 16px !important;
    }

    .faq-header {
        padding: 20px 24px !important;
    }

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

    /* CTA Section */
    .cta-section {
        padding: 60px 16px;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-description {
        font-size: 0.9375rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
    }

    /* Target Audience Section */
    .audience-section > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Modal responsiveness */
    #demo-modal > div {
        padding: 32px 24px !important;
        margin: 16px;
        width: calc(100% - 32px) !important;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}
