/* ==========================================================================
   AgroBridge — Design Tokens
   Derived via ui-ux-pro-max-skill: Trust & Authority + Financial Dashboard
   Typography pairing: "Financial Trust" (IBM Plex Sans + IBM Plex Mono)
   ========================================================================== */

:root {
  /* Color roles — deep navy (authority/trust) + warm mustard gold
     (grain/agriculture, buttons & progress trackers) + a separate deep-blue
     glass system (frosted, semi-transparent — modals, badges, panels)
     + profit green, on a warm paper background (contract/document feel) */
  --color-primary: #14304d;
  --color-primary-dark: #0c2033;
  --color-primary-foreground: #ffffff;

  --color-secondary: #1c3f5f;

  /* Warm mustard — used by buttons and progress trackers only.
     Richer/more saturated than the old #b8862f, which read as "dirty". */
  --color-accent: #d89b2a;
  --color-accent-dark: #a8760e;
  --color-accent-foreground: #ffffff;
  --color-accent-tint: rgba(216, 155, 42, 0.16);
  --color-accent-tint-strong: rgba(216, 155, 42, 0.28);
  --color-accent-border: rgba(216, 155, 42, 0.4);
  --color-accent-pale: #f2d59a; /* opaque warm pale gold — icons/text on dark surfaces */

  /* Deep-blue glass — used for "windows": modals, badges, tiles, banners,
     toast. Tied to the site's own navy, not a bolted-on iOS blue. */
  --color-glass-fg: #2451d6;
  --color-glass-fg-dark: #1c3a99;
  --color-glass-tint: rgba(36, 81, 214, 0.12);
  --color-glass-tint-strong: rgba(36, 81, 214, 0.22);
  --color-glass-border: rgba(36, 81, 214, 0.32);
  --color-glass-pale: #b9cdfb; /* opaque pale blue — icons/text on dark surfaces */
  --gradient-glass: linear-gradient(135deg, rgba(20, 48, 77, 0.88) 0%, rgba(36, 81, 214, 0.62) 60%, rgba(70, 54, 199, 0.6) 100%);

  /* Glass material — frosted, semi-transparent, soft corners (iOS-style) */
  --glass-blur: blur(20px) saturate(180%);
  --radius-glass: 22px;

  --color-success: #157347;
  --color-success-tint: #e3f3ea;
  --color-destructive: #b3261e;
  --color-destructive-tint: #fbe9e7;

  --color-background: #f7f5f0;
  --color-background-alt: #f1ede3;
  --color-foreground: #1a2233;

  --color-card: #ffffff;
  --color-card-foreground: #1a2233;

  --color-muted: #efeade;
  --color-muted-foreground: #6b6659;

  --color-border: #e3ddcc;
  --color-border-strong: #cbc2a8;

  --color-ring: #14304d;

  /* Typography */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Type scale */
  --fs-display: clamp(2.25rem, 1.7rem + 2.2vw, 3.5rem);
  --fs-h1: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  --fs-h2: clamp(1.375rem, 1.25rem + 0.5vw, 1.75rem);
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 48, 77, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 48, 77, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 48, 77, 0.14);

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
}
