/*
 * JetOps design tokens: the single source of truth for the brand.
 *
 * Both the website (site/) and the portal (portal/) read this file, so a
 * change here restyles both. Change a value, commit, and it goes live.
 *
 * The look: Apple's clarity on deep navy. Near-black navy backgrounds with
 * darker gradients, broken up by light sections in Apple's off-white. One
 * confident blue for anything you can act on, and a blue-to-ice gradient for
 * the words that matter most.
 */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Navy scale, darkest to lightest */
  --navy-950: #02050d;
  --navy-900: #030814;
  --navy-850: #050d20;
  --navy-800: #08142f;
  --navy-700: #0d1d43;
  --navy-600: #142a5c;

  /* Surfaces */
  --bg: #030814;
  --bg-raised: #050d20;
  --surface: #0a1632;
  --surface-2: #0e1d40;
  --surface-3: #14274f;

  /* Cards: a deep navy gradient, lighter at the top left */
  --card-bg: linear-gradient(160deg, #10224f 0%, #0a1738 42%, #060f27 100%);
  --card-border: rgba(150, 180, 255, 0.12);

  /* Lines */
  --line: rgba(150, 180, 255, 0.12);
  --line-strong: rgba(150, 180, 255, 0.22);

  /* Text */
  --text: #f5f7fc;
  --text-muted: #a9b7d2;
  --text-faint: #72829f;

  /* Action blue (Apple's blue on dark) */
  --accent: #2997ff;
  --accent-hover: #4dabff;
  --accent-strong: #0071e3;
  --accent-strong-hover: #0a7ef0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(41, 151, 255, 0.12);
  --accent-line: rgba(41, 151, 255, 0.4);

  /* Intelligence highlight */
  --si: #8fb8ff;
  --si-soft: rgba(143, 184, 255, 0.12);
  --si-line: rgba(143, 184, 255, 0.36);
  --gradient-text: linear-gradient(100deg, #eaf2ff 0%, #9ccbff 30%, #3d9dff 62%, #7c86ff 100%);

  /* Status */
  --ok: #30d158;
  --ok-soft: rgba(48, 209, 88, 0.12);
  --caution: #ffd60a;
  --caution-soft: rgba(255, 214, 10, 0.12);
  --danger: #ff453a;
  --danger-soft: rgba(255, 69, 58, 0.12);

  /* Type: San Francisco on Apple devices, Inter everywhere else */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  /* Shape */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 980px;

  /* Depth */
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --glow: 0 0 0 1px var(--accent-line), 0 0 40px -8px rgba(41, 151, 255, 0.45);
}

/* Light palette: the portal's light theme, and the website's light sections
   (any element with the theme-light class). */
:root[data-theme="light"],
.theme-light {
  color-scheme: light;

  --bg: #f5f5f7;
  --bg-raised: #ececf0;
  --surface: #ffffff;
  --surface-2: #f5f6f9;
  --surface-3: #e8ebf1;

  --card-bg: #ffffff;
  --card-border: rgba(10, 25, 60, 0.08);

  --line: rgba(10, 25, 60, 0.1);
  --line-strong: rgba(10, 25, 60, 0.2);

  --text: #1d1d1f;
  --text-muted: #515866;
  --text-faint: #7b8292;

  --accent: #0066cc;
  --accent-hover: #0071e3;
  --accent-strong: #0071e3;
  --accent-strong-hover: #0077ed;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 113, 227, 0.08);
  --accent-line: rgba(0, 113, 227, 0.32);

  --si: #3b5bdb;
  --si-soft: rgba(59, 91, 219, 0.08);
  --si-line: rgba(59, 91, 219, 0.3);
  --gradient-text: linear-gradient(100deg, #0b2a6b 0%, #0066cc 50%, #5b5bd6 100%);

  --ok: #248a3d;
  --ok-soft: rgba(36, 138, 61, 0.1);
  --caution: #b25000;
  --caution-soft: rgba(178, 80, 0, 0.1);
  --danger: #d70015;
  --danger-soft: rgba(215, 0, 21, 0.08);

  --shadow: 0 1px 2px rgba(10, 25, 60, 0.05), 0 18px 40px -20px rgba(10, 25, 60, 0.25);
  --glow: 0 0 0 1px var(--accent-line), 0 8px 24px -12px rgba(0, 113, 227, 0.45);
}
