/* Palette: Dark Navy, Electric Blue, Magenta, White */
:root {
    --bg: #0F172A;
    --card: #1E293B;
    --primary: #3B82F6;
    --secondary: #ec4899;
    --text: #F1F5F9;
    --text-dim: #94A3B8;
    
    --grad: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effect */
.network-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.1), transparent 40%);
    z-index: -1;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Header */
.lab-header { padding: 20px 0; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05); }
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--text); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; }

.net-nav a { margin-left: 30px; font-weight: 500; color: var(--text-dim); }
.net-nav a:hover, .net-nav a.active { color: var(--primary); }

.btn-glow { border: 1px solid var(--primary); color: var(--primary); padding: 8px 20px; border-radius: 50px; font-weight: 600; font-size: 0.9rem; margin-left: 20px; transition: 0.3s; }
.btn-glow:hover { box-shadow: 0 0 15px rgba(59, 130, 246, 0.5); background: var(--primary); color: var(--text); }

.mobile-dots { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; margin-left: 20px; }

/* Mobile Layer */
.mobile-layer { position: fixed; inset: 0; background: var(--bg); z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: 0.3s; }
.mobile-layer.active { opacity: 1; pointer-events: all; }
.close-layer { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }
.mobile-layer a { font-family: var(--font-head); font-size: 2rem; margin: 15px 0; font-weight: 700; }

@media (max-width: 900px) {
    .net-nav, .btn-glow { display: none; }
    .mobile-dots { display: block; }
}

/* Hero */
.hero-node { min-height: 80vh; display: flex; align-items: center; padding: 60px 0; }
.hero-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }

.status-badge { background: rgba(59, 130, 246, 0.1); color: var(--primary); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: inline-block; margin-bottom: 20px; }
.hero-content h1 { font-family: var(--font-head); font-size: 4rem; line-height: 1.1; margin-bottom: 25px; }
.hero-content p { font-size: 1.2rem; color: var(--text-dim); margin-bottom: 40px; max-width: 500px; }

