:root {
    --bg-color: #111318;
    --surface-color: #1e2024;
    --primary-color: #58a6ff;
    --accent-color: #a2c9ff;
    --text-primary: #e2e2e8;
    --text-secondary: #c0c7d4;
    --mono-font: 'JetBrains Mono', monospace;
    --ui-font: 'Inter', sans-serif;
    --grid-line: rgba(88, 166, 255, 0.05);
}

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

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

/* Background Grid */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

header {
    padding: 2rem 4rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

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

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

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    color: var(--primary-color);
    font-family: var(--mono-font);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtext {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 540px;
}

/* Form */
.waitlist-form {
    display: flex;
    gap: 1rem;
    background: var(--surface-color);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 500px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem;
    color: white;
    font-family: var(--ui-font);
    font-size: 1rem;
    outline: none;
}

button {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
}

button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.meta-info {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
}

.mono {
    font-family: var(--mono-font);
}

/* Visuals */
.hero-visual {
    position: relative;
    height: 500px;
    background: rgba(88, 166, 255, 0.03);
    border: 1px solid rgba(88, 166, 255, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.node-system {
    position: relative;
    width: 300px;
    height: 300px;
}

.node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--surface-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    z-index: 2;
    animation: float 6s infinite ease-in-out;
}

.node-1 { top: 0; left: 120px; animation-delay: 0s; }
.node-2 { top: 120px; left: 0; animation-delay: 1s; }
.node-3 { top: 120px; right: 0; animation-delay: 2s; }
.node-4 { bottom: 0; left: 120px; animation-delay: 3s; }

.connection {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    height: 2px;
    z-index: 1;
    opacity: 0.3;
}

.conn-1 { width: 170px; top: 30px; left: 60px; transform: rotate(45deg); }
.conn-2 { width: 170px; top: 30px; right: 60px; transform: rotate(-45deg); }
.conn-3 { width: 240px; top: 150px; left: 30px; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 8rem;
    padding: 0 2rem;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    h1 { font-size: 3rem; }
    .features { grid-template-columns: 1fr; }
}
