/*
 * Design Tokens — Modern B2B Tech & Corporate ISP (Blue & White Light Theme)
 * Dominant Base: Pure White (#ffffff / #f8fafc / #f1f5f9)
 * Corporate Accents: Deep Navy (#0f172a), Royal Blue (#2563eb), Indibiz Red (#dc2626), Soft Blue Tint (#eff6ff)
 */

:root {
  /* Color Palette Primitives */
  --bg: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-hover: #f1f5f9;

  --surface: #ffffff;
  --surface-raised: #f8fafc;
  --surface-card: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.92);
  --surface-overlay: rgba(255, 255, 255, 0.95);

  --text: #0f172a;           /* Deep Corporate Slate/Navy */
  --text-muted: #475569;     /* Readable Muted Slate */
  --text-faint: #94a3b8;     /* Subtle Faint Text */
  --text-inverse: #ffffff;

  /* Corporate Blue Primary Palette */
  --blue-primary: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-active: #1e40af;
  --blue-subtle: #eff6ff;
  --blue-border: #bfdbfe;

  /* Indibiz Brand Red Accent */
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --primary-active: #991b1b;
  --primary-subtle: #fef2f2;
  --on-primary: #ffffff;

  /* Functional Status Colors */
  --color-success: #16a34a;
  --color-success-subtle: #f0fdf4;
  --color-warning: #d97706;
  --color-warning-subtle: #fffbeb;
  --color-error: #dc2626;
  --color-error-subtle: #fef2f2;
  --color-info: #0284c7;
  --color-info-subtle: #f0f9ff;

  /* WhatsApp Green */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #128C7E;
  --whatsapp-glow: rgba(37, 211, 102, 0.25);

  /* Light Theme Borders */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-focus: #2563eb;

  /* Gradients for Light Corporate Look */
  --grad-blue-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --grad-blue-light: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  --grad-hero-bg: radial-gradient(circle at 50% -10%, #dbeafe 0%, #f8fafc 60%, #ffffff 100%);
  --grad-primary-red: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
  --grad-cta-banner: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);

  /* Admin LTE Fallbacks */
  --lte-blue: #0284c7;
  --lte-green: #16a34a;
  --lte-yellow: #d97706;
  --lte-red: #dc2626;
  --lte-primary: #2563eb;
  --lte-dark: #0f172a;
}

/* ─── TYPOGRAPHY ─── */
:root {
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --text-xs:   clamp(0.700rem, 0.660rem + 0.170vw, 0.800rem);
  --text-sm:   clamp(0.850rem, 0.780rem + 0.270vw, 0.950rem);
  --text-base: clamp(1.000rem, 0.930rem + 0.360vw, 1.125rem);
  --text-lg:   clamp(1.200rem, 1.100rem + 0.500vw, 1.350rem);
  --text-xl:   clamp(1.440rem, 1.300rem + 0.700vw, 1.650rem);
  --text-2xl:  clamp(1.750rem, 1.530rem + 0.990vw, 2.000rem);
  --text-3xl:  clamp(2.100rem, 1.790rem + 1.420vw, 2.500rem);
  --text-4xl:  clamp(2.500rem, 2.090rem + 1.990vw, 3.200rem);
  --text-5xl:  clamp(3.000rem, 2.440rem + 2.730vw, 4.000rem);
  --text-hero: clamp(3.000rem, 2.400rem + 3.600vw, 4.500rem);

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --tracking-tight: -0.03em;
  --tracking-snug: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
}

/* ─── SPACING, RADIUS & SHADOWS ─── */
:root {
  --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;

  --container-padding-x: clamp(var(--space-4), 5vw, var(--space-16));

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --radius-full: 9999px;
  --radius-btn: var(--radius-lg);
  --radius-card: var(--radius-xl);

  --shadow-color: 220 25% 10%;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 20px 45px rgba(15, 23, 42, 0.12);

  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --transition-colors: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
  --transition-all: all var(--duration-normal) var(--ease-out-expo);

  --z-sticky: 200; --z-fixed: 300; --z-modal: 500;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  font-family: var(--font-body); font-size: var(--text-base);
  line-height: var(--leading-normal); color: var(--text); background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display); line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight); font-weight: var(--weight-bold); color: var(--text);
}
a { color: var(--blue-primary); text-decoration: none; transition: var(--transition-colors); }
a:hover { color: var(--blue-hover); }
img, video, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
