/* Base Styles */
:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #818cf8;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --white: #ffffff;
    --light-bg: #f9fafb;
    --dark-bg: #111827;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --scroll-progress: 0;
    --effect-intensity: 1;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Modern Navigation */
.glass-nav {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1400px;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
                0 4px 20px rgba(0, 0, 0, 0.08);
}

.glass-nav:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07),
                0 12px 30px rgba(0, 0, 0, 0.12);
    transform: translateX(-50%) translateY(-1px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    padding: 0.5rem 0;
}

.main-nav {
    display: flex;
    gap: 2rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.sign-up-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--dark-bg);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sign-up-btn:hover {
    transform: translateY(-2px);
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sign-up-btn i {
    font-size: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.sign-up-btn:hover i {
    transform: translateX(4px) scale(1.1);
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
                0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .glass-nav {
        top: 0.5rem;
        width: calc(100% - 1rem);
        padding: 0.5rem 1rem;
    }

    .main-nav {
        display: none;
    }
    
    .nav-actions {
        gap: 1rem;
    }
    
    .nav-link {
        display: none;
    }
    
    .sign-up-btn {
        padding: 0.5rem 0.75rem;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 5% 60px;
    position: relative;
    overflow: visible;
    background: transparent;
    z-index: 1;
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.gradient-circle {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%) scale(0.6);
    width: 120vw;
    height: 120vw;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 70% 30%, rgba(255, 154, 139, 0.7) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(142, 145, 255, 0.7) 0%, transparent 50%),
        linear-gradient(135deg, #f8f2ff 0%, #e9e3ff 25%, #d8d4fe 50%, #c7c2fc 75%, #a5a0f9 100%);
    opacity: 0.98;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gradient-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.07;
    mix-blend-mode: overlay;
    pointer-events: none;
    border-radius: inherit;
    will-change: inherit;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    position: relative;
    z-index: 1;
}

.mega-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a1523;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #2d2b38;
    margin-bottom: 2.5rem;
    opacity: 0.85;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.4;
        transform: scale(1);
    }
}

.search-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.search-container input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    font-size: 1.125rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    letter-spacing: 0.05em;
    text-align: center;
    font-weight: 500;
    max-width: 220px;
    width: 100%;
}

.search-container input:focus {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.search-container input::placeholder {
    letter-spacing: normal;
    font-weight: normal;
    color: #9CA3AF;
    white-space: nowrap;
    overflow: visible;
    font-size: 0.95rem;
}

.search-container .primary-cta {
    padding: 0.875rem 1.5rem;
    white-space: nowrap;
    border-radius: 8px;
    background: #1a1523;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-container .primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #2d2b38;
}

.search-container .primary-cta:active {
    transform: translateY(0);
}

.search-container .primary-cta.success {
    background: linear-gradient(135deg, #34d399, #059669);
    transform: scale(1.02);
}

.search-container input.error {
    border-color: #ef4444;
    animation: shake 0.5s ease-in-out;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    z-index: 2;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--white);
    opacity: 0.8;
    animation: bounce 2s infinite;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Features Section */
.features-section {
    position: relative;
    padding: 6rem 5% 8rem;
    background: var(--white);
    z-index: 1;
    border-radius: 32px 32px 0 0;
    margin-top: 0;
    margin-bottom: 0;
    box-shadow: none;
    overflow: visible;
}

.section-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-color);
    display: block;
}

.section-title .highlight {
    color: var(--primary-color);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
}

.divider-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.6));
}

.divider-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.divider-icon i {
    color: var(--primary-color);
    font-size: 18px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--light-text);
    margin-bottom: 16px;
    line-height: 1.6;
    font-weight: 500;
}

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

/* Enhanced Feature Card Styles */
.feature-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity, box-shadow;
    position: relative;
    overflow: hidden;
}

/* Feature card pseudo-element for background effect */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.6s ease;
    border-radius: inherit;
}

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

.feature-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
}

