:root {
  /* Primitive Color Tokens */
  --color-white: rgba(255, 255, 255, 1);
  --color-black: rgba(0, 0, 0, 1);
  --color-cream-50: rgba(252, 252, 249, 1);
  --color-cream-100: rgba(255, 255, 253, 1);
  --color-gray-200: rgba(245, 245, 245, 1);
  --color-gray-300: rgba(167, 169, 169, 1);
  --color-gray-400: rgba(119, 124, 124, 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);

  /* Custom Colors for Constanellis */
  --color-primary-blue: #295FFF;
  --color-primary-blue-hover: #1E4DE6;
  --color-primary-blue-active: #1A43CC;
  --color-primary-blue-rgb: 41, 95, 255;
  --color-light-bg-1: #F5F9FE;
  --color-light-bg-2: #F9FAFB;
  --color-navy: #1A2B5C;
  --color-navy-light: #2C3E6F;

  /* 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: #FFFFFF;
  --color-surface: var(--color-light-bg-1);
  --color-text: var(--color-slate-900);
  --color-text-secondary: var(--color-slate-500);
  --color-primary: var(--color-primary-blue);
  --color-primary-hover: var(--color-primary-blue-hover);
  --color-primary-active: var(--color-primary-blue-active);
  --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);

  /* Typography */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'Chivo Mono', Monaco, Consolas, 'Courier New', monospace;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;
  --font-size-5xl: 48px;
  --font-size-6xl: 60px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.15;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;

  --letter-spacing-wide: 0.025em;

  /* 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 - Enhanced for Premium Design */
  --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.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --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.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Glow shadows for premium hover effects */
  --shadow-glow-blue: 0 0 30px rgba(59, 130, 246, 0.25), 0 0 60px rgba(59, 130, 246, 0.1);
  --shadow-glow-teal: 0 0 30px rgba(20, 184, 166, 0.25), 0 0 60px rgba(20, 184, 166, 0.1);
  --shadow-glow-subtle: 0 8px 30px rgba(0, 0, 0, 0.12);

  /* 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: 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);

  /* 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);
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.6), 0 0 20px rgba(59, 130, 246, 0.4);
}

.btn--primary:active {
  background: var(--color-primary-active);
  transform: translateY(0);
}

.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 elements */
.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  /* Consistent with new cards */
  transition: all 0.2s ease;
  background-clip: padding-box;
  /* Fix for lint */
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(41, 95, 255, 0.1);
  background-color: var(--color-white);
}

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 - Premium Design */
.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: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card:hover {
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15), 0 8px 16px -8px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Card with gradient glow effect */
.card--glow:hover {
  box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.25), 0 0 30px rgba(59, 130, 246, 0.1);
}

.card__body {
  padding: var(--space-16);
}

.card__header,
.card__footer {
  padding: var(--space-16);
  border-bottom: 1px solid var(--color-card-border-inner);
}

/* Service cards - premium hover states */
.service-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-blue), #00d4ff);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.18);
}

/* 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);
}

/* Note: The font-family stack includes Inter as the primary font with 
   comprehensive fallbacks to system fonts (Apple SF, Segoe UI, Roboto) 
   and web-safe fonts (Helvetica Neue, Arial, Helvetica) for reliable 
   cross-browser rendering. */

/* END PERPLEXITY DESIGN SYSTEM */
/* Accessibility & Skip Links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--color-primary-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* Honeypot spam protection */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Error messages and form validation */
.error-message {
  color: var(--color-red-500);
  font-size: var(--font-size-sm);
  margin-top: var(--space-1);
  display: none;
  font-weight: var(--font-weight-medium);
}

.error-message.active {
  display: block;
}

.form-control.error {
  border-color: var(--color-red-500);
  box-shadow: 0 0 0 2px rgba(192, 21, 47, 0.2);
}

.form-help {
  color: var(--color-slate-500);
  font-size: var(--font-size-sm);
  margin-top: var(--space-1);
}

.form-status {
  margin-top: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-base);
  font-weight: var(--font-weight-medium);
  display: none;
}

.form-status.success {
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: block;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: block;
}

/* Checkbox styling for privacy consent */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  gap: var(--space-3);
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  flex-shrink: 0;
  height: 18px;
  width: 18px;
  background-color: var(--color-white);
  border: 2px solid var(--color-slate-400);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--duration-fast) var(--ease-standard);
  margin-top: 2px;
}

.checkbox-label:hover .checkmark {
  border-color: var(--color-primary-blue);
}

