/* ========================================
   TRADE MANAGER LANDING PAGE - CSS
   Modular Structure
   ======================================== */

/* Hero Section */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 100px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    z-index: -1;
    overflow: hidden;
    clip-path: inset(0);
    background: 
        radial-gradient(ellipse 1200px 800px at bottom right, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, #000000 0%, #000000 30%, #000000 60%, #000000 100%);
}

/* Mesh Gradient Background - Enhanced Professional Look */
.mesh-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    max-width: none;
    background: 
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.025) 0%, transparent 45%);
    animation: meshMove 30s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 1;
    filter: blur(25px);
    will-change: transform;
    overflow: hidden;
    clip-path: inset(0);
}

@keyframes meshMove {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translate(8%, 8%) scale(1.15) rotate(2deg);
        opacity: 0.9;
    }
    50% {
        transform: translate(-8%, 8%) scale(1.1) rotate(-2deg);
        opacity: 0.95;
    }
    75% {
        transform: translate(8%, -8%) scale(1.12) rotate(1deg);
        opacity: 0.9;
    }
}

/* Base gradient layer - Enhanced with more depth */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 1000px 600px at bottom right, rgba(255, 255, 255, 0.025) 0%, transparent 60%),
        linear-gradient(180deg, #000000 0%, #000000 50%, #000000 100%);
    z-index: 1;
    animation: gradientShift 20s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: background;
}

@keyframes gradientShift {
    0%, 100% { 
        background: 
            radial-gradient(ellipse 1000px 600px at bottom right, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
            linear-gradient(180deg, #000000 0%, #000000 50%, #000000 100%);
    }
    33% {
        background: 
            radial-gradient(ellipse 1000px 600px at bottom left, rgba(255, 255, 255, 0.07) 0%, transparent 60%),
            linear-gradient(180deg, #000000 0%, #000000 50%, #000000 100%);
    }
    66% { 
        background: 
            radial-gradient(ellipse 1000px 600px at bottom center, rgba(255, 255, 255, 0.065) 0%, transparent 60%),
            linear-gradient(180deg, #000000 0%, #000000 50%, #000000 100%);
    }
}

/* Subtle Background Texture */
.hero-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    opacity: 0.2;
    background-image: 
        /* Subtle diagonal lines */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 50px,
            rgba(255, 255, 255, 0.03) 50px,
            rgba(255, 255, 255, 0.03) 51px
        ),
        /* Subtle dot pattern */
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.02) 1px, transparent 0);
    background-size: 100px 100px, 20px 20px;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Circuit Board Pattern */
.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    opacity: 0.01;
    background-image: 
        /* Horizontal lines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 4px,
            rgba(0, 255, 136, 0.06) 4px,
            rgba(0, 255, 136, 0.06) 6px
        ),
        /* Vertical lines */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 4px,
            rgba(0, 255, 136, 0.06) 4px,
            rgba(0, 255, 136, 0.06) 6px
        );
    background-size: 100% 100%, 100% 100%;
    pointer-events: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 700px 500px at 80% 70%, rgba(255, 255, 255, 0.025) 0%, transparent 70%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.99) 0%, rgba(0, 0, 0, 0.99) 100%);
    z-index: 2;
    animation: overlayPulse 15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: opacity, background;
}

@keyframes overlayPulse {
    0%, 100% {
        opacity: 1;
        background: 
            radial-gradient(ellipse 700px 500px at 80% 70%, rgba(255, 255, 255, 0.025) 0%, transparent 70%),
            linear-gradient(135deg, rgba(0, 0, 0, 0.99) 0%, rgba(0, 0, 0, 0.99) 100%);
    }
    50% {
        opacity: 0.95;
        background: 
            radial-gradient(ellipse 800px 600px at 75% 65%, rgba(255, 255, 255, 0.03) 0%, transparent 70%),
            linear-gradient(135deg, rgba(0, 0, 0, 0.99) 0%, rgba(0, 0, 0, 0.99) 100%);
    }
}

/* Glowing Orbs */
.hero-orbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.06) 0%, rgba(0, 255, 136, 0.02) 50%, transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    33% {
        transform: translate(50px, -50px) scale(1.2);
        opacity: 1;
    }
    66% {
        transform: translate(-30px, 40px) scale(0.9);
        opacity: 0.7;
    }
}

