/* ============================================
   FUTURE DIGITAL — Design Tokens
   Dark (default) + Light Theme Support
   ============================================ */

:root {
  /* ── Background — Dark (default) ── */
  --bg-primary: #050505;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --bg-card: #161616;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --bg-glass-border: rgba(255, 255, 255, 0.08);

  /* ── Text — Dark ── */
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --text-headline: #fafafa;

  /* ── Shadows — Dark ── */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);

  /* ── Hero Colors — Dark ── */
  --hero-bg: #050505;
  --hero-dot: rgba(255, 255, 255, 0.06);
  --hero-eyebrow: #6e6e73;
  --hero-title-sub: #86868b;
  --hero-title-main: #f5f5f7;
  --hero-subtitle: #86868b;
  --hero-tagline: #6e6e73;
  --hero-cta-bg: #2d8cf0;
  --hero-cta-hover: #1a73e8;
  --hero-overlay-rgb: 5, 5, 5;
  --hero-scroll: #6e6e73;
  --hero-shadow: rgba(0, 0, 0, 0.5);

  /* ── Brand Accents ── */
  --accent-2shtec: #2d8cf0;
  --accent-2shtec-glow: rgba(45, 140, 240, 0.3);
  --accent-berger: #22c55e;
  --accent-berger-glow: rgba(34, 197, 94, 0.3);
  --accent-coltex: #8b5cf6;
  --accent-coltex-glow: rgba(139, 92, 246, 0.3);

  --shadow-glow-blue: 0 0 40px var(--accent-2shtec-glow);
  --shadow-glow-green: 0 0 40px var(--accent-berger-glow);
  --shadow-glow-purple: 0 0 40px var(--accent-coltex-glow);

  /* ── Navbar — Dark theme state ── */
  --navbar-link: #f5f5f7;
  --navbar-link-hover: #ffffff;
  --navbar-link-line: #f5f5f7;
  --navbar-scrolled-bg: rgba(5, 5, 5, 0.85);
  --navbar-scrolled-link: #f5f5f7;
  --navbar-scrolled-link-hover: #ffffff;
  --navbar-scrolled-link-line: #ffffff;
  --navbar-lang-bg: rgba(255, 255, 255, 0.08);
  --navbar-lang-border: rgba(255, 255, 255, 0.15);
  --navbar-lang-color: #f5f5f7;
  --navbar-toggle-line: #f5f5f7;

  /* ── Typography ── */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1rem + 1.25vw, 1.75rem);
  --text-2xl: clamp(1.5rem, 1rem + 2.5vw, 2.5rem);
  --text-3xl: clamp(2rem, 1.2rem + 4vw, 3.5rem);
  --text-4xl: clamp(2.5rem, 1rem + 6vw, 5rem);
  --text-hero: clamp(3rem, 1rem + 8vw, 7rem);

  /* Font weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Letter spacing */
  --tracking-tight: -0.03em;
  --tracking-normal: -0.01em;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;

  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* ── Spacing ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;
  --space-section: clamp(6rem, 4rem + 10vw, 12rem);

  /* ── Layout ── */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 800px;
  --container-padding: clamp(1.5rem, 1rem + 2vw, 4rem);

  /* ── Border & Radius ── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* ── Transitions ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 600ms;
  --duration-slower: 1000ms;

  /* ── Z-index scale ── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-navbar: 500;
  --z-modal: 1000;
}


/* ═══════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════ */
[data-theme="light"] {
  /* ── Background ── */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f0f1f3;
  --bg-card: #ffffff;
  --bg-glass: rgba(0, 0, 0, 0.03);
  --bg-glass-hover: rgba(0, 0, 0, 0.06);
  --bg-glass-border: rgba(0, 0, 0, 0.08);

  /* ── Text ── */
  --text-primary: #1a1a2e;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --text-headline: #111827;

  /* ── Shadows ── */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

  /* ── Hero ── */
  --hero-bg: #f5f6f8;
  --hero-dot: rgba(0, 0, 0, 0.04);
  --hero-eyebrow: #6b7280;
  --hero-title-sub: #374151;
  --hero-title-main: #0052A5;
  --hero-subtitle: #6b7280;
  --hero-tagline: #9ca3af;
  --hero-cta-bg: #0052A5;
  --hero-cta-hover: #003d7a;
  --hero-overlay-rgb: 245, 246, 248;
  --hero-scroll: #9ca3af;
  --hero-shadow: rgba(0, 0, 0, 0.08);

  /* ── Brand Accents (slightly deeper for contrast) ── */
  --accent-2shtec: #1d6fd0;
  --accent-2shtec-glow: rgba(29, 111, 208, 0.15);
  --accent-berger: #16a34a;
  --accent-berger-glow: rgba(22, 163, 74, 0.15);
  --accent-coltex: #7c3aed;
  --accent-coltex-glow: rgba(124, 58, 237, 0.15);

  --shadow-glow-blue: 0 0 40px var(--accent-2shtec-glow);
  --shadow-glow-green: 0 0 40px var(--accent-berger-glow);
  --shadow-glow-purple: 0 0 40px var(--accent-coltex-glow);

  /* ── Navbar ── */
  --navbar-link: #4b5563;
  --navbar-link-hover: #1a1a2e;
  --navbar-link-line: #1a1a2e;
  --navbar-scrolled-bg: rgba(255, 255, 255, 0.88);
  --navbar-scrolled-link: #4b5563;
  --navbar-scrolled-link-hover: #111827;
  --navbar-scrolled-link-line: #111827;
  --navbar-lang-bg: rgba(0, 0, 0, 0.04);
  --navbar-lang-border: rgba(0, 0, 0, 0.1);
  --navbar-lang-color: #374151;
  --navbar-toggle-line: #374151;
}
