:root {
    --bg: #0A0A0A;
    --text: #FFFFFF;
    --red: #E31E24;
    --green: #00E0A3;
    --accent: #00F0FF;
    --gray: #666;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Rubik', sans-serif;
    --heading: 'Space Grotesk', sans-serif;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Creative Background */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Main Hero */
.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    max-width: 600px;
    padding: 40px;
}

/* Logo */
.logo-hero {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
}

.logo-grid-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    height: 100%;
    transform: rotate(45deg);
}

.sq {
    width: 100%;
    height: 100%;
    border-radius: 3px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.sq:nth-child(1) {
    animation: move1 8s ease-in-out infinite;
}

.sq:nth-child(2) {
    animation: move2 8s ease-in-out infinite;
}

.sq:nth-child(3) {
    animation: move3 8s ease-in-out infinite;
}

.sq:nth-child(4) {
    animation: move4 8s ease-in-out infinite;
}

@keyframes move1 {

    0%,
    85%,
    100% {
        transform: translate(0, 0);
    }

    90% {
        transform: translate(calc(100% + 10px), 0);
    }

    92% {
        transform: translate(calc(100% + 10px), calc(100% + 10px));
    }

    94% {
        transform: translate(0, calc(100% + 10px));
    }
}

@keyframes move2 {

    0%,
    85%,
    100% {
        transform: translate(0, 0);
    }

    90% {
        transform: translate(0, calc(100% + 10px));
    }

    92% {
        transform: translate(calc(-100% - 10px), calc(100% + 10px));
    }

    94% {
        transform: translate(calc(-100% - 10px), 0);
    }
}

@keyframes move3 {

    0%,
    85%,
    100% {
        transform: translate(0, 0);
    }

    90% {
        transform: translate(calc(100% + 10px), 0);
    }

    92% {
        transform: translate(calc(100% + 10px), calc(-100% - 10px));
    }

    94% {
        transform: translate(0, calc(-100% - 10px));
    }
}

@keyframes move4 {

    0%,
    85%,
    100% {
        transform: translate(0, 0);
    }

    90% {
        transform: translate(0, calc(-100% - 10px));
    }

    92% {
        transform: translate(calc(-100% - 10px), calc(-100% - 10px));
    }

    94% {
        transform: translate(calc(-100% - 10px), 0);
    }
}

.red {
    background: var(--red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 25px rgba(227, 30, 36, 0.3);
}

.green {
    background: var(--green);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 224, 163, 0.4);
}

@keyframes greenPulse {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(0, 224, 163, 0);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 224, 163, 0.6);
        transform: scale(1.05);
    }
}

@keyframes appear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Typography */
.branding {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brand-name {
    font-family: var(--heading);
    font-size: 2.8rem;
    font-weight: 500;
    letter-spacing: 6px;
    line-height: 1;
    color: #fff;
}

.tagline {
    font-family: var(--mono);
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--gray);
    text-transform: uppercase;
    overflow: hidden;
    animation: cinematicReveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards 0.5s,
        flicker 8s ease-in-out infinite 2s;
    opacity: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3);
}

@keyframes cinematicReveal {
    0% {
        opacity: 0;
        letter-spacing: 20px;
        filter: blur(10px);
    }

    50% {
        opacity: 1;
        letter-spacing: 8px;
        filter: blur(2px);
    }

    100% {
        opacity: 1;
        letter-spacing: 4px;
        filter: blur(0);
    }
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.3);
    }

    92% {
        opacity: 1;
    }

    93% {
        opacity: 0.4;
        filter: blur(1px);
    }

    94% {
        opacity: 1;
    }

    95% {
        opacity: 0.6;
        filter: blur(0.5px);
    }

    96% {
        opacity: 1;
        filter: blur(0);
    }

    97% {
        opacity: 0.3;
        filter: blur(2px);
    }

    98% {
        opacity: 1;
        filter: blur(0);
    }
}

/* Terminal Display */
.terminal-display {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin: 15px 0;
    min-height: 24px;
}

.code-line {
    opacity: 0.8;
}

/* CTA */
.action-zone {
    margin-top: 10px;
}

.cta-button {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    border: 2px solid var(--text);
    color: var(--text);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--text);
    color: var(--bg);
}

/* Mobile */
@media (max-width: 768px) {
    .brand-name {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .tagline {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    .logo-hero {
        width: 90px;
        height: 90px;
    }

    .hero-container {
        gap: 25px;
        padding: 20px;
    }
}