/* ============================================================================
   IBackTested — Design Tokens
   The single source of truth for every color in the product.
   White background, black text, one accent. Change colors HERE only.
   ========================================================================== */

:root {
    /* --- Core surfaces --- */
    --bg: #FFFFFF;            /* page background */
    --bg-subtle: #F7F8FA;     /* alternate section background */
    --bg-inset: #F0F1F4;      /* inset panels, code blocks, hover fills */
    --surface: #FFFFFF;       /* cards, modals, dropdowns */
    --overlay: rgba(17, 24, 39, 0.45); /* modal backdrop */

    /* --- Text --- */
    --text: #111827;          /* primary text (near-black) */
    --text-secondary: #374151;/* headings on subtle surfaces */
    --text-muted: #6B7280;    /* secondary labels, captions */
    --text-faint: #9CA3AF;    /* placeholders, disabled */
    --text-inverse: #FFFFFF;  /* text on dark fills */

    /* --- Borders --- */
    --border: #E5E7EB;        /* default hairline */
    --border-strong: #D1D5DB; /* inputs, emphasis */

    /* --- Brand accent (links, primary buttons, active states) --- */
    --accent: #111827;        /* primary buttons: black, per brand simplicity */
    --accent-hover: #000000;
    --accent-soft: #F3F4F6;   /* soft accent fill */
    --link: #1D4ED8;          /* hyperlinks */

    /* --- Semantic --- */
    --success: #059669;
    --success-soft: #ECFDF5;
    --danger: #DC2626;
    --danger-soft: #FEF2F2;
    --warning: #D97706;
    --warning-soft: #FFFBEB;
    --info: #2563EB;
    --info-soft: #EFF6FF;

    /* --- Charts --- */
    --chart-1: #111827;       /* equity / primary series */
    --chart-2: #2563EB;
    --chart-3: #059669;
    --chart-4: #D97706;
    --chart-5: #7C3AED;
    --chart-6: #0891B2;
    --chart-up: #059669;      /* profit / wins */
    --chart-down: #DC2626;    /* loss / drawdown */
    --chart-grid: #EDF0F3;
    --chart-axis: #6B7280;

    /* --- Typography --- */
    --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont,
                 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.8125rem;
    --text-base: 0.9375rem;
    --text-lg: 1.0625rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.375rem;

    /* --- Spacing & radius --- */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 999px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;

    --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
    --shadow-md: 0 4px 12px rgba(17, 24, 39, 0.08);
    --shadow-lg: 0 12px 32px rgba(17, 24, 39, 0.12);

    --header-height: 60px;
    --content-max: 1200px;
}
