/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; }

/* ===== Accessibility Utilities ===== */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--food);
    color: #000;
    font-weight: 700;
    border-radius: 0 0 6px 6px;
    z-index: 9999;
    text-decoration: none;
    font-size: 0.9rem;
}
.skip-link:focus { top: 0; }

:root {
    --bg: #152030;
    --bg2: #1a2a3e;
    --surface: #1e3048;
    --surface2: #253c58;
    --text: #eef0f6;
    --text-muted: #8faabf;
    --text-dim: #6a8ba8;
    --border: #2a4060;
    --border-light: #3a5575;

    --food: #34d399;
    --food-bg: rgba(52, 211, 153, 0.08);
    --food-glow: rgba(52, 211, 153, 0.25);
    --drug: #a78bfa;
    --drug-bg: rgba(167, 139, 250, 0.08);
    --drug-glow: rgba(167, 139, 250, 0.25);
    --device: #38bdf8;
    --device-bg: rgba(56, 189, 248, 0.08);
    --device-glow: rgba(56, 189, 248, 0.25);
    --consumer: #f97316;
    --consumer-bg: rgba(249, 115, 22, 0.08);
    --consumer-glow: rgba(249, 115, 22, 0.25);
    --vehicle: #facc15;
    --vehicle-bg: rgba(250, 204, 21, 0.08);
    --vehicle-glow: rgba(250, 204, 21, 0.25);

    --class-i: #f87171;
    --class-i-bg: rgba(248, 113, 113, 0.1);
    --class-ii: #fbbf24;
    --class-ii-bg: rgba(251, 191, 36, 0.1);
    --class-iii: #a3e635;
    --class-iii-bg: rgba(163, 230, 53, 0.1);

    --radius: 12px;
    --radius-lg: 18px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

@keyframes pageIn {
    from { opacity: 0; transform: scale(0.97) translateY(14px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes dangerPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(248, 113, 113, 0.15); }
    50% { box-shadow: 0 0 22px rgba(248, 113, 113, 0.65), 0 0 8px rgba(248, 113, 113, 0.4); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ===== Shared Highlight ===== */
.highlight {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff; border: none;
    border-radius: 50px;
    font-size: 0.92rem; font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    box-shadow: 0 4px 24px rgba(59, 130, 246, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.45);
}

.cta-secondary {
    background: transparent;
    border: 1px solid var(--class-i);
    color: var(--class-i);
    box-shadow: none;
}

.cta-secondary:hover {
    background: rgba(248, 113, 113, 0.08);
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.15);
}

kbd {
    background: var(--border);
    padding: 2px 7px; border-radius: 4px;
    font-size: 0.7rem; font-family: inherit;
    font-weight: 600; color: var(--text-muted);
}
