/* FENS Protocol - Global Styles */
:root {
    --fens-bg-dark: #07070a;
    --fens-blue-glow: #00e0ff;
    --fens-green-glow: #00ff7f;
    --fens-text-light: #f5faff;
    --fens-code-bg: #111118;
    --fens-error-red: #ff4560;
    --fens-success-green: #3bff6a;
    --font-family-title: 'Space Mono', monospace;
    --font-family-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family-body);
    background-color: var(--fens-bg-dark);
    color: var(--fens-text-light);
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Starfield & Effects */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.scanline {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.05));
    background-size: 100% 4px;
    opacity: 0.3;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header & Navigation */
header {
    background-color: rgba(7, 7, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 224, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo .pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--fens-green-glow);
    border-radius: 50%;
    animation: pulse-logo 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 10px var(--fens-green-glow);
}

@keyframes pulse-logo {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.logo .logo-text {
    font-family: var(--font-family-title);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #9ca3af;
}

.logo .logo-text span {
    color: var(--fens-text-light);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s;
    font-family: var(--font-family-title);
}

.nav-links a:hover {
    color: var(--fens-green-glow);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--fens-text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(7, 7, 10, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 224, 255, 0.3);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 224, 255, 0.2);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--fens-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}

.mobile-menu-links a {
    color: var(--fens-text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-family: var(--font-family-title);
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s;
}

.mobile-menu-links a:hover {
    color: var(--fens-green-glow);
}

/* Footer */
footer {
    background-color: #111118;
    color: #888;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 224, 255, 0.2);
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--fens-text-light);
    font-family: var(--font-family-title);
    font-size: 0.875rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.875rem;
}

.footer-section a:hover {
    color: var(--fens-green-glow);
}

.footer-brand {
    margin-bottom: 15px;
}

.footer-brand .logo-text {
    font-family: var(--font-family-title);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #9ca3af;
}

.footer-brand .logo-text span {
    color: var(--fens-text-light);
}

.footer-tagline {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 224, 255, 0.1);
    border: 1px solid rgba(0, 224, 255, 0.3);
    color: var(--fens-blue-glow);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--fens-green-glow);
    border-color: var(--fens-green-glow);
    color: var(--fens-bg-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: #666;
}

.footer-bottom a {
    color: var(--fens-blue-glow);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--fens-green-glow);
}

/* Page Content */
.page-content {
    min-height: 60vh;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}