/*
   MiDash Solutions theme
   Source of truth for colors used by agents.html.

   Quick edit guide:
   - Brand teal: --color-accent-* and --agents-accent-*
   - Page backgrounds: --agents-bg-*
   - Cards and chips: --agents-card-*, --agents-pill-*
   - Borders and dividers: --agents-border-*
   - Final dark call-to-action: --agents-final-*
   - Logo gradient stops: --agents-logo-*
*/

/* Core MiDash color system
   Used by: body, nav, menu drawer, buttons, inherited card styles, footer, legal copy. */
:root,
[data-theme="dark"] {
  --color-accent-pure: #31B4AB;
  --color-accent: #5FCCC5;
  --color-accent-light: #CDEFEC;
  --color-accent-deep: #2A908A;
  --color-accent-dark: #06444A;
  --color-accent-shadow: #1B5E5A;
  --color-accent-dim: rgba(49, 180, 171, .10);
  --color-accent-glow: rgba(95, 204, 197, .18);
  --color-accent-soft: rgba(95, 204, 197, .10);

  --color-mint-pale: #CDEFEC;
  --color-silver: #D7DCDD;
  --color-silver-2: #929A9D;
  --color-graphite: #111615;
  --color-graphite-2: #171D1C;

  --color-bg: #050707;
  --color-bg-2: #080D0D;
  --color-surface: #0D1515;
  --color-surface-hover: #141D1D;
  --color-footer-bg: #050707;

  --color-text: #F4FBFA;
  --color-text-dim: #738887;
  --color-text-soft: #A8BBBB;
  --color-text-secondary: #D7DCDD;

  --color-positive: #31B4AB;
  --color-negative: #D46F6F;
  --color-warning: #D7B56D;

  --accent-halo-soft: rgba(215, 220, 221, .055);
  --accent-halo-faint: rgba(95, 204, 197, .035);

  --color-border-soft: rgba(215, 220, 221, .07);
  --color-border: rgba(215, 220, 221, .12);
  --color-border-strong: rgba(215, 220, 221, .20);

  --card-bg: rgba(13, 21, 21, .72);
  --section-soft-bg: rgba(215, 220, 221, .035);

  --on-accent: #06100F;

  --radius: .75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --ease: cubic-bezier(.4, 0, .6, 1);
  --ease-out: cubic-bezier(.25, 1, .5, 1);

  --container: 1200px;
  --container-wide: 1400px;

  color-scheme: dark;
}

[data-theme="light"] {
  --color-accent-pure: #228D86;
  --color-accent: #31B4AB;
  --color-accent-light: #5FCCC5;
  --color-accent-deep: #1B6B66;
  --color-accent-dark: #06444A;
  --color-accent-shadow: #1B5E5A;
  --color-accent-dim: rgba(49, 180, 171, .10);
  --color-accent-glow: rgba(49, 180, 171, .18);
  --color-accent-soft: rgba(49, 180, 171, .08);

  --color-mint-pale: #CDEFEC;
  --color-silver: #D7DCDD;
  --color-silver-2: #929A9D;
  --color-graphite: #111615;
  --color-graphite-2: #171D1C;

  --color-bg: #F4F6F5;
  --color-bg-2: #E8ECEB;
  --color-surface: #FFFFFF;
  --color-surface-hover: #F0F3F2;
  --color-footer-bg: #E8ECEB;

  --color-text: #1C2120;
  --color-text-dim: #738887;
  --color-text-soft: #52605F;
  --color-text-secondary: #303A39;

  --color-positive: #228D86;
  --color-negative: #B95E5E;
  --color-warning: #9E7A2B;

  --accent-halo-soft: rgba(28, 33, 32, .045);
  --accent-halo-faint: rgba(49, 180, 171, .02);

  --color-border-soft: rgba(28, 33, 32, .08);
  --color-border: rgba(28, 33, 32, .13);
  --color-border-strong: rgba(28, 33, 32, .22);

  --card-bg: rgba(255, 255, 255, .82);
  --section-soft-bg: rgba(28, 33, 32, .035);

  --on-accent: #FFFFFF;

  color-scheme: light;
}

/* Agents page palette
   Used by: visible B2B landing sections in agents.html. */
