:root {
    --bg-main: #020617;       /* Very dark slate */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --card-bg: rgba(30, 41, 59, 0.5);
    --border: rgba(148, 163, 184, 0.1);
    --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

/* Typography Utilities */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; }
a { text-decoration: none; color: inherit; transition: 0.2s; }

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

/* Navbar */
.navbar {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.8);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}
.brand-icon { color: var(--accent-blue); margin-right: 5px; }

.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.9rem; color: var(--text-secondary); }
.nav-links a:hover { color: var(--text-primary); }

/* Buttons */
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-main);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
}
.btn-primary:hover { background: var(--accent-blue); color: white; }

.btn-secondary {
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 6px;
    color: var(--text-secondary);
}
.btn-secondary:hover { border-color: var(--text-primary); color: var(--text-primary); }

/* Hero Section */
.hero {
    padding: 180px 0 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; }
.subheadline { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 40px auto; }

.badge-pill {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-group { display: flex; gap: 15px; justify-content: center; }

/* Glow Effect Background */
.glow-effect {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(2,6,23,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Features Grid */
.features { padding: 80px 0; border-top: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2rem; margin-bottom: 10px; }
.section-header p { color: var(--text-secondary); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 12px;
    transition: 0.3s;
}
.feature-card:hover { border-color: var(--accent-blue); transform: translateY(-5px); }

.icon-box {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-blue);
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.feature-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Methodology Section */
.methodology { padding: 80px 0; border-top: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.check-list { list-style: none; margin-top: 20px; }
.check-list li { margin-bottom: 15px; padding-left: 20px; position: relative; color: var(--text-secondary); }
.check-list li::before {
    content: "→";
    position: absolute; left: 0; color: var(--accent-purple);
}
.check-list strong { color: var(--text-primary); }

/* Code Block Visual */
.code-block {
    background: #0f172a;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.c-purple { color: #c084fc; }
.c-blue { color: #60a5fa; }
.c-green { color: #4ade80; }

/* Footer */
.footer-content { display: flex; justify-content: space-between; }
.status-dot { display: inline-block; width: 8px; height: 8px; background: #22c55e; border-radius: 50%; margin: 0 5px; }

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .method-grid { grid-template-columns: minmax(0, 1fr); }
    .nav-links { display: none; } /* Simplified for MVP */

    /* Footer Stacked Layout */
    .footer-content {
        flex-direction: column-reverse;
        gap: 20px;
        align-items: flex-start;
    }

    /* Methodology Adjustments */
    .methodology {
        padding: 40px 0;
    }

    /* Code Block Fixes */
    .code-block {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        box-sizing: border-box;
    }
}

/* Signal Badge */
.signal-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 1.875rem;
}
.signal-go { background: rgba(0, 255, 136, 0.15); color: #00ff88; border: 1px solid #00ff88; }
.signal-caution { background: rgba(240, 185, 11, 0.15); color: #f0b90b; border: 1px solid #f0b90b; }
.signal-wait { background: rgba(255, 71, 87, 0.15); color: #ff4757; border: 1px solid #ff4757; }
.signal-closed { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid #475569; }
