/* Command Center - Hero Section with Wave Machine Animation */

/* ============================================= */
/* HERO LAYOUT */
/* ============================================= */

.cc-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    position: relative;
    overflow: visible;
    padding: var(--cc-space-md) 0;
}

.cc-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--cc-space-md) var(--cc-space-lg);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(59, 130, 246, 0.05));
    position: relative;
    z-index: 2;
}

.cc-hero-machine {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--cc-space-md);
    position: relative;
}

.cc-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--cc-space-md);
    position: relative;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
}

/* ============================================= */
/* HERO CONTENT */
/* ============================================= */

.cc-tag-row {
    display: flex;
    gap: 8px;
    margin-bottom: var(--cc-space-sm);
    flex-wrap: wrap;
}

.cc-tag {
    padding: 4px 10px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--cc-accent-purple);
    display: flex;
    align-items: center;
    gap: 5px;
}

.cc-hero-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--cc-space-sm);
    color: var(--cc-text-primary);
}

.cc-hero-title .gradient-text {
    background: linear-gradient(135deg, var(--cc-accent-purple), var(--cc-accent-blue), var(--cc-accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ccGradientShift 5s ease infinite;
    background-size: 200% 200%;
}

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

.cc-hero-subtitle {
    font-size: 0.9rem;
    color: var(--cc-text-secondary);
    line-height: 1.5;
    margin-bottom: var(--cc-space-sm);
    max-width: 520px;
}

/* Value List */
.cc-value-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--cc-space-sm) 0;
}

.cc-value-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 0;
    color: var(--cc-text-secondary);
    font-size: 0.85rem;
}

.cc-value-list li i {
    color: var(--cc-accent-green);
    font-size: 1rem;
}

/* Stats Row */
.cc-stat {
    text-align: center;
    min-width: 70px;
}

.cc-stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--cc-font-mono);
    color: var(--cc-accent-purple);
    display: block;
}

.cc-stat-label {
    font-size: 0.65rem;
    color: var(--cc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats Ticker */
.cc-stats-ticker {
    display: flex;
    gap: 12px;
    margin-top: var(--cc-space-sm);
    padding: var(--cc-space-xs) var(--cc-space-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--cc-radius-lg);
    border: 1px solid var(--cc-border-subtle);
    flex-wrap: wrap;
}

.cc-ticker-stat {
    text-align: center;
    min-width: 80px;
}

.cc-ticker-value {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--cc-font-mono);
    color: var(--cc-accent-purple);
}

.cc-ticker-label {
    font-size: 0.75rem;
    color: var(--cc-text-muted);
    margin-top: 2px;
}

/* CTA Row */
.cc-cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: var(--cc-space-sm);
}

/* ============================================= */
/* WAVE MACHINE ANIMATION */
/* ============================================= */

.cc-machine-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    background: linear-gradient(145deg, var(--cc-bg-surface), var(--cc-bg-secondary));
    border: 2px solid var(--cc-border-accent);
    border-radius: var(--cc-radius-lg);
    padding: 0;
    overflow: hidden;
    box-shadow: 
        0 0 40px rgba(168, 85, 247, 0.15),
        inset 0 0 40px rgba(168, 85, 247, 0.03);
}

/* Machine Header */
.cc-machine-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: var(--cc-space-sm);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--cc-border-accent);
    font-family: var(--cc-font-mono);
    font-size: 0.7rem;
    color: var(--cc-text-primary);
}

.cc-machine-header i {
    color: var(--cc-accent-purple);
}

.cc-machine-status {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--cc-accent-green);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cc-machine-status i {
    font-size: 0.5rem;
    animation: ccStatusPulse 1.5s infinite;
}

@keyframes ccStatusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Data Funnel - particles falling in */
.cc-data-funnel {
    position: relative;
    height: 55px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.05) 0%, transparent 100%);
}

.cc-data-particle {
    position: absolute;
    top: -30px;
    left: var(--x, 50%);
    transform: translateX(-50%);
    padding: 4px 10px;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(249, 115, 22, 0.5);
    border-radius: 4px;
    font-family: var(--cc-font-mono);
    font-size: 0.65rem;
    color: var(--cc-accent-orange);
    animation: ccFallParticle 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}

@keyframes ccFallParticle {
    0% { 
        transform: translateX(-50%) translateY(0); 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
    }
    80% { 
        transform: translateX(-50%) translateY(75px); 
        opacity: 1;
    }
    100% { 
        transform: translateX(-50%) translateY(85px); 
        opacity: 0; 
    }
}

/* Machine Core */
.cc-machine-core {
    padding: var(--cc-space-xs);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cc-core-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: ccCoreGlow 2s ease-in-out infinite;
}

@keyframes ccCoreGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.cc-core-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border: 2px solid var(--cc-accent-purple);
    border-radius: 50%;
    opacity: 0.3;
    animation: ccRingPulse 3s ease-in-out infinite;
}

@keyframes ccRingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.1; }
}