.checkbox-label input:checked~.checkmark {
  background-color: var(--color-primary-blue);
  border-color: var(--color-primary-blue);
}

.checkbox-label input:checked~.checkmark:after {
  content: "";
  position: absolute;
  display: block;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:focus~.checkmark {
  outline: 2px solid var(--color-primary-blue);
  outline-offset: 2px;
}

/* Privacy policy modal styles */
.privacy-modal .modal__content {
  max-width: 800px;
  max-height: 80vh;
}

.privacy-content h3 {
  color: var(--color-slate-900);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-lg);
}

.privacy-content ul {
  margin: var(--space-3) 0;
  padding-left: var(--space-6);
}

.privacy-content li {
  margin-bottom: var(--space-2);
  color: var(--color-slate-500);
}

.privacy-content address {
  font-style: normal;
  margin: var(--space-4) 0;
  padding: var(--space-4);
  background: var(--color-light-bg-1);
  border-radius: var(--radius-base);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary-blue: #0000FF;
    --color-slate-900: #000000;
    --color-white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
  }

  .btn {
    border: 2px solid currentColor;
  }

  .card,
  .service-card,
  .facility-card,
  .job-card {
    border: 2px solid var(--color-slate-900);
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

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

  .hero {
    background: linear-gradient(135deg, #0a0a2e 0%, #16213e 100%);
  }

  .space-animation {
    display: none;
  }
}

/* Focus management */
*:focus-visible {
  outline: 2px solid var(--color-primary-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Ensure minimum touch target size (44px) */
.btn,
.nav__link,
.job-apply-btn,
.modal__close,
.mobile-menu-toggle {
  min-height: 44px;
  min-width: 44px;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-slate-900);
  background-color: var(--color-light-bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Typography - optimized for readability */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-slate-900);
  letter-spacing: var(--letter-spacing-tight);
}

/* Heading hierarchy: h1 = hero, h2 = sections, h3 = subsections, h4 = cards */

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

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

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-base);
}

p {
  margin: 0 0 var(--space-4) 0;
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--color-primary-blue);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-blue-hover);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

/* Page Management */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Header */
.header {
  background: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.header__logo {
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  width: auto;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-8);
}

.nav__link {
  color: var(--color-white);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  padding: 10px 16px;
  border-radius: var(--radius-base);
  transition: all var(--duration-fast) var(--ease-standard);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.nav__link {
  position: relative;
  overflow: hidden;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  margin: 2px 0;
  transition: transform var(--duration-fast) var(--ease-standard);
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--color-navy, #1A2B5C);
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
  }

  .nav.mobile-active {
    left: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-white, white);
    transition: all 0.3s;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Hero Section */
/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a2e 0%, #16213e 30%, #0f3460 60%, #4F46E5 100%);
  overflow: hidden;
  padding-top: var(--header-height, 80px);
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(circle at center, transparent 0%, rgba(10, 10, 46, 0.8) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Animated Space Background */
.space-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.stars,
.stars2,
.stars3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.stars {
  background-image:
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: moveStars 20s linear infinite;
}

.stars2 {
  background-image:
    radial-gradient(1px 1px at 10px 10px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 60px 60px, #fff, transparent),
    radial-gradient(1px 1px at 120px 20px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(2px 2px at 180px 80px, #eee, transparent);
  background-repeat: repeat;
  background-size: 200px 120px;
  animation: moveStars2 25s linear infinite;
}

.stars3 {
  background-image:
    radial-gradient(1px 1px at 30px 60px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 80px 10px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 140px 90px, #fff, transparent);
  background-repeat: repeat;
  background-size: 200px 80px;
  animation: moveStars3 30s linear infinite;
}

.nebula {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(120, 119, 255, 0.2) 0%, transparent 50%);
  animation: nebulaPulse 15s ease-in-out infinite alternate;
}

@keyframes moveStars {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-200px);
  }
}

@keyframes moveStars2 {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-240px);
  }
}

@keyframes moveStars3 {
  from {
    transform: translateY(0px);
  }

  to {
    transform: translateY(-160px);
  }
}

@keyframes nebulaPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* Parallax effect on scroll */
.hero__background {
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
  margin: 0 auto;
}

.hero__title {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-6);
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-8);
  opacity: 0.95;
  line-height: var(--line-height-relaxed);
  font-weight: var(--font-weight-normal);
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero__title {
    font-size: var(--font-size-3xl);
  }

  .hero__subtitle {
    font-size: var(--font-size-lg);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Careers Hero */
.careers-hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-24) 0 var(--space-16);
  text-align: center;
}

