:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-slate-500: rgba(98, 108, 113, 1);
  --color-brown-600: rgba(94, 82, 64, 1);
  --color-charcoal-700: rgba(31, 33, 33, 1);
  --color-charcoal-800: rgba(38, 40, 40, 1);
  --color-slate-900: rgba(19, 52, 59, 1);
  --color-teal-300: rgba(50, 184, 198, 1);
  --color-teal-400: rgba(45, 166, 178, 1);
  --color-teal-500: rgba(33, 128, 141, 1);
  --color-teal-600: rgba(29, 116, 128, 1);
  --color-teal-700: rgba(26, 104, 115, 1);
  --color-teal-800: rgba(41, 150, 161, 1);
  --color-red-400: rgba(255, 84, 89, 1);
  --color-red-500: rgba(192, 21, 47, 1);
  --color-orange-400: rgba(230, 129, 97, 1);
  --color-orange-500: rgba(168, 75, 47, 1);

  /* RGB versions for opacity control */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;
  --color-slate-500-rgb: 98, 108, 113;
  --color-red-500-rgb: 192, 21, 47;
  --color-red-400-rgb: 255, 84, 89;
  --color-orange-500-rgb: 168, 75, 47;
  --color-orange-400-rgb: 230, 129, 97;

  /* Background color tokens (Light Mode) */
  --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
  --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
  --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
  --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
  --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
  --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
  --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
  --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */

  /* Semantic Color Tokens (Light Mode) */
  --color-background: var(--color-cream-50);
  --color-surface: var(--color-cream-100);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
  --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    /* RGB versions for opacity control (Dark Mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Background color tokens (Dark Mode) */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  /* RGB versions for opacity control (dark mode) */
  --color-gray-400-rgb: 119, 124, 124;
  --color-teal-300-rgb: 50, 184, 198;
  --color-gray-300-rgb: 167, 169, 169;
  --color-gray-200-rgb: 245, 245, 245;

  /* Colorful background palette - Dark Mode */
  --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
  --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
  --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
  --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
  --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
  --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
  --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
  --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */

  /* Semantic Color Tokens (Dark Mode) */
  --color-background: var(--color-charcoal-700);
  --color-surface: var(--color-charcoal-800);
  --color-text: var(--color-gray-200);
  --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
  --color-primary: var(--color-teal-300);
  --color-primary-hover: var(--color-teal-400);
  --color-primary-active: var(--color-teal-800);
  --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
  --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
  --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
  --color-border: rgba(var(--color-gray-400-rgb), 0.3);
  --color-error: var(--color-red-400);
  --color-success: var(--color-teal-300);
  --color-warning: var(--color-orange-400);
  --color-info: var(--color-gray-300);
  --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
  --color-btn-primary-text: var(--color-slate-900);
  --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
  --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
  --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: var(--color-teal-300-rgb);
  --color-error-rgb: var(--color-red-400-rgb);
  --color-warning-rgb: var(--color-orange-400-rgb);
  --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
  /* RGB versions for opacity control (light mode) */
  --color-brown-600-rgb: 94, 82, 64;
  --color-teal-500-rgb: 33, 128, 141;
  --color-slate-900-rgb: 19, 52, 59;

  /* Semantic Color Tokens (Light Mode) */
  --color-background: #fcfcf9;
  --color-surface: #ffffff;
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-teal-500);
  --color-primary-hover: var(--color-teal-600);
  --color-primary-active: var(--color-teal-700);
  --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
  --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
  --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
  --color-border: rgba(var(--color-brown-600-rgb), 0.2);
  --color-btn-primary-text: var(--color-cream-50);
  --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
  --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
  --color-error: var(--color-red-500);
  --color-success: var(--color-teal-500);
  --color-warning: var(--color-orange-500);
  --color-info: var(--color-slate-500);
  --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: var(--color-teal-500-rgb);
  --color-error-rgb: var(--color-red-500-rgb);
  --color-warning-rgb: var(--color-orange-500-rgb);
  --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

/* a:hover {
  color: var(--color-primary-hover);
} */

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 0.95);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}

