/* ==========================================================================
   FastJoins v2 — base & design tokens
   ========================================================================== */

@font-face { font-family: "gg sans"; font-weight: 400; font-display: swap; src: url("/public/font/gg-sans/400.woff2") format("woff2"); }
@font-face { font-family: "gg sans"; font-weight: 500; font-display: swap; src: url("/public/font/gg-sans/500.woff2") format("woff2"); }
@font-face { font-family: "gg sans"; font-weight: 600; font-display: swap; src: url("/public/font/gg-sans/600.woff2") format("woff2"); }
@font-face { font-family: "gg sans"; font-weight: 700; font-display: swap; src: url("/public/font/gg-sans/700.woff2") format("woff2"); }
@font-face { font-family: "gg sans"; font-weight: 800; font-display: swap; src: url("/public/font/gg-sans/800.woff2") format("woff2"); }

:root {
    /* Surfaces */
    --bg: #101217;
    --bg-raised: #15181e;
    --surface: #191c23;
    --surface-2: #20242c;
    --surface-3: #282c36;
    --border: #252932;
    --border-strong: #333845;

    /* Text */
    --text: #eceef3;
    --text-2: #a4a9b8;
    --text-3: #6c7182;

    /* Brand (from the logo) */
    --accent: #3c78f2;
    --accent-hover: #2f68dc;
    --accent-soft: rgba(60, 120, 242, 0.14);
    --accent-text: #8fb2ff;

    /* Status */
    --green: #2fb36b;
    --green-soft: rgba(47, 179, 107, 0.14);
    --red: #ef5a6f;
    --red-soft: rgba(239, 90, 111, 0.14);
    --amber: #e5a23a;
    --amber-soft: rgba(229, 162, 58, 0.12);

    /* Shape */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --ease: cubic-bezier(0.2, 0, 0, 1);

    --container: 1120px;
    --nav-h: 60px;

    /* Kept for backwards compatibility with old inline styles */
    --color-theme: var(--accent);
    --color-theme-rgb: 60, 120, 242;
    --color-text: var(--text);
    --color-text2: var(--text-2);
}

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

html {
    background: var(--bg);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: "gg sans", "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgba(60, 120, 242, 0.4); }

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

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    border-radius: 8px;
    background: var(--surface-3) padding-box;
}
*::-webkit-scrollbar-thumb:hover { background-color: var(--border-strong); }

.num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
