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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

/* Hero Background */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
    pointer-events: none;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 228, 184, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

/* Hero Content */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    perspective: 1000px;
}

.mockup-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.mockup-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-slow);
}

.mockup-card:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    margin-bottom: 2rem;
}

.mockup-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.mockup-content {
    position: relative;
    height: 300px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Flow Diagram in Mockup */
.flow-diagram {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: relative;
}

.flow-node {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-card);
    border: 2px solid rgba(0, 228, 184, 0.3);
    position: relative;
    animation: nodeGlow 3s ease-in-out infinite;
}

.flow-node:nth-child(1) {
    animation-delay: 0s;
    background: linear-gradient(135deg, rgba(0, 228, 184, 0.3) 0%, rgba(59, 158, 200, 0.3) 100%);
}

.flow-node:nth-child(2) {
    animation-delay: 1s;
    background: linear-gradient(135deg, rgba(59, 158, 200, 0.3) 0%, rgba(116, 25, 225, 0.3) 100%);
}

.flow-node:nth-child(3) {
    animation-delay: 2s;
    background: linear-gradient(135deg, rgba(116, 25, 225, 0.3) 0%, rgba(0, 228, 184, 0.3) 100%);
}

.flow-node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.5;
}

.flow-node::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
    animation: flowLine 2s ease-in-out infinite;
}

.flow-node:last-child::after {
    display: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

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

@media (max-width: 1024px) {
    .hero-content {
        gap: 3rem;
    }
    
    .mockup-content {
        height: 250px;
    }
    
    .flow-node {
        width: 60px;
        height: 60px;
    }
    
    .flow-node::before {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-bottom: 2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-text {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .mockup-card {
        transform: none;
    }
    
    .mockup-content {
        height: 200px;
    }
    
    .flow-diagram {
        gap: 1rem;
    }
    
    .flow-node {
        width: 50px;
        height: 50px;
    }
    
    .flow-node::after {
        width: 16px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta a {
        width: 100%;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .mockup-container {
        padding: 0 1rem;
    }
    
    .flow-node {
        width: 40px;
        height: 40px;
    }
    
    .flow-node::before {
        width: 20px;
        height: 20px;
    }
}