/* Card component */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
  display: inline-flex;
  align-items: center;
  padding: var(--space-6) var(--space-12);
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.status--success {
  background-color: rgba(
    var(--color-success-rgb, 33, 128, 141),
    var(--status-bg-opacity)
  );
  color: var(--color-success);
  border: 1px solid
    rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
  background-color: rgba(
    var(--color-error-rgb, 192, 21, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-error);
  border: 1px solid
    rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* ProcessMed Artistic Design System */

/* Artistic Color Palette */
:root {
  /* Primary Blue Colors */
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --blue-950: #172554;
  
  /* Primary Red Colors */
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-200: #fecaca;
  --red-300: #fca5a5;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --red-900: #7f1d1d;
  --red-950: #450a0a;
  
  /* Artistic Gradients */
  --gradient-primary: linear-gradient(135deg, var(--blue-600) 0%, var(--red-600) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--blue-500) 0%, var(--red-500) 100%);
  --gradient-accent: linear-gradient(135deg, var(--blue-400) 0%, var(--red-400) 100%);
  --gradient-soft: linear-gradient(135deg, var(--blue-100) 0%, var(--red-100) 100%);
  --gradient-dark: linear-gradient(135deg, var(--blue-900) 0%, var(--red-900) 100%);
  --gradient-radial: radial-gradient(circle at center, var(--blue-500) 0%, var(--red-500) 100%);
  
  /* Artistic Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --bg-artistic: linear-gradient(135deg, var(--blue-50) 0%, var(--red-50) 100%);
  --bg-hero: linear-gradient(135deg, var(--blue-600) 0%, var(--red-600) 100%);
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.1);
  
  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;
  --text-accent: var(--blue-600);
  --text-accent-red: var(--red-600);
  
  /* Border Colors */
  --border-light: rgba(59, 130, 246, 0.1);
  --border-medium: rgba(59, 130, 246, 0.2);
  --border-strong: rgba(59, 130, 246, 0.3);
  --border-accent: var(--gradient-primary);
  
  /* Artistic Shadow System */
  --shadow-xs: 0 1px 2px 0 rgba(59, 130, 246, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(59, 130, 246, 0.1), 0 1px 2px -1px rgba(220, 38, 38, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 0 2px 4px -2px rgba(220, 38, 38, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(59, 130, 246, 0.1), 0 4px 6px -4px rgba(220, 38, 38, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 8px 10px -6px rgba(220, 38, 38, 0.1);
  --shadow-artistic: 0 25px 50px -12px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3), 0 0 40px rgba(220, 38, 38, 0.2);
  --shadow-card: 0 8px 32px rgba(59, 130, 246, 0.12), 0 2px 16px rgba(220, 38, 38, 0.08);
  
  /* Spacing Scale */
  --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;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
}

/* Artistic Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid transparent;
  border-image: var(--gradient-primary) 1;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-soft);
  opacity: 0.1;
  z-index: -1;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-artistic);
  transform: translateY(0);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__logo-img {
  height: 55px;
  width: 160px;
  transition: transform 0.3s ease;
  margin: 0 0 0 -99px;
}

.nav__logo-img:hover {
  transform: scale(1.05);
}

.nav__menu {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.nav__link {
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  position: relative;
}

.nav__link:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.nav__link.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

/* Mobile Navigation */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}

.nav__toggle:hover {
  background: var(--bg-secondary);
}

.nav__toggle-icon {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 768px) {
  .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: var(--space-4);
    gap: var(--space-2);
  }
  
  .nav__menu.open {
    display: flex;
  }
  
  .nav__toggle {
    display: block;
  }
  
  .nav {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* Artistic Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-hero);
  position: relative;
  padding: 120px 0 80px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 2;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: center;
  position: relative;
  z-index: 3;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  width: 100%;
}

.hero__text {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--font-extrabold);
  line-height: 1.1;
  color: var(--text-inverse);
  margin-bottom: var(--space-8);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: 600px;
}

.hero__title--highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-12);
  line-height: 1.6;
  max-width: 550px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-weight: var(--font-medium);
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-16);
  max-width: 100%;
}

.metric-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-soft);
  opacity: 0.1;
  z-index: -1;
}

.metric-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-glow);
  border-color: rgba(255, 255, 255, 0.3);
}

.metric-card__value {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--text-inverse);
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.metric-card__label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  font-weight: var(--font-medium);
}

.hero__cta-buttons {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-4);
}

