:root {
    --bg-color: #0A0A0A;
    --text-color: #E2E8F0;
    --primary-color: #00FF41; /* Glitch Green */
    --accent-color: #FF2A2A; /* Warning Red */
    --font-headers: 'Press Start 2P', monospace;
    --font-body: 'Geist Mono', monospace;
}

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

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

/* CRT Scanlines and Noise */
.scanlines {
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1000;
}

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

/* Typography styles */
h1, h2, h3 {
    font-family: var(--font-headers);
    text-transform: uppercase;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: white;
    font-size: 2rem;
    letter-spacing: 0.1em;
    z-index: 1;
}

.glitch::before, .glitch::after {
    display: block;
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.glitch::before {
    left: 2px;
    color: var(--primary-color);
    z-index: -1;
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    color: var(--accent-color);
    z-index: -2;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip-path: inset(20% 0 80% 0); }
    20% { clip-path: inset(60% 0 10% 0); }
    40% { clip-path: inset(40% 0 50% 0); }
    60% { clip-path: inset(80% 0 5% 0); }
    80% { clip-path: inset(10% 0 70% 0); }
    100% { clip-path: inset(30% 0 20% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); }
    20% { clip-path: inset(30% 0 20% 0); }
    40% { clip-path: inset(70% 0 10% 0); }
    60% { clip-path: inset(20% 0 50% 0); }
    80% { clip-path: inset(50% 0 30% 0); }
    100% { clip-path: inset(5% 0 80% 0); }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    border-bottom: 1px solid #222;
}

.logo { font-size: 1.5rem; text-shadow: 0 0 10px rgba(0, 255, 65, 0.4); }

nav { display: flex; gap: 2rem; align-items: center; }

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-headers);
    font-size: 0.8rem;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--primary-color); }

.btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-headers);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6rem 4rem;
    min-height: 80vh;
}

.hero-content {
    max-width: 60%;
}

.tagline {
    font-size: 3rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: white;
}

.countdown-container {
    background: #111;
    border: 1px solid var(--primary-color);
    padding: 2rem;
    display: inline-block;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.timer-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
    font-family: var(--font-headers);
}

.countdown {
    font-family: var(--font-headers);
    font-size: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.hero-subtext {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Terminal Window */
.terminal-window {
    width: 35%;
    background: #050505;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.terminal-header {
    background: #1a1a1a;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.term-title { margin-left: auto; margin-right: auto; font-size: 0.8rem; color: #888;}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    color: var(--primary-color);
    font-size: 0.9rem;
    min-height: 250px;
}
.terminal-body p { margin-bottom: 0.5rem; }
.success { color: var(--primary-color); font-weight: bold; }
.warning { color: #ffbd2e; font-weight: bold; }
.typing { border-right: 10px solid var(--primary-color); animation: blink 1s step-end infinite; display: inline-block; }

@keyframes blink { 50% { border-color: transparent; } }

/* Manifesto */
.manifesto { padding: 4rem 4rem; }
.section-title { font-size: 2rem; margin-bottom: 3rem; border-bottom: 2px solid #333; padding-bottom: 1rem; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: #111;
    border: 1px solid #333;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card h3 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--text-color); }
.card p { color: #aaa; font-size: 1rem; }

/* CTA Section */
.cta-section {
    padding: 6rem 4rem;
    text-align: center;
    background: linear-gradient(0deg, #111 0%, #0A0A0A 100%);
    border-top: 1px dashed #333;
}

.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { margin-bottom: 2rem; color: #888; font-size: 1.2rem; }

form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

input[type="email"] {
    flex: 1;
    background: #050505;
    border: 1px solid #333;
    padding: 1rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
}

input[type="email"]:focus { outline: none; border-color: var(--primary-color); }

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid #222;
    color: #666;
}

.small-text { font-size: 0.8rem; margin-top: 0.5rem; opacity: 0.5; }

/* Responsive basics */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; padding-top: 4rem; }
    .hero-content { max-width: 100%; margin-bottom: 4rem; }
    .terminal-window { width: 80%; }
    .card-grid { grid-template-columns: 1fr; }
    header { flex-direction: column; gap: 1rem; }
    .tagline { font-size: 2rem; }
}
