:root {
    /* Color Palette */
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 25, 0.6);
    --bg-card-hover: rgba(30, 30, 40, 0.8);
    --text-main: #e0e0e0;
    --text-muted: #a0a0b0;
    --accent-primary: #00f0ff;
    --accent-secondary: #0055ff;
    --glow-primary: rgba(0, 240, 255, 0.4);
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    
    /* Spacing & Borders */
    --border-radius: 12px;
    --transition-fast: 0.2s ease;
    --transition-slow: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

html {
    scroll-behavior: smooth;
}

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

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

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    top: -100px;
    left: -100px;
    animation: float 15s infinite alternate;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--glow-primary);
    bottom: -200px;
    right: -100px;
    animation: float 20s infinite alternate-reverse;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.text-glow {
    text-shadow: 0 0 10px var(--glow-primary);
}

.text-center {
    text-align: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px var(--accent-primary));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 1.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 8px var(--glow-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 15px var(--glow-primary);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 25px var(--glow-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--glow-primary);
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-desc {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 3rem;
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 240, 255, 0.1);
    background: var(--bg-card-hover);
}

.highlight-card {
    border-color: rgba(0, 240, 255, 0.2);
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    align-items: center;
}

.glitch {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    position: relative;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 2rem;
    font-family: var(--font-sans);
}

.lead-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-logo {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.pulse {
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 15px var(--accent-primary)) brightness(1); }
    100% { filter: drop-shadow(0 0 35px var(--accent-primary)) brightness(1.2); }
}

/* Icons */
.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Pillars Section */
.pillars-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.pillar-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.sub-heading {
    font-size: 1rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-weight: 400;
    margin-top: 0.5rem;
    text-shadow: none;
}

.pillar-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mini-card {
    padding: 1.5rem;
}

.mini-card h4 {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.mandate h4 {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Initiatives */
.initiatives-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.initiative-item {
    display: flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.initiative-item:hover {
    background: rgba(0, 240, 255, 0.05);
    border-left-color: var(--accent-primary);
}

.initiative-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    transition: var(--transition-fast);
}

.initiative-item:hover .initiative-number {
    color: rgba(0, 240, 255, 0.2);
}

.initiative-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* What We Do */
.feature-card h4 {
    font-size: 1.2rem;
    color: var(--accent-primary);
}

/* Footer / Manifesto */
.manifesto-quote {
    padding: 4rem;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(to bottom, rgba(20, 20, 25, 0.8), rgba(5, 5, 10, 0.9));
}

blockquote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

cite {
    font-style: normal;
    color: var(--accent-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-desc {
    font-size: 1.1rem;
    max-width: 900px;
}

.footer-desc strong {
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* Utility / Helpers */
.mt-4 { margin-top: 2rem; }

/* Animations (Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content, .grid-2, .pillars-container, .initiatives-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        order: -1;
        text-align: center;
    }
    
    .hero-logo {
        max-width: 250px;
    }
    
    .glitch {
        font-size: 3rem;
    }
}

/* Interactive Forms & Console Panels */
.forms-panel, .console-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.form-group-wrapper h3, .console-panel h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.interactive-form, .node-form-layout {
    margin-top: 1rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input[type="email"] {
    flex: 1;
}

input[type="text"],
input[type="email"],
select,
textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    padding: 0.8rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

select option {
    background: #111;
    color: #fff;
}

.input-field {
    margin-bottom: 1.2rem;
}

.input-field label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.grid-2-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 576px) {
    .grid-2-form {
        grid-template-columns: 1fr;
    }
}

.w-full {
    width: 100%;
}

/* Form Feedback System */
.form-feedback {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
    animation: fadeIn 0.4s ease;
}

.form-feedback.hidden {
    display: none !important;
}

.check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Terminal Container for Node Simulation */
.terminal-container {
    background: #020205;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    flex: 1;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

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

.terminal-title {
    margin-left: 0.5rem;
    font-family: var(--font-sans);
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.terminal-body {
    padding: 1rem;
    color: #00f0ff;
    line-height: 1.5;
    overflow-y: auto;
    max-height: 180px;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

.term-dim {
    color: var(--text-muted);
    text-shadow: none;
}

.term-success {
    color: #27c93f;
    text-shadow: 0 0 5px rgba(39, 201, 63, 0.3);
}

.term-cursor::after {
    content: '▊';
    animation: blink 1s step-start infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Modals System styling */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 3rem !important; /* Force override cards standard padding */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-primary);
}

.modal-scroll-area {
    overflow-y: auto;
    margin: 1.5rem 0;
    padding-right: 1rem;
    flex: 1;
}

.modal-scroll-area h3 {
    font-size: 1.15rem;
    color: #fff;
    margin: 1.5rem 0 0.5rem 0;
    font-family: var(--font-heading);
}

.modal-scroll-area h3:first-child {
    margin-top: 0;
}

.modal-scroll-area p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-scroll-area p:last-child {
    margin-bottom: 0;
}

.license-pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-muted);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    overflow-x: auto;
    padding: 1rem;
    white-space: pre;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

/* Custom Scrollbar for Modal Area & Terminal */
.modal-scroll-area::-webkit-scrollbar,
.terminal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-scroll-area::-webkit-scrollbar-track,
.terminal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}
.modal-scroll-area::-webkit-scrollbar-thumb,
.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.modal-scroll-area::-webkit-scrollbar-thumb:hover,
.terminal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 0;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--accent-primary);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--accent-primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        padding: 6rem 2rem 2rem 2rem;
        transition: right 0.4s ease;
        z-index: 99;
        gap: 2.5rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .manifesto-quote {
        padding: 2rem;
    }
    
    blockquote {
        font-size: 1.4rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

#join {
	display: none;
}