.hero__cta {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Artistic Button Styles */
.btn--primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  border: 2px solid transparent;
  font-weight: var(--font-bold);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-artistic);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn--primary:hover::before {
  left: 100%;
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-glow);
  background: var(--gradient-secondary);
}

.btn--secondary {
  background: var(--bg-glass);
  color: var(--text-inverse);
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: var(--font-bold);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn--secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: var(--gradient-soft); */
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.btn--secondary:hover::before {
  opacity: 1;
}

.btn--secondary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-glow);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline {
  background: transparent;
  color: var(--text-inverse);
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-weight: var(--font-bold);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn--outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.btn--outline:hover::before {
  opacity: 1;
}

.btn--outline:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-glow);
  border-color: transparent;
}

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Artistic Workflow Visual */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.workflow-preview {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-12);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-artistic);
  position: relative;
  overflow: hidden;
}

.workflow-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-soft);
  opacity: 0.1;
  z-index: -1;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.workflow-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.workflow-step:hover::before {
  opacity: 0.1;
}

.workflow-step:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-glow);
  border-color: rgba(255, 255, 255, 0.5);
}

.workflow-step[data-step="1"] { animation-delay: 0.2s; }
.workflow-step[data-step="2"] { animation-delay: 0.4s; }
.workflow-step[data-step="3"] { animation-delay: 0.6s; }

.workflow-step__icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-2);
  color: var(--text-inverse);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.workflow-step__text {
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--text-inverse);
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workflow-arrow {
  font-size: var(--text-2xl);
  color: var(--text-inverse);
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.8s forwards;
  font-weight: var(--font-bold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Artistic Solutions Section */
.solutions {
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, #f7f9ff 0%, #ffffff 50%, #fefaff 100%);
  position: relative;
  overflow: hidden;
}

.solutions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.solutions__header {
  text-align: center;
  margin-bottom: var(--space-20);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-8);
  position: relative;
  z-index: 2;
}

.solutions__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-6);
  text-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.solutions__subtitle {
  font-size: var(--text-xl);
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
  font-weight: var(--font-medium);
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--space-10);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  position: relative;
  z-index: 2;
  justify-items: center;
}

.solution-card {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 1.5rem;
  padding: var(--space-8);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.solution-card:hover::before {
  opacity: 0.1;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.solution-card__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.solution-card__icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.solution-card:hover .solution-card__icon::before {
  left: 100%;
}

.solution-card:hover .solution-card__icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

.solution-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: #1f2937;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

.solution-card__description {
  color: #6b7280;
  line-height: 1.6;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
}

/* Icon gradient classes */
.icon-ip { 
  background: linear-gradient(45deg, #6366f1, #a855f7); 
}

.icon-doc-conversion { 
  background: linear-gradient(45deg, #f59e0b, #ef4444); 
}

.icon-doc-management { 
  background: linear-gradient(45deg, #3b82f6, #60a5fa); 
}

.icon-security { 
  background: linear-gradient(45deg, #ef4444, #be185d); 
}

.icon-realtime { 
  background: linear-gradient(45deg, #10b981, #34d399); 
}

.icon-analytics { 
  background: linear-gradient(45deg, #0ea5e9, #3b82f6); 
}

/* Artistic Statistics Section */
.statistics {
  padding: var(--space-16) 0;
  background: var(--gradient-dark);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.statistics::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.2) 0%, transparent 50%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  z-index: 1;
}

.statistics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  position: relative;
  z-index: 2;
  align-items: stretch;
}

.stat-item {
  text-align: center;
  padding: var(--space-8);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.stat-item:hover::before {
  opacity: 0.1;
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: var(--shadow-glow);
  border-color: rgba(255, 255, 255, 0.4);
}

.stat-item__value {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-extrabold);
  color: var(--text-inverse);
  display: inline-block;
  margin-right: var(--space-2);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__suffix {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: var(--font-extrabold);
  color: var(--text-inverse);
  display: inline-block;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__label {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-top: var(--space-4);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Artistic Applications Section */

/* Quick Access Notice */
.quick-access-notice {
  text-align: center;
  padding: var(--space-4);
  background: var(--primary-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--primary-200);
  margin-top: var(--space-6);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
}

.quick-access-notice__text {
  margin: 0;
  color: var(--primary-700);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

/* Artistic Integration Section */
.integration {
  padding: var(--space-24) 0;
  background: var(--bg-artistic);
  position: relative;
  overflow: hidden;
}

.integration::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.integration__header {
  text-align: center;
  margin-bottom: var(--space-20);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 2;
}

.integration__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-6);
  text-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.integration__subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
  font-weight: var(--font-medium);
}

.integration__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: var(--space-8);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  position: relative;
  z-index: 2;
  justify-items: center;
}

.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.step-card:hover::before {
  opacity: 0.1;
}

.step-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-artistic);
  border-color: rgba(59, 130, 246, 0.3);
}

.step-card__number {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--font-extrabold);
  margin: 0 auto var(--space-6) auto;
  color: var(--text-inverse);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-artistic);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.step-card__number::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.step-card:hover .step-card__number::before {
  left: 100%;
}

.step-card:hover .step-card__number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

.step-card__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.step-card__description {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
}

/* Artistic Final CTA Section */
.final-cta {
  padding: var(--space-24) 0;
  background: var(--gradient-dark);
  text-align: center;
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(220, 38, 38, 0.3) 0%, transparent 50%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
  z-index: 1;
}

.final-cta__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  position: relative;
  z-index: 2;
}

.final-cta__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.final-cta__subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-12);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--leading-relaxed);
  font-weight: var(--font-medium);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.final-cta__actions {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
}

/* Statistics Section */
.statistics {
  padding: var(--space-16) 0;
  background: linear-gradient(to right, #1a202c, #4c51bf, #c53030);
  color: var(--processmed-white);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.statistics::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.6;
  z-index: 1;
}

.statistics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-item {
  padding: var(--space-16);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Stat item color variants */
.stat-item--red .stat-item__value {
  color: #fca5a5; /* red-300 */
}

.stat-item--purple .stat-item__value {
  color: #c4b5fd; /* purple-300 */
}

.stat-item--indigo .stat-item__value {
  color: #a5b4fc; /* indigo-300 */
}

.stat-item--blue .stat-item__value {
  color: #93c5fd; /* blue-300 */
}

.stat-item--blue:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(147, 197, 253, 0.3);
}

.stat-item--red:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(252, 165, 165, 0.3);
}

.stat-item--purple:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(196, 181, 253, 0.3);
}

