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

:root {
    --primary-green: #00ff41;
    --secondary-green: #00cc33;
    --dark-green: #003311;
    --black: #0a0a0a;
    --grid-color: rgba(0, 255, 65, 0.1);
}

body {
    font-family: 'Courier New', monospace;
    background: var(--black);
    color: var(--primary-green);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
    cursor: crosshair;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scanlines effect */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.08),
        rgba(0, 0, 0, 0.08) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
}

/* Grid background */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}


/* Terminal container */
.terminal {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 1;
}

.terminal-header {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

.status-indicator {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Main content */
.content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: bold;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    position: relative;
}

.tagline {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    border-left: 3px solid var(--primary-green);
    padding-left: 1rem;
    display: inline-block;
    text-align: left;
}

.description {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.cta-container {
    position: relative;
    display: inline-block;
}

.cta-button {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 1.2rem 3rem;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-family: 'Courier New', monospace;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    letter-spacing: 0.2rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3),
                inset 0 0 20px rgba(0, 255, 65, 0.1);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-green);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--black);
    border-color: var(--primary-green);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.8),
                inset 0 0 40px rgba(0, 255, 65, 0.3);
    transform: scale(1.05);
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:active {
    transform: scale(0.98);
}

/* Corner decorations */
.corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border-color: var(--primary-green);
    opacity: 0.6;
    animation: fadeIn 1s ease-out 0.3s both;
}

.corner-tl {
    top: 1.5rem;
    left: 1.5rem;
    border-top: 2px solid;
    border-left: 2px solid;
}

.corner-tr {
    top: 1.5rem;
    right: 1.5rem;
    border-top: 2px solid;
    border-right: 2px solid;
}

.corner-bl {
    bottom: 1.5rem;
    left: 1.5rem;
    border-bottom: 2px solid;
    border-left: 2px solid;
}

.corner-br {
    bottom: 1.5rem;
    right: 1.5rem;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

/* System status at bottom */
.bottom-status {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.7;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

/* Floating particles */
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-green);
    opacity: 0.2;
    animation: float 15s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}


/* ASCII decoration */
.ascii-border {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--primary-green);
    opacity: 0.3;
    pointer-events: none;
    margin: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terminal-header {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.7rem;
    }

    .brand {
        letter-spacing: 0.2rem;
    }

    .features {
        gap: 1rem;
        padding: 0 1rem;
    }

    .corner {
        width: 30px;
        height: 30px;
    }
}
