:root {
    --bg-color: #050505;
    --primary-color: #0f0;
    --primary-dim: rgba(0, 255, 0, 0.4);
    --primary-glow: rgba(0, 255, 0, 0.2);
    --text-main: #33ff33;
    --text-muted: #1f8f1f;
    --alert-color: #ff003c;
    --font-mono: 'Share Tech Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
}

/* scanlines over the whole page */
.scanlines {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    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;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.6;
}

.vignette {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 150px rgba(0,0,0,0.9);
    pointer-events: none;
    z-index: 999;
}

.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

/* Sections */
.section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

header.hero {
    text-align: center;
    border-bottom: 2px solid var(--primary-dim);
    padding-bottom: 40px;
}

.top-secret-badge {
    display: inline-block;
    background: var(--alert-color);
    color: #fff;
    padding: 5px 15px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-radius: 2px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

h1.glitch {
    font-family: var(--font-display);
    font-size: 2.5rem;
    position: relative;
    color: #fff;
    text-shadow: 0 0 10px var(--primary-color);
    margin-bottom: 20px;
}

h1.glitch::before, h1.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

h1.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--alert-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

h1.glitch::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(13px, 9999px, 86px, 0); }
    5% { clip: rect(62px, 9999px, 14px, 0); }
    10% { clip: rect(9px, 9999px, 4px, 0); }
    15% { clip: rect(52px, 9999px, 66px, 0); }
    20% { clip: rect(79px, 9999px, 8px, 0); }
    25% { clip: rect(4px, 9999px, 86px, 0); }
    30% { clip: rect(50px, 9999px, 20px, 0); }
    100% { clip: rect(50px, 9999px, 20px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(62px, 9999px, 14px, 0); }
    5% { clip: rect(13px, 9999px, 86px, 0); }
    10% { clip: rect(52px, 9999px, 66px, 0); }
    15% { clip: rect(9px, 9999px, 4px, 0); }
    20% { clip: rect(4px, 9999px, 86px, 0); }
    25% { clip: rect(79px, 9999px, 8px, 0); }
    30% { clip: rect(50px, 9999px, 20px, 0); }
    100% { clip: rect(50px, 9999px, 20px, 0); }
}

p.status {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

p.warning {
    color: var(--alert-color);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Alien Image Container */
.alien-form-container {
    position: relative;
    max-width: 400px;
    margin: 40px auto;
    border: 2px solid var(--primary-dim);
    box-shadow: 0 0 20px var(--primary-glow);
    overflow: hidden;
}

.alien-img {
    display: block;
    width: 100%;
    filter: sepia(1) hue-rotate(80deg) saturate(2) brightness(0.8) contrast(1.2);
}

.scan-bar {
    position: absolute;
    width: 100%;
    height: 10px;
    background: rgba(0, 255, 0, 0.5);
    box-shadow: 0 0 10px #0f0, 0 0 20px #0f0;
    top: 0;
    left: 0;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { top: -10px; }
    100% { top: 100%; }
}

.target-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid var(--alert-color);
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
}
.target-overlay::before, .target-overlay::after {
    content: '';
    position: absolute;
    background: var(--alert-color);
}
.target-overlay::before { top: 50%; left: -10px; width: 80px; height: 1px; }
.target-overlay::after { left: 50%; top: -10px; height: 80px; width: 1px; }

/* Sections formatting */
h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    border-bottom: 1px solid var(--primary-dim);
    padding-bottom: 10px;
    margin-bottom: 5px;
}

h2 .prefix {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-right: 10px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Grid & Cards */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card {
    background: rgba(0, 40, 0, 0.4);
    border: 1px solid var(--primary-dim);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    background: rgba(0, 60, 0, 0.6);
    box-shadow: 0 0 15px var(--primary-glow);
}

.card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    opacity: 0.7;
}

h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 15px;
}

.img-wrapper {
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
}

.evidence-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%) brightness(0.8) contrast(1.5);
    transition: filter 0.5s;
}

.card:hover .evidence-img {
    filter: sepia(1) hue-rotate(80deg) saturate(2);
}

.img-glitch-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0.15) 0px,
        rgba(0,0,0,0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

/* Finale Setup */
.terminal-card {
    background: #000;
    padding: 40px;
    text-align: center;
    border-left: 4px solid var(--alert-color);
}

.finale-text {
    text-align: left;
    margin-bottom: 10px;
}

.finale-text.highlight {
    color: #fff;
    text-shadow: 0 0 8px #fff;
}

.qr-container {
    margin: 40px auto;
    width: 200px;
    height: 200px;
    position: relative;
    border: 2px solid var(--primary-color);
    overflow: hidden;
}

.qr-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(1) hue-rotate(80deg) saturate(5) brightness(1.2);
}

.qr-scanline {
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px #fff;
    top: 0; left: 0;
    animation: qr-scan 2s cubic-bezier(0.53, 0.21, 0.29, 0.67) infinite;
}

@keyframes qr-scan {
    0% { top: 0; }
    50% { top: 100%; }
    100% { top: 0; }
}

.btn-finale {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-finale::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--primary-color);
    transition: all 0.3s;
    z-index: -1;
}

.btn-finale:hover {
    color: #000;
}

.btn-finale:hover::before {
    left: 0;
}

/* Responsive */
@media(max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    h1.glitch { font-size: 1.8rem; }
}
