/* ================================
   Landing Page Animations & Styles
   redahub - Sales Landing Page
   ================================ */

/* ========================================
   ANIMATION KEYFRAMES
   ======================================== */

/* Fade In Up - Elements entering from below */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In - Simple opacity */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Fade In Scale - Pop in effect */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In Right - For workflow steps */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Glow Pulse - For highlighted elements */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    }
}

/* Float - Gentle floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shimmer - Loading effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Progress Bar */
@keyframes progressBar {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* Bounce - Attention grabbing */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   ANIMATION CLASSES
   ======================================== */

/* Base animation class */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
}

/* Fade In Up */
.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.animate-fade-in-up.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Fade In */
.animate-fade-in {
    opacity: 0;
}

.animate-fade-in.visible {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Fade In Scale */
.animate-fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
}

.animate-fade-in-scale.visible {
    animation: fadeInScale 0.5s ease-out forwards;
}

/* Slide In Right */
.animate-slide-in-right {
    opacity: 0;
    transform: translateX(-30px);
}

.animate-slide-in-right.visible {
    animation: slideInRight 0.6s ease-out forwards;
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Glow Pulse */
.animate-glow-pulse {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Float */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Bounce */
.animate-bounce-slow {
    animation: bounce 2s ease infinite;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-gradient {
    background: linear-gradient(180deg,
        rgba(139, 92, 246, 0.15) 0%,
        rgba(139, 92, 246, 0.05) 50%,
        transparent 100%
    );
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-glow-1 {
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-glow-2 {
    bottom: -100px;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

/* ========================================
   WORKFLOW VISUAL
   ======================================== */

.workflow-step {
    position: relative;
}

.workflow-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.5), transparent);
}

.workflow-step:last-child::after {
    display: none;
}

/* Workflow icons container */
.workflow-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.workflow-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.workflow-icon:hover {
    transform: scale(1.1);
}

.workflow-icon-wordpress { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.workflow-icon-instagram { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2)); color: #ec4899; }
.workflow-icon-facebook { background: rgba(37, 99, 235, 0.2); color: #2563eb; }
.workflow-icon-whatsapp { background: rgba(34, 197, 94, 0.2); color: #22c55e; }

/* ========================================
   FEATURE CARDS
   ======================================== */

.feature-card {
    background: linear-gradient(to bottom right,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.02)
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    margin-bottom: 1rem;
}

/* ========================================
   COMPARISON TABLE
   ======================================== */

.comparison-table {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-cell {
    padding: 1rem 1.5rem;
    text-align: center;
}

.comparison-header {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.comparison-highlight {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    font-weight: 600;
}

/* Before/After styling */
.before-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid rgba(239, 68, 68, 0.5);
}

.after-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid rgba(34, 197, 94, 0.5);
}

/* ========================================
   PRICING CARDS
   ======================================== */

.pricing-card {
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.02)
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.pricing-card-popular {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(to bottom,
        rgba(139, 92, 246, 0.1),
        rgba(139, 92, 246, 0.02)
    );
}

.pricing-card-popular::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(99, 102, 241, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    animation: glowPulse 2s ease-in-out infinite;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.pricing-feature-check {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ========================================
   FAQ ACCORDION
   ======================================== */

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.open .faq-answer {
    padding: 0 1.5rem 1.25rem;
    max-height: 500px;
}

/* ========================================
   TESTIMONIALS / SOCIAL PROOF
   ======================================== */

.testimonial-card {
    background: linear-gradient(to bottom right,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.02)
    );
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    color: #fbbf24;
}

/* Metric Counter */
.metric-counter {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.1) 0%,
        rgba(99, 102, 241, 0.1) 50%,
        rgba(139, 92, 246, 0.05) 100%
    );
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.5);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(139, 92, 246, 0.6);
}

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

/* ========================================
   BADGES & PILLS
   ======================================== */

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 9999px;
}

.badge-savings {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 9999px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .hero-glow {
        width: 300px;
        height: 300px;
    }

    .pricing-price {
        font-size: 2.5rem;
    }

    .metric-counter {
        font-size: 2rem;
    }

    .workflow-step::after {
        display: none;
    }

    .comparison-row {
        grid-template-columns: 1fr;
    }

    .comparison-cell:first-child {
        background: rgba(255, 255, 255, 0.03);
        font-weight: 500;
    }
}

/* ========================================
   LIGHT MODE OVERRIDES
   ======================================== */

:root:not(.dark) .feature-card,
:root:not(.dark) .pricing-card,
:root:not(.dark) .testimonial-card,
:root:not(.dark) .faq-item {
    background: var(--color-bg-card);
    border-color: var(--color-border);
    backdrop-filter: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

:root:not(.dark) .hero-gradient {
    background: linear-gradient(180deg,
        rgba(139, 92, 246, 0.08) 0%,
        rgba(139, 92, 246, 0.03) 50%,
        transparent 100%
    );
}

:root:not(.dark) .hero-glow {
    opacity: 0.5;
}

:root:not(.dark) .pricing-price,
:root:not(.dark) .metric-counter {
    background: linear-gradient(135deg, var(--color-text-primary), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

:root:not(.dark) .cta-section {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.05) 0%,
        rgba(99, 102, 241, 0.05) 50%,
        rgba(139, 92, 246, 0.02) 100%
    );
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .animate-fade-in-up,
    .animate-fade-in,
    .animate-fade-in-scale,
    .animate-slide-in-right,
    .animate-glow-pulse,
    .animate-float,
    .animate-bounce-slow {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
