:root {
    --bg-dark: #0a0e17;
    --bg-card: #151a28;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    /* Stock market green/red variables utilized for the logo */
    --accent-green: #00ff88;
    --accent-red: #ff3366;
    --accent-blue: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar Updates */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 14, 23, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    display: flex;
    gap: 6px;
}

/* FX is Red */
.logo-text .fx-text {
    color: var(--accent-red);
}

/* ALGO TRADING is Green */
.logo-text .algo-text {
    color: var(--accent-green);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-green);
}

.btn-primary {
    background: var(--accent-green);
    color: var(--bg-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #00d673;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    z-index: 10;
    background: rgba(10, 14, 23, 0.8);
    padding: 20px;
    border-radius: 8px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent-green);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-primary.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Animated Chart Background */
.chart-container {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    z-index: 1;
    opacity: 0.35;
}

/* Candlestick Base Styles */
.candle {
    position: relative;
    width: 14px;
    display: flex;
    justify-content: center;
    transition: all 0.5s ease-in-out;
}

.wick {
    position: absolute;
    width: 2px;
    height: 100%;
    z-index: 1;
}

.body {
    position: absolute;
    width: 100%;
    border-radius: 2px;
    z-index: 2;
}

.bullish .wick, .bullish .body { background-color: var(--accent-green); }
.bearish .wick, .bearish .body { background-color: var(--accent-red); }

/* Support & Resistance Lines */
.resistance-line, .support-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 10px var(--accent-blue);
    z-index: 0;
    transition: top 1s ease-in-out;
}

.resistance-line span, .support-line span {
    position: absolute;
    right: 20px;
    top: -20px;
    font-size: 0.75rem;
    color: var(--accent-blue);
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Sections */
section {
    padding: 8rem 5%;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-green);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    color: var(--text-muted);
}

.returns-section {
    background: linear-gradient(to right, var(--bg-card), var(--bg-dark));
}

.benefits-list {
    list-style: none;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-list li {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.benefits-list li strong {
    color: var(--text-main);
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 8rem 5% 4rem;
    background: var(--bg-card);
}

footer h2 {
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.copyright {
    margin-top: 4rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none; /* Simple hide for mobile for this example */
    }
    .logo-text {
        font-size: 1rem;
    }
    .logo-img {
        height: 30px;
    }
}