.careers-hero__title {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.careers-hero__subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-12);
  opacity: 0.9;
}

.careers-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-8);
  max-width: 600px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  display: block;
}

.stat__label {
  font-size: var(--font-size-base);
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-base);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-standard);
  min-height: 48px;
  letter-spacing: var(--letter-spacing-wide);
}

.btn--primary {
  background: var(--color-primary-blue);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(41, 95, 255, 0.35);
}

.btn--primary:hover {
  background: var(--color-primary-blue-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(41, 95, 255, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-navy);
  transform: translateY(-2px);
}

.btn--full-width {
  width: 100%;
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-slate-900);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-slate-500);
  max-width: 650px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

/* About Section */
.about {
  padding: var(--space-24) 0;
  background: var(--color-white);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

/* Cards */
.card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(41, 95, 255, 0.1);
}

.card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-blue), var(--color-teal-400));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover:before {
  opacity: 1;
}

.card__icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
  color: var(--color-primary-blue);
}

.card__icon svg {
  width: 48px;
  height: 48px;
}

.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
  font-weight: var(--font-weight-semibold);
  color: var(--color-slate-900);
}

.card__text {
  color: var(--color-slate-500);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-base);
}

/* Services Section */
.services {
  padding: var(--space-24) 0;
  background: var(--color-light-bg-2);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.service-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: rgba(41, 95, 255, 0.2);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
  color: var(--color-slate-900);
}

.service-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card__list li {
  padding: var(--space-2) 0;
  color: var(--color-slate-500);
  position: relative;
  padding-left: var(--space-4);
}

.service-card__list li:before {
  content: "•";
  color: var(--color-primary-blue);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Facilities Section */
.facilities {
  padding: var(--space-24) 0;
  background: var(--color-white);
}

.facilities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

/* Flip Card Styles */
.facility-card-flip {
  background: transparent;
  width: 100%;
  height: 400px;
  perspective: 1000px;
}

.facility-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.facility-card-flip:hover .facility-card-inner {
  transform: rotateY(180deg);
}

.facility-card-front,
.facility-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.facility-card-front {
  background: var(--color-white);
  padding: var(--space-8);
  justify-content: center;
}

.facility-card-back {
  background: var(--color-white);
  transform: rotateY(180deg);
  overflow: hidden;
}

.facility-card-back__image {
  height: 60%;
  overflow: hidden;
}

.facility-card-back__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facility-card-back__content {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.facility-card-back__content h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
  color: var(--color-slate-900);
}

.facility-card-back__content p {
  color: var(--color-slate-500);
  font-size: var(--font-size-base);
  line-height: 1.5;
}

.facility-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.facility-card__title {
  font-size: var(--font-size-xl);
  margin: 0;
}

.facility-card__size {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-blue);
  margin-bottom: var(--space-3);
}

.facility-card__description {
  color: var(--color-slate-500);
  margin-bottom: var(--space-4);
}

.facility-card__hover-hint {
  font-size: var(--font-size-sm);
  color: var(--color-primary-blue);
  font-weight: var(--font-weight-medium);
  margin-top: var(--space-4);
  opacity: 0.8;
  font-style: italic;
}

