:root {
    --bg-dark: #030305;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --glass-bg: rgba(15, 15, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-glow: 0 0 15px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Canvas Background */
#network-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at center, #0a0a12 0%, #000000 100%);
}

/* Typography & Utilities */
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    z-index: 10;
}
.logo { font-size: 1.5rem; font-weight: bold; display: flex; align-items: center; gap: 10px; }
.star-icon { text-shadow: 0 0 10px #fff; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-muted); transition: color 0.3s; font-size: 0.9rem; }
.nav-links a:hover { color: var(--text-main); text-shadow: 0 0 8px rgba(255,255,255,0.5); }
.nav-actions { display: flex; gap: 1rem; }

/* Buttons */
.btn-outline, .btn-solid {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: var(--text-main); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.btn-solid { background: #fff; border: none; color: #000; font-weight: 600; box-shadow: 0 0 10px rgba(255,255,255,0.4); }
.btn-solid:hover { box-shadow: var(--neon-glow); }

.btn-neon-large {
    background: #fff;
    color: #000;
    border: none;
    padding: 1.2rem 4rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255,255,255,0.6), inset 0 0 10px rgba(255,255,255,1);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-neon-large:hover {
    box-shadow: 0 0 40px rgba(255,255,255,0.8), inset 0 0 15px #fff;
    transform: scale(1.03);
}

/* Main Container (Centered) */
.hero-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 5;
}

.hero-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
    animation: fadeIn 1.2s ease-out;
}

.ai-badge {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(255,255,255,0.05);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px #fff;
    animation: pulse 2s infinite;
}

.neon-text {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3), 0 0 50px rgba(255,255,255,0.1);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Bottom Features */
.bottom-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 4rem 3rem 4rem;
    z-index: 5;
}
.feature-card { 
    display: flex; 
    align-items: flex-start; 
    gap: 1rem; 
    padding: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 40, 0.6);
    border-color: rgba(255,255,255,0.2);
}
.feature-card .icon { 
    min-width: 40px; height: 40px; 
    border: 1px solid var(--glass-border); 
    border-radius: 10px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.2rem; background: rgba(255,255,255,0.05); 
}
.feature-text h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.feature-text p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-content {
    width: 100%; max-width: 400px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(0) scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(255,255,255,0.05);
}
.modal-overlay.hidden .modal-content { transform: translateY(30px) scale(0.95); }

.close-btn {
    position: absolute; top: 1rem; right: 1.5rem;
    background: none; border: none;
    color: var(--text-muted); font-size: 1.8rem;
    cursor: pointer; transition: color 0.3s;
}
.close-btn:hover { color: #fff; text-shadow: 0 0 10px #fff; }

.modal-content h2 { margin-bottom: 1.5rem; font-size: 1.8rem; text-align: center; }

.input-group { margin-bottom: 1.2rem; }
.input-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.input-group input {
    width: 100%; padding: 0.9rem 1rem;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px; color: #fff; outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.input-group input:focus { border-color: rgba(255,255,255,0.5); box-shadow: 0 0 15px rgba(255,255,255,0.1); }

.form-actions { display: flex; justify-content: space-between; font-size: 0.85rem; margin-top: 1rem; margin-bottom: 1.5rem; color: var(--text-muted); }
.forgot-link { color: var(--text-main); text-decoration: underline; }
.register-prompt { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 1.5rem; }
.register-prompt a { color: var(--text-main); font-weight: bold; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { opacity: 0.5; box-shadow: 0 0 4px #fff; } 50% { opacity: 1; box-shadow: 0 0 12px #fff; } 100% { opacity: 0.5; box-shadow: 0 0 4px #fff; } }

/* Media Queries */
@media (max-width: 992px) {
    .neon-text { font-size: 3.5rem; }
    .navbar { padding: 1rem 2rem; }
    .nav-links { display: none; }
}
@media (max-width: 768px) {
    .neon-text { font-size: 2.5rem; }
    .bottom-features { padding: 0 1.5rem 2rem 1.5rem; }
}