:root {
    --pink: #ff6ec7;
    --cyan: #9affff;
    --bg1: #12001f;
    --bg2: #2a004f;
    --scanline-opacity: 0.15;
}

* {
    box-sizing: border-box;
    cursor: crosshair;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Courier New', monospace;
    color: #f5e9ff;
    background: linear-gradient(to bottom, var(--bg1), var(--bg2), var(--bg1));
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--pink) 1px, transparent 1px),
        linear-gradient(90deg, var(--pink) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    animation: grid-move 2.5s linear infinite;
}

body::after {
    content: ' ';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
        linear-gradient(
            90deg,
            rgba(255, 0, 0, 0.04),
            rgba(0, 255, 0, 0.01),
            rgba(0, 0, 255, 0.04)
        );
    z-index: 999;
    background-size:
        100% 3px,
        3px 100%;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 60px;
    }
}

h1 {
    font-size: clamp(28px, 8vw, 44px);
    letter-spacing: 3px;
    color: #fff;
    text-shadow:
        0 0 10px var(--pink),
        0 0 20px var(--pink);
    margin-bottom: 5px;
    position: relative;
}

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

.glitch:hover::before {
    left: 3px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 0.5s infinite linear alternate-reverse;
}

.glitch:hover::after {
    left: -3px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(10px, 450px, 30px, 0);
    animation: glitch-anim2 0.5s infinite linear alternate-reverse;
}

.subtitle {
    color: #ffb3ec;
    margin-bottom: 20px;
    font-size: clamp(12px, 3vw, 16px);
}

.status {
    color: var(--cyan);
    font-size: 14px;
    animation: pulse 2s infinite;
    text-transform: uppercase;
}

.section {
    margin-top: 50px;
    color: var(--cyan);
    font-size: clamp(18px, 4vw, 22px);
    letter-spacing: 1px;
    animation: flicker-soft 6s infinite;
}

.sep {
    border-top: 2px solid var(--pink);
    box-shadow: 0 0 8px var(--pink);
    opacity: 0.6;
    margin: 25px 0;
}

p {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: #f5e9ff;
    text-decoration: none;
    display: inline-block;
    padding: 4px 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

a:hover {
    color: var(--cyan);
    background: rgba(154, 255, 255, 0.1);
    border: 1px solid var(--cyan);
    text-shadow: 0 0 8px var(--cyan);
    transform: translateX(8px);
}

small {
    display: block;
    margin-top: 2px;
}

@media (min-width: 768px) {
    small {
        display: inline;
        margin-left: 10px;
    }
}

.cursor {
    animation: blink 1s steps(1) infinite;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg1);
}
::-webkit-scrollbar-thumb {
    background: var(--pink);
}

@keyframes grid-move {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 40px;
    }
}

@keyframes flicker {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
    100% {
        opacity: 1;
    }
}

@keyframes flicker-soft {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

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

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(20px, 9999px, 10px, 0);
    }
    100% {
        clip: rect(40px, 9999px, 50px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(15px, 9999px, 30px, 0);
    }
    100% {
        clip: rect(10px, 9999px, 45px, 0);
    }
}
