/* ========================================
   HERO SECTION
   Sezione principale della landing page
   ======================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--spacing-xxl) + 80px) 0 var(--spacing-xxl);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease 0.3s both;
}

.trading-card-preview {
    width: 100%;
    max-width: 500px;
    height: 385px; /* Aumentato del 10% (350px + 35px = 385px) */
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.trading-card-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-bg-1);
    animation: rotate 20s linear infinite;
}

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

.trading-graph {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        transparent 0%,
        rgba(200, 162, 94, 0.1) 50%,
        transparent 100%
    );
    border-radius: var(--radius-lg);
}

/* Background Effects */
.hero-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient-1,
.bg-gradient-2,
.bg-gradient-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s ease-in-out infinite;
}

.bg-gradient-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 162, 94, 0.3) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.bg-gradient-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

.bg-gradient-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .hero-text {
        order: -1; /* Testo prima del grafico su mobile */
    }
    
    .trading-card-preview {
        max-width: 400px;
        height: 308px; /* Aumentato del 10% (280px + 28px = 308px) */
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: calc(var(--spacing-xl) + 80px) 0 var(--spacing-xl);
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .trading-card-preview {
        max-width: 300px;
        height: 427px; /* Aumentato ulteriormente: +10% (388px * 1.10 = 427px) */
        padding: 12px; /* Ridotto padding per massimizzare spazio grafico */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .stat-value {
        font-size: var(--text-2xl);
    }
}
