:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --border: #2a2a2a;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #6c5ce7;
    --accent-hover: #7d6ff0;
    --success: #2ecc71;
    --error: #e74c3c;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
}

nav .logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
}

.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-right a { color: var(--text-muted); text-decoration: none; }
.nav-right a:hover { color: var(--text); }

main { flex: 1; max-width: 800px; margin: 0 auto; padding: 2rem; width: 100%; }

.hero { text-align: center; padding: 3rem 0; }
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero .subtitle { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 2rem; }

.upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 3rem 2rem;
    transition: border-color 0.2s;
}
.upload-area.drag-over { border-color: var(--accent); }

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }

.upload-prompt { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.upload-prompt p { color: var(--text-muted); }

.recording-ui { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.recording-indicator { width: 12px; height: 12px; background: var(--error); border-radius: 50%; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hidden { display: none !important; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.result {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
}
.result.match { border-color: var(--success); }
.result.no-match { border-color: var(--error); }
.result h2 { margin-bottom: 0.5rem; }
.result .meta { color: var(--text-muted); font-size: 0.9rem; }

.features { padding: 3rem 0; }
.features h2 { text-align: center; margin-bottom: 2rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature { background: var(--surface); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border); }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--text-muted); font-size: 0.9rem; }

.dashboard h1 { margin-bottom: 1.5rem; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th, .history-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.history-table th { color: var(--text-muted); font-weight: 500; }

footer { text-align: center; padding: 2rem; color: var(--text-muted); font-size: 0.85rem; }
footer a { color: var(--accent); text-decoration: none; }
