/* src/styles/tokens.css
 * Root design tokens, reset/base, tabular-numerals helper, and the two fixed
 * background layers (app-bg / app-grid). Ported verbatim from the Emberly
 * Control Room stylesheet (site/index.pretty.css lines 1-72) — see
 * part3-visual-system.md §1 (Tokens, fonts, base/reset, scrollbars).
 *
 * Font note (verbatim behaviour, part3 §1.0): Inter is *declared* in --font
 * but never loaded (no @font-face / @import / <link>) in the original app,
 * so it renders in Inter only on machines that already have it installed and
 * falls back to the system UI font everywhere else. This file intentionally
 * does NOT add a Google Fonts (or any) import, to match that behaviour.
 */

:root {
    --bg: #06070a;
    --bg-elev: #0c0e13;
    --card: rgba(255, 255, 255, .022);
    --card-hover: rgba(255, 255, 255, .04);
    --hairline: rgba(255, 255, 255, .07);
    --hairline-strong: rgba(255, 255, 255, .12);
    --text: #f4f6fb;
    --text-dim: #9aa3b2;
    --text-faint: #5c6472;
    --accent: #6d8bff;
    --accent-2: #8b6dff;
    --accent-glow: rgba(109, 139, 255, .55);
    --pos: #37e0a6;
    --neg: #ff6b7d;
    --radius: 16px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif
}

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

html,
body,
#root {
    height: 100%
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01";
    letter-spacing: -.01em;
    overflow-x: hidden
}

.tnum {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum"
}

.app-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(60% 50% at 15% -5%, rgba(109, 139, 255, .16), transparent 60%), radial-gradient(55% 45% at 92% 8%, rgba(139, 109, 255, .13), transparent 62%), radial-gradient(50% 40% at 50% 105%, rgba(55, 224, 166, .06), transparent 60%)
}

.app-grid {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, black, transparent 78%);
    mask-image: radial-gradient(90% 70% at 50% 0%, black, transparent 78%);
    opacity: .4
}
