@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #060608;
    --bg-card: rgba(13, 13, 18, 0.4);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 242, 254, 0.3);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Neon accents */
    --accent-quant: #00f2fe;
    --accent-quant-glow: rgba(0, 242, 254, 0.4);
    --accent-green: #00e676;
    --accent-green-glow: rgba(0, 230, 118, 0.3);
    --accent-ev: #3b82f6;
    --accent-ev-glow: rgba(59, 130, 246, 0.4);
    --accent-eng: #f59e0b;
    --accent-eng-glow: rgba(245, 158, 11, 0.4);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom premium cursor active */
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-quant);
}

/* Interactive custom cursor */
.custom-cursor {
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out, border-color 0.3s, background-color 0.3s;
}

/* Interactive elements hovering */
.hovering .custom-cursor {
    width: 24px;
    height: 24px;
    background: var(--accent-quant);
    mix-blend-mode: normal;
}
.hovering .custom-cursor-follower {
    width: 56px;
    height: 56px;
    border-color: var(--accent-quant);
    background: rgba(0, 242, 254, 0.05);
}

/* Interactive Canvas Background */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.5s ease;
}

/* Global Content Layer */
.content-wrapper {
    position: relative;
    z-index: 2;
}

/* Glassmorphic Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    background: rgba(6, 6, 8, 0.5);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-container img {
    height: 35px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

nav a:hover, nav a.active {
    color: var(--accent-quant);
    text-shadow: 0 0 10px var(--accent-quant-glow);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    position: relative;
}

.glow-orb {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-quant-glow) 0%, rgba(0,0,0,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.5;
    z-index: -1;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-quant);
    margin-bottom: 1.5rem;
    animation: pulse 3s infinite;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 7.5rem);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.3);
    background: var(--accent-quant);
    color: #000;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: var(--accent-quant);
    color: var(--accent-quant);
    box-shadow: 0 0 20px var(--accent-quant-glow);
    transform: translateY(-3px);
}

/* Sections Global Styling */
section {
    padding: 10rem 6%;
    position: relative;
}

.section-header {
    margin-bottom: 6rem;
}

.section-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -1px;
}

/* Grid & Glass Cards */
.interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 242, 254, 0.05);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    display: block;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.card-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Evolutionary Journey Section (Horizontal/Vertical Timeline) */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-eng) 0%, var(--accent-ev) 50%, var(--accent-quant) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 3rem;
    position: relative;
    margin-bottom: 8rem;
    width: 50%;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 3rem;
    padding-right: 0;
    margin-left: 50%;
}

.timeline-badge {
    position: absolute;
    right: -15px;
    top: 2rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #000;
    border: 2px solid var(--accent-eng);
    box-shadow: 0 0 15px var(--accent-eng-glow);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.timeline-item:nth-child(2) .timeline-badge {
    border-color: var(--accent-ev);
    box-shadow: 0 0 15px var(--accent-ev-glow);
}

.timeline-item:nth-child(3) .timeline-badge {
    border-color: var(--accent-quant);
    box-shadow: 0 0 15px var(--accent-quant-glow);
}

.timeline-item:nth-child(even) .timeline-badge {
    left: -15px;
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-card {
    background: rgba(13, 13, 18, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-card {
    border-color: var(--border-hover);
    transform: scale(1.02);
}

/* Quant Division Details */
.quant-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.quant-visual {
    position: relative;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #000;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
}

.trading-feed-mockup {
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent-green);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: hidden;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
    color: var(--text-primary);
}

.feed-row {
    display: flex;
    justify-content: space-between;
    animation: scan-up 20s linear infinite;
}

.feed-row.red {
    color: #ef4444;
}

/* Order flow specific visualization */
.order-flow-visual {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 8, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.quant-visual:hover .order-flow-visual {
    opacity: 1;
}

.flow-bar {
    width: 80%;
    height: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.flow-fill-buy {
    height: 100%;
    width: 65%;
    background: linear-gradient(to right, #00f2fe, #00e676);
}

.flow-fill-sell {
    height: 100%;
    width: 35%;
    background: #ef4444;
}

/* Image styling for sections */
.showcase-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.showcase-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.showcase-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Trader network segment styling */
.trader-net-badge {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid var(--accent-quant-glow);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    color: var(--accent-quant);
    font-size: 0.8rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Footer Section */
footer {
    padding: 5rem 6% 3rem;
    border-top: 1px solid var(--border-color);
    background: rgba(4, 4, 6, 0.8);
    position: relative;
    z-index: 100;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 45px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent-quant);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.03);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

@keyframes scan-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-300px); }
}

/* Responsiveness */
@media (max-width: 1024px) {
    .quant-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .timeline-line {
        left: 2rem;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 5rem;
        padding-right: 0;
        margin-bottom: 5rem;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 5rem;
    }
    
    .timeline-badge {
        left: calc(2rem - 15px) !important;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.2rem 5%;
    }
    
    nav {
        display: none; /* Can add simplified trigger for pure dynamic layout */
    }
    
    .hero-section {
        padding: 0 5%;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Custom CSS Helpers (Removing inline styles) */
.quant-title-highlight {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}
.quant-desc-highlight {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.grid-half {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
}
.glass-card-compact {
    padding: 1.5rem !important;
}
.color-quant {
    color: var(--accent-quant) !important;
    margin-bottom: 0.5rem !important;
}
.color-green {
    color: var(--accent-green) !important;
    margin-bottom: 0.5rem !important;
}
.text-small {
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
}
.feed-active-title {
    color: #fff !important;
    font-family: var(--font-heading) !important;
}
.feed-active-desc {
    font-size: 0.8rem !important;
    color: var(--text-secondary) !important;
}
.card-span-fit {
    grid-column: span 1 !important;
    overflow: hidden !important;
    padding: 0 !important;
}
.image-wrapper-full {
    height: 100% !important;
}

