:root {
    --bg-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --status-green: #00ff9d;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--text-primary);
}

#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content */
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    z-index: 1;
}

/* Logo Styles */
.logo-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    /* Initial state for fade-in */
    animation: fadeLogo 1s ease-out forwards;
    /* Much faster: 3s -> 1s */
}

.logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    /* Just glow, no invert */
}

/* Title Styles */
.title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    /* Premium wide spacing */
    margin-bottom: 3rem;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 1s ease-out 0.5s forwards;
    /* Faster delay */
    text-align: center;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typewriter Styles */
.typewriter {
    font-family: 'Inter', monospace;
    /* Or a techy font if available */
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 1.5rem;
    /* Reserve space */
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1rem;
    background-color: #ffffff;
    /* White cursor */
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

/* Status Pill Styles */
.status-pill {
    position: relative;
    /* For pseudo-element absolute positioning */
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 9999px;
    backdrop-filter: blur(10px);

    /* Initially hidden */
    opacity: 0;
    transform: translateY(-20px);
    /* Start slightly higher */
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.status-pill.visible {
    opacity: 1;
    transform: translateY(0);
    /* Move down to natural position */
}

/* The Green Border Animation - triggered when visible? No, let's keep it running but invisible until pill is shown */
.status-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Less intense: semi-transparent border */
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 9999px;
    /* Very minimal glow */
    box-shadow: 0 0 5px rgba(0, 255, 157, 0.1);

    /* Start hidden (clipped from right to left) */
    clip-path: inset(0 100% 0 0);

    /* Note: Animation currently runs immediately on load. 
       If we want it to run when pill appears, we should scope it to .visible.
       Let's pause it until .visible is added. 
    */
    animation: expandBorderLeftRight 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-play-state: paused;
}

.status-pill.visible::before {
    animation-play-state: running;
}

.status-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

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

.status-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Animations */
@keyframes fadeLogo {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(10px) drop-shadow(0 0 20px rgba(255, 255, 255, 0));
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0) drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
}

@keyframes fadeUp {

    /* Kept for title if needed */
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes expandBorderLeftRight {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
        /* Fully revealed */
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 157, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .title {
        font-size: 1.75rem;
        letter-spacing: 0.15em;
    }

    .logo-wrapper {
        width: 140px;
        height: 140px;
    }

    .container {
        padding: 1.5rem;
    }
}