/* ============================================================
   base.css — Reset + Body + Background
   Live Talk AI Framework v2
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 245, 196, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 196, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

/* App container */
.app {
    position: relative;
    z-index: var(--z-base);
    width: 100%;
    max-width: 800px;
    padding: 24px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

/* Header */
header {
    text-align: center;
    padding: 16px 0;
}

.logo {
    font-size: 11px;
    letter-spacing: 6px;
    color: var(--accent);
    font-family: var(--font-mono);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.app-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 60%, var(--accent2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Focus visible outline */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--accent2);
    border-radius: 2px;
}

/* Selection */
::selection {
    background: rgba(0, 245, 196, 0.25);
    color: #fff;
}