/* ==========================================================================
   NEXAFLOW — DESIGN VARIABLES
   Edit here to rebrand the template quickly.
   ========================================================================== */

:root {
  /* ---------- Brand colors ---------- */
  --color-brand: #6366f1;        /* indigo/violet primary */
  --color-brand-dark: #4f46e5;
  --color-brand-light: #a5b4fc;
  --color-brand-glow: rgba(99, 102, 241, 0.35);

  /* ---------- Secondary / accent colors ---------- */
  --color-accent: #22d3ee;       /* cyan for highlights / secondary CTA */
  --color-accent-dark: #0891b2;

  /* ---------- Neutral dark palette ---------- */
  --color-bg: #0b0d14;           /* main background */
  --color-bg-alt: #111320;       /* alternate background (dark sections) */
  --color-surface: #161825;      /* elevated surface (cards) */
  --color-surface-hover: #1c1f2e;
  --color-border: #232636;       /* subtle borders */
  --color-border-hover: #374151;

  /* ---------- Text ---------- */
  --color-text: #f3f4f6;         /* primary text */
  --color-text-muted: #9ca3af;   /* secondary text */
  --color-text-inverse: #0b0d14; /* text on light background */

  /* ---------- Semantics ---------- */
  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-error: #f87171;

  /* ---------- Typography ---------- */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;

  --fs-base: 1rem;               /* 16px */
  --fs-sm: 0.875rem;             /* 14px */
  --fs-xs: 0.75rem;              /* 12px */

  --fs-h1: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --fs-h2: clamp(2rem, 4vw + 1rem, 3rem);
  --fs-h3: clamp(1.5rem, 3vw + 0.75rem, 2rem);
  --fs-h4: clamp(1.25rem, 2vw + 0.75rem, 1.5rem);

  --line-tight: 1.2;
  --line-normal: 1.6;

  /* ---------- Spacing ---------- */
  --space-1: 0.5rem;
  --space-1-5: 0.75rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-8: 6rem;

  /* ---------- Layout ---------- */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --section-padding: 6rem 0;

  /* ---------- Borders / Radius ---------- */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;

  /* ---------- Shadows ---------- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.25);

  /* ---------- Transitions ---------- */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.6s ease;

  /* ---------- Z-index ---------- */
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-modal: 30;
}

/* ---------- Light mode (optional, uncomment to use) ---------- */
/*
@media (prefers-color-scheme: light) {
  :root {
    --color-bg: #f8fafc;
    --color-bg-alt: #f1f5f9;
    --color-surface: #ffffff;
    --color-surface-hover: #f1f5f9;
    --color-border: #cbd5e1;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-text-inverse: #ffffff;
  }
}
*/

/* Reduce motion for users with accessibility preference */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.01s ease;
    --transition-normal: 0.01s ease;
    --transition-slow: 0.01s ease;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
    scroll-behavior: auto !important;
  }
}
