:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary-color: #6366f1;
    --secondary-color: #ef4444;
    --accent-color: #818cf8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

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

.container {
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

header h1 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: #94a3b8;
    font-weight: 300;
    margin-bottom: 3rem;
}

.visualizer-container {
    position: relative;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.circle-visualizer {
    position: relative;
    width: 100px;
    height: 100px;
}

.core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-color);
    z-index: 10;
    transition: all 0.3s ease;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    opacity: 0;
    animation: none;
}

/* Active State Animations */
.active .core {
    box-shadow: 0 0 40px var(--primary-color);
    animation: breathe 2s infinite ease-in-out;
}

.active .pulse-ring:nth-child(1) {
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.active .pulse-ring:nth-child(2) {
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1) 0.6s;
}

.active .pulse-ring:nth-child(3) {
    animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1) 1.2s;
}

/* Speaking State (AI Speaking) */
.speaking .core {
    background: #c084fc;
    box-shadow: 0 0 50px #c084fc;
    transform: translate(-50%, -50%) scale(1.2);
}

.status-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    min-height: 1.5em;
    color: #e2e8f0;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

button {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

footer {
    margin-top: 4rem;
    font-size: 0.8rem;
    color: #64748b;
}

@keyframes pulse {
    0% {
        width: 60px;
        height: 60px;
        opacity: 0.8;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

@keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}