/* Mobile responsiveness for flip cards */
@media (max-width: 768px) {
  .facility-card-flip {
    height: 350px;
  }

  .facility-card-front {
    padding: var(--space-6);
  }

  .facility-card-back__content {
    padding: var(--space-4);
  }

  .facility-card-back__content h3 {
    font-size: var(--font-size-lg);
  }

  .facility-card-back__content p {
    font-size: var(--font-size-sm);
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {

  /* Ensure horizontal scroll is prevented */
  body {
    overflow-x: hidden;
  }

  /* Larger touch targets */
  .btn {
    min-height: 48px;
    padding: var(--space-4) var(--space-6);
  }

  /* Better mobile form experience */
  .form-control {
    font-size: 16px;
    /* Prevents zoom on iOS */
    min-height: 44px;
  }

  /* Mobile navigation improvements */
  .mobile-menu-toggle {
    padding: var(--space-3);
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-navy);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }

  .nav__list {
    flex-direction: column;
    padding: var(--space-4);
  }

  .nav__item {
    width: 100%;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: var(--space-4);
    text-align: center;
    border-radius: var(--radius-base);
  }
}

/* Status Badges */
.status {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.status--success {
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
}

.status--warning {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}

/* Certifications Section */
.certifications {
  padding: var(--space-24) 0;
  background: var(--color-light-bg-2);
}

.certifications__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
}

.cert-badge {
  background: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cert-badge__icon {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-3);
}

.cert-badge__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

.cert-badge__text {
  color: var(--color-slate-500);
  font-size: var(--font-size-sm);
}

/* Contact Section */
.contact {
  padding: var(--space-24) 0;
  background: var(--color-white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.contact__details {
  margin-top: var(--space-8);
}

.contact__item {
  margin-bottom: var(--space-6);
}

.contact__item h4 {
  margin-bottom: var(--space-2);
  color: var(--color-slate-900);
}

.contact__item p {
  color: var(--color-slate-500);
  margin: 0;
}

/* Culture Section */
.culture {
  padding: var(--space-24) 0;
  background: var(--color-light-bg-2);
}

.culture__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
}

.culture-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.culture-card__icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}

.culture-card__icon svg {
  width: 48px;
  height: 48px;
}

.culture-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}

.culture-card__text {
  color: var(--color-slate-500);
}

/* Jobs Section */
.jobs {
  padding: var(--space-24) 0;
  background: var(--color-white);
}

.jobs__grid {
  display: grid;
  gap: var(--space-6);
}

.job-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.job-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.job-card__title {
  font-size: var(--font-size-xl);
  margin: 0;
  color: var(--color-slate-900);
}

.job-card__location {
  color: var(--color-slate-500);
  font-size: var(--font-size-base);
}

.job-card__details {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}

.job-card__salary,
.job-card__equity {
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary-blue);
}

.job-card__description {
  color: var(--color-slate-500);
  margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
  .job-card__header {
    flex-direction: column;
    gap: var(--space-2);
  }

  .job-card__details {
    flex-direction: column;
    gap: var(--space-2);
  }
}

/* Benefits Section */
.benefits {
  padding: var(--space-24) 0;
  background: var(--color-light-bg-2);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.benefit-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-card__icon {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-4);
}

.benefit-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}

.benefit-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-card__list li {
  padding: var(--space-2) 0;
  color: var(--color-slate-500);
  position: relative;
  padding-left: var(--space-4);
}

.benefit-card__list li:before {
  content: "✓";
  color: var(--color-primary-blue);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Locations Section */
.locations {
  padding: var(--space-24) 0;
  background: var(--color-white);
}

.locations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.location-card {
  background: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.location-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.location-card__type {
  color: var(--color-primary-blue);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
}

.location-card__description {
  color: var(--color-slate-500);
  margin-bottom: var(--space-6);
}

.location-card__perks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.perk-tag {
  background: rgba(41, 95, 255, 0.1);
  color: var(--color-primary-blue);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

/* Forms */
.form {
  max-width: 100%;
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-medium);
  color: var(--color-slate-900);
}

.form-control {
  width: 100%;
  padding: var(--space-3);
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  transition: border-color var(--duration-fast) var(--ease-standard);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-blue-rgb), 0.15);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: flex-end;
  margin-top: var(--space-6);
}

@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
  }
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-standard);
}

/* Modal focus management */
.modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal.active[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal__content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 1001;
  transform: scale(0.9);
  transition: transform var(--duration-normal) var(--ease-standard);
}

.modal.active .modal__content {
  transform: scale(1);
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  border-bottom: 1px solid #e5e7eb;
}

.modal__title {
  font-size: var(--font-size-2xl);
  margin: 0;
}

.modal__close {
  background: none;
  border: none;
  font-size: var(--font-size-3xl);
  cursor: pointer;
  color: var(--color-slate-500);
  padding: 0;
  line-height: 1;
}

.modal__close:hover {
  color: var(--color-slate-900);
}

.modal__body {
  padding: var(--space-6);
}