.cta-row { display: flex; gap: 20px; }
.btn-primary { background: var(--primary); color: var(--text); padding: 15px 35px; border-radius: 8px; font-weight: 600; border: none; cursor: pointer; transition: 0.3s; }
.btn-primary:hover { background: #2563eb; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.05); color: var(--text); padding: 15px 35px; border-radius: 8px; font-weight: 600; transition: 0.3s; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* Node Animation */
.node-graph { position: relative; width: 400px; height: 400px; margin: 0 auto; }
.node { width: 20px; height: 20px; background: var(--text); border-radius: 50%; position: absolute; z-index: 2; box-shadow: 0 0 20px var(--primary); }
.n1 { top: 20%; left: 20%; background: var(--primary); }
.n2 { top: 70%; left: 30%; background: var(--secondary); }
.n3 { top: 40%; left: 80%; background: #fff; }
.n4 { top: 80%; left: 70%; background: var(--primary); }
.connection { position: absolute; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); opacity: 0.5; transform-origin: left; z-index: 1; }
.c1 { top: 22%; left: 22%; width: 200px; transform: rotate(45deg); }
.c2 { top: 72%; left: 32%; width: 180px; transform: rotate(-15deg); }
.c3 { top: 42%; left: 82%; width: 150px; transform: rotate(110deg); }

/* Stats Ticker */
.stats-ticker { background: rgba(255,255,255,0.03); border-top: 1px solid rgba(255,255,255,0.05); padding: 30px 0; margin-top: 50px; }
.stats-flex { display: flex; justify-content: space-around; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.5rem; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 0.8rem; letter-spacing: 2px; color: var(--text-dim); }

/* Features */
.section-header h2 { font-family: var(--font-head); font-size: 2.5rem; margin-bottom: 10px; }
.section-header p { color: var(--text-dim); }
.center { text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.feature-card { background: var(--card); padding: 40px 30px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.feature-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.icon-circle { width: 60px; height: 60px; background: rgba(59, 130, 246, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 15px; font-family: var(--font-head); }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; }

/* Community */
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.comm-text h1 { font-family: var(--font-head); font-size: 3rem; margin-bottom: 20px; }
.gradient-line { width: 100px; height: 4px; background: var(--grad); margin-bottom: 30px; border-radius: 2px; }
.member-types { margin-top: 40px; display: grid; gap: 20px; }
.type { border-left: 3px solid var(--primary); padding-left: 20px; }
.type h4 { font-family: var(--font-head); margin-bottom: 5px; color: var(--text); }
.type p { color: var(--text-dim); font-size: 0.9rem; }

/* Avatar Cloud (Visual) */
.avatar-cloud { position: relative; width: 100%; height: 400px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: #334155; position: absolute; border: 2px solid var(--bg); }
.a1 { top: 10%; left: 20%; background-image: url('https://images.pexels.com/photos/220453/pexels-photo-220453.jpeg?auto=compress&cs=tinysrgb&w=100'); background-size: cover; }
.a2 { top: 50%; left: 50%; width: 80px; height: 80px; background-image: url('https://images.pexels.com/photos/774909/pexels-photo-774909.jpeg?auto=compress&cs=tinysrgb&w=100'); background-size: cover; z-index: 2; box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
.a3 { top: 20%; left: 70%; background-image: url('https://images.pexels.com/photos/2379004/pexels-photo-2379004.jpeg?auto=compress&cs=tinysrgb&w=100'); background-size: cover; }
.a4 { top: 70%; left: 20%; background-image: url('https://images.pexels.com/photos/1239291/pexels-photo-1239291.jpeg?auto=compress&cs=tinysrgb&w=100'); background-size: cover; }
.a5 { top: 80%; left: 80%; background-image: url('https://images.pexels.com/photos/1065084/pexels-photo-1065084.jpeg?auto=compress&cs=tinysrgb&w=100'); background-size: cover; }

/* Events List */
.events-list { display: flex; flex-direction: column; gap: 20px; max-width: 800px; margin: 0 auto; }
.event-row { background: var(--card); padding: 30px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,0.05); transition: 0.3s; }
.event-row:hover { border-color: var(--secondary); background: rgba(30, 41, 59, 0.8); }
.e-date { text-align: center; margin-right: 30px; color: var(--primary); }
.e-date .day { display: block; font-size: 1.8rem; font-weight: 700; line-height: 1; font-family: var(--font-head); }
.e-date .month { font-size: 0.8rem; font-weight: 600; }
.e-details { flex: 1; }
.tag { font-size: 0.7rem; background: rgba(255,255,255,0.1); padding: 3px 8px; border-radius: 4px; color: var(--text-dim); }
.e-details h3 { margin: 5px 0; font-family: var(--font-head); }
.e-details p { color: var(--text-dim); font-size: 0.9rem; }
.btn-sm { font-size: 0.8rem; font-weight: 600; color: var(--secondary); border: 1px solid var(--secondary); padding: 5px 15px; border-radius: 20px; }
.btn-sm:hover { background: var(--secondary); color: var(--text); }

/* Contact */
.login-card { max-width: 600px; margin: 0 auto; background: var(--card); padding: 50px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.card-header { text-align: center; margin-bottom: 40px; }
.card-header h2 { font-family: var(--font-head); margin-bottom: 10px; }

.dark-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-wrap { margin-bottom: 20px; }
.input-wrap label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-dim); }
.input-wrap input, .input-wrap select { width: 100%; background: var(--bg); border: 1px solid rgba(255,255,255,0.1); padding: 12px; border-radius: 8px; color: var(--text); }
.input-wrap input:focus, .input-wrap select:focus { border-color: var(--primary); outline: none; }
.full { width: 100%; }
.form-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-dim); }
.form-footer a { color: var(--primary); text-decoration: underline; }

/* Legal */
.legal-content { max-width: 800px; margin: 0 auto; color: var(--text-dim); }
.legal-content h1 { color: var(--text); font-family: var(--font-head); }

/* Footer */
.lab-footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 60px 0 20px; margin-top: 100px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.f-brand h4 { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; margin-bottom: 5px; }
.f-links a { margin-left: 20px; color: var(--text-dim); font-size: 0.9rem; }
.f-links a:hover { color: var(--text); }
.copyright { text-align: center; font-size: 0.8rem; color: #666; }

@media (max-width: 900px) {
    .hero-split, .grid-3, .community-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .stats-flex { flex-direction: column; gap: 20px; }
    .dark-form .form-row { grid-template-columns: 1fr; }
    .event-row { flex-direction: column; text-align: center; gap: 15px; }
    .e-date { margin-right: 0; margin-bottom: 10px; }
    .btn-sm { width: 100%; text-align: center; display: block; }
}