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

:root {
    --bg: hsl(220 20% 7%);
    --primary: hsl(197 100% 50%);
    --primary-dim: hsl(197 100% 30%);
    --text: hsl(220 10% 90%);
    --muted: hsl(220 10% 62%);
    --terminal-bg: hsl(220 20% 10%);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
}

#synapses {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

.logo {
    color: var(--primary);
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

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

h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: var(--text);
}

.terminal {
    background: var(--terminal-bg);
    border: 1px solid hsl(220 20% 20%);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    width: 100%;
    max-width: 400px;
    margin-bottom: 2rem;
}

.terminal-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s, transform 0.5s;
}

.terminal-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.terminal-text {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    color: var(--muted);
}

.terminal-line.visible .terminal-text {
    color: var(--text);
}

.terminal-status {
    font-size: 0.875rem;
    min-width: 1.5rem;
    text-align: right;
}

.terminal-status.done {
    color: hsl(142 76% 50%);
}

.terminal-status.spinner {
    color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.subtitle {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.note {
    font-size: 0.875rem;
    color: var(--muted);
    opacity: 0.7;
}

/* Error states */
body.status-error .logo {
    color: hsl(0 70% 50%);
    animation: none;
}

body.status-error h1 {
    color: hsl(0 70% 70%);
}

/* Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .terminal {
        padding: 1rem 1.25rem;
    }
    
    .terminal-text {
        font-size: 0.75rem;
    }
}
