/* ==========================================================================
   WinTradely — Welcome Page Modern Trading Visuals, Icons & Animations
   Features: 3D Terminal Mockups, Gradient Glass Icons, Micro-Interactions
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ANIMATION KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(1deg);
    }
}

@keyframes floatReverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(10px) rotate(-1deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.4));
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.85));
    }
}

@keyframes candleLiveBlink {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.85;
        transform: scaleY(1.08);
    }
}

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

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

/* --------------------------------------------------------------------------
   2. TRADING TERMINAL SHOWCASE SECTION
   -------------------------------------------------------------------------- */
.terminal-showcase-section {
    position: relative;
    padding: 90px 0 110px;
    background: radial-gradient(ellipse at top center, rgba(16, 24, 39, 0.85) 0%, rgba(9, 13, 22, 0.98) 100%);
    overflow: hidden;
}

.terminal-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 380px;
    background: radial-gradient(ellipse, rgba(0, 229, 255, 0.12) 0%, rgba(16, 185, 129, 0.05) 45%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.terminal-showcase-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.terminal-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #00e5ff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.terminal-showcase-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 54px;
}

.terminal-showcase-header h2 {
    font-size: 44px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
}

.terminal-showcase-header h2 span {
    background: linear-gradient(135deg, #00e5ff 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.terminal-showcase-header p {
    font-size: 16.5px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
}

/* 3D Perspective Terminal Frame */
.terminal-perspective-wrap {
    perspective: 1600px;
    position: relative;
    margin: 0 auto;
    max-width: 1100px;
}

.terminal-glass-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.92) 0%, rgba(9, 13, 22, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 229, 255, 0.12);
    overflow: hidden;
    transform: rotateX(4deg);
    transition: transform 0.5s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.5s ease;
    position: relative;
}

.terminal-glass-card:hover {
    transform: rotateX(0deg) translateY(-6px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 70px rgba(0, 229, 255, 0.2);
}

/* Terminal Top Header */
.terminal-mockup-topbar {
    background: #090d16;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.terminal-window-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.terminal-topbar-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terminal-asset-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 5px 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-asset-payout {
    color: #10b981;
    font-size: 11.5px;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

.terminal-topbar-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 5px 14px;
    border-radius: 8px;
    color: #10b981;
    font-weight: 800;
    font-size: 13.5px;
}

/* Terminal Body Content */
.terminal-mockup-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    min-height: 440px;
    position: relative;
    background: #0b0f19;
}

/* Candlestick Chart Area */
.terminal-chart-viewport {
    position: relative;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(circle at 60% 40%, rgba(0, 229, 255, 0.03) 0%, transparent 60%);
    overflow: hidden;
}

.terminal-chart-grid-lines {
    position: absolute;
    inset: 0;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    pointer-events: none;
}

.terminal-chart-svg {
    width: 100%;
    height: 100%;
    min-height: 340px;
    position: relative;
    z-index: 1;
}

