@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --slate: #1e293b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.perspective-container {
    perspective: 1000px;
}

.tilt-card {
    transform: rotateY(-5deg) rotateX(5deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 20px 20px 60px -15px rgba(0, 0, 0, 0.15);
}

.tilt-card:hover {
    transform: rotateY(0) rotateX(0) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.25);
}

.input-cbt {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid #dbeafe;
    background: #fff;
    padding: 0.9rem 1rem;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    transition: 0.2s ease;
}

.input-cbt:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.speed-widget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1rem;
    padding: 0.75rem;
}

.speed-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: #94a3b8;
}

.speed-dot.ok { background: #22c55e; }
.speed-dot.warn { background: #f59e0b; }
.speed-dot.bad { background: #ef4444; }

::selection {
    background: var(--primary);
    color: white;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

@media (max-width: 1023px) {
    .tilt-card {
        transform: none;
    }
}
