/* ========================================
   ConversionIQ — Custom Styles (Light Theme)
   ======================================== */

/* Alpine.js Cloak */
[x-cloak] { display: none !important; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #7c3aed33; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7c3aed66; }

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

/* Selection Color */
::selection {
    background: rgba(124, 58, 237, 0.2);
    color: #1e293b;
}

/* Gradient Text Utility */
.gradient-text {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Card — Light */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.glass-card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -15px rgba(124, 58, 237, 0.12), 0 4px 12px rgba(0,0,0,0.05);
}

/* Glow Effects */
.glow-purple {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.1), 0 0 60px rgba(124, 58, 237, 0.03);
}

.glow-cyan {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.1), 0 0 60px rgba(6, 182, 212, 0.03);
}

.glow-purple-strong {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.15), 0 0 80px rgba(124, 58, 237, 0.05);
}

/* Animated Border Gradient */
.border-gradient {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #7c3aed22, #06b6d422, #7c3aed22);
    z-index: -1;
    animation: gradient 4s ease infinite;
    background-size: 200% 200%;
}

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

/* Intersection Observer Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Delays */
.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; }
.delay-6 { transition-delay: 0.6s; }

/* Noise Texture Overlay */
.noise::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Animated Orb Background */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.06;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #7c3aed;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    top: 60%;
    right: 10%;
    animation-delay: -3s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #6366f1;
    bottom: 10%;
    left: 30%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-25px) translateX(5px); }
}

/* Grid Background Pattern */
.grid-bg {
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Radial Gradient Overlay */
.radial-gradient {
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
}

/* Animated Counter */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* Comparison Table Styles */
.comparison-table th {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Pricing Toggle */
.pricing-toggle {
    transition: all 0.3s ease;
}

/* Chat Bubble Animations */
.chat-bubble {
    animation: chatBubble 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes chatBubble {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.04), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Particle Grid */
.particle-grid {
    background-image: radial-gradient(circle, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Typing Indicator */
.typing-dot {
    width: 8px;
    height: 8px;
    background: #7c3aed;
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 100% { transform: scale(0.7); opacity: 0.4; }
    50% { transform: scale(1); opacity: 1; }
}

/* Feature Icon Hover */
.feature-icon-hover {
    transition: all 0.3s ease;
}

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

/* Spotlight Effect */
.spotlight {
    position: relative;
}

.spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124, 58, 237, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Stats Counter Card */
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(124, 58, 237, 0.12);
}

/* Mobile Marquee */
@media (max-width: 768px) {
    .marquee-container {
        overflow: hidden;
    }
}

/* Custom focus styles */
*:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Print styles */
@media print {
    nav, footer, .announcement-bar { display: none; }
    body { background: white; color: black; }
}