.stat-item--indigo:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(165, 180, 252, 0.3);
}

.stat-item__number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 2;
}

.stat-item__value {
  font-size: 3rem;
  font-weight: 800;
  display: inline;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
}

.stat-item__suffix {
  font-size: 3rem;
  font-weight: 800;
  display: inline;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  margin-left: 0.1em;
}

.stat-item__label {
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-1);
  text-align: center;
  line-height: 1.4;
  position: relative;
  z-index: 2;
}



/* Applications Section */
.applications {
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, #f7f9ff 0%, #ffffff 50%, #fefaff 100%);
  position: relative;
  overflow: hidden;
}

.applications::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.applications__header {
  text-align: center;
  margin-bottom: var(--space-24);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.applications__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-6);
  text-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.applications__subtitle {
  font-size: var(--text-xl);
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
  font-weight: var(--font-medium);
}

.applications__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--space-8);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.app-card {
  background: #ffffff;
  border-radius: 16px;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(229, 231, 235, 0.5);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  z-index: 3;
}


.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(239, 68, 68, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card--blue:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 15px rgba(59, 130, 246, 0.5);
}

.app-card--red:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 15px rgba(239, 68, 68, 0.5);
}

.app-card--purple:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 15px rgba(139, 92, 246, 0.5);
}

.app-card--green:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 15px rgba(22, 163, 74, 0.5);
}

.app-card--orange:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 15px rgba(234, 88, 12, 0.5);
}

.app-card--teal:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 15px rgba(13, 148, 136, 0.5);
}

.app-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 2;
}

.app-card--blue .app-card__icon {
  background: #dbeafe;
  color: #3b82f6;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.app-card--red .app-card__icon {
  background: #fecaca;
  color: #ef4444;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.app-card--purple .app-card__icon {
  background: #e9d5ff;
  color: #8b5cf6;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.app-card--green .app-card__icon {
  background: #dcfce7;
  color: #16a34a;
  box-shadow: 0 0 15px rgba(22, 163, 74, 0.5);
}