/* Footer */
.footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
  margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.footer__logo {
  height: 32px;
  width: auto;
  margin-bottom: var(--space-4);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.footer__logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.footer__text {
  opacity: 0.8;
  max-width: 300px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 768px) {
  .footer__links {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.footer__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__link {
  display: block;
  padding: var(--space-1) 0;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn var(--duration-normal) var(--ease-standard);
}

/* Focus States */
*:focus-visible {
  outline: 2px solid var(--color-primary-blue);
  outline-offset: 2px;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Performance optimizations */
.hero__background,
.space-animation {
  will-change: transform;
}

/* Lazy loading note: 'loading' attribute should be in HTML, not CSS */

/* Print styles */
@media print {

  .header,
  .hero,
  .modal,
  .mobile-menu-toggle {
    display: none !important;
  }

  body {
    color: black;
    background: white;
  }

  .page {
    display: block !important;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* Core Web Vitals optimizations */
.hero {
  contain: layout style;
}

.card,
.service-card,
.job-card {
  contain: layout;
}

/* Parallax scroll effect for hero */
@media (prefers-reduced-motion: no-preference) {
  .hero__background {
    transform: translateZ(0);
  }

  .hero.parallax .hero__background {
    transform: translate3d(0, calc(var(--scroll-speed, 0) * -0.5px), 0);
  }
}

/* CSS optimizations - remove unused styles and consolidate */
/* Remove any duplicate or unused CSS rules */
/* Ensure all CSS is minified and optimized for production */

/* ===========================================
   Toast Notification System
   ========================================= */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateX(450px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  border-left: 4px solid var(--primary-color);
}

.toast--show {
  transform: translateX(0);
  opacity: 1;
}

.toast__icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.toast__message {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.toast__close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s;
}

.toast__close:hover {
  color: #333;
}

.toast--success {
  border-left-color: #10b981;
}

.toast--success .toast__icon {
  color: #10b981;
}

.toast--error {
  border-left-color: #ef4444;
}

.toast--error .toast__icon {
  color: #ef4444;
}

.toast--warning {
  border-left-color: #f59e0b;
}

.toast--warning .toast__icon {
  color: #f59e0b;
}

.toast--info {
  border-left-color: #3b82f6;
}

.toast--info .toast__icon {
  color: #3b82f6;
}

.toast__retry-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.toast__retry-btn:hover {
  background: var(--primary-dark);
}

/* ===========================================
   Loading Spinner
   ========================================= */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===========================================
   Enhanced Form Styles
   ========================================= */
input.error,
textarea.error,
select.error {
  border-color: #ef4444 !important;
  background-color: #fef2f2;
}

input.error:focus,
textarea.error:focus,
select.error:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form__error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form__error.active {
  display: block;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transition: all 0.2s ease;
}

/* ===========================================
   Modern Button Animations
   ========================================= */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===========================================
   Glassmorphism Effects
   ========================================= */
.card--glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===========================================
   Smooth Scroll Behavior
   ========================================= */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===========================================
   Loading Skeleton
   ========================================= */

/* =========================================
   Mission Configurator Styles (Added Phase 5)
   ========================================= */

.configurator-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-num {
  font-family: var(--font-family-mono);
  color: var(--color-primary-blue);
  font-size: 0.9em;
  background: rgba(41, 95, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Platform Cards */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.platform-card {
  position: relative;
  cursor: pointer;
}

.platform-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.platform-card__content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.platform-card input:checked+.platform-card__content {
  background: rgba(41, 95, 255, 0.1);
  border-color: var(--color-primary-blue);
  box-shadow: 0 0 20px rgba(41, 95, 255, 0.2);
}

.platform-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.platform-card h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.platform-card p {
  font-size: 0.9rem;
  color: var(--color-gray-400);
}

/* Range Sliders */
.range-group {
  margin-bottom: 2.5rem;
}

.range-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--color-gray-300);
}

.range-value {
  font-family: var(--font-family-mono);
  color: var(--color-primary-blue);
  font-weight: bold;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--color-primary-blue);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(41, 95, 255, 0.5);
  transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-gray-500);
}

/* Summary Panel */
.preview-card.sticky {
  position: sticky;
  top: 2rem;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.status-badge {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 165, 0, 0.2);
  color: orange;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.preview-visual {
  height: 200px;
  background: linear-gradient(to bottom, #0f172a, #1e293b);
  border-radius: 8px;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.visual-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.visual-sat {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--color-primary-blue);
  border-radius: 4px;
  box-shadow: 0 0 15px var(--color-primary-blue);
  transform: translate(65px, -50%);
  /* Places it on the orbit line */
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.summary-list {
  margin: 2rem 0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-gray-300);
}

.summary-val {
  color: var(--color-white);
  font-weight: 500;
}

.summary-val.highlight {
  color: var(--color-teal-300);
}

.cost-estimator {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.cost-estimator h3 {
  font-size: 2rem;
  color: var(--color-white);
  margin: 0.5rem 0;
  font-family: var(--font-family-mono);
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}


/* ===========================================
   Mobile Responsive Toast
   ========================================= */
@media (max-width: 768px) {
  .toast-container {
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .toast {
    margin: 0;
  }
}

/* ===========================================
   Character Counter
   ========================================= */
.char-counter {
  font-size: 12px;
  color: #666;
  text-align: right;
  margin-top: 4px;
}

.char-counter--warning {
  color: #f59e0b;
}

.char-counter--error {
  color: #ef4444;
}

/* ===========================================
   File Upload Progress
   ========================================= */
.file-upload-progress {
  margin-top: 10px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.file-upload-status {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

/* ===========================================
   Drag and Drop File Upload
   ========================================= */
.file-drop-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-drop-zone:hover {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.05);
}

.file-drop-zone.drag-over {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.1);
}

.file-drop-zone__icon {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.file-drop-zone__text {
  color: #666;
  font-size: 14px;
}

.file-drop-zone__hint {
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-color-scheme="dark"] .step-num {
  background: var(--surface-color);
  border-color: var(--border-color);
  color: var(--text-color);
}


/* Job Filters */
.job-filters {
  gap: 2rem;
}

/* =========================================
   Industrial Portal Styles (Phase 5 Pivot)
   ========================================= */

/* Portal Fonts */
.label-mono,
.input-dark,
.mono,
.badge,
.currency,
.amount,
.unit {
  font-family: 'Chivo Mono', monospace;
}

/* Header & Layout */
.portal-header {
  background: #0b0d12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.portal-layout {
  display: flex;
  min-height: calc(100vh - 80px);
  background: #0b0d12;
}

.portal-sidebar {
  width: 260px;
  background: #11141c;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
}

.portal-content {
  flex: 1;
  padding: 3rem 4rem;
  overflow-y: auto;
}

/* Sidebar Nav */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(59, 130, 246, 0.1);
  color: #fff;
}

.sidebar-link .icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.sidebar-divider {
  border-color: rgba(255, 255, 255, 0.05);
  margin: 1.5rem 0;
}

/* Capacity Indicator */
.capacity-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.capacity-bar {
  height: 4px;
  background: #334155;
  border-radius: 2px;
}

.capacity-fill {
  height: 100%;
  background: #22c55e;
  border-radius: 2px;
}

.text-green {
  color: #22c55e;
}

.text-orange {
  color: #f97316;
}

.text-dim {
  color: #64748b;
}

/* Main Forms */
.portal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.portal-header-row h1 {
  font-size: 2rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.5px;
}

.rfq-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 3rem;
}

.portal-section {
  background: #151922;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* File Drop */
.file-drop-area {
  border: 2px dashed #334155;
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.01);
}

.file-drop-area:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.02);
}

.drop-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Inputs */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.input-dark {
  width: 100%;
  background: #0b0d12;
  border: 1px solid #334155;
  padding: 0.75rem;
  border-radius: 6px;
  color: #fff;
  font-family: 'Chivo Mono', monospace;
}

.input-dark:focus {
  border-color: #3b82f6;
  outline: none;
}

/* Quantity Tiers */
.quantity-selector {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
}

.quantity-tiers {
  display: flex;
  gap: 0.5rem;
}

.tier-btn {
  background: #0b0d12;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.tier-btn.active,
.tier-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

/* Quote Sidebar */
.summary-card.sticky {
  position: sticky;
  top: 100px;
  background: #151922;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.live-indicator {
  color: #22c55e;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.price-display {
  text-align: right;
  margin-bottom: 0.5rem;
}

.price-display .currency {
  font-size: 1.5rem;
  color: #64748b;
}

.price-display .amount {
  font-size: 2.5rem;
  color: #fff;
  font-weight: 600;
}

.price-display .unit {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: -5px;
}

.unit-price {
  text-align: right;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.divider-dark {
  border-color: #334155;
  margin: 1.5rem 0;
  opacity: 0.3;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

/* Radio Cards (Lead Time) */
.lead-time-selector {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.radio-card {
  display: flex;
  padding: 1rem;
  background: #0b0d12;
  border: 1px solid #334155;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  gap: 1rem;
}

.radio-card.checked {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.radio-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.9rem;
}

.job-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
  flex: 1;
}

.filter-group label {
  font-weight: 600;
  color: var(--color-slate-700);
}

.job-card.hidden {
  display: none;
}


.mt-4 {
  margin-top: 1rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: auto;
}