@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Base styles */
* {
    transition: all 0.2s ease;
}

body {
    font-family: 'Inter', 'system-ui', '-apple-system', 'sans-serif';
}

/* Ensure Tailwind utilities work properly */
@tailwind base;
@tailwind components;
@tailwind utilities;

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0F172A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3B82F6, #10B981);
    border-radius: 4px;
}

/* Hide scrollbar for carousel */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Premium gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-fill-transparent {
    -webkit-text-fill-color: transparent;
}

.gradient-border {
    background: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
    padding: 1px;
}

/* Glass effect for dark theme */
.glass {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.glass-light {
    background: rgba(51, 65, 85, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

/* Typewriter effect */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #3B82F6;
    animation: 
        typewriter 3s steps(40, end) forwards,
        blink 1s infinite;
}

/* Logo carousel */
.logo-carousel {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Animated background pattern */
.pattern-bg {
    background-color: #0F172A;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

/* Light integration section background */
.integration-bg {
    background-color: #F8FAFC;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    transition: background-color 0.3s ease;
}

/* Subtle dot pattern for light backgrounds */
.dot-pattern {
    background-image: radial-gradient(circle, #CBD5E1 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Premium button */
.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Custom animations */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Animation classes */
.animate-scroll {
    animation: scroll 40s linear infinite;
}

.animate-scroll-fast {
    animation: scroll 20s linear infinite;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Logo hover effects */
.logo-item {
    transition: all 0.3s ease;
    opacity: 0.6;
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0);
}

/* Enhanced logo hover effects for light background */
.carousel-logo {
    transition: none;
}

/* Form styling */
.form-input {
    background: rgba(51, 65, 85, 0.9);
    border: 1px solid #475569;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Demo preview styling */
.demo-preview {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.demo-header {
    background: #1E293B;
    border-bottom: 1px solid #475569;
}

.demo-content {
    background: #0F172A;
}

/* Feature card styling */
.feature-card {
    background: #0F172A;
    border: 1px solid #475569;
    transition: all 0.3s ease;
}

/* Robust gradient title text (no highlight bar) */
.title-gradient {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.title-gradient-primary { /* primary -> primary-dark */
    background-image: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}
.title-gradient-success { /* success -> primary */
    background-image: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
}
.title-gradient-warning { /* warning -> primary */
    background-image: linear-gradient(135deg, #F59E0B 0%, #3B82F6 100%);
}

.feature-card:hover {
    border-color: #3B82F6;
}

/* Pricing card styling */
.pricing-card {
    background: #0F172A;
    border: 1px solid #475569;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: #3B82F6;
}

.pricing-card.featured {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    transform: scale(1.05);
}

.pricing-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-carousel {
        mask-image: none;
        -webkit-mask-image: none;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

/* Logo color inversion */
.logo-white {
    filter: brightness(0) invert(1) !important;
    -webkit-filter: brightness(0) invert(1) !important;
}

/* Video Modal Styles */
#video-modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999 !important;
}

#video-modal.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    display: none !important;
}

#video-modal:not(.hidden) {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Force modal to be visible when not hidden */
#video-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

#video-modal .relative {
    animation: modalSlideIn 0.3s ease-out;
}

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

/* Video responsive container */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.75rem;
}

/* Close button hover effect */
#video-modal button:hover {
    transform: scale(1.1);
}

/* Mobile responsiveness for video modal */
@media (max-width: 768px) {
    #video-modal {
        padding: 1rem;
    }
    
    #video-modal .relative {
        max-height: 80vh;
    }
    
    .video-container {
        padding-bottom: 60%; /* Slightly taller on mobile */
    }
} 