/* Feature icon enhanced styling */
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s ease;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
    position: relative;
    overflow: hidden;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--white);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-icon.animate {
    animation: iconEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes iconEntrance {
    0% { transform: scale(0.8); opacity: 0.8; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.feature-card:hover .feature-icon {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 12px 25px rgba(99, 102, 241, 0.25);
}

.feature-card:hover .feature-icon i {
    transform: scale(1.15);
}

/* Icon glow effect enhanced */
.icon-glow {
    position: absolute;
    inset: -10px;
    border-radius: 12px;
    background: var(--gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    filter: blur(12px);
}

.feature-card:hover .icon-glow {
    opacity: 0.9;
    transform: scale(1.25);
    animation: glowPulse 3s infinite alternate ease-in-out;
}

.feature-card.highlight-on-visible {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, box-shadow 0.8s ease;
}

/* Stronger highlight effect for feature cards */
.feature-card.highlight-on-visible {
    animation: cardHighlight 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardHighlight {
    0% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
    30% { box-shadow: 0 15px 40px rgba(99, 102, 241, 0.25); }
    100% { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); }
}

/* Enhanced Feature Connector Styles */
.feature-connector {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.feature-connector.horizontal {
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transform-origin: left center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.feature-connector.vertical {
    width: 3px;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    transform-origin: top center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* Process Section */
.process-section {
    position: relative;
    padding: 6rem 5% 8rem;
    background: var(--light-bg);
    z-index: 2;
    border-radius: 0;
    margin-top: -2rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin: 4rem auto;
    max-width: 1000px;
    position: relative;
}

.process-timeline::after {
    content: '';
    position: absolute;
    top: 3rem;
    left: 50px;
    right: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 50%, var(--secondary-color));
    z-index: 0;
    opacity: 0.3;
}

.timeline-item {
    flex: 1;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    position: relative;
    z-index: 1;
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1;
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.timeline-item p {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.timeline-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
    margin-top: auto;
}

.timeline-icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Process Details */
.process-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 6rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.detail-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.detail-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.detail-icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.detail-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.detail-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive adjustments for process section */
@media (max-width: 968px) {
    .process-timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .process-timeline::after {
        display: none;
    }

    .process-details {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline-item {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Stagger animations for process items */
.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.3s; }
.timeline-item:nth-child(3) { transition-delay: 0.5s; }

.detail-card:nth-child(1) { transition-delay: 0.2s; }
.detail-card:nth-child(2) { transition-delay: 0.4s; }
.detail-card:nth-child(3) { transition-delay: 0.6s; }

/* Demo Section */
.demo-section {
    position: relative;
    padding: 8rem 5%;
    background: var(--white);
    z-index: 4;
    border-radius: 32px 32px 0 0;
    margin-top: -2rem;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.1);
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--dark-bg);
    border-radius: 40px;
    padding: 1rem;
    margin: 0 auto;
    position: relative;
    transform: perspective(1000px) rotateY(-15deg);
    transition: all 0.3s ease;
}

.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Contact Section */
.contact-section {
    overflow: hidden; /* Ensure animations don't cause horizontal scroll */
    position: relative;
    padding: 8rem 5%;
    background: var(--light-bg);
    z-index: 5;
    border-radius: 32px 32px 0 0;
    margin-top: -2rem;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.1);
}

/* Contact form container animations */
.contact-form {
    position: relative;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
    will-change: transform, opacity;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

/* Form container glow effect */
.contact-form::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.5s ease;
}

.contact-form:hover::before,
.contact-form.input-focused::before {
    opacity: 0.3;
}

/* Contact form animation group */
.animate-group .form-group {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-group.visible .form-group {
    opacity: 1;
    transform: translateY(0);
}

/* Form note animation */
.animate-group .form-note {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.animate-group.visible .form-note {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for form elements */
.animate-group .form-group:nth-child(1) { transition-delay: 0.1s; }
.animate-group .form-group:nth-child(2) { transition-delay: 0.2s; }
.animate-group button,
.animate-group .submit-button { 
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.animate-group.visible button,
.animate-group.visible .submit-button { 
    opacity: 1;
    transform: translateY(0);
}

/* Animated icon styles */
.input-icon-animated {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    pointer-events: none;
    will-change: transform, opacity, color;
    opacity: 0; /* Start invisible */
}

.animate-group.visible .input-icon-animated {
    opacity: 1; /* Fade in when form is visible */
    transition-delay: 0.2s; /* Appear slightly after the input field */
}

.input-focused .input-icon-animated {
    transform: translateY(-50%) scale(1.2);
    color: var(--gradient-end);
}

.input-focused .input-icon-animated i {
    animation: iconPulseSmall 1.5s infinite alternate ease-in-out;
}

@keyframes iconPulseSmall {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* Submit button animations */
.contact-form button,
.contact-form .submit-button {
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transform-origin: center;
    min-width: 120px;
}

.contact-form button::before,
.contact-form .submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.contact-form button.hover::before,
.contact-form .submit-button.hover::before {
    transform: translateX(100%);
}

.contact-form button:hover,
.contact-form .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

.contact-form button.clicked,
.contact-form .submit-button.clicked {
    animation: buttonClick 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes buttonClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Success animation enhancements */
.contact-form.success .submit-button,
.contact-form.success button {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    animation: successPulse 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Form group label animation */
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.contact-form.input-focused label {
    color: var(--gradient-start);
    transform: translateX(5px);
}

/* Waitlist confirmation animation when form submits */
.waitlist-confirmation {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.waitlist-confirmation.visible {
    opacity: 1;
    transform: translateY(0);
}

.confirmation-content {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.confirmation-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
    animation: confirmationIconAppear 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes confirmationIconAppear {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .input-icon-animated {
        left: 15px;
    }
    
    .contact-form {
        flex-direction: column;
    }
    
    .contact-form input {
        width: 100%;
    }
    
    .contact-form button,
    .contact-form .submit-button {
        width: 100%;
    }
}

/* Modern Footer */
.modern-footer {
    position: relative;
    background: var(--dark-bg);
    color: var(--white);
    padding: 4rem 5% 2rem;
    z-index: 6;
    border-radius: 32px 32px 0 0;
    margin-top: -2rem;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.footer-brand p {
    color: var(--light-text);
    margin-top: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.link-group a {
    display: block;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-text);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 40px;
        min-height: calc(100vh - 60px);
    }

    .mega-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    .search-container {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 0;
    }
    
    .search-container input {
        width: 100%;
        max-width: none;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .search-container .primary-cta {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .trust-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .badge {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .tooltip-message {
        font-size: 0.9rem;
        margin: 1rem 0;
    }

    .cta-container {
        flex-direction: column;
    }
    
    .process-timeline {
        flex-direction: column;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .features-section {
        padding: 4rem 5% 8rem;
        border-radius: 0;
    }
    
    .process-section {
        padding: 4rem 5% 6rem;
        margin-top: -1rem;
    }

    .process-section::before {
        width: 80%;
        left: 10%;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 16px 32px;
    }

    .mega-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .badge {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .search-container {
        max-width: 260px;
    }
    
    .search-container input {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .features-section {
        padding: 3rem 5% 7rem;
    }
    
    .process-section {
        padding: 3rem 5% 5rem;
        margin-top: -0.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    z-index: 2000;
    opacity: 0.8;
    transition: width 0.05s linear;
}

/* Animation Classes */
.info-section.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.info-section.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Parallax effect for sections */
.parallax {
    position: relative;
    z-index: 1;
    background-color: var(--white);
}

/* Button animation states */
.search-container button.success {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.search-container button.error {
    background-color: #e74c3c;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Only hide features when they have the animation class */
.feature.animate {
    opacity: 0;
    transform: translateY(30px);
}

.feature.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add these new rules */
main {
    position: relative;
    z-index: 1;
    background-color: var(--white);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Enhanced contact form styles */
.contact-form .form-group {
    margin-bottom: 30px;
}

.contact-form .form-group label {
    font-size: 1.1rem;
    margin-bottom: 12px;
    display: block;
}

.contact-form .input-wrapper {
    position: relative;
}

.contact-form input[type="email"] {
    width: 100%;
    padding: 18px 20px 18px 56px;
    background-color: white;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
}

.contact-form .input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 20px;
}

.contact-form .submit-button {
    margin-top: 10px;
    padding: 18px;
    font-size: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.2);
}

.contact-form .form-note {
    margin-top: 20px;
}

/* Responsive contact form styles */
@media (max-width: 900px) {
    .contact-form-container {
        padding: 40px;
    }
    
    .contact-form .form-group {
        margin-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .contact-form-container {
        padding: 30px;
    }
    
    .contact-form input[type="email"] {
        padding: 16px 16px 16px 50px;
        font-size: 1.1rem;
    }
    
    .contact-form .input-icon {
        left: 18px;
        font-size: 18px;
    }
    
    .contact-form .submit-button {
        padding: 16px;
        font-size: 1rem;
    }
    
    .contact-form .form-group label {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

/* Form animation effects */
.contact-form input[type="email"] {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-form input[type="email"]:focus {
    transform: translateY(-3px);
}

.contact-form .submit-button {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.3s ease;
    background-size: 200% auto;
    background-position: 0% 0%;
}

.contact-form .submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
    background-position: 100% 0%;
}

.contact-form .submit-button i {
    transition: transform 0.3s ease;
}

.contact-form .submit-button:hover i {
    transform: translateX(6px);
}

/* Success state animations */
.contact-form.success .submit-button {
    background: linear-gradient(135deg, #10b981, #059669);
    transform: scale(1.02);
}

.contact-form.success input[type="email"] {
    border-color: #10b981;
}

/* Error state */
.contact-form input[type="email"].error {
    border-color: #ef4444;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Demo Media Styles */
.demo-media {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f7ff;
}

.demo-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.demo-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-media:hover .demo-placeholder {
    opacity: 0;
}

.demo-media:hover .demo-video {
    opacity: 1;
}

@media (max-width: 768px) {
    .demo-media {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .demo-media {
        height: 120px;
    }
}

/* Enhanced Scroll-Triggered Animations */
[data-scroll] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Different entry directions based on data-scroll value */
[data-scroll="left"] {
    transform: translateX(-30px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-scroll="left"].visible {
    transform: translateX(0);
}

[data-scroll="right"] {
    transform: translateX(30px);
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-scroll="right"].visible {
    transform: translateX(0);
}

[data-scroll="up"] {
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.21, 1, 0.25, 1);
}

[data-scroll="up"].visible {
    transform: translateY(0);
}

[data-scroll="down"] {
    transform: translateY(-40px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.21, 1, 0.25, 1);
}

[data-scroll="down"].visible {
    transform: translateY(0);
}

[data-scroll="bottom"] {
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-scroll="bottom"].visible {
    transform: translateY(0);
}

[data-scroll="scale"] {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-scroll="scale"].visible {
    opacity: 1;
    transform: scale(1);
}

[data-scroll="fade"] {
    opacity: 0;
    transform: none;
    transition: opacity 0.8s ease;
}

[data-scroll="fade"].visible {
    opacity: 1;
}

/* Sequential children animations */
.sequential-children > * {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sequential-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.sequential-children > *:nth-child(1) { transition-delay: 0.1s; }
.sequential-children > *:nth-child(2) { transition-delay: 0.2s; }
.sequential-children > *:nth-child(3) { transition-delay: 0.3s; }
.sequential-children > *:nth-child(4) { transition-delay: 0.4s; }
.sequential-children > *:nth-child(5) { transition-delay: 0.5s; }
.sequential-children > *:nth-child(6) { transition-delay: 0.6s; }
.sequential-children > *:nth-child(7) { transition-delay: 0.7s; }
.sequential-children > *:nth-child(8) { transition-delay: 0.8s; }

/* Enhanced Timeline Connector Animation */
.timeline-connector {
    transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.timeline-connector.visible {
    height: 100% !important;
    opacity: 1 !important;
}

/* Enhanced Feature Card Animations */
.feature-card[data-scroll].visible .feature-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.feature-icon.pulse-ready.animate {
    animation: iconPulse 2s infinite alternate ease-in-out;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

/* Improved feature icon transition on hover */
.feature-card:hover .feature-icon.animate {
    animation-play-state: paused;
    transform: scale(1.2) rotate(5deg);
}

/* Subtle highlight effect for key elements as they enter */
[data-scroll="highlight"].visible {
    animation: highlightPulse 1.5s ease-out;
}

@keyframes highlightPulse {
    0% { box-shadow: 0 0 0 rgba(99, 102, 241, 0); }
    30% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
    100% { box-shadow: 0 0 0 rgba(99, 102, 241, 0); }
}

/* Enhanced Background Effects */
.enhanced-background {
    position: relative;
    overflow: hidden;
}

.enhanced-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(99, 102, 241, 0.08) 0%, 
        rgba(168, 85, 247, 0.05) 50%, 
        transparent 70%);
    transform-origin: center center;
    pointer-events: none;
    z-index: -1;
    opacity: calc(0.6 * var(--effect-intensity));
}

/* Subtle Pattern Background */
.subtle-pattern {
    background-image: 
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Accent Border for Sections */
.accent-border {
    position: relative;
}

.accent-border-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 0;
    max-width: 300px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    opacity: 0.7;
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

/* Improved Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    z-index: 2000;
    opacity: 0.8;
    transition: width 0.05s linear;
}

/* Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
    [data-scroll], 
    [data-scroll="left"], 
    [data-scroll="right"],
    [data-scroll="up"],
    [data-scroll="scale"],
    [data-scroll="bottom"] {
        transition: opacity 0.3s ease-out;
        transform: none;
    }
    
    [data-scroll].visible,
    [data-scroll="left"].visible,
    [data-scroll="right"].visible,
    [data-scroll="up"].visible,
    [data-scroll="scale"].visible,
    [data-scroll="bottom"].visible {
        transform: none;
    }
    
    .feature-icon.pulse-ready.animate {
        animation: none;
    }
    
    .timeline-connector {
        transition: opacity 0.3s ease-out;
    }
    
    .sequential-children > * {
        transition-delay: 0s !important;
    }
}

/* Enhanced Feature Section Styles */
.feature-connector {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.feature-connector.horizontal {
    height: 2px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transform-origin: left center;
}

.feature-connector.vertical {
    width: 2px;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    transform-origin: top center;
}

.feature-card.highlight-on-visible.visible {
    animation: cardHighlight 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardHighlight {
    0% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
    30% { box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2); }
    100% { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); }
}

.section-divider .divider-icon.pulse-on-visible {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-divider.visible .divider-icon.pulse-on-visible {
    animation: iconSoftPulse 2s infinite alternate ease-in-out;
}

@keyframes iconSoftPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.icon-glow {
    position: absolute;
    inset: -4px;
    border-radius: 12px;
    background: var(--gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    filter: blur(8px);
}

.feature-card.visible .icon-glow {
    opacity: 0.7;
    animation: glowPulse 3s infinite alternate ease-in-out;
}

@keyframes glowPulse {
    0% { opacity: 0.3; transform: scale(0.9); }
    100% { opacity: 0.7; transform: scale(1.1); }
}

/* Feature card content animations */
.feature-card.visible h3,
.feature-card.visible p {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Feature card hover improvements */
.feature-card:hover .feature-icon {
    transform: translateY(-5px) rotate(5deg);
}

.feature-card:hover .icon-glow {
    opacity: 0.9;
    transform: scale(1.15);
}

/* Feature section entry animation improvements */
.section-header[data-scroll].visible .section-title {
    transition-delay: 0.1s;
}

.section-header[data-scroll].visible .section-divider {
    transition-delay: 0.3s;
}

.section-header[data-scroll].visible .section-subtitle {
    transition-delay: 0.5s;
}

/* Improve feature grid reveal effect */
.features-grid {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .feature-connector {
        display: none;
    }
}

/* Error state animations */
.contact-form input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15) !important;
}

.contact-form input.shake {
    animation: inputShake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Loading animation for submit button */
.contact-form button.loading,
.contact-form .submit-button.loading {
    cursor: not-allowed;
    opacity: 0.8;
}

.loading-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-dots {
    position: relative;
    width: 10px;
    height: 10px;
}

.loading-dots::after {
    content: '...';
    animation: loadingDots 1.5s infinite steps(4);
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    width: 0;
}

@keyframes loadingDots {
    to { width: 20px; }
} 