/* ==========================================================================
   Cyberbond Security — Design Tokens (Light & Dark Modes)
   ========================================================================== */

:root {
  color-scheme: light;

  /* Surfaces */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-header: rgba(248, 250, 252, 0.82);
  --bg-footer: #080c14;
  --text-footer: #e2e8f0;
  --text-footer-muted: #94a3b8;

  /* Text */
  --text-primary: #0b1120;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Borders & Dividers */
  --border-hairline: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.18);
  --inner-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.85);

  /* Discipline Accents */
  --accent-teal: #0d9488;
  --accent-teal-soft: rgba(13, 148, 136, 0.09);
  --accent-teal-border: rgba(13, 148, 136, 0.28);

  --accent-indigo: #4f46e5;
  --accent-indigo-soft: rgba(79, 70, 229, 0.09);
  --accent-indigo-border: rgba(79, 70, 229, 0.28);

  --accent-magenta: #c026d3;
  --accent-magenta-soft: rgba(192, 38, 211, 0.09);
  --accent-magenta-border: rgba(192, 38, 211, 0.28);

  /* Semantic Actions & States */
  --cta-primary-bg: #0b1120;
  --cta-primary-hover: #1e293b;
  --cta-primary-text: #ffffff;

  --cta-secondary-bg: rgba(255, 255, 255, 0.7);
  --cta-secondary-hover: #ffffff;
  --cta-secondary-text: #0b1120;

  --status-error: #dc2626;
  --status-error-soft: rgba(220, 38, 38, 0.08);
  --status-error-border: rgba(220, 38, 38, 0.32);

  --status-success: #059669;
  --status-success-soft: rgba(5, 150, 105, 0.08);
  --status-success-border: rgba(5, 150, 105, 0.32);

  /* Focus */
  --focus-ring: #4f46e5;

  /* Typography */
  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Rhythm */
  --container-max: 76rem;
  --container-narrow: 46rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-space: clamp(4.25rem, 7.5vw, 6.75rem);

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.125rem;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 32px -8px rgba(15, 23, 42, 0.08), 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.14), 0 4px 16px -4px rgba(15, 23, 42, 0.06);

  /* Active service accent default */
  --service-accent: var(--accent-teal);
  --service-accent-soft: var(--accent-teal-soft);
  --service-accent-border: var(--accent-teal-border);
  --hero-glow-1: rgba(13, 148, 136, 0.09);
  --hero-glow-2: rgba(79, 70, 229, 0.08);
  --grid-dot: rgba(15, 23, 42, 0.07);
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg-canvas: #070b14;
  --bg-surface: #0f172a;
  --bg-surface-subtle: #0c1322;
  --bg-surface-elevated: #151f36;
  --bg-glass: rgba(15, 23, 42, 0.72);
  --bg-header: rgba(7, 11, 20, 0.8);
  --bg-footer: #04070d;
  --text-footer: #f1f5f9;
  --text-footer-muted: #94a3b8;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --border-hairline: rgba(248, 250, 252, 0.09);
  --border-strong: rgba(248, 250, 252, 0.2);
  --inner-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --accent-teal: #2dd4bf;
  --accent-teal-soft: rgba(45, 212, 191, 0.12);
  --accent-teal-border: rgba(45, 212, 191, 0.32);

  --accent-indigo: #818cf8;
  --accent-indigo-soft: rgba(129, 140, 248, 0.12);
  --accent-indigo-border: rgba(129, 140, 248, 0.32);

  --accent-magenta: #e879f9;
  --accent-magenta-soft: rgba(232, 121, 249, 0.12);
  --accent-magenta-border: rgba(232, 121, 249, 0.32);

  --cta-primary-bg: #f8fafc;
  --cta-primary-hover: #e2e8f0;
  --cta-primary-text: #070b14;

  --cta-secondary-bg: rgba(255, 255, 255, 0.03);
  --cta-secondary-hover: rgba(255, 255, 255, 0.08);
  --cta-secondary-text: #f8fafc;

  --status-error: #f87171;
  --status-error-soft: rgba(248, 113, 113, 0.12);
  --status-error-border: rgba(248, 113, 113, 0.35);

  --status-success: #34d399;
  --status-success-soft: rgba(52, 211, 153, 0.12);
  --status-success-border: rgba(52, 211, 153, 0.35);

  --focus-ring: #818cf8;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 34px -8px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 56px -12px rgba(0, 0, 0, 0.7);

  --hero-glow-1: rgba(45, 212, 191, 0.11);
  --hero-glow-2: rgba(129, 140, 248, 0.12);
  --grid-dot: rgba(248, 250, 252, 0.06);
}

/* Service theme scopes */
[data-service="teal"] {
  --service-accent: var(--accent-teal);
  --service-accent-soft: var(--accent-teal-soft);
  --service-accent-border: var(--accent-teal-border);
  --hero-glow-1: rgba(45, 212, 191, 0.13);
  --hero-glow-2: rgba(79, 70, 229, 0.07);
}

[data-service="indigo"] {
  --service-accent: var(--accent-indigo);
  --service-accent-soft: var(--accent-indigo-soft);
  --service-accent-border: var(--accent-indigo-border);
  --hero-glow-1: rgba(129, 140, 248, 0.14);
  --hero-glow-2: rgba(45, 212, 191, 0.07);
}

[data-service="magenta"] {
  --service-accent: var(--accent-magenta);
  --service-accent-soft: var(--accent-magenta-soft);
  --service-accent-border: var(--accent-magenta-border);
  --hero-glow-1: rgba(232, 121, 249, 0.13);
  --hero-glow-2: rgba(129, 140, 248, 0.08);
}
