:root {
    --bg-color: #000000;
    --surface-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-red: #ff0033;
    --accent-red-dim: #8a001c;
    --accent-glow: rgba(255, 0, 51, 0.3);
    --border-color: #333;
    --font-main: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

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

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

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-red {
    color: var(--accent-red);
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 32px;
    width: auto;
}

.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-primary {
    background-color: var(--accent-red);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: 1px solid var(--accent-red);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: transparent;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    background: radial-gradient(circle at center, #1a0005 0%, #000000 70%);
}

.hero-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 650px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper {
    margin-bottom: 2rem;
    /* Removed float animation from logo wrapper to keep layout stable */
    display: inline-block;
}

.hero-logo {
    height: 80px; /* Smaller logo since it's aligned left */
    width: auto;
    filter: drop-shadow(0 0 30px rgba(255, 0, 51, 0.2));
}

.headline {
    font-size: 5rem; /* Larger headline */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.subheadline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-start; /* Left align buttons */
}

/* Code Demo Window - Adjusted for Hero */
.code-window {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 600px; /* Limit width */
    animation: float 6s ease-in-out infinite; /* Apply float to the code window instead */
}

/* Mobile Responsiveness for Hero */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column-reverse; /* Put visual on top or bottom? Let's stack standard text-first */
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-group {
        justify-content: center;
    }

    .headline {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .headline { font-size: 2.5rem; }
    .hero-logo { height: 60px; }
    .nav-links { display: none; }
}

/* Code Demo */
.section {
    padding: 6rem 5%;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
}

.code-window {
    background: #0f0f0f;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 800px;
    margin: 0 auto;
}

.window-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #333;
}

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

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.filename {
    margin-left: 10px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #888;
}

pre {
    padding: 2rem;
    overflow-x: auto;
}

code {
    font-family: var(--font-code);
    font-size: 1rem;
    color: #e0e0e0;
}

/* Syntax Highlighting */
.keyword { color: #ff79c6; }
.variable { color: #f8f8f2; }
.function { color: #8be9fd; }
.string { color: #f1fa8c; }
.number { color: #bd93f9; }
.builtin { color: var(--accent-red); font-weight: bold; }
.key { color: #ffb86c; }

/* Features */
.features-bg {
    background-color: #050505;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red-dim);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Footer */
.footer {
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid #222;
    color: #666;
}

/* Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
    .headline { font-size: 2.5rem; }
    .hero-logo { height: 100px; }
    .nav-links { display: none; } /* Mobile menu simplified for now */
}
