/* ============================================
   Landing Page Styles - WhatsApp Bot Flow Builder
   ============================================ */

/* Grid Pattern Background */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Animated Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: blob-animation 20s infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #10b981, #34d399);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes blob-animation {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Fade In Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.animation-delay-100 {
    transition-delay: 0.1s;
}

.animation-delay-200 {
    transition-delay: 0.2s;
}

.animation-delay-300 {
    transition-delay: 0.3s;
}

.animation-delay-400 {
    transition-delay: 0.4s;
}

.animation-delay-500 {
    transition-delay: 0.5s;
}

.animation-delay-600 {
    transition-delay: 0.6s;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Flow Mockup */
.flow-mockup {
    position: relative;
    padding: 3rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.mockup-node {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #10b981;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    animation: node-pulse 3s ease-in-out infinite;
}

.mockup-node.node-1 {
    animation-delay: 0s;
}

.mockup-node.node-2 {
    animation-delay: 1s;
}

.mockup-node.node-3 {
    animation-delay: 2s;
}

@keyframes node-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
    }
}

.mockup-node-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mockup-node-text {
    font-weight: 600;
    color: #065f46;
    font-size: 1.1rem;
}

.mockup-connection {
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, #10b981, #34d399);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.mockup-connection::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #34d399;
}

/* Showcase Section */
.showcase-container {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.showcase-canvas {
    position: relative;
    min-height: 400px;
    background: #f9fafb;
    border-radius: 16px;
    padding: 2rem;
    border: 2px dashed rgba(16, 185, 129, 0.2);
}

.showcase-node {
    position: absolute;
    background: white;
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.showcase-start {
    top: 50px;
    left: 50px;
}

.showcase-middle {
    top: 50px;
    left: 400px;
}

.showcase-end {
    top: 50px;
    left: 600px;
}

.showcase-node-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: #065f46;
}

.showcase-node-content {
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.showcase-button {
    background: #f0fdf4;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: #065f46;
}

.showcase-connection-point {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid white;
    position: absolute;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.showcase-connection-point.input {
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
}

.showcase-connection-point.output {
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
}

.showcase-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.connection-path {
    stroke: #10b981;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 5, 5;
    animation: dash-animation 2s linear infinite;
}

@keyframes dash-animation {
    to {
        stroke-dashoffset: -20;
    }
}

/* Template Cards */
.template-card {
    background: white;
    border: 2px solid rgba(16, 185, 129, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.template-card:hover {
    border-color: #10b981;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

.template-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.template-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.template-title {
    font-weight: 600;
    color: #111827;
    font-size: 1.1rem;
}

.template-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.template-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.template-preview-item {
    background: #f0fdf4;
    color: #065f46;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Step Cards */
.step-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    border: 2px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: #10b981;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.15);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step-icon {
    font-size: 3rem;
    margin: 1.5rem 0 1rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modal-fade-in 0.3s ease;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .flow-mockup {
        padding: 1.5rem;
    }
    
    .showcase-canvas {
        padding: 1rem;
        min-height: 300px;
    }
    
    .showcase-node {
        position: relative;
        margin: 1rem 0;
        left: auto !important;
        top: auto !important;
    }
    
    .showcase-connections {
        display: none;
    }
}

