/* ScanRaise — Design tokens and base styles */

:root {
    --accent: #2563eb;
    --accent-light: #eff6ff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-muted: #f9fafb;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Global nav */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-nav-border {
    border-bottom: 1px solid var(--border);
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-nav .logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.3px;
}
.site-nav .logo span { color: var(--accent); }
.site-nav .logo:hover { text-decoration: none; }
.site-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-nav .nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
}
.site-nav .nav-links a:hover {
    color: var(--text-primary);
    text-decoration: none;
}
.site-nav .nav-cta {
    display: inline-block;
    padding: 8px 18px;
    background: var(--accent);
    color: white !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.15s;
}
.site-nav .nav-cta:hover { opacity: 0.9; }

/* Tablet */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr !important; }
    .stats { grid-template-columns: repeat(2, 1fr) !important; }
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .wrap { padding: 20px 16px 60px; }
    .head { flex-direction: column; gap: 12px; }
    .head h1 { font-size: 24px; }
}

/* Mobile */
@media (max-width: 500px) {
    .site-nav .nav-links { gap: 14px; }
    .site-nav .nav-links a.hide-mobile { display: none; }
    .stats { grid-template-columns: 1fr 1fr !important; gap: 8px; }
    .stat { padding: 14px; }
    .stat .value { font-size: 22px; }
    .section { padding: 16px; }
    .section h2 { font-size: 16px; }
    .filter-bar { flex-direction: column; }
    .filter-bar input, .filter-bar select, .filter-bar button { width: 100%; }
    .btn { padding: 10px 16px; font-size: 13px; }
    .group-card { flex-direction: column; align-items: flex-start; }
}
