:root {
    --bg-color: #050510;
    --primary-color: #0ff;
    --primary-dim: rgba(0, 255, 255, 0.4);
    --secondary-color: #00ff00;
    --secondary-dim: rgba(0, 255, 0, 0.4);
    --text-color: #e0e0e0;
    --grid-color: rgba(0, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 3D Background Grid - Moving */
body::before {
    content: '';
    position: absolute;
    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(600px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: grid-move 10s linear infinite;
    z-index: 1;
}

@keyframes grid-move {
    0% { transform: perspective(600px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(600px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

/* CRT Scanlines Overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    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: 10;
    pointer-events: none;
}

/* Vignette Effect */
.scanlines::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, transparent 50%, rgba(0,0,0,0.8) 120%);
    z-index: 11;
}

/* Main Container Card */
.container {
    position: relative;
    z-index: 5;
    background: rgba(5, 5, 16, 0.85);
    border: 1px solid var(--primary-dim);
    padding: 3rem;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
}

/* Decorative Card Corners */
.container::before, .container::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--primary-color);
}

.container::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.container::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Header & Glitch Text */
header {
    text-align: center;
    margin-bottom: 3rem;
}

.sys-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--primary-dim);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

.blink {
    animation: blink 1s step-end infinite;
}

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

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    position: relative;
    color: white;
    text-shadow: 0 0 15px var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

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

.glitch::before {
    left: 3px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -3px;
    text-shadow: -2px 0 var(--primary-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(23px, 9999px, 86px, 0); }
    5% { clip: rect(61px, 9999px, 84px, 0); }
    10% { clip: rect(40px, 9999px, 52px, 0); }
    15% { clip: rect(10px, 9999px, 5px, 0); }
    20% { clip: rect(98px, 9999px, 84px, 0); }
    25% { clip: rect(44px, 9999px, 11px, 0); }
    30% { clip: rect(6px, 9999px, 12px, 0); }
    35% { clip: rect(27px, 9999px, 73px, 0); }
    40% { clip: rect(88px, 9999px, 80px, 0); }
    45% { clip: rect(58px, 9999px, 45px, 0); }
    50% { clip: rect(45px, 9999px, 60px, 0); }
    55% { clip: rect(21px, 9999px, 96px, 0); }
    60% { clip: rect(35px, 9999px, 2px, 0); }
    65% { clip: rect(62px, 9999px, 74px, 0); }
    70% { clip: rect(61px, 9999px, 20px, 0); }
    75% { clip: rect(74px, 9999px, 62px, 0); }
    80% { clip: rect(1px, 9999px, 95px, 0); }
    85% { clip: rect(9px, 9999px, 29px, 0); }
    90% { clip: rect(53px, 9999px, 16px, 0); }
    95% { clip: rect(49px, 9999px, 58px, 0); }
    100% { clip: rect(89px, 9999px, 14px, 0); }
}

.subtitle {
    color: var(--primary-color);
    font-size: 0.95rem;
    letter-spacing: 4px;
    opacity: 0.8;
}

/* Links / Buttons */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cyber-button {
    text-decoration: none;
    color: var(--primary-color);
    background: rgba(0,255,255,0.02);
    border: 1px solid var(--primary-color);
    padding: 1.25rem 1.5rem;
    position: relative;
    display: block;
    transition: all 0.3s ease;
    font-weight: bold;
    letter-spacing: 1.5px;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-dim), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.cyber-button:hover::before {
    left: 150%;
}

.cyber-button:hover {
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
    color: white;
    text-shadow: 0 0 5px white;
    border-color: white;
}

.cyber-button.primary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.cyber-button.primary:hover {
    background: rgba(0, 255, 0, 0.15);
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.4);
    color: white;
    border-color: white;
}

.cyber-button.primary::before {
    background: linear-gradient(90deg, transparent, var(--secondary-dim), transparent);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
}

.icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon svg {
    width: 100%;
    height: 100%;
}

footer {
    margin-top: 3.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(224, 224, 224, 0.4);
    border-top: 1px dashed rgba(0, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-transform: lowercase;
}