:root {
  /* Brand and highlight colors
     Used by: hero label, final CTA label, highlighted words, primary accents. */
  --agents-accent: #31B4AB;
  --agents-accent-deep: #1B6B66;

  /* Light page surfaces
     Used by: hero, alternating content bands, ecosystem band, image placeholders. */
  --agents-bg-soft: #f6f8f7;
  --agents-bg-clean: #ffffff;
  --agents-bg-muted: #e8eceb;

  /* Hero text colors
     Used by: hero-only local color override. */
  --agents-hero-text: #111615;
  --agents-hero-text-dim: #697573;
  --agents-hero-text-soft: #4f5c5a;
  --agents-hero-text-secondary: #202826;

  /* Borders and dividers
     Used by: hero, content sections, cards, chips, image frame, ghost button. */
  --agents-border-soft: rgba(28, 33, 32, .08);
  --agents-border: rgba(28, 33, 32, .10);
  --agents-border-medium: rgba(28, 33, 32, .12);
  --agents-border-strong: rgba(28, 33, 32, .18);
  --agents-border-hover: rgba(28, 33, 32, .26);

  /* Hero overlay wash
     Used by: .inst-hero::before over the hero image/background. */
  --agents-hero-wash-strong: rgba(246, 248, 247, .94);
  --agents-hero-wash-mid: rgba(246, 248, 247, .70);
  --agents-hero-wash-clear: rgba(246, 248, 247, .18);
  --agents-hero-wash-top: rgba(246, 248, 247, .84);
  --agents-hero-wash-bottom: rgba(232, 236, 235, .58);

  /* Pills and ghost buttons
     Used by: hero proof chips and secondary hero CTA. */
  --agents-pill-bg: rgba(255, 255, 255, .62);
  --agents-pill-text: #37413f;
  --agents-ghost-bg: rgba(255, 255, 255, .58);
  --agents-ghost-bg-hover: rgba(255, 255, 255, .82);

  /* Cards and framed visuals
     Used by: path, custom, fit cards, note blocks, and build visual. */
  --agents-card-bg: rgba(255, 255, 255, .88);
  --agents-card-muted-bg: rgba(255, 255, 255, .68);
  --agents-note-bg: rgba(255, 255, 255, .72);
  --agents-card-shadow: 0 12px 30px rgba(17, 22, 21, .04);
  --agents-visual-shadow: 0 18px 50px rgba(17, 22, 21, .07);

  /* Final CTA
     Used by: dark closing section and overlay. */
  --agents-final-bg: #111615;
  --agents-final-overlay-start: rgba(17, 22, 21, .72);
  --agents-final-overlay-end: rgba(17, 22, 21, .78);
  --agents-final-text: #ffffff;
  --agents-final-text-soft: rgba(255, 255, 255, .85);
  --agents-final-border: rgba(255, 255, 255, .4);
  --agents-final-border-hover: rgba(255, 255, 255, .6);
  --agents-final-button-bg-hover: rgba(255, 255, 255, .1);

  /* Metallic primary CTA
     Used by: Book a Build Mapping Call buttons and mobile drawer CTA. */
  --agents-metal-gradient: linear-gradient(115deg, #727B7E, #C8CED0 32%, #F4F6F7 50%, #AAB2B5 72%, #5F686B);
  --agents-metal-gradient-hover: linear-gradient(115deg, #899194, #D7DCDD 34%, #FFFFFF 50%, #B6BFC2 72%, #6D777A);
  --agents-metal-text: #07100F;
  --agents-metal-border: rgba(255, 255, 255, .28);
  --agents-metal-shadow: 0 18px 48px rgba(190, 199, 202, .18), inset 0 1px rgba(255, 255, 255, .76);
  --agents-metal-inset: inset 0 1px rgba(255, 255, 255, .72);

  /* Base eyebrow and drawer UI
     Used by: inherited eyebrow style and mobile menu drawer. */
  --agents-eyebrow-bg: rgba(215, 220, 221, .055);
  --agents-eyebrow-border: rgba(215, 220, 221, .16);
  --agents-eyebrow-inset: inset 0 1px rgba(255, 255, 255, .06);
  --agents-drawer-scrim: rgba(7, 12, 22, .55);
  --agents-drawer-shadow: -16px 0 40px -8px rgba(0, 0, 0, .35);

  /* Responsive nav-on-background colors
     Used by: mobile nav when it sits on light/dark sections. */
  --agents-nav-dark-text: #ffffff;
  --agents-nav-dark-divider: rgba(255, 255, 255, .30);
  --agents-nav-dark-control-border: rgba(255, 255, 255, .45);
  --agents-nav-light-text: #0a0c0b;
  --agents-nav-light-divider: rgba(10, 12, 11, .25);
  --agents-nav-light-control-border: rgba(10, 12, 11, .35);

  /* Logo gradient stops
     Used by: inline MiDash wordmark SVGs in the header/footer. */
  --agents-logo-nav-lit-0: #3d4342;
  --agents-logo-nav-lit-1: #1c2120;
  --agents-logo-nav-lit-2: #0c1110;
  --agents-logo-nav-lit-3: #000000;
  --agents-logo-nav-dim-0: #b6bcbb;
  --agents-logo-nav-dim-1: #a0a7a6;
  --agents-logo-nav-dim-2: #888f8e;
  --agents-logo-nav-dim-3: #6f7675;
  --agents-logo-nav-center-0: #4a5050;
  --agents-logo-shadow: #000000;

  --agents-logo-footer-lit-0: #ffffff;
  --agents-logo-footer-lit-1: #e6efee;
  --agents-logo-footer-dim-0: #ffffff;
  --agents-logo-footer-dim-1: #f1f5f4;
  --agents-logo-footer-dim-2: #d8e2e0;
}

/* Agents page palette - DARK mode
   Light is the default (values on :root above). This block flips the
   agents-specific surfaces, text, borders, washes and cards for dark mode.
   Uses :root[data-theme="dark"] (specificity 0,2,0) so it reliably beats the
   :root light defaults regardless of stylesheet source order. Logo/metal/nav
   tokens are intentionally left as-is - they're only consumed inside
   [data-theme="light"] rules or are theme-agnostic. */
:root[data-theme="dark"] {
  --agents-accent: #5FCCC5;
  --agents-accent-deep: #2A908A;

  /* Page surfaces (mirror the core dark --color-bg / --color-surface ramp) */
  --agents-bg-soft: #080D0D;
  --agents-bg-clean: #0D1515;
  --agents-bg-muted: #141D1D;

  /* Hero text */
  --agents-hero-text: #F4FBFA;
  --agents-hero-text-dim: #738887;
  --agents-hero-text-soft: #A8BBBB;
  --agents-hero-text-secondary: #D7DCDD;

  /* Borders and dividers (light-on-dark) */
  --agents-border-soft: rgba(215, 220, 221, .06);
  --agents-border: rgba(215, 220, 221, .10);
  --agents-border-medium: rgba(215, 220, 221, .14);
  --agents-border-strong: rgba(215, 220, 221, .20);
  --agents-border-hover: rgba(215, 220, 221, .30);

  /* Hero overlay wash (dark instead of the light paper wash) */
  --agents-hero-wash-strong: rgba(5, 7, 7, .94);
  --agents-hero-wash-mid: rgba(5, 7, 7, .70);
  --agents-hero-wash-clear: rgba(5, 7, 7, .18);
  --agents-hero-wash-top: rgba(5, 7, 7, .84);
  --agents-hero-wash-bottom: rgba(8, 13, 13, .58);

  /* Pills and ghost buttons */
  --agents-pill-bg: rgba(215, 220, 221, .06);
  --agents-pill-text: #A8BBBB;
  --agents-ghost-bg: rgba(215, 220, 221, .05);
  --agents-ghost-bg-hover: rgba(215, 220, 221, .10);

  /* Cards and framed visuals */
  --agents-card-bg: rgba(13, 21, 21, .72);
  --agents-card-muted-bg: rgba(13, 21, 21, .55);
  --agents-note-bg: rgba(13, 21, 21, .60);
  --agents-card-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  --agents-visual-shadow: 0 18px 50px rgba(0, 0, 0, .50);

  /* Final CTA - already a dark section; deepen slightly for contrast on a
     now-dark page. Text/border tokens are already light, inherited from :root. */
  --agents-final-bg: #05100F;
  --agents-final-overlay-start: rgba(3, 8, 8, .72);
  --agents-final-overlay-end: rgba(3, 8, 8, .82);
}
