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

:root {
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --secondary-color: #ff6b35;
    --accent-color: #00d4aa;
    --dark-bg: #0a0e1a;
    --dark-surface: #1a1f2e;
    --dark-card: #252b3d;
    --text-primary: #ffffff;
    --text-secondary: #a0a6b8;
    --text-muted: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --gradient-1: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-3: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.powered-by {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.deriv-icon {
    width: 16px;
    height: 16px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.cta-button, .btn-primary {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.cta-button:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
                var(--dark-bg);
    padding-top: 100px;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(0, 102, 204, 0.1);
}

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

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
}

.trading-interface {
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-container {
    height: 200px;
    background: var(--dark-card);
    border-radius: 8px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

#tradingChart {
    width: 100%;
    height: 100%;
}

.trading-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.panel {
    background: var(--dark-card);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

/* Sections */
.features, .advanced-trading, .automated-trading, .deriv-section, .cta-section {
    padding: 5rem 0;
}

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

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

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

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

.feature-card {
    background: var(--dark-surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

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

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Advanced Trading & Automation Sections */
.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-content.reverse {
    grid-template-columns: 1fr 1fr;
}

.section-content.reverse .content-visual {
    order: -1;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

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

.features-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.features-list i {
    color: var(--success);
    font-size: 1rem;
}

/* Trading Dashboard */
.trading-dashboard, .automation-dashboard {
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.dashboard-header {
    background: var(--dark-card);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-tabs {
    display: flex;
    gap: 1rem;
}

.tab {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.tab.active {
    background: var(--primary-color);
    color: white;
}

.dashboard-content {
    padding: 1.5rem;
}

.chart-area {
    height: 200px;
    background: var(--dark-bg);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.trading-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.control-group select,
.control-group input {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
}

.trade-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trade-btn.buy {
    background: var(--success);
    color: white;
}

.trade-btn.sell {
    background: var(--danger);
    color: white;
}

/* Automation Dashboard */
.automation-header {
    background: var(--dark-card);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.automation-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
}

.status.active {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--success);
    font-size: 0.875rem;
    font-weight: 500;
}

.status i {
    font-size: 0.5rem;
}

.bot-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--dark-card);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bot-name {
    font-weight: 500;
    color: var(--text-primary);
}

.bot-profit {
    font-size: 0.875rem;
    font-weight: 600;
}

.bot-profit.positive {
    color: var(--success);
}

.bot-status {
    color: var(--primary-color);
    cursor: pointer;
}

.performance-chart {
    height: 120px;
    background: var(--dark-bg);
    margin: 0 1.5rem 1.5rem;
    border-radius: 8px;
}

/* Deriv Section */
.deriv-section {
    background: var(--dark-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.deriv-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.deriv-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.deriv-logo img {
    width: 64px;
    height: 64px;
}

.deriv-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.deriv-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.deriv-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.deriv-feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.deriv-feature span {
    font-weight: 500;
    color: var(--text-primary);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-1);
    text-align: center;
}

.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-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Footer */
.footer {
    background: var(--dark-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
}

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

.footer-brand .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.footer-brand .brand i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.footer-brand .brand span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.link-group a:hover {
    color: var(--primary-color);
}

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

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .container, .nav-container, .hero-container {
        max-width: 1000px;
    }
    .features-grid, .footer-links {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .container, .nav-container, .hero-container {
        max-width: 800px;
    }
    .hero-title, .cta-content h2, .section-header h2, .content-text h2 {
        font-size: 2rem;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .section-content, .section-content.reverse {
        gap: 2rem;
    }
    .dashboard-content, .bot-list {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-content.reverse .content-visual {
        order: 0;
    }
    
    .trading-controls {
        grid-template-columns: 1fr !important;
    }
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .hero-container,
    .features-grid,
    .section-content,
    .section-content.reverse,
    .trading-panels,
    .dashboard-tabs,
    .cta-buttons,
    .footer-content,
    .footer-links,
    .deriv-features {
        flex-direction: column !important;
        display: flex !important;
        gap: 1.5rem !important;
    }
    .hero-content,
    .hero-visual,
    .content-text,
    .content-visual {
        width: 100%;
        max-width: 100%;
    }
    .dashboard-content,
    .bot-list {
        padding: 1rem 0.5rem;
    }
    .panel,
    .feature-card,
    .bot-item {
        width: 100%;
        min-width: 0;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .nav-brand {
        gap: 6px;
    }
    .brand-text {
        font-size: 1.1rem;
    }
    .powered-by {
        font-size: 0.65rem;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .section-header h2, .content-text h2, .cta-content h2 {
        font-size: 1.25rem;
    }
    .features-grid, .footer-links {
        gap: 1rem;
    }
    .panel, .feature-card, .bot-item {
        padding: 0.75rem;
    }
    .dashboard-header, .automation-header {
        padding: 0.5rem 0.75rem;
    }
    .dashboard-content, .bot-list {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .trading-controls {
        grid-template-columns: 1fr;
    }
    
    .deriv-features {
        grid-template-columns: 1fr;
    }
    .btn-primary, .btn-secondary, .btn-outline, .cta-button {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    .large {
        padding: 12px 16px;
        font-size: 1rem;
    }
    .stat-number {
        font-size: 1.2rem;
    }
    .panel i, .feature-icon i, .deriv-feature i {
        font-size: 1.1rem;
    }
    .deriv-logo img {
        width: 40px;
        height: 40px;
    }
}