/* Right Trading Console / Order Box */
.terminal-order-panel {
    background: rgba(15, 23, 42, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.order-field-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-field-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
}

.order-field-value {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.terminal-trade-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.terminal-btn-call {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    cursor: default;
    transition: transform 0.2s ease;
}

.terminal-btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

.terminal-btn-put {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
    cursor: default;
    transition: transform 0.2s ease;
}

.terminal-btn-put:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
}

/* --------------------------------------------------------------------------
   3. FLOATING PARALLAX CHIPS & NOTIFICATIONS
   -------------------------------------------------------------------------- */
.floating-chip {
    position: absolute;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    user-select: none;
    transition: transform 0.3s ease;
}

.floating-chip-profit {
    top: -24px;
    right: -20px;
    animation: floatSlow 5s ease-in-out infinite;
    border-color: rgba(16, 185, 129, 0.4);
}

.floating-chip-latency {
    bottom: -22px;
    left: -20px;
    animation: floatReverse 6s ease-in-out infinite;
    border-color: rgba(0, 229, 255, 0.4);
}

.floating-chip-payout {
    top: 55%;
    left: -35px;
    animation: floatSlow 7s ease-in-out infinite;
    border-color: rgba(139, 92, 246, 0.4);
}

.chip-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.chip-icon-box.green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.chip-icon-box.cyan {
    background: rgba(0, 229, 255, 0.15);
    color: #00e5ff;
}

.chip-icon-box.purple {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.chip-text-wrap {
    display: flex;
    flex-direction: column;
}

.chip-title {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
}

.chip-val {
    font-size: 14.5px;
    color: #ffffff;
    font-weight: 800;
}

.chip-val.green { color: #10b981; }
.chip-val.cyan { color: #00e5ff; }

/* --------------------------------------------------------------------------
   4. DUAL-DEVICE SHOWCASE (LAPTOP + MOBILE MOCKUP)
   -------------------------------------------------------------------------- */
.dual-device-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 36px;
    align-items: center;
    margin-top: 50px;
}

.device-laptop-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    background: #090d16;
}

.device-laptop-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.device-laptop-frame:hover .device-laptop-img {
    transform: scale(1.02);
}

.device-mobile-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 229, 255, 0.18);
    background: #0b0f19;
    max-width: 310px;
    margin: 0 auto;
    animation: floatSlow 6s ease-in-out infinite;
}

.device-mobile-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   5. UPGRADED HIGH-END FINTECH GRADIENT ICONS & 3D ICON WRAPPERS
   -------------------------------------------------------------------------- */
.feature-icon-img-wrap {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 229, 255, 0.15);
    background: #090d16;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-3d-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.feature-card:hover .feature-icon-img-wrap {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 30px rgba(0, 229, 255, 0.35);
    border-color: rgba(0, 229, 255, 0.5);
}

.feature-card:hover .feature-3d-img {
    transform: scale(1.12);
}

.feature-icon-pro,
.why-icon-pro,
.stat-icon-pro {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.feature-icon-pro:hover,
.why-icon-pro:hover,
.stat-icon-pro:hover {
    transform: translateY(-4px) scale(1.06);
}

/* Hero Trust Icons */
.hero-trust-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.hero-trust-item:hover .hero-trust-icon {
    transform: translateY(-3px) scale(1.08);
}

/* Variant 1: Neon Cyan */
.icon-cyan {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.22) 0%, rgba(0, 229, 255, 0.04) 100%);
    border: 1px solid rgba(0, 229, 255, 0.4);
    color: #00e5ff;
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.icon-cyan:hover {
    box-shadow: 0 14px 32px rgba(0, 229, 255, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    border-color: #00e5ff;
}

/* Variant 2: Emerald Green */
.icon-emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.04) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.icon-emerald:hover {
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    border-color: #10b981;
}

/* Variant 3: Neon Purple */
.icon-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0.04) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #a78bfa;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.icon-purple:hover {
    box-shadow: 0 14px 32px rgba(139, 92, 246, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    border-color: #a78bfa;
}

/* Variant 4: Amber Gold */
.icon-gold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.icon-gold:hover {
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    border-color: #f59e0b;
}

.feature-icon-pro svg,
.why-icon-pro svg,
.stat-icon-pro svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.2;
}

/* --------------------------------------------------------------------------
   6. RESPONSIVE OPTIMIZATIONS (MOBILE & TABLET)
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .terminal-showcase-header h2 {
        font-size: 32px;
    }

    .terminal-glass-card {
        transform: none !important;
    }

    .terminal-mockup-body {
        grid-template-columns: 1fr;
    }

    .terminal-order-panel {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .floating-chip-profit,
    .floating-chip-latency,
    .floating-chip-payout {
        display: none;
    }

    .dual-device-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .terminal-showcase-section {
        padding: 60px 0 80px;
    }

    .terminal-showcase-header h2 {
        font-size: 26px;
    }

    .terminal-topbar-tabs {
        display: none;
    }
}