.cc-core-inner {
    width: 45px;
    height: 45px;
    background: var(--cc-gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    animation: ccCoreSpin 10s linear infinite;
}

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

.cc-core-inner i {
    animation: ccCoreSpin 10s linear infinite reverse;
}

/* Processing Steps */
.cc-process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
    margin-top: var(--cc-space-md);
}

.cc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--cc-radius-sm);
    position: relative;
    transition: all 0.3s ease;
}

/* Step active state - cycles through each step */
.cc-step.active {
    background: rgba(168, 85, 247, 0.15);
}

.cc-step.active .cc-step-icon {
    background: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

/* Step complete state */
.cc-step.complete {
    background: rgba(16, 185, 129, 0.1);
}

.cc-step.complete .cc-step-icon {
    background: rgba(16, 185, 129, 0.3);
    color: var(--cc-accent-green);
}

.cc-step.complete .cc-step-icon::after {
    content: '✓';
    position: absolute;
    font-size: 0.6rem;
}

.cc-step-icon {
    width: 28px;
    height: 28px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: var(--cc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--cc-accent-purple);
    position: relative;
    transition: all 0.3s ease;
}

.cc-step-text {
    font-size: 0.6rem;
    color: var(--cc-text-muted);
    text-align: center;
}

.cc-step-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0 0 var(--cc-radius-sm) var(--cc-radius-sm);
    overflow: hidden;
}

.cc-step.active .cc-step-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--cc-accent-purple);
    animation: ccStepFill 1.5s ease-in-out forwards;
}

.cc-step.complete .cc-step-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--cc-accent-green);
}

@keyframes ccStepFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

.cc-machine-title {
    font-family: var(--cc-font-mono);
    font-size: 0.75rem;
    color: var(--cc-accent-purple);
    margin-bottom: var(--cc-space-md);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cc-machine-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--cc-accent-green);
    border-radius: 50%;
    animation: ccStatusPulse 1.5s infinite;
}

@keyframes ccStatusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--cc-accent-green); }
    50% { opacity: 0.5; box-shadow: 0 0 5px var(--cc-accent-green); }
}

/* Processing Steps */
.cc-process-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cc-process-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--cc-radius-md);
    border-left: 3px solid transparent;
    transition: all var(--cc-transition-normal);
}

.cc-process-step.active {
    background: rgba(168, 85, 247, 0.1);
    border-left-color: var(--cc-accent-purple);
}

.cc-process-step.complete {
    border-left-color: var(--cc-accent-green);
}

.cc-step-icon {
    width: 36px;
    height: 36px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: var(--cc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--cc-accent-purple);
    flex-shrink: 0;
}

.cc-process-step.complete .cc-step-icon {
    background: rgba(16, 185, 129, 0.2);
    color: var(--cc-accent-green);
}

.cc-step-text {
    flex: 1;
    min-width: 0;
}

.cc-step-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--cc-text-primary);
    margin-bottom: 2px;
}

.cc-step-desc {
    font-size: 0.7rem;
    color: var(--cc-text-muted);
}

.cc-step-progress {
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.cc-step-progress-bar {
    height: 100%;
    background: var(--cc-accent-purple);
    border-radius: 2px;
    animation: ccProgressFill 2s ease-in-out infinite;
}

@keyframes ccProgressFill {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

/* Output Section */
.cc-output-section {
    margin-top: var(--cc-space-md);
    padding-top: var(--cc-space-md);
    border-top: 1px solid var(--cc-border-subtle);
}

.cc-output-label {
    font-family: var(--cc-font-mono);
    font-size: 0.7rem;
    color: var(--cc-accent-green);
    margin-bottom: 10px;
}

.cc-wave-output {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: var(--cc-space-xs) var(--cc-space-sm);
    background: rgba(16, 185, 129, 0.05);
    border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.cc-wave-chip {
    display: flex;
    flex-direction: column;
    padding: 4px 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--cc-accent-green);
    border-radius: var(--cc-radius-sm);
    animation: ccPopIn 0.5s ease-out both;
    animation-delay: var(--delay, 0s);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.cc-chip-label {
    font-family: var(--cc-font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--cc-accent-green);
}

.cc-chip-count {
    font-size: 0.5rem;
    color: var(--cc-text-muted);
}

@keyframes ccPopIn {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

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

@media (max-width: 1100px) {
    .cc-hero {
        grid-template-columns: 1fr;
    }
    
    .cc-hero-machine {
        order: -1;
        padding: var(--cc-space-xl) var(--cc-space-md);
        min-height: 400px;
    }
    
    .cc-hero-content {
        padding: var(--cc-space-xl) var(--cc-space-md);
        text-align: center;
        align-items: center;
    }
    
    .cc-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cc-tag-row,
    .cc-cta-row,
    .cc-stats-ticker {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .cc-machine-container {
        transform: scale(0.85);
    }
    
    .cc-stats-ticker {
        gap: 16px;
    }
    
    .cc-ticker-stat {
        min-width: 70px;
    }
    
    .cc-ticker-value {
        font-size: 1.2rem;
    }
}
