html {
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary: #7c3aed;
    --primary-glow: rgba(124, 58, 237, 0.5);
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --accent-gradient: linear-gradient(90deg, #7c3aed, #8b5cf6, #3b82f6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-sans: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background effects */
.bg-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: -1;
}

.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.15;
    border-radius: 50%;
}

.blob-1 {
    top: -100px;
    left: -100px;
}

.blob-2 {
    bottom: -100px;
    right: -100px;
    background: #3b82f6;
}

/* Navbar */
nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    backdrop-filter: blur(15px);
    background: rgba(10, 10, 26, 0.8);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-login {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 5% 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px var(--primary-glow));
}

.subheadline {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 3rem;
}

.hero-btn-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-mockup {
    width: 100%;
    max-width: 1100px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: #000;
    overflow: hidden;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
}

.hero-mockup img {
    width: 100%;
    display: block;
}

/* Ticker */
.ticker-wrap {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    margin: 1rem 0;
    overflow: hidden;
}

.ticker {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    font-weight: 700;
}

.ticker-item.up {
    color: #10b981;
}

.ticker-item.down {
    color: #ef4444;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    nav {
        padding: 1rem 5%;
    }

    .showcase {
        flex-direction: column;
        padding: 6rem 5% !important;
        text-align: center;
    }

    .showcase ul {
        display: inline-block;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding: 6rem 5% 3rem;
    }

    .ticker-wrap {
        margin: 2rem 0;
    }

    .features {
        padding: 4rem 5% !important;
    }

    .features h2 {
        font-size: 2.5rem !important;
    }

    .feature-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-btn-group a {
        width: 100%;
        justify-content: center;
    }

    /* Flow line animation */
    .flow-line {
        stroke-dasharray: 12;
        stroke-dashoffset: 12;
        animation: flow 4s linear infinite;
    }

    /* Particle animation */
    .particle-foreign,
    .particle-bumn,
    .particle-domestic {
        animation: move 4s linear infinite;
    }

    /* Legend color box */
    .legend-color {
        display: inline-block;
        width: 12px;
        height: 12px;
        margin-right: 4px;
        border-radius: 2px;
    }

    @keyframes flow {
        to {
            stroke-dashoffset: 0;
        }
    }

    @keyframes move {
        from {
            offset-distance: 0%;
        }

        to {
            offset-distance: 100%;
        }
    }

}