/* Data Visualization Lines */
.data-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.data-line {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.12), rgba(0, 255, 136, 0.20), rgba(0, 255, 136, 0.12), transparent);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.25), 0 0 15px rgba(0, 255, 136, 0.12);
    opacity: 0.5;
    animation: dataLineMove 12s linear infinite;
}

.data-line-1 {
    width: 40%;
    top: 30%;
    left: 10%;
    animation-delay: 0s;
    transform: rotate(-5deg);
}

.data-line-2 {
    width: 35%;
    top: 60%;
    right: 15%;
    animation-delay: 4s;
    transform: rotate(8deg);
}

.data-line-3 {
    width: 45%;
    bottom: 25%;
    left: 20%;
    animation-delay: 8s;
    transform: rotate(-3deg);
}

@keyframes dataLineMove {
    0% {
        transform: translateX(-100%) rotate(var(--rotation, 0deg));
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(100vw) rotate(var(--rotation, 0deg));
        opacity: 0;
    }
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.15);
    opacity: 0.7;
    animation: shapeRotate 25s linear infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 20%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 15%;
    border-radius: 50%;
    transform: rotate(0deg);
    animation-delay: 8s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 10%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    animation-delay: 15s;
}

@keyframes shapeRotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.6;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

/* Professional Light Rays Effect - Enhanced Background */
.hero-background::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    max-width: none;
    background: 
        /* Grid pattern */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.003) 20px,
            rgba(255, 255, 255, 0.003) 22px
        ),
        /* Light ray 1 */
        linear-gradient(
            45deg,
            transparent 0%,
            transparent 30%,
            rgba(255, 255, 255, 0.04) 50%,
            transparent 70%,
            transparent 100%
        ),
        /* Light ray 2 */
        linear-gradient(
            135deg,
            transparent 0%,
            transparent 35%,
            rgba(255, 255, 255, 0.06) 50%,
            transparent 65%,
            transparent 100%
        ),
        /* Light ray 3 */
        linear-gradient(
            90deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 60%,
            transparent 100%
        );
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-position: 0% 0%, 0% 0%, 100% 100%, 50% 50%;
    opacity: 0.4;
    z-index: 1;
    animation: lightRays 25s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
    overflow: hidden;
    clip-path: inset(0);
}

@keyframes lightRays {
    0%, 100% {
        opacity: 0.3;
        transform: rotate(0deg) scale(1);
    }
    33% {
        opacity: 0.5;
        transform: rotate(5deg) scale(1.1);
    }
    66% {
        opacity: 0.4;
        transform: rotate(-3deg) scale(0.95);
    }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

/* Animated Lines */
.animated-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1), transparent);
    height: 2px;
    width: 100%;
    animation: lineMove 15s linear infinite;
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.line-1 {
    top: 20%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.line-2 {
    top: 50%;
    animation-delay: 3s;
    animation-duration: 18s;
}

.line-3 {
    top: 80%;
    animation-delay: 6s;
    animation-duration: 15s;
}

.line-4 {
    top: 35%;
    animation-delay: 9s;
    animation-duration: 20s;
}

@keyframes lineMove {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Floating Particles - Professional Grade */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
    /* Reduced glow effect for subtle pops */
    box-shadow: 
        0 0 6px rgba(0, 255, 136, 0.3),
        0 0 12px rgba(0, 255, 136, 0.15),
        0 0 20px rgba(0, 255, 136, 0.08),
        inset 0 0 4px rgba(0, 255, 136, 0.15);
    filter: drop-shadow(0 0 3px rgba(0, 255, 136, 0.25));
}

/* Varied particle sizes for professional depth */
.particle:nth-child(1) {
    width: 10px;
    height: 10px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    width: 8px;
    height: 8px;
    left: 30%;
    top: 60%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    width: 12px;
    height: 12px;
    left: 60%;
    top: 30%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    width: 9px;
    height: 9px;
    left: 80%;
    top: 70%;
    animation-delay: 6s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    width: 14px;
    height: 14px;
    left: 50%;
    top: 10%;
    animation-delay: 8s;
    animation-duration: 20s;
}

.particle:nth-child(6) {
    width: 7px;
    height: 7px;
    left: 20%;
    top: 80%;
    animation-delay: 10s;
    animation-duration: 17s;
}

.particle:nth-child(7) {
    width: 11px;
    height: 11px;
    left: 70%;
    top: 50%;
    animation-delay: 12s;
    animation-duration: 19s;
}

.particle:nth-child(8) {
    width: 9px;
    height: 9px;
    left: 40%;
    top: 75%;
    animation-delay: 14s;
    animation-duration: 21s;
}

.particle:nth-child(9) {
    width: 13px;
    height: 13px;
    left: 90%;
    top: 25%;
    animation-delay: 16s;
    animation-duration: 18s;
}

/* Additional particles for richer background */
.particle:nth-child(10) {
    width: 8px;
    height: 8px;
    left: 15%;
    top: 45%;
    animation-delay: 1s;
    animation-duration: 16s;
}

.particle:nth-child(11) {
    width: 11px;
    height: 11px;
    left: 55%;
    top: 65%;
    animation-delay: 3s;
    animation-duration: 20s;
}

.particle:nth-child(12) {
    width: 9px;
    height: 9px;
    left: 75%;
    top: 15%;
    animation-delay: 5s;
    animation-duration: 18s;
}

.particle:nth-child(13) {
    width: 6px;
    height: 6px;
    left: 25%;
    top: 55%;
    animation-delay: 7s;
    animation-duration: 17s;
}

.particle:nth-child(14) {
    width: 12px;
    height: 12px;
    left: 65%;
    top: 85%;
    animation-delay: 9s;
    animation-duration: 19s;
}

.particle:nth-child(15) {
    width: 10px;
    height: 10px;
    left: 35%;
    top: 35%;
    animation-delay: 11s;
    animation-duration: 21s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    25% {
        transform: translate(40px, -40px) scale(1.3);
        opacity: 0.8;
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translate(50px, 30px) scale(1.2);
        opacity: 0.7;
    }
}

/* Moving Gradient Lines */
.moving-gradient-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    clip-path: inset(0);
}

