:root {
    --primary-color: #00E676; /* Bright Green for positive/action */
    --secondary-color: #2979FF; /* Blue for trust/info */
    --bg-dark: #0a0e17;
    --bg-card: #151a25;
    --text-main: #ffffff;
    --text-muted: #a0a6b5;
    --danger-color: #FF5252;
    --border-color: #2a3346;
    --gradient-hero: linear-gradient(135deg, #0a0e17 0%, #1a253a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(10, 14, 23, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo img {
    opacity: 0.9;
    transition: opacity 0.3s ease;
    filter: brightness(1.1);
}

.logo img:hover {
    opacity: 1;
    filter: brightness(1.2);
}

.logo-icon {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    background-color: #00c853;
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #000;
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.ticker {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    padding: 0 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.up { color: var(--primary-color); }
.down { color: var(--danger-color); }

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: var(--gradient-hero);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a0a6b5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Hero Image Animations */
@keyframes slideInRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.hero-image {
    animation: slideInRight 1.2s ease-out forwards, float 6s ease-in-out infinite 1.2s;
    opacity: 0; /* Start hidden for the entrance animation */
}

/* Hero Text Animation */
@keyframes slideInLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-text {
    animation: slideInLeft 1.2s ease-out forwards;
    opacity: 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    filter: drop-shadow(0 20px 50px rgba(0, 230, 118, 0.2));
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.chart-container {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Features */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Markets Layout (3 top, 2 bottom) */
.markets-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.markets-row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.markets-row-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 66.66%;
}

@media (max-width: 992px) {
    .markets-row-top {
        grid-template-columns: repeat(2, 1fr);
    }
    .markets-row-bottom {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .markets-row-top,
    .markets-row-bottom {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1611974765270-ca1258634369?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 40px;
}

/* Footer */
footer {
    background-color: #05070a;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.risk-warning {
    margin-top: 10px;
    font-style: italic;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header .container {
        position: relative;
    }

    .nav-links, .auth-buttons {
        display: none !important;
        flex-direction: column;
        width: 100%;
        position: absolute;
        left: 0;
        background-color: #0a0e17; /* Colore solido */
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        z-index: 10001;
    }

    .nav-links {
        top: 60px;
    }

    .auth-buttons {
        top: 250px;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active, .auth-buttons.active {
        display: flex !important;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}