/* Bonu2 Agent — design tokens */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/DMSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/DMSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  /* Colour — dark theme; gold + red taken from the official B2 logo */
  --color-brand-red:   #E10600;  /* logo red accent bars, CTAs */
  --color-brand-red-d: #A30400;  /* hover/pressed */
  --color-brand-blue:  #1565E0;  /* info accents */
  --color-gold:        #F5B301;  /* logo gold, coins, reward amounts */
  --color-gold-soft:   #2A2211;  /* dark gold tint for surfaces */
  --color-ink:         #F5F2EA;  /* body text */
  --color-ink-2:       #D6D1C6;
  --color-muted:       #A7A194;
  --color-line:        #34303C;
  --color-bg:          #0C0B10;  /* page bg (matches the app icon's black) */
  --color-surface:     #17151D;
  --color-surface-2:   #221F29;
  --color-red-text:    #FF5A50;  /* brand red lifted for AA text contrast on dark */
  --color-night:       #0B0F2A;  /* dark bands, matches bnr4/bnr6 */
  --color-neon-teal:   #19E3C1;
  --color-success:     #16A34A;

  --color-on-dark:       #FFFFFF;
  --color-on-dark-muted: rgba(255, 255, 255, 0.72);
  --color-glass:         rgba(255, 255, 255, 0.08);
  --color-glass-line:    rgba(255, 255, 255, 0.18);
  --gradient-cta: linear-gradient(180deg, #FF2A1F 0%, var(--color-brand-red) 45%, var(--color-brand-red-d) 100%);

  /* Typography */
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-body);
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-size-xs: 0.75rem;   /* 12 */
  --font-size-sm: 0.875rem;  /* 14 */
  --font-size-md: 1rem;      /* 16 */
  --font-size-lg: 1.125rem;  /* 18 */
  --font-size-xl: 1.375rem;  /* 22 */
  --font-size-2xl: 1.75rem;  /* 28 */
  --font-size-3xl: 2.25rem;  /* 36 */
  --line-height-tight: 1.15;
  --line-height-snug: 1.35;
  --line-height-body: 1.55;

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 40px;
  --space-10: 48px;
  --space-11: 56px;
  --space-12: 64px;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-raised: 0 -12px 48px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(245, 179, 1, 0.35), 0 6px 24px rgba(245, 179, 1, 0.35);

  /* Z-index */
  --z-nav: 20;
  --z-sticky: 30;
  --z-modal: 50;
  --z-toast: 60;

  /* Layout */
  --header-h: 56px;
  --topbar-h: 44px;
  --column-w: 480px;
  --focus-ring: 0 0 0 3px var(--color-bg), 0 0 0 5px var(--color-gold);
}