.app-card--orange .app-card__icon {
  background: #fed7aa;
  color: #ea580c;
  box-shadow: 0 0 15px rgba(234, 88, 12, 0.5);
}

.app-card--teal .app-card__icon {
  background: #ccfbf1;
  color: #0d9488;
  box-shadow: 0 0 15px rgba(13, 148, 136, 0.5);
}

.app-card__icon svg {
  width: 40px;
  height: 40px;
}

.app-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.app-card__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 2;
}

.app-card__description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  flex-grow: 1;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.app-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  margin-bottom: var(--space-8);
}

.feature-tag {
  background: #f3f4f6;
  color: #374151;
  border-radius: 9999px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.app-card--blue:hover .feature-tag {
  background: #dbeafe;
  color: #1e40af;
}

.app-card--red:hover .feature-tag {
  background: #fecaca;
  color: #dc2626;
}

.app-card--purple:hover .feature-tag {
  background: #e9d5ff;
  color: #7c3aed;
}

.app-card--green:hover .feature-tag {
  background: #dcfce7;
  color: #15803d;
}

.app-card--orange:hover .feature-tag {
  background: #fed7aa;
  color: #c2410c;
}

.app-card--teal:hover .feature-tag {
  background: #ccfbf1;
  color: #0f766e;
}

.btn--primary-blue {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: var(--space-3) var(--space-6);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  display: inline-block;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.btn--primary-blue:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn--primary-red {
  background: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: var(--space-3) var(--space-6);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  display: inline-block;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.btn--primary-red:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn--primary-purple {
  background: #8b5cf6;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: var(--space-3) var(--space-6);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  display: inline-block;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.btn--primary-purple:hover {
  background: #7c3aed;
  transform: translateY(-1px);
}

.btn--primary-green {
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: var(--space-3) var(--space-6);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  display: inline-block;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.btn--primary-green:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.btn--primary-orange {
  background: #ea580c;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: var(--space-3) var(--space-6);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  display: inline-block;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.btn--primary-orange:hover {
  background: #c2410c;
  transform: translateY(-1px);
}

.btn--primary-teal {
  background: #0d9488;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: var(--space-3) var(--space-6);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  display: inline-block;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.btn--primary-teal:hover {
  background: #0f766e;
  transform: translateY(-1px);
}

/* Quick Access Notice */
.quick-access-notice {
  text-align: center;
  margin-top: var(--space-12);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.quick-access-notice__text {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: var(--space-4);
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  display: inline-block;
}

.quick-access-notice__icon {
  font-weight: var(--font-weight-semibold);
  color: #3b82f6;
}

/* Enhanced Integration Section */
.integration {
  padding: var(--space-16) 0;
  background: #ffffff;
  position: relative;
}

.integration__header {
  text-align: center;
  margin-bottom: var(--space-24);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.integration__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-6);
  text-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.integration__subtitle {
  font-size: var(--text-xl);
  color: #6b7280;
  max-width: 700px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
  font-weight: var(--font-medium);
}

.integration__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.step-card {
  background: #ffffff;
  border-radius: 16px;
  padding: var(--space-8);
  text-align: center;
  border: 2px solid #e5e7eb;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  max-width: 350px;
  margin: 0 auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.step-card:nth-child(1) {
  border-color: #3b82f6;
}

.step-card:nth-child(2) {
  border-color: #ef4444;
}

.step-card:nth-child(3) {
  border-color: #3b82f6;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.step-card--blue:hover {
  border-color: var(--processmed-primary-blue);
}

.step-card--red:hover {
  border-color: var(--processmed-primary-red);
}

.step-card__number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin: 0 auto var(--space-6) auto;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.step-card:nth-child(1) .step-card__number {
  background: #3b82f6;
}

.step-card:nth-child(2) .step-card__number {
  background: #ef4444;
}

.step-card:nth-child(3) .step-card__number {
  background: #3b82f6;
}

.step-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
  color: #374151;
  font-weight: var(--font-semibold);
}

.step-card__description {
  color: #6b7280;
  line-height: var(--leading-relaxed);
  font-size: var(--text-base);
}

/* Enhanced Final CTA Section */
.final-cta {
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, #1e40af 0%, #dc2626 100%);
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.6;
}

.final-cta__content {
  position: relative;
  z-index: 2;
}

.final-cta__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-6);
  color: #ffffff;
  line-height: 1.2;
}

.final-cta__subtitle {
  font-size: var(--text-xl);
  margin-bottom: var(--space-12);
  color: #ffffff;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta__actions {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.final-cta .btn {
  padding: var(--space-4) var(--space-8);
  font-weight: var(--font-semibold);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 180px;
}

.final-cta .btn--primary {
  background: #3b82f6;
  color: #ffffff;
  border: 2px solid #3b82f6;
}

.final-cta .btn--primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.final-cta .btn--secondary {
  background: #ef4444;
  color: #ffffff;
  border: 2px solid #ef4444;
}

.final-cta .btn--secondary:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

/* Modern Footer */
.footer {
  background: #0F172A !important; /* slate-900 */
  color: #ffffff !important;
  padding: 3rem 0 !important; /* py-12 */
  position: relative;
  overflow: hidden;
  min-height: 200px; /* Ensure footer has minimum height */
  display: block !important;
}

.footer__container {
  max-width: 80rem; /* max-w-7xl */
  margin: 0 auto;
  padding: 0 1.5rem; /* px-6 */
  display: block !important;
}

.footer__grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 3rem; /* gap-12 */
  width: 100%;
}

.footer__brand {
  display: flex !important;
  flex-direction: column;
  gap: 1rem; /* space-y-4 */
  width: 100%;
}

.footer__logo-container {
  display: flex !important;
  align-items: center;
  gap: 0.5rem; /* space-x-2 */
  width: 100%;
}

.footer__logo {
  height: 55px;
  width: 155px;
  filter: brightness(0) invert(1);
}

.footer__brand-text {
  font-size: 1.5rem; /* text-2xl */
  font-weight: 800; /* font-extrabold */
  letter-spacing: -0.025em; /* tracking-tight */
  color: #ffffff;
}

.footer__brand-accent {
  color: #6366F1; /* indigo-500 */
}

.footer__tagline {
  font-size: 1.125rem; /* text-lg */
  font-weight: 600; /* font-semibold */
  color: #E2E8F0; /* text-gray-200 */
  margin: 0;
}

.footer__description {
  font-size: 0.875rem;
  color: #94A3B8;
  max-width: 24rem;
  line-height: 1.5;
  margin: 0;
}

.footer__section {
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.footer__section-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6366F1;
  margin: 0 0 1rem 0;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 150ms;
  display: block;
}

.footer__link:hover {
  color: #818CF8;
}

.footer__connect {
  display: none;
}

.footer__connect-text {
  font-size: 0.875rem;
  color: #64748B;
  margin: 0;
}

.footer__separator {
  border: none;
  border-top: 1px solid #334155;
  margin: 3rem 0 2rem 0; /* mt-12 mb-8 */
}

.footer__bottom {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #94A3B8;
  width: 100%;
}

.footer__copyright {
  margin: 0;
}

.footer__legal {
  display: flex;
  gap: 1.5rem;
}

.footer__legal-link {
  color: #94A3B8;
  text-decoration: none;
  transition: color 150ms; /* transition duration-150 */
}

.footer__legal-link:hover {
  color: #818CF8;
}

/* Tablet and Desktop Responsive */
@media (min-width: 768px) {
  .footer {
    padding: 4rem 0;
  }
  
  .footer__container {
    padding: 0 2rem;
  }
  
  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer__brand {
    grid-column: span 2;
  }
  
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .footer__connect {
    display: block;
  }
}

/* Artistic Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 60px rgba(220, 38, 38, 0.4); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-slide-up {
  animation: slideInUp 0.6s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

/* Intersection Observer Animations */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes countUp {
  from { 
    opacity: 0;
    transform: translateY(10px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-in {
  animation: fadeInUp 0.8s var(--ease-standard) forwards;
}

.stat-item.counting .stat-item__value {
  animation: countUp 0.5s var(--ease-standard) forwards;
}

/* Enhanced Button Effects */
.app-card__button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-standard), height 0.3s var(--ease-standard);
}

.app-card__button:hover::before {
  width: 100%;
  height: 100%;
}

/* Modern Responsive Design */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--space-16);
    text-align: center;
    padding: 0 var(--space-6);
  }
  
  .hero__metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    max-width: 600px;
    margin: 0 auto;
  }
  
  .solutions__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    padding: 0 var(--space-6);
  }
  
  .statistics__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    padding: 0 var(--space-6);
  }
  
  .stat-item {
    padding: var(--space-12);
  }
  
  .stat-item__value {
    font-size: 2.5rem;
  }
  
  .stat-item__suffix {
    font-size: 2.5rem;
  }
  
  .stat-item__label {
    font-size: 1rem;
  }
  
  .applications__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    padding: 0 var(--space-6);
  }
  
  .integration__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    padding: 0 var(--space-6);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px 0;
  }
  
  .hero__content {
    padding: 0 var(--space-4);
    gap: var(--space-12);
  }
  
  .hero__title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-6);
  }
  
  .hero__subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-10);
  }
  
  .hero__metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-12);
  }
  
  .hero__cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }
  
  .workflow-preview {
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
  }
  
  .workflow-arrow {
    transform: rotate(90deg);
    font-size: var(--text-lg);
  }
  
  .solutions__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: 0 var(--space-4);
  }
  
  .solutions__title {
    font-size: var(--text-3xl);
  }
  
  .solutions__subtitle {
    font-size: var(--text-lg);
  }
  
  .statistics__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    padding: 0 var(--space-4);
  }
  
  .applications__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: 0 var(--space-4);
  }
  
  .app-card {
    padding: var(--space-6);
  }
  
  .app-card__icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-4);
  }
  
  .app-card__icon svg {
    width: 30px;
    height: 30px;
  }
  
  .app-card__title {
    font-size: var(--font-size-xl);
  }
  
  .app-card__description {
    font-size: var(--font-size-sm);
  }
  
  .integration__steps {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: 0 var(--space-4);
  }
  
  .final-cta__actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
    padding: 0 var(--space-4);
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 0 40px 0;
  }
  
  .hero__content {
    padding: 0 var(--space-3);
    gap: var(--space-10);
  }
  
  .hero__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
  }
  
  .hero__subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-8);
  }
  
  .hero__metrics {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-10);
  }
  
  .metric-card {
    padding: var(--space-4);
    min-height: 80px;
  }
  
  .workflow-step {
    min-width: 80px;
    padding: var(--space-4);
  }
  
  .workflow-step__icon {
    font-size: var(--text-xl);
  }
  
  .workflow-step__text {
    font-size: var(--text-xs);
  }
  
  .statistics__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding: 0 var(--space-4);
  }
  
  .stat-item {
    padding: var(--space-8);
    min-height: 120px;
  }
  
  .stat-item__value {
    font-size: 2rem;
  }
  
  .stat-item__suffix {
    font-size: 2rem;
  }
  
  .stat-item__label {
    font-size: 0.875rem;
  }
  
  .solutions__grid,
  .applications__grid,
  .integration__steps {
    padding: 0 var(--space-3);
    gap: var(--space-4);
  }
  
  .solution-card,
  .app-card,
  .step-card {
    padding: var(--space-6);
    min-height: 280px;
  }
  
  .applications__title,
  .solutions__title,
  .integration__title {
    font-size: var(--text-2xl);
  }
  
  .applications__subtitle,
  .solutions__subtitle,
  .integration__subtitle {
    font-size: var(--text-base);
  }
  
  .final-cta__title {
    font-size: var(--text-2xl);
  }
  
  .final-cta__subtitle {
    font-size: var(--text-base);
  }
  
  .footer__content,
  .footer__bottom {
    padding: 0 var(--space-3);
  }
}


/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .app-card:hover,
  .solution-card:hover,
  .step-card:hover {
    transform: none;
  }
}

@media (prefers-contrast: high) {
  .metric-card,
  .solution-card,
  .app-card,
  .step-card {
    border-width: 3px;
  }
  
  .app-card__button {
    border: 3px solid currentColor;
  }
}

/* Focus improvements */
.nav__link:focus-visible {
  outline: 3px solid var(--processmed-primary-blue);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.app-card:focus-visible {
  outline: 3px solid var(--processmed-primary-blue);
  outline-offset: 2px;
  transform: translateY(-4px);
}

.app-card__button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.4), var(--shadow-md);
}

/* Progress indicator */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: var(--scroll-progress, 0%);
  height: 3px;
  background: var(--gradient-blue-red);
  z-index: 10001;
  transition: width 0.1s ease-out;
}