/* === HERO SECTION - LEFT/RIGHT LAYOUT === */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
}

/* Hero grid layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-20);
    align-items: center;
    width: 100%;
}

/* Left side - Hero content */
.hero-content {
    max-width: 700px;
}

.hero-headline {
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    line-height: 1.1;
    margin-bottom: var(--space-8);
    letter-spacing: -0.03em;
    animation: fadeIn 1s ease-out;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-10);
    animation: fadeIn 1s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.4s both;
}

/* Right side - AI Mic Demo */
.hero-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    animation: fadeIn 1s ease-out 0.6s both;
}

/* Interactive AI Orb */
.ai-orb-interactive {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: transform var(--transition-base);
}

.ai-orb-interactive:hover {
    transform: scale(1.05);
}

/* Ripple effect */
.orb-ripple {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    opacity: 0;
    animation: ripple 2s ease-out infinite;
}

/* Pulse glow */
.orb-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

/* Center mic button */
.orb-center {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.orb-center:hover {
    background: var(--surface-glass-hover);
    border-color: var(--accent-primary);
}

.phone-icon {
    width: 32px;
    height: 32px;
    color: var(--text-primary);
    transition: all var(--transition-base);
    animation: phone-ring 2s ease-in-out infinite;
}

@keyframes phone-ring {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.ai-orb-interactive:hover .phone-icon {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.ai-orb-interactive.active .phone-icon {
    color: var(--bg-primary);
    animation: none;
}

.ai-text {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    white-space: nowrap;
}

.orb-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.ai-orb-interactive:hover .orb-glow {
    opacity: 1;
}

.orb-center::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-primary), transparent, var(--accent-primary));
    opacity: 0;
    transition: opacity var(--transition-base);
    animation: rotate 3s linear infinite;
}

.ai-orb-interactive:hover .orb-center::before {
    opacity: 0.3;
}

.orb-center svg {
    position: relative;
    z-index: 1;
}

.demo-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    cursor: pointer;
    margin-top: var(--space-4);
    z-index: 2147483647;
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.demo-button:hover {
    background: var(--surface-glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 220, 130, 0.15);
}

.demo-button.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 220, 130, 0.3);
}

.demo-button.active .demo-label {
    color: white !important;
}

.demo-label {
    font-size: var(--text-base);
    color: var(--text-primary);
    font-weight: var(--font-semibold);
    text-align: center;
    position: relative;
}



/* Button content wrapper */
.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    position: relative;
}

/* Loader styles */
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading state */
.demo-button.loading .demo-label {
    color: black !important;
}

.demo-button.loading .loader {
    display: flex !important;
}

.demo-button.loading .spinner {
    border-top-color: black !important;
}

/* Fixed button styling */
#custom-demo-button {
    transform: scale(0.9);
    box-shadow: 0 8px 32px rgba(0, 220, 130, 0.3);
    backdrop-filter: blur(20px);
    border: none;
    background: var(--accent-primary);
    color: white;
    padding: var(--space-4) var(--space-6);
    font-weight: var(--font-semibold);
    gap: var(--space-2);
    transition: all 0.3s ease-out;
}

#custom-demo-button:hover {
    background: var(--accent-hover);
    box-shadow: 0 12px 40px rgba(0, 220, 130, 0.4);
    transform: scale(0.9) translateY(-3px);
}

#custom-demo-button .demo-label {
    color: black;
    font-weight: var(--font-semibold);
}

#custom-demo-button .btn-glow {
    background: var(--accent-glow);
    filter: blur(20px);
    opacity: 0.6;
    z-index: -1;
}

#custom-demo-button:hover .btn-glow {
    opacity: 0.8;
}

/* Mobile adjustments for fixed button */
@media (max-width: 768px) {
    #custom-demo-button {
        bottom: 15px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        padding: var(--space-3) var(--space-4);
    }
    
    /* Override hover state on mobile to maintain centering */
    #custom-demo-button:hover {
        transform: translateX(-50%) scale(0.95) translateY(-2px);
    }
}

