/* ==========================================================================
   Dark theme
   Deep indigo night with the same glass language. Surfaces are translucent
   white over the ground, so depth comes from light rather than from shadow.

   Contrast measured against the page base #0A0D26:
     --text-strong      17.3:1
     --text             13.7:1
     --text-secondary    9.6:1
     --text-muted        6.4:1
     --accent-strong     8.8:1
   ========================================================================== */

[data-theme="dark"] {
  --bg: #0A0D26;
  --bg-subtle: #0D1131;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-raised: rgba(255, 255, 255, 0.09);
  --surface-sunken: rgba(255, 255, 255, 0.04);
  --surface-inverse: #F1F2FF;

  --border: rgba(165, 160, 255, 0.16);
  --border-strong: rgba(165, 160, 255, 0.3);
  --grid-line: rgba(160, 156, 255, 0.06);

  --text-strong: #F2F3FF;
  --text: #D6D9F5;
  --text-secondary: #B0B5DD;
  --text-muted: #8C92C0;
  --text-inverse: #0E1033;

  --accent: #A596FF;
  --accent-strong: #B2A5FF;
  --accent-soft: rgba(165, 150, 255, 0.26);
  --accent-wash: rgba(165, 150, 255, 0.1);
  --accent-border: rgba(165, 150, 255, 0.36);
  --accent-contrast: #0E1033;
  --accent-glow: rgba(120, 96, 255, 0.34);

  --warm-text: #F4BC70;
  --warm-bg: rgba(244, 188, 112, 0.12);
  --warm-border: rgba(244, 188, 112, 0.38);
  --warm-dot: #F4BC70;

  --grad-brand: linear-gradient(135deg, #5A38EA 0%, #7A4FF6 55%, #9568FA 100%);
  --grad-text: linear-gradient(100deg, #8E8BFF 0%, #B393FF 60%, #D0A8FF 100%);
  --btn-primary-bg: #6840F0;
  --btn-primary-bg-hover: #7A52F6;
  --btn-primary-fg: #FFFFFF;
  --btn-glow: rgba(122, 82, 246, 0.45);

  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.095);
  --glass-border: rgba(255, 255, 255, 0.13);
  --glass-edge: rgba(165, 160, 255, 0.18);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 12px 40px rgba(2, 3, 20, 0.5), 0 2px 6px rgba(2, 3, 20, 0.3);
  --glass-shadow-lift: 0 20px 56px rgba(2, 3, 20, 0.62), 0 4px 12px rgba(2, 3, 20, 0.35);
  --glass-blur: 20px;

  --atmos-a: rgba(110, 96, 255, 0.22);
  --atmos-b: rgba(80, 120, 255, 0.2);
  --atmos-c: rgba(160, 100, 255, 0.2);
  --atmos-d: rgba(80, 100, 255, 0.2);
  --atmos-e: rgba(130, 90, 255, 0.18);
  --cloud: rgba(150, 140, 255, 0.1);
  --page-wash: linear-gradient(180deg, #0C1030 0%, #0A0D26 45%, #100C2E 100%);
  --wave-a: rgba(96, 110, 255, 0.2);
  --wave-b: rgba(150, 100, 255, 0.18);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, 0.55);

  --header-bg: rgba(18, 22, 62, 0.55);
  --header-border: rgba(255, 255, 255, 0.12);
  --overlay: rgba(4, 5, 22, 0.66);

  --success: #6FCF97;
  --danger: #F0907B;
}
