/* =====================================================================
   Ralyvora Portal - Heraldic Strategy Design System
   Tokens: Obsidian surfaces, ruby and antique-gold accents, restrained glass,
   steel-blue status light, typography, spacing, and motion.
   ===================================================================== */

:root {
  /* ---- Cybernetic Deep Obsidian / Midnight Void ---- */
  --color-bg: #080608;
  --color-bg-alt: #0f090d;
  --color-bg-elevated: #171014;
  --color-bg-card: rgba(24, 15, 20, 0.82);
  --color-bg-glass: rgba(29, 18, 24, 0.7);

  --color-surface: #1b1117;
  --color-surface-sunken: #0b0709;
  --color-surface-raised: #281821;
  --color-surface-hover: #35202b;

  /* Stable compatibility aliases used by the portal components. */
  --color-bg-2: var(--color-bg-alt);
  --color-surface-2: var(--color-surface-raised);
  --color-surface-3: var(--color-surface-hover);

  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-subtle: rgba(255, 255, 255, 0.05);
  --color-border-strong: rgba(255, 255, 255, 0.16);
  --color-border-glow: rgba(112, 173, 214, 0.35);

  /* ---- Typography Colors ---- */
  --color-text: #f5f0eb;
  --color-text-muted: #b6a9ad;
  --color-text-faint: #7f7278;
  --color-text-glow: #ffffff;

  /* ---- Neon Accent System (Jeabslist Standard) ---- */
  /* Primary 1: Electric Cyan */
  --color-neon-cyan: #70add6;
  --color-neon-cyan-soft: rgba(112, 173, 214, 0.15);
  --color-neon-cyan-dim: rgba(112, 173, 214, 0.08);
  --color-neon-cyan-glow: rgba(112, 173, 214, 0.55);

  /* Primary 2: Hot Magenta / Pink */
  --color-neon-pink: #d94767;
  --color-neon-pink-soft: rgba(217, 71, 103, 0.16);
  --color-neon-pink-dim: rgba(217, 71, 103, 0.09);
  --color-neon-pink-glow: rgba(217, 71, 103, 0.55);

  /* Primary 3: Arcane Violet / Indigo */
  --color-neon-violet: #7a4a92;
  --color-neon-violet-soft: rgba(122, 74, 146, 0.2);
  --color-neon-violet-glow: rgba(122, 74, 146, 0.5);

  /* Secondary: Heraldic Gold / Amber */
  --color-neon-gold: #d7a64a;
  --color-neon-gold-soft: rgba(215, 166, 74, 0.16);
  --color-neon-gold-glow: rgba(215, 166, 74, 0.45);

  /* Luminous Teal (Live status) */
  --color-neon-teal: #50b89f;
  --color-neon-teal-soft: rgba(80, 184, 159, 0.16);
  --color-neon-teal-glow: rgba(80, 184, 159, 0.5);

  /* Heraldic Crest Gold */
  --color-primary: #ebca83;
  --color-primary-strong: #d0a248;
  --color-primary-deep: #8b5d1f;
  --color-primary-soft: rgba(240, 203, 132, 0.14);

  --color-accent: var(--color-neon-teal);
  --color-accent-strong: #3a9b84;
  --color-accent-soft: var(--color-neon-teal-soft);
  --color-on-accent: #04120f;
  --color-live: var(--color-neon-teal);
  --color-soon: var(--color-text-muted);
  --color-on-primary: #0a0710;

  /* ---- Multi-Stop Cyber Gradients ---- */
  --grad-brand-btn: linear-gradient(135deg, #71182f 0%, #b82f50 54%, #d4a64f 100%);
  --grad-brand-btn-hover: linear-gradient(135deg, #8b1f3d 0%, #cf3f61 52%, #e3bb68 100%);
  --grad-brand-gold: linear-gradient(135deg, #fce09b 0%, #d9a441 50%, #996e1a 100%);
  --grad-brand-cyan: linear-gradient(135deg, #a5f3fc 0%, #00f0ff 50%, #0284c7 100%);
  --grad-gold: var(--grad-brand-gold);
  --grad-brand: linear-gradient(120deg, var(--color-neon-gold) 0%, var(--color-neon-teal) 100%);
  --grad-text: linear-gradient(100deg, #fce7a6 0%, var(--color-neon-gold) 45%, #7fe9d5 100%);

  --grad-wordmark: linear-gradient(100deg, #fff8e8 0%, #e4bd68 24%, #fff4d1 48%, #c84361 72%, #f0c977 100%);
  --grad-gold-text: linear-gradient(100deg, #fff9e9 0%, #efd28d 34%, #d7a64a 68%, #a96f27 100%);
  --grad-scanline: linear-gradient(90deg, transparent 0%, rgba(126, 25, 55, 0.65) 25%, rgba(215, 166, 74, 0.85) 50%, rgba(112, 173, 214, 0.55) 75%, transparent 100%);

  --grad-card-sheen: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.08) 45%, rgba(112, 173, 214, 0.15) 55%, transparent 100%);
  --grad-grid-mask: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 85%);

  /* ---- Typography ---- */
  --font-heading: 'Space Grotesk', 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-2xs: 0.68rem;
  --fs-xs: 0.78rem;
  --fs-sm: 0.88rem;
  --fs-base: 1rem;
  --fs-md: 1.15rem;
  --fs-lg: 1.38rem;
  --fs-xl: clamp(1.6rem, 1.1rem + 2vw, 2.25rem);
  --fs-2xl: clamp(2.1rem, 1.2rem + 3.4vw, 3.5rem);
  --fs-3xl: clamp(2.8rem, 1.4rem + 5.2vw, 5.2rem);

  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.6;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 750;
  --fw-extrabold: 850;
  --fw-black: 900;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.14em;
  --tracking-widest: 0.24em;

  /* ---- Spacing Scale ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8.5rem;

  /* ---- Radii ---- */
  --radius-xs: 0.35rem;
  --radius-sm: 0.6rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-2xl: 2.25rem;
  --radius-pill: 9999px;

  /* ---- Hairlines & Lines ---- */
  --hairline: 1px;
  --line-2: 2px;

  /* ---- Shadows & Glows ---- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.75);
  --shadow-panel: 0 12px 38px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);

  --shadow-btn-primary: 0 8px 26px rgba(126, 25, 55, 0.38), 0 0 18px rgba(215, 166, 74, 0.18);
  --shadow-btn-hover: 0 12px 38px rgba(126, 25, 55, 0.5), 0 0 24px rgba(215, 166, 74, 0.28);

  --shadow-glow-cyan: 0 0 24px rgba(112, 173, 214, 0.35);
  --shadow-glow-pink: 0 0 24px rgba(217, 71, 103, 0.35);
  --shadow-glow-violet: 0 0 24px rgba(122, 74, 146, 0.4);
  --shadow-glow-gold: 0 0 24px rgba(215, 166, 74, 0.35);

  /* ---- Motion & Transitions ---- */
  --dur-instant: 90ms;
  --dur-fast: 160ms;
  --dur-base: 260ms;
  --dur-slow: 450ms;
  --dur-slower: 800ms;
  --dur-ambient: 4.8s;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* ---- Container Widths ---- */
  --container: 78rem;
  --container-narrow: 54rem;
  --container-wide: 88rem;
}
