:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    /* Ghost White */
    --primary-neon: #ff003c;
    /* Blood Moon Red - Aggressive */
    --secondary-neon: #7000ff;
    /* Abyssal Purple - Mystery */
    --accent-dark: #121212;
    /* Deep shadows */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-alt: 'Special Elite', cursive;
    /* For "found footage" feel */

    --glitch-width: 100vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
    /* Gamification feel */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: url('data:image/svg+xml,%3Csvg width="200" height="200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.05"/%3E%3C/svg%3E');
    /* Subtle texture */
}

/* Background Canvas */
#cosmic-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

/* Typography & Glitch Effects */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glitch {
    position: relative;
    color: var(--text-color);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--primary-neon);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 4s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--secondary-neon);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    20% {
        clip: rect(80px, 9999px, 100px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    60% {
        clip: rect(90px, 9999px, 5px, 0);
    }

    80% {
        clip: rect(20px, 9999px, 70px, 0);
    }

    100% {
        clip: rect(60px, 9999px, 30px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(60px, 9999px, 10px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(90px, 9999px, 20px, 0);
    }

    60% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    80% {
        clip: rect(50px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 60px, 0);
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 0, 60, 0.2);
}

.logo-container h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-neon);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-neon);
}

.cta-btn {
    border: 1px solid var(--primary-neon);
    padding: 8px 20px;
    color: var(--primary-neon);
    background: rgba(255, 0, 60, 0.1);
}

.cta-btn:hover {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 20px var(--primary-neon);
}

/* Sections */
/* Sections */
section {
    padding: 100px 50px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Hero */
.hero-section {
    align-items: center;
    text-align: center;
    padding-top: 150px;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.1) 0%, transparent 70%);
}

.subtitle {
    color: var(--primary-neon);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 5px;
    font-family: var(--font-alt);
    opacity: 0.8;
}

.main-title {
    font-size: 5rem;
    margin-bottom: 30px;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.description {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: #bbb;
    font-family: var(--font-alt);
    line-height: 1.8;
}

/* Buttons */
.glitch-btn {
    display: inline-block;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-neon);
    color: var(--primary-neon);
    font-family: var(--font-heading);
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.glitch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-neon), transparent);
    transition: 0.5s;
}

.glitch-btn:hover::before {
    left: 100%;
}

.glitch-btn:hover {
    background: var(--primary-neon);
    color: #000;
    box-shadow: 0 0 40px var(--primary-neon);
    text-shadow: none;
}

.glitch-btn.red {
    border-color: var(--primary-neon);
    color: var(--primary-neon);
}

/* Lore Grid */
.lore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.lore-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #333;
    padding: 40px;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.lore-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-neon);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.lore-card:hover::after {
    transform: scaleX(1);
}

.lore-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-neon);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 3rem;
    color: var(--secondary-neon);
    margin-bottom: 20px;
    opacity: 0.8;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
}

.highlight {
    color: var(--secondary-neon);
}

.highlight-red {
    color: var(--primary-neon);
}

/* Faction Showcase */
.faction-showcase {
    display: grid;
    gap: 30px;
}

.faction-item {
    background: #0a0a0a;
    border-left: 3px solid var(--primary-neon);
    padding: 30px;
    margin-bottom: 20px;
}

.faction-info h4 {
    color: var(--primary-neon);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(0deg, #000 0%, #1a0005 100%);
    text-align: center;
}

.join-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

input[type="email"] {
    background: transparent;
    border: 1px solid #333;
    padding: 15px 25px;
    width: 100%;
    max-width: 400px;
    color: white;
    font-family: var(--font-heading);
    text-align: center;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
}

input[type="email"]:focus {
    border-color: var(--primary-neon);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.2);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 1s ease;
}

.reveal {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Footer */
footer {
    padding: 80px 20px;
    background: #000;
    border-top: 1px solid var(--primary-neon);
    text-align: center;
}

.footer-content p {
    font-family: var(--font-alt);
    color: #666;
    margin-bottom: 20px;
}

.socials {
    font-size: 1.5rem;
}

.socials a {
    color: #666;
    margin: 0 20px;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--primary-neon);
    transform: scale(1.2);
    display: inline-block;
}

/* Mobile */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    header {
        padding: 20px;
    }

    nav ul {
        display: none;
    }

    /* Mobile toggle to be implemented if needed */
    section {
        padding: 80px 20px;
    }

    .glitch-btn {
        width: 100%;
        padding: 20px;
    }
}