/* Hide moving gradient lines in features section */
.features .moving-gradient-lines {
    display: none;
}

.features .moving-gradient-lines::before,
.features .moving-gradient-lines::after {
    display: none;
}

.moving-gradient-lines::before,
.moving-gradient-lines::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: gradientLineMove 8s linear infinite;
}

.moving-gradient-lines::before {
    top: 30%;
    animation-delay: 0s;
}

.moving-gradient-lines::after {
    top: 70%;
    animation-delay: 4s;
    animation-direction: reverse;
}

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

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
    animation: contentFadeIn 1s ease-out;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    text-shadow: none;
    animation: none;
    position: relative;
}

/* Hide mobile versions by default (desktop view) */
.hero-title-mobile,
.hero-subtext-mobile {
    display: none;
}

/* Show desktop versions by default */
.hero-title-desktop,
.hero-subtext-desktop {
    display: block;
}


.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

/* Hero-specific button styles - reduced green */
.hero-buttons .btn-primary {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000000 !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary > * {
    color: #000000 !important;
    position: relative;
    z-index: 1;
}

.hero-buttons .btn-primary:hover {
    background: #FFFFFF !important;
    color: #000000 !important;
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.25), 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
    transition: all 0.3s ease;
    animation: none;
}

.hero-buttons .btn-primary:hover::before {
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.15), transparent);
    opacity: 1;
    z-index: 0;
}

.hero-buttons .btn-primary:hover > * {
    color: #000000 !important;
    position: relative;
    z-index: 1;
}

.hero-buttons .btn-outline {
    background: transparent !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.hero-buttons .btn-outline::before {
    background: rgba(255, 255, 255, 0.1);
    left: -100% !important;
}

.hero-buttons .btn-outline > * {
    color: #FFFFFF !important;
    position: relative;
    z-index: 1;
}

.hero-buttons .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25), 0 0 15px rgba(0, 255, 136, 0.15);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.hero-buttons .btn-outline:hover::before {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
    left: -100% !important;
    z-index: 0;
}

.hero-buttons .btn-outline:hover > * {
    color: #FFFFFF !important;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #FFFFFF 0%, #FFFFFF 50%, rgba(200, 255, 230, 0.9) 70%, rgba(150, 255, 200, 0.85) 85%, rgba(100, 255, 170, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    animation: statPulse 2s ease-in-out infinite;
    letter-spacing: -0.02em;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-size: 100% 100%;
}

@keyframes statPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
