/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --cream: #e8d5b7;
    --red: #c1272d;
    --green: #00ff00;
    --dark-gray: #0a0a0a;
}

body {
    font-family: 'IBM Plex Mono', 'Courier Prime', 'Courier New', monospace;
    background-color: var(--black);
    color: var(--cream);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* ===== CRT EFFECTS ===== */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px
        );
    animation: flicker 0.15s infinite;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    animation: scan 8s linear infinite;
}

@keyframes flicker {
    0% { opacity: 0.27861; }
    5% { opacity: 0.34769; }
    10% { opacity: 0.23604; }
    15% { opacity: 0.90626; }
    20% { opacity: 0.18128; }
    25% { opacity: 0.83891; }
    30% { opacity: 0.65583; }
    35% { opacity: 0.67807; }
    40% { opacity: 0.26559; }
    45% { opacity: 0.84693; }
    50% { opacity: 0.96019; }
    55% { opacity: 0.08594; }
    60% { opacity: 0.20313; }
    65% { opacity: 0.71988; }
    70% { opacity: 0.53455; }
    75% { opacity: 0.37288; }
    80% { opacity: 0.71428; }
    85% { opacity: 0.70419; }
    90% { opacity: 0.7003; }
    95% { opacity: 0.36108; }
    100% { opacity: 0.24387; }
}

@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* ===== LAYOUT ===== */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* ===== TERMINAL WINDOW ===== */
.terminal-window {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid var(--cream);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(232, 213, 183, 0.3);
    margin-bottom: 3rem;
}

.terminal-header {
    background: rgba(232, 213, 183, 0.1);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--cream);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.terminal-title {
    margin-left: auto;
    font-size: 0.875rem;
    opacity: 0.7;
}

.terminal-body {
    padding: 2rem;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--red);
    text-shadow: 0 0 10px rgba(193, 39, 45, 0.8);
    margin: 2rem 0;
    letter-spacing: 2px;
}

h2 {
    font-size: 1.75rem;
    color: var(--red);
    margin: 2rem 0 1rem 0;
    text-transform: uppercase;
}

h3 {
    font-size: 1.25rem;
    color: var(--cream);
    margin: 2rem 0 1rem 0;
    font-weight: 700;
}

.prompt {
    color: var(--green);
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.meta {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 2rem;
}

/* ===== GLITCH EFFECT ===== */
.glitch {
    position: relative;
    display: inline-block;
}

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

.glitch:before {
    left: 2px;
    text-shadow: -2px 0 var(--red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch:after {
    left: -2px;
    text-shadow: -2px 0 var(--green);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 31px, 0); }
    10% { clip: rect(70px, 9999px, 71px, 0); }
    20% { clip: rect(121px, 9999px, 1px, 0); }
    30% { clip: rect(2px, 9999px, 90px, 0); }
    40% { clip: rect(83px, 9999px, 56px, 0); }
    50% { clip: rect(18px, 9999px, 40px, 0); }
    60% { clip: rect(45px, 9999px, 100px, 0); }
    70% { clip: rect(60px, 9999px, 85px, 0); }
    80% { clip: rect(95px, 9999px, 15px, 0); }
    90% { clip: rect(30px, 9999px, 65px, 0); }
    100% { clip: rect(55px, 9999px, 20px, 0); }
}

/* ===== TYPING ANIMATION ===== */
.cursor {
    animation: blink 1s infinite;
}

.blink {
    animation: blink 1s infinite;
}

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

.typing-text {
    overflow: hidden;
    white-space: pre-wrap;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    font-size: 0.875rem;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

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

/* ===== LOGO ===== */
.logo-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(193, 39, 45, 0.6));
    animation: logo-pulse 3s infinite;
}

@keyframes logo-pulse {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(193, 39, 45, 0.6)); }
    50% { filter: drop-shadow(0 0 30px rgba(193, 39, 45, 0.9)); }
}

/* ===== MANIFESTO CONTENT ===== */
.manifesto-content p {
    margin-bottom: 1rem;
}

.manifesto-content .emphasis {
    color: var(--red);
    font-weight: 700;
}

.manifesto-content .highlight {
    color: var(--green);
    font-weight: 700;
    font-size: 1.25rem;
}

.manifesto-content .final-line {
    color: var(--red);
    font-weight: 700;
    font-size: 1.125rem;
    margin-top: 2rem;
    text-align: center;
}

.witch-section {
    color: var(--red);
    text-shadow: 0 0 10px rgba(193, 39, 45, 0.8);
}

.witch-symbol {
    font-size: 0.75rem;
    opacity: 0.6;
    display: block;
    margin-bottom: 0.5rem;
}

.whiskers {
    font-style: italic;
    color: var(--cream);
    text-decoration: line-through;
    opacity: 0.7;
}

/* ===== BUTTONS ===== */
.btn-discord,
.btn-submit {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(193, 39, 45, 0.2);
    border: 2px solid var(--red);
    color: var(--cream);
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-discord:hover,
.btn-submit:hover {
    background: rgba(193, 39, 45, 0.4);
    box-shadow: 0 0 20px rgba(193, 39, 45, 0.6);
    transform: translateY(-2px);
}

.btn-glitch {
    position: relative;
    display: inline-block;
}

.btn-discord:hover .btn-glitch,
.btn-submit:hover .btn-glitch {
    animation: btn-glitch 0.3s;
}

@keyframes btn-glitch {
    0%, 100% { transform: translate(0); }
    33% { transform: translate(-2px, 2px); }
    66% { transform: translate(2px, -2px); }
}

.link-small {
    color: var(--green);
    text-decoration: none;
    font-size: 0.875rem;
    border-bottom: 1px dashed var(--green);
    transition: all 0.3s ease;
}

.link-small:hover {
    color: var(--cream);
    border-color: var(--cream);
}

/* ===== EMAIL FORM ===== */
.email-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(232, 213, 183, 0.1);
    border: 1px solid var(--cream);
    color: var(--cream);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 10px rgba(193, 39, 45, 0.5);
}

.form-group input::placeholder {
    color: rgba(232, 213, 183, 0.4);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

.form-response {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--green);
}

.success-message {
    color: var(--green);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 2px solid var(--cream);
    padding: 3rem 2rem;
    text-align: center;
}

.footer a {
    color: var(--green);
    text-decoration: none;
    border-bottom: 1px dashed var(--green);
}

.footer a:hover {
    color: var(--red);
    border-color: var(--red);
}

.footer-tagline {
    margin-top: 1.5rem;
    opacity: 0.7;
    font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .terminal-body {
        padding: 1.5rem;
    }

    .logo {
        max-width: 200px;
    }

    .btn-discord,
    .btn-submit {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .terminal-body {
        padding: 1rem;
    }
}
