:root {
    --primary-blue: #0a192f;
    --secondary-blue: #112240;
    --accent-red: #ff4d4d;
    --neon-blue: #64ffda;
    --text-white: #e6f1ff;
    --text-slate: #8892b0;
    --font-primary: 'Lato', sans-serif;
    --font-mono: 'Courier New', Courier, monospace;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--primary-blue);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden;
}

/* Background Effect - Tech Grid */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.95)),
        repeating-linear-gradient(0deg, transparent, transparent 1px, #112240 1px, #112240 2px),
        repeating-linear-gradient(90deg, transparent, transparent 1px, #112240 1px, #112240 2px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    z-index: -1;
    animation: bgScan 10s linear infinite;
}

@keyframes bgScan {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 0 0, 0 40px, 0 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo-container {
    margin-bottom: 2rem;
    animation: fadeDown 1s ease-out;
}

.brand-logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 77, 77, 0.3));
}

/* Typography & Glitch Effect */
.headline {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.glitch {
    position: relative;
}

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

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

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

@keyframes glitch-anim {
    0% {
        clip: rect(17px, 9999px, 94px, 0);
    }

    5% {
        clip: rect(38px, 9999px, 6px, 0);
    }

    10% {
        clip: rect(58px, 9999px, 78px, 0);
    }

    15% {
        clip: rect(93px, 9999px, 16px, 0);
    }

    20% {
        clip: rect(6px, 9999px, 64px, 0);
    }

    25% {
        clip: rect(27px, 9999px, 29px, 0);
    }

    30% {
        clip: rect(44px, 9999px, 86px, 0);
    }

    35% {
        clip: rect(81px, 9999px, 34px, 0);
    }

    40% {
        clip: rect(60px, 9999px, 86px, 0);
    }

    45% {
        clip: rect(12px, 9999px, 63px, 0);
    }

    50% {
        clip: rect(31px, 9999px, 94px, 0);
    }

    55% {
        clip: rect(76px, 9999px, 57px, 0);
    }

    60% {
        clip: rect(53px, 9999px, 21px, 0);
    }

    65% {
        clip: rect(96px, 9999px, 83px, 0);
    }

    70% {
        clip: rect(24px, 9999px, 4px, 0);
    }

    75% {
        clip: rect(71px, 9999px, 39px, 0);
    }

    80% {
        clip: rect(13px, 9999px, 55px, 0);
    }

    85% {
        clip: rect(65px, 9999px, 88px, 0);
    }

    90% {
        clip: rect(37px, 9999px, 46px, 0);
    }

    95% {
        clip: rect(84px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(19px, 9999px, 72px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 95px, 0);
    }
}

/* Console Typing */
.console-container {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--neon-blue);
    margin-bottom: 4rem;
    min-height: 2em;
}

.console-cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--neon-blue);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
    vertical-align: bottom;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* System Status Indicators */
.system-status {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-slate);
    border: 1px solid rgba(136, 146, 176, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: rgba(17, 34, 64, 0.5);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background-color: var(--neon-blue);
    box-shadow: 0 0 8px var(--neon-blue);
    animation: pulse 2s infinite;
}

.status-indicator.processing {
    background-color: #f7d23d;
    box-shadow: 0 0 8px #f7d23d;
    animation: pulse 2s infinite 0.5s;
}

.status-indicator.secure {
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
    animation: pulse 2s infinite 1s;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* Footer */
.site-footer {
    position: absolute;
    bottom: 2rem;
    color: var(--text-slate);
    font-size: 0.875rem;
    animation: fadeIn 1.5s ease-out 1s backwards;
}

.tech-badge {
    margin-top: 0.5rem;
    color: var(--secondary-blue);
    font-family: monospace;
    opacity: 0.5;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .headline {
        font-size: 2rem;
    }

    .console-container {
        font-size: 1.1rem;
    }

    .system-status {
        flex-direction: column;
        gap: 1rem;
    }
}