/* =====================================================
   Auto Apply - Global Styles
   ===================================================== */

/* CSS Variables for Theming */
:root {
    --primary-blue: #0077B5;
    --primary-blue-dark: #005885;
    --primary-blue-light: #1a8cd8;
    --accent-green: #10b981;
    --accent-green-dark: #059669;
    --navy-dark: #1e293b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-900: #111827;
    --white: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    background: var(--white);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Wave Pattern Background */
.wave-background {
    position: relative;
    background: linear-gradient(180deg, var(--navy-dark) 0%, #0f172a 100%);
    overflow: hidden;
}

.wave-background::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2393c5fd' fill-opacity='0.2' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Styles */
.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Card Styles */
.card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

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

/* Input Styles */
.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

/* File Upload Area */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-blue);
    background: rgba(0, 119, 181, 0.05);
}

/* Pricing Card Styles */
.pricing-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 119, 181, 0.15);
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-green);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   Hero Section - Optimized Styles
   ===================================================== */

/* Hero Typography Enhancements */
.hero-headline {
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subheadline {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Intent Capture Form Styles */
#intentCaptureForm {
    scroll-margin-top: 100px; /* For smooth scroll offset */
}

#intentCaptureForm .bg-white {
    transition: all 0.3s ease;
}

#intentCaptureForm .bg-white:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Form Input Enhanced Styles */
#earlyAccessForm input,
#earlyAccessForm select {
    font-size: 0.9375rem;
    background-color: #ffffff;
}

#earlyAccessForm input::placeholder {
    color: #9ca3af;
}

#earlyAccessForm select {
    cursor: pointer;
    color: #6b7280;
}

#earlyAccessForm select:focus {
    color: #111827;
}

#earlyAccessForm input:focus,
#earlyAccessForm select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Submit Button Hover Effect */
#earlyAccessForm button[type="submit"] {
    position: relative;
    overflow: hidden;
}

#earlyAccessForm button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#earlyAccessForm button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

/* Trust Badges Responsive Layout */
@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    #intentCaptureForm .grid {
        grid-template-columns: 1fr;
    }
    
    #intentCaptureForm .bg-white {
        padding: 1.5rem;
    }
    
    /* Adjust hero section padding on mobile */
    section.relative {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Trust badges - ensure they wrap nicely */
    .flex.flex-wrap.justify-center.items-center {
        gap: 1rem;
    }
    
    .flex.flex-wrap.justify-center.items-center > div {
        font-size: 0.8125rem;
    }
    
    .flex.flex-wrap.justify-center.items-center svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-headline {
        font-size: 3.5rem;
    }
}

/* CTA Button Enhanced Styles */
.cta-button {
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

/* Focus States for Accessibility */
.cta-button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

#earlyAccessForm input:focus-visible,
#earlyAccessForm select:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 0;
}

/* Loading State for Form Submission */
#earlyAccessForm button[type="submit"].loading {
    pointer-events: none;
    opacity: 0.7;
}

#earlyAccessForm button[type="submit"].loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Success State Animation */
@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.form-success {
    animation: successPulse 0.5s ease;
}