/* Animations */
@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 280px;
        gap: var(--space-16);
    }
    
    .hero-content {
        max-width: 650px;
    }
    
    .ai-orb-interactive {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-headline {
        font-size: var(--text-4xl);
    }
    
    .hero-description {
        font-size: var(--text-base);
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-demo {
        order: -1;
        margin-bottom: var(--space-8);
    }
    
    .ai-orb-interactive {
        width: 140px;
        height: 140px;
    }
    
    .demo-button {
        max-width: 280px;
        width: 100%;
    }
    
    .demo-label {
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: var(--text-3xl);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions > * {
        width: 100%;
    }
    
    .ai-orb-interactive {
        width: 120px;
        height: 120px;
    }
    
    .phone-icon {
        width: 24px;
        height: 24px;
    }
    
    .demo-button {
        padding: var(--space-3) var(--space-4);
    }
    
    .demo-label {
        font-size: var(--text-xs);
    }
    
    .demo-status {
        font-size: var(--text-xs);
    }
}



@media (prefers-reduced-motion: reduce) {
    .orb-ripple,
    .orb-pulse,
    .phone-icon {
        animation: none;
    }
    
    .orb-pulse {
        opacity: 0.3;
    }
    

}

/* === PREMIUM HERO ENHANCEMENTS === */

/* Hero background effects */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at top right,
        rgba(0, 220, 130, 0.08) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 0;
}

/* Enhanced headline styling */
.hero-headline {
    position: relative;
}

.hero-headline::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
}

/* Premium button enhancements */
.btn-primary {
    position: relative;
    isolation: isolate;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(
        135deg,
        var(--accent-primary),
        var(--accent-hover)
    );
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.btn-primary:hover::before {
    opacity: 1;
}

/* Enhanced secondary button */
.btn-secondary {
    position: relative;
    overflow: hidden;
}

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

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

/* AI Orb premium effects */
.ai-orb-interactive {
    filter: drop-shadow(0 0 40px rgba(0, 220, 130, 0.3));
}

/* Sound wave animation */
.sound-wave {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.ai-orb-interactive:hover .sound-wave {
    opacity: 0.6;
}

.wave-bar {
    width: 3px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    animation: wave 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 20px; opacity: 0.3; }
    50% { height: 40px; opacity: 1; }
}

/* Floating particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 10s linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Premium text effects */
.hero-description {
    position: relative;
    color: var(--text-secondary);
}

/* Stagger animations for hero content */
.hero-content > * {
    opacity: 0;
    animation: slideUp 0.8s ease-out forwards;
}

.hero-headline { animation-delay: 0.2s; }
.hero-description { animation-delay: 0.4s; }
.hero-actions { animation-delay: 0.6s; }

/* Premium responsive adjustments */
@media (min-width: 1440px) {
    .hero-headline {
        font-size: calc(var(--text-6xl) * 1.2);
    }
    
    .hero-description {
        font-size: var(--text-xl);
    }
} 

/* AI Orb active state */
.ai-orb-interactive.active .orb-glow {
    opacity: 1;
    animation: glow-pulse 0.5s ease-in-out infinite;
}

.ai-orb-interactive.active .orb-ripple {
    animation: ripple 1s ease-out infinite;
}

.ai-orb-interactive.active .ai-text {
    animation: ai-glow 0.5s ease-in-out infinite;
    transform: scale(1.1);
}

.ai-orb-interactive.active .orb-center {
    border-color: var(--accent-hover);
    box-shadow: 
        0 0 0 2px rgba(0, 220, 130, 0.2),
        0 0 40px rgba(0, 220, 130, 0.4);
}

/* AI Text transition */
.ai-text {
    transition: transform var(--transition-base);
}

/* Demo status styling */
.demo-status {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition-base);
}

/* Remove sound wave styles */
.sound-wave,
.wave-bar {
    display: none;
} 