/* ===== MODERN PROFESSIONAL TRADING PLATFORM STYLES ===== */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* TradingView-Inspired Color Palette */
    --trading-bg-primary: #0c0e16;
    --trading-bg-secondary: #131722;
    --trading-bg-tertiary: #1e222d;
    --trading-surface: #2a2e39;
    --trading-surface-hover: #353a45;
    --trading-border: #363a45;
    --trading-border-light: #434651;
    --trading-border-accent: #5d606b;
    
    /* Typography */
    --trading-text-primary: #d1d4dc;
    --trading-text-secondary: #787b86;
    --trading-text-muted: #565b69;
    --trading-text-accent: #ffffff;
    
    /* TradingView Color Scheme */
    --trading-green: #26a69a;      /* TradingView green for bullish/up */
    --trading-red: #ef5350;        /* TradingView red for bearish/down */
    --trading-blue: #2196f3;       /* Primary accent */
    --trading-orange: #ff9800;     /* Warning/hold */
    --trading-purple: #9c27b0;     /* Secondary accent */
    --trading-yellow: #ffeb3b;     /* Attention/highlight */
    
    /* Semantic Colors */
    --color-success: var(--trading-green);
    --color-danger: var(--trading-red);
    --color-warning: var(--trading-orange);
    --color-info: var(--trading-blue);
    --color-primary: var(--trading-blue);
    
    /* Chart Colors (TradingView Style) */
    --chart-bullish: var(--trading-green);
    --chart-bearish: var(--trading-red);
    --chart-volume-up: rgba(38, 166, 154, 0.6);
    --chart-volume-down: rgba(239, 83, 80, 0.6);
    --chart-grid: #363a45;
    --chart-axis: #787b86;
    
    /* Legacy Support */
    --primary-blue: var(--trading-blue);
    --secondary-blue: #42a5f5;
    --accent-purple: var(--trading-purple);
    --success-green: var(--trading-green);
    --warning-orange: var(--trading-orange);
    --error-red: var(--trading-red);
    --dark-bg: var(--trading-bg-primary);
    --card-bg: var(--trading-surface);
    --border-color: var(--trading-border);
    --text-primary: var(--trading-text-primary);
    --text-secondary: var(--trading-text-secondary);
    --text-muted: var(--trading-text-muted);
    
    /* Modern Gradients */
    --gradient-primary: linear-gradient(135deg, var(--trading-blue) 0%, #42a5f5 100%);
    --gradient-success: linear-gradient(135deg, var(--trading-green) 0%, #4db6ac 100%);
    --gradient-danger: linear-gradient(135deg, var(--trading-red) 0%, #e57373 100%);
    --gradient-surface: linear-gradient(145deg, var(--trading-surface) 0%, var(--trading-surface-hover) 100%);
    
    /* Advanced Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(33, 150, 243, 0.3);
    
    /* Glassmorphism */
    --glass-bg: rgba(42, 46, 57, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-backdrop: blur(20px);
    
    /* Animation Variables */
    --transition-fast: 0.15s ease-out;
    --transition-medium: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Spacing System */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius System */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
}

/* ===== MODERN BASE STYLES ===== */

html {
    font-size: 14px; /* Reduced from 16px for better mobile fit */
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--trading-bg-primary);
    color: var(--trading-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--trading-text-accent);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: var(--space-4);
    color: var(--trading-text-secondary);
}

/* Modern Utility Classes */
.text-primary { color: var(--trading-text-primary) !important; }
.text-secondary { color: var(--trading-text-secondary) !important; }
.text-muted { color: var(--trading-text-muted) !important; }
.text-accent { color: var(--trading-text-accent) !important; }
.text-success { color: var(--color-success) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-info { color: var(--color-info) !important; }

.bg-surface { background: var(--trading-surface) !important; }
.bg-surface-hover { background: var(--trading-surface-hover) !important; }

.border-radius-sm { border-radius: var(--radius-sm) !important; }
.border-radius-md { border-radius: var(--radius-md) !important; }
.border-radius-lg { border-radius: var(--radius-lg) !important; }
.border-radius-xl { border-radius: var(--radius-xl) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* Modern Transitions */
.transition-all { transition: all var(--transition-medium) !important; }
.transition-fast { transition: all var(--transition-fast) !important; }
.transition-slow { transition: all var(--transition-slow) !important; }

/* Modern Focus States */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--trading-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--trading-border);
    border-radius: var(--radius-full);
    border: 2px solid var(--trading-bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--trading-border-light);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--trading-border) var(--trading-bg-secondary);
}

/* ===== MODERN NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all var(--transition-medium);
    height: 70px;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(12, 14, 22, 0.98);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--trading-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo, .brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--trading-text-accent);
    text-decoration: none;
    transition: all var(--transition-medium);
}

.logo:hover, .brand:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.logo:hover .logo-icon::before {
    transform: translateX(100%);
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

/* Hamburger toggle — hidden on desktop, visible on mobile */
.hamburger {
    display: none;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    padding: 6px 10px;
    line-height: 1;
    transition: background 0.2s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
    padding: 10px 20px;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover {
    color: #42a5f5;
    background: rgba(66, 165, 245, 0.1);
}

.nav-link.active {
    background: #42a5f5;
    color: white;
    font-weight: 500;
}

.nav-link-primary {
    background: var(--gradient-primary);
    color: white !important;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-link-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.nav-link-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-link-primary:hover::before {
    transform: translateX(100%);
}

.nav-link-primary:active {
    transform: translateY(0);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-container {
        padding: 0 2rem;
        gap: 4rem;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 1.75rem; /* Start smaller for mobile */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-blue);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--secondary-blue);
    color: var(--secondary-blue);
}

/* ===== HERO VISUAL ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard-preview {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
}

.preview-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.preview-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ef4444; }
.control.yellow { background: #f59e0b; }
.control.green { background: #10b981; }

.preview-title {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.preview-content {
    padding: 1.5rem;
    position: relative;
}

.chart-placeholder {
    height: 250px;
    position: relative;
    margin-bottom: 1rem;
}

.metrics-overlay {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.metric-value {
    font-weight: 700;
    font-size: 1rem;
}

.metric-value.up { color: var(--success-green); }
.metric-value.down { color: var(--error-red); }

/* ===== FEATURES SECTION ===== */
.features {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    }
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-blue);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-highlight {
    display: flex;
    justify-content: flex-end;
}

.highlight-badge {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ===== PLATFORM PREVIEW ===== */
.platform-preview {
    padding: 6rem 0;
}

.preview-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.preview-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.preview-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.preview-features {
    margin-bottom: 2rem;
}

.preview-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.preview-feature i {
    color: var(--success-green);
    font-size: 1.125rem;
}

.platform-mockup {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.mockup-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mockup-nav {
    display: flex;
    gap: 1rem;
}

.nav-item {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item.active {
    background: var(--gradient-primary);
    color: white;
}

.mockup-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.mock-chart {
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: 8px;
    position: relative;
}

.mock-chart::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 60%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 40"><path d="M0,35 Q25,5 50,20 T100,10" stroke="%2300d4ff" stroke-width="2" fill="none"/></svg>') no-repeat center;
    background-size: 90% 80%;
}

.mock-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mock-stock {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.mock-symbol {
    font-weight: 600;
}

.mock-price {
    color: var(--text-secondary);
}

.mock-change.positive { color: var(--success-green); }
.mock-change.negative { color: var(--error-red); }

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient-primary);
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-actions .btn-primary {
    background: white;
    color: var(--primary-blue);
}

.cta-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
}

.cta-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-disclaimer {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.disclaimer-box {
    padding: 1.5rem;
}

.disclaimer-box h4 {
    color: #fca5a5;
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-box p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.disclaimer-box strong {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-container,
    .preview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Text first, visual below on mobile */
    .hero-content { order: 1; }
    .hero-visual  { order: 2; }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Navigation — hamburger layout */
    .navbar {
        height: auto;
        padding: 0;
        flex-wrap: wrap;
    }

    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 16px;
        align-items: center;
    }

    .logo {
        font-size: 1.125rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Hide links by default; shown when .open is toggled */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 4px;
        padding: 8px 0 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 14px;
        width: 100%;
        border-radius: 8px;
    }

    .nav-link-primary {
        padding: 10px 14px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    /* Show hamburger button */
    .hamburger {
        display: flex;
    }
    
    .hero {
        padding-top: 60px;
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .stat-card {
        width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mockup-content {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }

    .nav-container {
        padding: 8px 12px;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .nav-link {
        font-size: 13px;
    }
    
    .hero-container {
        padding: 0 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .features-container,
    .preview-container,
    .cta-container,
    .footer-container {
        padding: 0 1rem;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .feature-title {
        font-size: 1.125rem;
    }

    /* Hide date sidebar on mobile */
    .date-sidebar {
        display: none;
    }
}

/* ===== DATE NAVIGATION SIDEBAR ===== */
.date-sidebar {
    width: 240px;
    background: linear-gradient(135deg, var(--trading-bg-secondary) 0%, var(--trading-bg-tertiary) 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--trading-border);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    flex-shrink: 0;
}

.date-sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--trading-border);
    color: var(--trading-text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.date-sidebar-header i {
    color: var(--trading-blue);
    font-size: 1.2rem;
}

.date-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-item {
    background: var(--trading-surface);
    border: 1px solid var(--trading-border);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.date-item:hover {
    background: var(--trading-surface-hover);
    border-color: var(--trading-blue);
    transform: translateX(4px);
}

.date-item.active {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(33, 150, 243, 0.1) 100%);
    border-color: var(--trading-blue);
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}

.date-item-date {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--trading-text-primary);
}

.date-item-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--trading-text-secondary);
}

.date-item-stocks {
    display: flex;
    align-items: center;
    gap: 4px;
}

.date-item-stocks i {
    font-size: 0.75rem;
}

.date-item-badge {
    background: var(--trading-green);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.date-item-badge.empty {
    background: var(--trading-text-muted);
}

/* Scrollbar for date sidebar */
.date-sidebar::-webkit-scrollbar {
    width: 6px;
}

.date-sidebar::-webkit-scrollbar-track {
    background: var(--trading-bg-secondary);
    border-radius: 3px;
}

.date-sidebar::-webkit-scrollbar-thumb {
    background: var(--trading-border);
    border-radius: 3px;
}

.date-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--trading-border-light);
}