* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark theme matching logo */
    --bg-primary: #0a0b0d;
    --bg-secondary: #12151a;
    --bg-card: #1a1d23;
    --bg-hover: #22262e;
    
    /* Cyan accent colors from logo */
    --accent: #00d4ff;
    --accent-light: #4de5ff;
    --accent-dark: #0099cc;
    --accent-glow: rgba(0, 212, 255, 0.2);
    
    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #a8b2c3;
    --text-muted: #6b7280;
    
    /* UI elements */
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.3);
    
    /* INCREASED NAV HEIGHT FOR LOGO */
    --nav-height: 90px;
}

/* Base */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: #000000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: #000000;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* UPDATED LOGO STYLING */
.nav-logo-img {
    height: 70px; /* Increased size for the new logo */
    width: auto;
    display: block;
    /* This removes the black box background of the JPEG when on dark bg */
    mix-blend-mode: screen;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--nav-height) 0 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.vol-surface {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    padding: 0 40px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-light);
    margin-bottom: 40px;
}

.hero-title {
    font-size: clamp(42px, 7vw, 80px);
    font-weight: 200;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-line {
    display: block;
    animation: fadeUp 1s ease forwards;
}

.hero-line:nth-child(2) {
    animation-delay: 0.2s;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
    animation: fadeUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    animation: fadeUp 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 18px;
    font-weight: 400;
    color: var(--accent-light);
    font-family: 'JetBrains Mono', monospace;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Metrics Section */
.metrics {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.metrics-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.metrics-header {
    text-align: center;
    margin-bottom: 60px;
}

.metrics-header h2 {
    font-size: 48px;
    font-weight: 200;
    margin-bottom: 20px;
}

.metrics-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: stretch;
}

.metric-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 240px;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

/* SVG Styling for Icons */
.metric-icon, .strategy-icon, .edge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    height: 48px;
    width: 100%;
}

.metric-icon svg, .edge-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
}

.metric-value {
    font-size: 36px;
    font-weight: 300;
    color: var(--accent-light);
    margin-bottom: 12px;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.2;
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 8px;
    min-height: 20px;
}

.metric-detail {
    font-size: 13px;
    color: var(--text-muted);
    min-height: 18px;
}

/* Strategies Section */
.strategies {
    padding: 100px 0;
    background: var(--bg-primary);
}

.strategies-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 200;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.strategy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.strategy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Flex alignment properties */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-dark);
}

.strategy-card:hover::before {
    transform: scaleX(1);
}

.strategy-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Strategy Icon Specifics */
.strategy-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-glow);
    border: 2px solid var(--accent);
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-light);
    /* Reset margin for this specific container context */
    margin-bottom: 0; 
}

.strategy-card h3 {
    font-size: 24px;
    font-weight: 400;
}

.strategy-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
    /* Forces description to take up available space, pushing footer down */
    flex-grow: 1;
}

.strategy-specs {
    display: grid;
    /* Changed to 2 columns for symmetry after removing signals */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    margin-top: auto;
}

.spec {
    text-align: center;
}

.spec-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.spec-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-light);
    font-family: 'JetBrains Mono', monospace;
}

.strategy-performance {
    height: 150px;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 10px;
}

.strategy-chart {
    width: 100%;
    height: 100%;
}

