:root {
    --neon-red: #ff0033;
    --neon-blue: #0044ff;
    --bright-white: #ffffff;
    --bg-black: #000000;
    --grid-color: rgba(0, 68, 255, 0.2);
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Cyber';
    src: local('Courier New'); /* Fallback for a tech look */
}

body {
    background-color: var(--bg-black);
    color: var(--bright-white);
    font-family: 'Segoe UI', Impact, sans-serif;
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* CRT Scanline Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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;
    pointer-events: none;
    z-index: 10;
}

/* Background Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

/* Marquee */
.marquee-container {
    background: var(--neon-red);
    color: var(--bright-white);
    padding: 10px 0;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    border-bottom: 2px solid var(--bright-white);
    position: relative;
    z-index: 5;
}

.marquee-content {
    display: inline-block;
    animation: marquee 10s linear infinite;
    font-size: 1.5rem;
    padding-left: 100%;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.main-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero {
    margin: 3rem 0;
    position: relative;
}

h1.glitch {
    font-size: 8rem;
    line-height: 1;
    margin: 0;
    font-weight: 900;
    letter-spacing: -5px;
    text-shadow: 
        3px 3px 0px var(--neon-blue),
        -3px -3px 0px var(--neon-red);
    position: relative;
    font-style: italic;
}

h1.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -1px 0 red;
    top: 0;
    color: white;
    background: black;
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim 2s infinite linear alternate-reverse;
}

.hero-badge {
    display: inline-block;
    background: var(--neon-blue);
    color: white;
    padding: 5px 20px;
    font-weight: bold;
    font-size: 1.2rem;
    transform: skew(-10deg);
    border: 2px solid white;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

/* Image Frame */
.img-frame {
    width: 300px;
    height: 300px;
    margin: 0 auto 3rem;
    position: relative;
    padding: 10px;
    border: 4px solid var(--bright-white);
    box-shadow: 
        0 0 20px var(--neon-blue),
        inset 0 0 20px var(--neon-blue);
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.2) saturate(1.2);
}

.frame-corners {
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 2px solid var(--neon-red);
    clip-path: polygon(
        0 20%, 0 0, 20% 0, 
        80% 0, 100% 0, 100% 20%, 
        100% 80%, 100% 100%, 80% 100%, 
        20% 100%, 0 100%, 0 80%
    );
    pointer-events: none;
}

/* Info Panel */
.info-panel {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--bright-white);
    padding: 2rem;
    backdrop-filter: blur(5px);
}

h2 {
    font-size: 2rem;
    color: var(--neon-red);
    text-transform: uppercase;
    border-bottom: 2px solid var(--neon-red);
    display: inline-block;
    margin-bottom: 1rem;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

.mission-text {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: var(--neon-blue);
    padding: 1rem;
    border: 2px solid white;
    display: flex;
    flex-direction: column;
}

.stat-box .label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.stat-box .value {
    font-size: 1.5rem;
    font-weight: 900;
}

/* Button & Actions */
.actions-grid {
    display: grid;
    gap: 1rem;
}

.cyber-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--bright-white);
    color: var(--bg-black);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 900;
    padding: 1rem;
    text-transform: uppercase;
    position: relative;
    transition: all 0.2s;
    border: 4px solid var(--neon-red);
}

.cyber-button:hover {
    background: var(--neon-red);
    color: white;
    box-shadow: 0 0 30px var(--neon-red);
    transform: scale(1.02);
}

.x-btn {
    background: black;
    color: white;
    border-color: white;
}

.x-btn:hover {
    background: white;
    color: black;
    box-shadow: 0 0 30px white;
}

.x-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    fill: currentColor;
}

/* CA Display */
.ca-display {
    font-size: 1.2rem;
    color: var(--bright-white);
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border: 1px solid var(--bright-white);
    margin-bottom: 2rem;
    cursor: pointer;
    position: relative;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    transition: background 0.2s;
    display: inline-block;
    width: 100%;
}

.ca-display:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-feedback {
    display: none;
    position: absolute;
    top: -30px;
    right: 0;
    background: var(--neon-blue);
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 1px solid white;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    h1.glitch { font-size: 4rem; }
    .img-frame { width: 100%; height: auto; }
}
