/* Design Tokens - piisafe.eu Marketing Pages */

:root {
  /* ===== Color Palette ===== */

  /* Primary Colors */
  --primary: #2563eb;           /* Blue - CTAs, links */
  --primary-hover: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;

  --secondary: #10b981;          /* Green - success states */
  --secondary-hover: #059669;
  --secondary-light: #34d399;
  --secondary-dark: #047857;

  --accent: #f59e0b;             /* Amber - warnings, highlights */
  --accent-hover: #d97706;
  --accent-light: #fbbf24;
  --accent-dark: #b45309;

  /* Neutrals - Light Theme */
  --bg: #ffffff;                 /* Background */
  --surface: #f9fafb;            /* Cards, sections */
  --surface-hover: #f3f4f6;
  --border: #e5e7eb;             /* Borders, dividers */
  --border-light: #f3f4f6;
  --border-dark: #d1d5db;

  --text-primary: #111827;       /* Headings, body */
  --text-secondary: #5f6570;     /* Captions, metadata (was #6b7280, now 4.6:1 contrast) */
  --text-muted: #9ca3af;         /* Disabled states */
  --text-inverse: #ffffff;       /* Text on dark backgrounds */

  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  /* ===== Typography ===== */

  /* Font Families */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px - captions */
  --text-sm: 0.875rem;     /* 14px - small text */
  --text-base: 1rem;       /* 16px - body */
  --text-lg: 1.125rem;     /* 18px - large body */
  --text-xl: 1.25rem;      /* 20px - subheadings */
  --text-2xl: 1.5rem;      /* 24px - headings */
  --text-3xl: 1.875rem;    /* 30px - section titles */
  --text-4xl: 2.25rem;     /* 36px - page titles */
  --text-5xl: 3rem;        /* 48px - hero headings */
  --text-6xl: 3.75rem;     /* 60px - extra large */

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* ===== Spacing System ===== */

  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-7: 1.75rem;   /* 28px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* ===== Border Radius ===== */

  --radius-none: 0;
  --radius-sm: 0.25rem;   /* 4px - small elements */
  --radius-md: 0.5rem;    /* 8px - cards, buttons */
  --radius-lg: 0.75rem;   /* 12px - large cards */
  --radius-xl: 1rem;      /* 16px - modals */
  --radius-2xl: 1.5rem;   /* 24px - extra large */
  --radius-full: 9999px;  /* Pills, avatars */

  /* ===== Shadows ===== */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* ===== Z-Index Scale ===== */

  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* ===== Transitions ===== */

  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  --transition-slower: 500ms ease-in-out;

  /* ===== Breakpoints (for reference in media queries) ===== */

  --breakpoint-sm: 640px;   /* Mobile landscape */
  --breakpoint-md: 768px;   /* Tablet portrait */
  --breakpoint-lg: 1024px;  /* Tablet landscape / small desktop */
  --breakpoint-xl: 1280px;  /* Desktop */
  --breakpoint-2xl: 1536px; /* Large desktop */

  /* ===== Layout ===== */

  --container-max-width: 1200px;
  --container-padding: var(--space-6);
  --header-height: 64px;
  --footer-height: auto;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface-hover: #232736;
  --border: #2d3148;
  --border-light: #232736;
  --border-dark: #3a3f5c;

  --text-primary: #e2e4eb;
  --text-secondary: #9ca0b0;
  --text-muted: #848a9d;         /* Was #6b7280, now 4.5:1 contrast on dark bg */
  --text-inverse: #111827;

  /* Adjust shadows for dark mode */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
}

/* Base Typography */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
}

code,
pre {
  font-family: var(--font-mono);
}

/* Responsive Typography */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;  /* 36px on mobile */
    --text-4xl: 1.875rem; /* 30px on mobile */
    --text-3xl: 1.5rem;   /* 24px on mobile */
  }
}