/* Strategy Status Indicators */
.strategy-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.active {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.status-indicator.testing {
    background: #ffaa00;
    box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Edge Section */
.edge {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.edge-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.edge-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.edge-text h2 {
    font-size: 48px;
    font-weight: 200;
    margin-bottom: 30px;
}

.edge-lead {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.7;
}

.edge-points {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.edge-point {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.edge-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Ensure Edge icons are sized correctly */
.edge-icon svg {
    width: 24px;
    height: 24px;
}

.edge-detail h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--accent-light);
}

.edge-detail {
    flex: 1;
}

.edge-detail p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tech-stack {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
}

.tech-stack h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--accent-light);
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tech-item {
    padding: 12px 20px;
    padding-right: 50px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-item.active {
    background: var(--bg-secondary);
    border-left: 3px solid #00ff88;
    color: var(--text-primary);
    position: relative;
}

.tech-item.active::after {
    content: '\2713';
    position: absolute;
    right: 20px;
    color: #00ff88;
    font-weight: 600;
}

.tech-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    padding-left: 25px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.system-status.online {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.system-status.offline {
    background: rgba(255, 76, 76, 0.08);
    border-color: rgba(255, 76, 76, 0.3);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6b7280;
}

.system-status.online .status-dot {
    background: #00ff88;
    animation: statusPulse 2s infinite;
}

.system-status.offline .status-dot {
    background: #ff4c4c;
    animation: none;
    box-shadow: none;
}

@keyframes statusPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0);
    }
}

.system-status span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.system-status.online span {
    color: #00ff88;
}

.system-status.offline span {
    color: #ff8585;
}

/* Connect Section */
.connect {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.connect-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.connect-content h2 {
    font-size: 48px;
    font-weight: 200;
    margin-bottom: 20px;
}

.connect-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.fund-terms {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 50px;
    margin-bottom: 50px;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.term {
    text-align: center;
}

.term-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.term-value {
    font-size: 18px;
    font-weight: 400;
    color: var(--accent-light);
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.cta-primary,
.cta-secondary {
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cta-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border: 2px solid var(--accent);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.cta-secondary {
    background: transparent;
    color: var(--accent-light);
    border: 2px solid var(--accent);
}

.cta-secondary:hover {
    background: var(--accent-glow);
}

.disclaimer {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 40px; /* Footer logo can remain smaller */
    /* Apply mix-blend-mode to footer logo as well */
    mix-blend-mode: screen; 
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a,
.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    align-items: center;
}

.social-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 12px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
    .edge-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .strategy-cards {
        grid-template-columns: 1fr;
    }
    
    .strategy-specs {
        grid-template-columns: 1fr;
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
/* Sticky stock tracker */
.stock-tracker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 11, 13, 0.98);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
}

.market-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    padding: 6px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.market-status-label {
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.market-status.open {
    color: #00ff88;
}

.market-status.closed {
    color: #ff8585;
}

.stock-tracker-inner {
    position: relative;
    width: 100%;
    padding: 10px 0;
    overflow: hidden;
}

.stock-tracker-inner::before,
.stock-tracker-inner::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
    z-index: 1;
}

.stock-tracker-inner::before {
    left: 0;
    background: linear-gradient(90deg, rgba(10,11,13,0.98), rgba(10,11,13,0));
}

.stock-tracker-inner::after {
    right: 0;
    background: linear-gradient(270deg, rgba(10,11,13,0.98), rgba(10,11,13,0));
}

.stock-ticker-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 40px;
    padding: 0 24px;
    min-width: 220%;
    animation: ticker-scroll 20s linear infinite;
    will-change: transform;
}

.stock-ticker-track:hover {
    animation-play-state: paused;
}

.stock-ticker {
    display: flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.ticker-symbol {
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 1px;
}

.ticker-price {
    font-weight: 400;
    min-width: 70px;
}

.ticker-change {
    font-weight: 500;
}

.ticker-change.positive {
    color: #00ff88;
}

.ticker-change.negative {
    color: #ff4c4c;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Ensure page content isn't hidden behind tracker */
body {
    padding-bottom: 56px;
}

/* Order flow canvas should not exceed viewport width on mobile */
.order-flow {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 640px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .stock-tracker-inner {
        padding: 6px 0;
    }
    .stock-ticker {
        font-size: 11px;
    }
    .stock-ticker-track {
        gap: 24px;
        animation-duration: 28s;
    }

    .edge-point {
        flex-direction: column;
        align-items: flex-start;
    }

    .edge-icon {
        margin-bottom: 10px;
    }

    .market-status {
        font-size: 11px;
        padding: 6px 12px;
    }
}