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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Texture Overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' /%3E%3C/svg%3E");
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
}

/* Typography */
.logo {
    font-size: 80px;
    font-weight: 200;
    letter-spacing: 20px;
    margin-bottom: 40px;
    color: #fff;
    position: relative;
    animation: fadeIn 1.5s ease-out;
}

.tagline {
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 80px;
    animation: fadeIn 1.5s ease-out 0.3s both;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    max-width: 800px;
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    animation: fadeIn 1.5s ease-out 0.6s both;
}

.grid-item {
    background: #0a0a0a;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.grid-item:hover::before {
    opacity: 1;
}

.grid-item:hover {
    background: #0f0f0f;
    transform: translateY(-2px);
}

.grid-item h3 {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #fff;
    /* You had 'position: z-index: 1;' here which is invalid CSS. I've corrected it: */
    position: relative; 
    z-index: 1;
}

.grid-item p {
    font-size: 13px;
    color: #888;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Status Indicator */
.status {
    margin-top: 80px;
    text-align: center;
    animation: fadeIn 1.5s ease-out 0.9s both;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
}

.status-text {
    font-size: 12px;
    letter-spacing: 3px;
    color: #666;
    text-transform: uppercase;
}

/* Footer & Contact */
.contact {
    margin-top: 60px;
    animation: fadeIn 1.5s ease-out 1.2s both;
}

.contact a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.contact a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.footer {
    position: absolute;
    bottom: 40px;
    font-size: 11px;
    color: #444;
    letter-spacing: 2px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        font-size: 48px;
        letter-spacing: 12px;
    }
    .tagline {
        font-size: 11px;
        letter-spacing: 3px;
    }
    .grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .grid-item {
        padding: 40px 30px;
    }

    /* FIX: Change footer positioning on mobile to prevent overlap */
    .footer {
        position: static; /* Allows it to flow naturally in the flex column */
        margin-top: 40px; /* Space above the footer */
        text-align: center;
        bottom: initial;
        font-size: 10px;
    }
    .footer img {
        display: block;
        margin: 0 auto;
    }
}
