:root {
    --bg-color: #030303;
    --text-color: #e0e0e0;
    --accent-red: #ea0000;
    --accent-red-glow: rgba(234, 0, 0, 0.4);
    --border-color: #333;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    cursor: crosshair; /* Hacker/underground vibe */
}

/* Typography Selection */
::selection {
    background: var(--accent-red);
    color: #fff;
    text-shadow: none;
}

/* ========================================= */
/* BACKGROUNDS & OVERLAYS                    */
/* ========================================= */

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.noise-overlay, .secret-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04;
    z-index: 999;
    pointer-events: none;
}

.secret-noise {
    opacity: 0.07;
    mix-blend-mode: color-burn;
}

.hidden {
    display: none !important;
}

/* ========================================= */
/* TERMINAL BOOT SCREEN                      */
/* ========================================= */

#terminal-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.5;
}

.terminal-content {
    max-width: 800px;
}

.cursor {
    display: inline-block;
    width: 12px;
    height: 20px;
    background-color: var(--accent-red);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 5px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ========================================= */
/* MAIN CONTENT                              */
/* ========================================= */

#main-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: filter 0.3s ease;
}

/* Optional glitch effect on mouse move wrapper */
.mouse-glitch-active {
    filter: drop-shadow(3px 0 0 rgba(234, 0, 0, 0.4)) drop-shadow(-3px 0 0 rgba(0, 255, 255, 0.3));
    transform: translate(1px, -1px);
}

header {
    margin-bottom: 40px;
}

.logo-container {
    cursor: pointer;
    user-select: none;
}

/* GLITCH LOGO EFFECT */
.glitch-logo {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    position: relative;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: fade-in 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glitch-logo::before, .glitch-logo::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-logo::before {
    left: 3px;
    text-shadow: -2px 0 var(--accent-red);
    clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch-logo::after {
    left: -3px;
    text-shadow: 2px 0 #0ff;
    clip-path: polygon(0 80%, 100% 80%, 100% 100%, 0 100%);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%); transform: translate(0); }
    10% { clip-path: polygon(0 15%, 100% 15%, 100% 30%, 0 30%); transform: translate(-2px, 1px); }
    30% { clip-path: polygon(0 40%, 100% 40%, 100% 60%, 0 60%); transform: translate(2px, -1px); }
    60% { clip-path: polygon(0 80%, 100% 80%, 100% 90%, 0 90%); transform: translate(-1px, 2px); }
    100% { clip-path: polygon(0 50%, 100% 50%, 100% 70%, 0 70%); transform: translate(1px, -2px); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: polygon(0 10%, 100% 10%, 100% 30%, 0 30%); transform: translate(0); }
    20% { clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); transform: translate(2px, -2px); }
    40% { clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%); transform: translate(-2px, 1px); }
    80% { clip-path: polygon(0 75%, 100% 75%, 100% 95%, 0 95%); transform: translate(1px, -1px); }
    100% { clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%); transform: translate(-1px, 2px); }
}

.hero-section {
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    min-height: 30px;
    text-shadow: 0 0 10px var(--accent-red-glow);
}

.subtext {
    font-size: 1.1rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 50px;
}

.subtext .highlight {
    color: #ccc;
    font-weight: 600;
}

/* ========================================= */
/* WAITLIST FORM                             */
/* ========================================= */

.waitlist-container {
    margin-top: 40px;
    position: relative;
}

.input-group {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
}

input[type="email"] {
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    padding: 12px 10px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    width: 280px;
    outline: none;
    transition: all 0.3s ease;
}

input[type="email"]::placeholder {
    color: #555;
    letter-spacing: 1px;
}

input[type="email"]:focus {
    border-bottom-color: var(--accent-red);
    box-shadow: 0 5px 15px -10px var(--accent-red);
}

.glitch-btn {
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.glitch-btn:hover {
    border-color: var(--accent-red);
    box-shadow: inset 0 0 10px var(--accent-red-glow), 0 0 15px var(--accent-red-glow);
    color: var(--accent-red);
}

.glitch-btn .btn-text {
    position: relative;
    z-index: 2;
}

.form-message {
    margin-top: 25px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--accent-red);
    text-shadow: 0 0 8px var(--accent-red-glow);
    letter-spacing: 1.5px;
    animation: fade-in 1s ease forwards;
}

/* ========================================= */
/* SECRET MODE                               */
/* ========================================= */

#secret-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #020000;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-shadow: inset 0 0 150px rgba(234, 0, 0, 0.1);
    animation: crt-flicker 0.15s infinite;
}

.secret-content {
    max-width: 700px;
    border: 1px solid rgba(234, 0, 0, 0.3);
    padding: 50px;
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.secret-content::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 20px; height: 20px;
    border-top: 2px solid var(--accent-red);
    border-left: 2px solid var(--accent-red);
}

.secret-content::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 20px; height: 20px;
    border-bottom: 2px solid var(--accent-red);
    border-right: 2px solid var(--accent-red);
}

.security-warning {
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: var(--font-heading);
    color: var(--accent-red);
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.security-warning .blink {
    animation: blink 2s step-end infinite;
}

.secret-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.classified-document {
    text-align: left;
    margin-bottom: 40px;
}

.top-secret-stamp {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 4rem;
    font-family: var(--font-heading);
    color: rgba(234, 0, 0, 0.15);
    border: 5px solid rgba(234, 0, 0, 0.15);
    padding: 10px 20px;
    pointer-events: none;
    font-weight: 900;
    letter-spacing: 5px;
}

.blur-text-group p {
    font-family: 'Courier New', Courier, monospace;
    color: #a0a0a0;
    margin-bottom: 15px;
    line-height: 1.5;
}

.redacted {
    background-color: #fff;
    color: #fff;
    padding: 0 8px;
    user-select: none;
}

hr {
    border: none;
    border-top: 1px solid #333;
    margin: 20px 0;
}

.blurred-paragraph {
    filter: blur(4px);
    transition: filter 0.5s ease;
    user-select: none;
}

.blurred-paragraph:hover {
    filter: blur(0px); /* Only unblur on hover, secret interaction */
    color: #fff;
}

.red-btn {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.red-btn:hover {
    background-color: rgba(234, 0, 0, 0.1);
}

/* ========================================= */
/* ANIMATIONS                                */
/* ========================================= */

@keyframes crt-flicker {
    0% { opacity: 0.95; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; pointer-events: none; }
}

.fade-out-anim {
    animation: fade-out 0.8s forwards;
}

.fade-in-anim {
    animation: fade-in 1s forwards;
}

/* ========================================= */
/* RESPONSIVE                                */
/* ========================================= */

@media (max-width: 768px) {
    .glitch-logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    input[type="email"] {
        width: 100%;
    }

    .secret-content {
        padding: 30px;
    }

    .secret-title {
        font-size: 1.8rem;
    }
}
