: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);
  
    /* 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: 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;
    cursor: pointer;
  }
  
  *,
  *::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 */
  :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);
  
    /* 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: 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);
  }
  
  .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 */
  
  /* Paper Planes of Hope - Application-Specific Styles */
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body, html {
    height: 100%;
    font-family: var(--font-family-base);
    overflow-x: hidden;
    cursor: pointer;
    background-color: var(--color-background);
    color: var(--color-text);
  }
  
  /* Sky Background with Animated Gradient */
  .sky-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      135deg,
      var(--color-teal-300) 0%,
      var(--color-teal-500) 50%,
      var(--color-slate-900) 100%
    );
    z-index: -2;
    animation: skyAnimation calc(var(--duration-normal) * 80) ease-in-out infinite alternate;
  }
  
  @keyframes skyAnimation {
    0% {
      background: linear-gradient(135deg, var(--color-teal-300) 0%, var(--color-teal-500) 50%, var(--color-slate-900) 100%);
    }
    100% {
      background: linear-gradient(135deg, var(--color-bg-4) 0%, var(--color-bg-8) 50%, var(--color-bg-2) 100%);
    }
  }
  
  /* Floating Clouds Background */
  .sky-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: 
      radial-gradient(circle at 20% 20%, var(--color-white) 0%, transparent 50%),
      radial-gradient(circle at 70% 30%, rgba(255,255,255,0.6) 0%, transparent 40%),
      radial-gradient(circle at 50% 60%, rgba(255,255,255,0.4) 0%, transparent 60%),
      radial-gradient(circle at 90% 80%, rgba(255,255,255,0.3) 0%, transparent 50%);
    animation: cloudFloat calc(var(--duration-normal) * 120) linear infinite;
  }
  
  @keyframes cloudFloat {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
  }
  
  /* Flying Paper Planes Container */
  .flying-planes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }
  
  .flying-plane {
    position: absolute;
    cursor: pointer;
    pointer-events: all;
    transition: transform var(--duration-fast) var(--ease-standard);
    filter: drop-shadow(var(--shadow-sm));
    padding: 15px;
  }
  
  .flying-plane:hover {
    transform: scale(1.5);
    filter: drop-shadow(var(--shadow-md));
  }
  
  /* Message Overlay */
  .message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all var(--duration-normal) var(--ease-standard);
  }
  
  .message-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
  
  .message-modal {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-32);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.8) translateY(var(--space-32));
    transition: all var(--duration-normal) var(--ease-standard);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-card-border);
  }
  
  .message-overlay.active .message-modal {
    transform: scale(1) translateY(0);
  }
  
  /* Message Content Styling */
  .message-content {
    margin-bottom: var(--space-24);
  }
  
  .message-from {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    font-weight: var(--font-weight-medium);
  }
  
  .message-text {
    font-family: var(--font-family-base);
    font-size: var(--font-size-xl);
    color: var(--color-text);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-16);
    font-weight: var(--font-weight-medium);
  }
  
  .close-instruction {
    color: var(--color-text-secondary);
    font-size: var(--font-size-xs);
    opacity: 0.8;
  }
  
  /* FULL-SIZE Send Animation Overlay - POSITIONED ABOVE SUCCESS MESSAGE */
  .send-plane-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1500; /* Above success message (1000) */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
  }
  
  .send-plane-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.5);
    opacity: 0;
  }
  
  /* Main Content - 3D PAPER CUT TITLE */
  .main-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 90%;
    pointer-events: none;
  }
  
  /* 3D Paper Cut Title Effect */
  .paper-cut-title {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-bold);
    font-size: clamp(var(--font-size-4xl), 8vw, 8rem);
    margin-bottom: var(--space-16);
  }
  
  .text {
    position: relative;
    text-transform: full-width;
    display: flex;
    justify-content: center;
  }
  
  .space {
    width: 0.3em;
  }
  
  .letter {
    position: relative;
    display: flex;
  }
  
  .source {
    color: var(--color-text-secondary);
    -webkit-text-stroke: 0.01em rgba(0, 0, 0, 0.3);
    display: flex;
  }
  
  .overlay, .shadow {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    user-select: none;
  }
  
  .overlay {
    background-image: linear-gradient(90deg, var(--color-white) 50%, var(--color-gray-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: rotateY(-30deg) skew(0, -10deg);
    transform-origin: left;
    animation: overlay calc(var(--duration-normal) * 12) infinite ease-out var(--delay);
  }
  
  .shadow {
    filter: blur(5px);
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 30%, transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: skew(0, 20deg) translateY(0.1em) translateX(0.05em);
    animation: shadow calc(var(--duration-normal) * 12) infinite var(--delay);
  }
  
  @keyframes shadow {
    0%, 20%, 100% {
      transform: skew(0, 20deg) translateY(0.1em) translateX(0.05em);
      opacity: 1;
    }
    10% {
      transform: skew(0, 0) translateY(0) translateX(0);
      opacity: 0;
    }
  }
  
  @keyframes overlay {
    0%, 20%, 100% {
      transform: rotateY(-30deg) skew(0, -10deg);
    }
    10% {
      transform: rotateY(0deg) skew(0, 0);
    }
  }
  
  /* Hero Section */
  .hero-section {
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-charcoal-700);
    
    line-height: var(--line-height-normal);
    pointer-events: none;
    margin-top: var(--space-24);
    opacity: 0;
    visibility: hidden;
    
}


  
  
  /* BOTTOM COMPOSER - FIXED TO BOTTOM */
  .bottom-composer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--color-border);
    padding: var(--space-16) var(--space-16);
    box-shadow: var(--shadow-lg);
  }
  
  /* Compact Message Form */
  .compact-message-form {
    width: 100%;
    max-width: var(--container-lg);
    margin: 0 auto;
  }
  
  .form-row {
    display: flex;
    gap: var(--space-16);
    align-items: flex-end;
    width: 100%;
  }
  
  .form-row input[type="text"] {
    flex: 0 0 150px;
    padding: var(--space-8) var(--space-12);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    font-family: var(--font-family-base);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    background: var(--color-surface);
    transition: all var(--duration-fast) var(--ease-standard);
    height: 40px;
  }
  
  .form-row textarea {
    flex: 1;
    padding: var(--space-8) var(--space-12);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    font-family: var(--font-family-base);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    background: var(--color-surface);
    transition: all var(--duration-fast) var(--ease-standard);
    resize: none;
    min-height: 40px;
    max-height: 80px;
  }
  
  .form-row input:focus,
  .form-row textarea:focus {
    outline: var(--focus-outline);
    border-color: var(--color-primary);
    box-shadow: var(--focus-ring);
  }
  
  .send-button {
    flex: 0 0 auto;
    padding: var(--space-8) var(--space-16);
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
    border: none;
    border-radius: var(--radius-base);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-standard);
    box-shadow: var(--shadow-sm);
    height: 40px;
    min-width: 80px;
  }
  
  .send-button:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
  
  .send-button:active {
    background: var(--color-primary-active);
  }
  
  .send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }
  
  .char-counter {
    text-align: right;
    margin-top: var(--space-4);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
  }
  
  /* Success Message */
/* Success Message - SLEEK DESIGN */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--space-32);
    border-radius: var(--space-24);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.8);
    text-align: center;
    min-width: 420px;
    max-width: 480px;
    width: auto;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255,255,255,0.2);
  }
  
  .success-message.show {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
  }
  
  
  
/* Success Lottie Container with Bounce Animation */
/* Success Lottie Container - NO SQUISHING */
.success-lottie-container {
    margin: var(--space-16) 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.8);
    min-height: 320px; /* Ensures no height compression */
  }
  
  .success-lottie-container.animate-in {
    animation: smoothBounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  
  .success-lottie-container dotlottie-wc {
    width: 320px !important;  /* Slightly smaller but maintains ratio */
    height: 320px !important;
    min-width: 320px !important; /* Prevents squishing */
    min-height: 320px !important;
    flex-shrink: 0; /* Prevents compression */
  }
  
  @keyframes smoothBounceIn {
    0% {
      opacity: 0;
      transform: scale(0.8);
    }
    60% {
      opacity: 1;
      transform: scale(1.05);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  
  .success-lottie-container dotlottie-wc {
    width: 350px !important;
    height: 350px !important;
  }
  
  
  .success-lottie-container dotlottie-wc {
    width: 350px !important;  /* ← EXACTLY 350px as requested */
    height: 350px !important; /* ← Maintains aspect ratio */
  }
  
  
  .success-message.show {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
  }
  
  .success-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-16);
    animation: bounce 1s ease infinite;
  }
  
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  
  .success-content h3 {
    font-family: var(--font-family-base);
    color: var(--color-text);
    margin-bottom: var(--space-8);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
  }
  
  .success-content p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-normal);
  }
  
  /* Custom RED Cursor */
  /* .custom-cursor {
    position: fixed;
    width: var(--space-20);
    height: var(--space-20);
    background: var(--color-red-400);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: 9999;
    transition: transform var(--duration-fast) var(--ease-standard);
    box-shadow: 0 0 10px rgba(var(--color-red-400-rgb), 0.5);
  }
  
  .custom-cursor.hover {
    transform: scale(1.5);
    background: var(--color-red-500);
    box-shadow: 0 0 20px rgba(var(--color-red-400-rgb), 0.8);
  } */
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .paper-cut-title {
        font-size: clamp(calc(var(--font-size-4xl) * 1.6), 8vw, calc(var(--font-size-4xl) * 1.6));
    }
    
    .hero-subtitle {
      font-size: var(--font-size-lg);
    }
    
    .form-row {
      flex-direction: column;
      gap: var(--space-8);
    }
    
    .form-row input[type="text"] {
      flex: none;
      width: 100%;
    }
    
    .bottom-composer {
      padding: var(--space-16);
    }
  }
  
  @media (max-width: 480px) {
    .message-modal {
      padding: var(--space-24);
      margin: var(--space-16);
    }
    
    .message-text {
      font-size: var(--font-size-lg);
    }
    
    .paper-cut-title {
      font-size: clamp(var(--font-size-2xl), 5vw, var(--font-size-3xl));
    }
    
    .hero-subtitle {
      font-size: var(--font-size-base);
    }
    
    .form-row {
      gap: var(--space-6);
    }
    
    .form-row input[type="text"],
    .form-row textarea {
      font-size: var(--font-size-xs);
      padding: var(--space-6) var(--space-10);
    }
    
    .send-button {
      font-size: var(--font-size-xs);
      padding: var(--space-6) var(--space-12);
      min-width: 60px;
    }
    
    .bottom-composer {
      padding: var(--space-10);
    }
    
    .success-message {
      padding: var(--space-20);
      margin: var(--space-12);
      min-width: 350px; /* ← ADD THIS - ensures lottie fits on mobile */
    }

    .success-lottie-container dotlottie-wc {
        width: 280px !important; /* ← Smaller on mobile but still big */
        height: 280px !important;
      }
    
    .success-icon {
      font-size: var(--font-size-3xl);
      margin-bottom: var(--space-12);
    }
    
    .success-content h3 {
      font-size: var(--font-size-lg);
      margin-bottom: var(--space-6);
    }
    
    .success-content p {
      font-size: var(--font-size-sm);
    }
    
    .custom-cursor {
      width: var(--space-16);
      height: var(--space-16);
    }
    
    .hero-subtitle {
      margin-top: var(--space-16);
    }
    
    .main-content {
      width: 95%;
    }
  }
  
  /* Remove Hearts - NO FLOATING HEARTS */
  .floating-hearts {
    display: none;
  }
  
  /* Animation Classes */
  .fade-in {
    animation: fadeIn calc(var(--duration-normal) * 2.4) ease-out;
  }
  
  .fade-out {
    animation: fadeOut calc(var(--duration-normal) * 2.4) ease-out;
  }
  
  .slide-up {
    animation: slideUp calc(var(--duration-normal) * 2.4) var(--ease-standard);
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
  }
  
  @keyframes slideUp {
    from { 
      opacity: 0;
      transform: translateY(var(--space-24));
    }
    to { 
      opacity: 1;
      transform: translateY(0);
    }
  }


  /* BETTER MOBILE STACKING FOR BOTTOM COMPOSER */
@media (max-width: 768px) {
    .bottom-composer {
      padding: 16px !important;
      text-align: center; /* Center align everything */
    }
    
    .compact-message-form {
      display: flex;
      flex-direction: column;
      align-items: center; /* Center the form */
      gap: 12px;
    }
    
    .form-row {
      flex-direction: column !important;
      gap: 12px !important;
      width: 100%;
      max-width: 400px; /* Constrain width for better center alignment */
    }
    
    .form-row input[type="text"] {
      flex: none !important;
      width: 100% !important;
      margin-bottom: 0; /* Remove existing margin */
      height: 44px; /* Slightly taller for easier mobile tapping */
    }
    
    .form-row textarea {
      width: 100% !important;
      margin-bottom: 0; /* Remove existing margin */
      min-height: 44px;
    }
    
    .send-button {
      width: 100% !important;
      height: 44px; /* Consistent height with inputs */
      margin-top: 0; /* Remove existing margin */
    }
    
    .char-counter {
      text-align: center; /* Center the character counter */
      margin-top: 8px;
    }
  }
  
  /* EVEN SMALLER SCREENS */
  @media (max-width: 480px) {
    .form-row {
      max-width: 350px; /* Slightly smaller max width */
    }
    
    .form-row input[type="text"],
    .form-row textarea {
      font-size: 16px; /* Prevents zoom on iOS */
      padding: 12px;
    }
  }
  
  /* FORCE BOTTOM COMPOSER TO STAY LIGHT ALWAYS */
.bottom-composer {
    background: rgba(255, 255, 255, 0.95) !important;
    border-top: 1px solid rgba(94, 82, 64, 0.2) !important;
  }
  
  .bottom-composer *,
  .form-row input[type="text"],
  .form-row textarea,
  .send-button {
    color: rgba(19, 52, 59, 1) !important; /* Force dark text */
  }
  
  .form-row input[type="text"],
  .form-row textarea {
    background: rgba(255, 255, 253, 1) !important; /* Force light background */
    border: 1px solid rgba(94, 82, 64, 0.2) !important; /* Force light border */
  }
  
  .send-button {
    background: rgba(33, 128, 141, 1) !important; /* Force teal primary */
    color: rgba(252, 252, 249, 1) !important; /* Force light text */
  }
  
/* FORCE LIGHT THEME ALWAYS */
@media (prefers-color-scheme: dark) {
    :root {
      --color-background: rgba(252, 252, 249, 1) !important;
      --color-surface: rgba(255, 255, 253, 1) !important;
      --color-text: rgba(19, 52, 59, 1) !important;
      --color-text-secondary: rgba(98, 108, 113, 1) !important;
      --color-primary: rgba(33, 128, 141, 1) !important;
      --color-border: rgba(94, 82, 64, 0.2) !important;
    }
  }
  
  [data-color-scheme="dark"] {
    --color-background: rgba(252, 252, 249, 1) !important;
    --color-surface: rgba(255, 255, 253, 1) !important;
    --color-text: rgba(19, 52, 59, 1) !important;
    --color-text-secondary: rgba(98, 108, 113, 1) !important;
    --color-primary: rgba(33, 128, 141, 1) !important;
    --color-border: rgba(94, 82, 64, 0.2) !important;
  }
  

  /* ==========================================
   LOADING OVERLAY STYLES
   ========================================== */



/* Loader size adjustments */
#loader {
    width: 80px;
    height: 80px;
    display: block;
}

#progress {
    width: 160px;
    height: 12px;
    display: block;
}

/* Dynamic progress bar timing */
.progress-dynamic {
    animation-duration: var(--progress-duration, 3s) !important;
}

/* Main loader animations - NO FIXED DURATION */
.rotate {
    transform: rotate(0deg);
    animation: rotate-infinite 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

#translate {
    transform: translateY(0px);
    animation: translate-infinite 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes rotate-infinite {
    0%, 100% {
        transform: rotate(-30deg);
    }
    50% {
        transform: rotate(30deg);
    }
}

@keyframes translate-infinite {
    0%, 100% {
        transform: translateY(0);
    }
    25%, 75% {
        transform: translateY(6px);
    }
}

/* Face animation - continuous */
#face {
    transform: scaleY(1);
    animation: scaleFace-infinite 2s ease-in-out infinite;
}

#mouth, #cheek {
    transform: scale(1);
    animation: scaleGrin-infinite 2s ease-in-out infinite;
}

@keyframes scaleFace-infinite {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.9);
    }
}

@keyframes scaleGrin-infinite {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.8);
    }
}

/* Particle sparkle - periodic */
.particle {
    transform: translateY(0px) scale(0);
    animation: sparkle-periodic 3s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

#particles g:nth-of-type(1) .particle {
    animation-delay: 0.1s;
}

#particles g:nth-of-type(2) .particle {
    animation-delay: 0.2s;
}

@keyframes sparkle-periodic {
    0%, 70% {
        transform: translateY(8px) scale(0);
        opacity: 0;
    }
    75% {
        opacity: 0;
    }
    85% {
        opacity: 1;
        transform: translateY(-2px) scale(1);
    }
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0;
    }
}

/* Dynamic progress bar */
#clip-bar {
    transform: translateX(-120px);
}

.composer-loader.show #clip-bar {
    animation: translateClip-dynamic var(--progress-duration, 3s) linear forwards;
}

@keyframes translateClip-dynamic {
    100% {
        transform: translateX(0);
    }
}








/* ==========================================
   MOBILE COMPOSER TOGGLE SYSTEM
   ========================================== */

/* ==========================================
   MOBILE COMPOSER TOGGLE SYSTEM (STRONGER SELECTORS)
   ========================================== */

   .mobile-composer-toggle {
    display: none !important; /* Force hidden on desktop */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: center;
    justify-content: center;
}

.mobile-composer-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.5);
}

.mobile-composer-toggle .toggle-icon {
    font-size: 24px;
    color: white;
    display: block;
    line-height: 1;
    transition: transform 0.2s ease;
}

.mobile-composer-toggle.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* STRONGER MOBILE RULES */
@media (max-width: 768px) {
    
    /* Force show toggle button on mobile */
    .mobile-composer-toggle {
        display: flex !important;
    }
    
    /* FORCE hide composer below screen on mobile */
    body .bottom-composer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(100%) !important; /* Hidden below screen */
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        z-index: 1000 !important;
        background: var(--color-background) !important;
        border-top: 2px solid var(--color-primary) !important;
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.15) !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        padding: 20px !important;
        padding-bottom: 30px !important;
    }
    
    /* FORCE show composer when active */
    body .bottom-composer.mobile-active {
        transform: translateY(0) !important;
    }
    
    /* Enhanced mobile form styling */
    .compact-message-form {
        margin-bottom: 0;
    }
    
    .form-row input,
    .form-row textarea {
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .form-row textarea {
        min-height: 80px;
    }
    
    .send-button {
        padding: 12px 24px;
        font-size: 16px;
    }
}

/* Desktop - keep existing behavior untouched */
@media (min-width: 769px) {
    body .bottom-composer {
        /* Reset any mobile transforms */
        transform: none !important;
    }
}







/* ==========================================
   BEAUTIFUL ABOUT PAGE STYLES
   ========================================== */

   .about-page {
    min-height: 100vh;
    background: var(--color-background);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.about-header {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.back-link {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.7;
}

.about-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: var(--color-text);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.about-article {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.about-lead {
    margin-bottom: 3rem;
    text-align: center;
}

.about-lead p {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.about-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-section p:last-child {
    margin-bottom: 0;
}

.about-section em {
    color: var(--color-primary);
    font-style: italic;
    font-weight: 500;
}

.about-quote {
    background: none;
    border: none;
    border-left: 3px solid var(--color-primary);
    padding: 1.5rem 0 1.5rem 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 400;
}

.about-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.cta-button:hover {
    background: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Minimal Tech Section */
.tech-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(94, 82, 64, 0.15);
}

.tech-section h2 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.tech-section p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.tech-stats {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 500;
    text-align: center;
}

.tech-stats span {
    white-space: nowrap;
}

.about-footer {
    text-align: center;
    padding: 2rem;
    color: rgba(94, 82, 64, 0.6);
    font-size: 0.9rem;
    font-weight: 400;
    border-top: 1px solid rgba(94, 82, 64, 0.1);
}

.about-quote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-style: normal;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .about-article {
        padding: 0 1.5rem 3rem;
    }
    
    .about-lead p {
        font-size: 1.15rem;
    }
    
    .about-section {
        margin-bottom: 2.5rem;
    }
    
    .about-section h2 {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }
    
    .about-section p {
        font-size: 1rem;
    }
    
    .about-quote {
        padding: 1.25rem 0 1.25rem 1.5rem;
        margin: 2rem 0;
        font-size: 1rem;
    }
    
    .tech-section {
        margin-top: 3rem;
        padding-top: 1.5rem;
    }
}

/* ==========================================
   LEGAL PAGES STYLES
   ========================================== */

   .legal-page {
    min-height: 100vh;
    background: var(--color-background);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.legal-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(94, 82, 64, 0.1);
}

.legal-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 1rem 0 0.5rem;
    line-height: 1.2;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    font-style: italic;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    margin: 1.5rem 0 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.legal-content strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .legal-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .legal-content {
        padding: 1.5rem 1rem 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.25rem;
    }
    
    .legal-content ul {
        padding-left: 1.25rem;
    }
}


/* Cookie table styles */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(94, 82, 64, 0.2);
}

.cookie-table th {
    background: rgba(52, 152, 219, 0.1);
    font-weight: 600;
    color: var(--color-text);
}

.cookie-table code {
    background: rgba(94, 82, 64, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* Mobile responsive table */
@media (max-width: 768px) {
    .cookie-table {
        font-size: 0.8rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
    }
}

/* ==========================================
   CONTACT SECTION STYLES
   ========================================== */

   .contact-section {
    margin-top: 4rem;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(94, 82, 64, 0.15);
}

.contact-section h2 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.contact-content {
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(94, 82, 64, 0.1);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-card p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.hope-card {
    border-left: 4px solid #e74c3c;
}

.collaboration-card {
    border-left: 4px solid var(--color-primary);
}

.contact-details {
    background: rgba(52, 152, 219, 0.05);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 1rem;
}

.contact-details p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.email-link {
    display: inline-block;
    font-size: 1.25rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0.5rem 0 1.5rem;
}

.email-link:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.response-note {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
    font-style: italic;
    opacity: 0.8;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .contact-section {
        margin-top: 3rem;
        padding: 2rem 0 1.5rem;
    }
    
    .contact-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-details {
        padding: 1.5rem;
    }
    
    .email-link {
        font-size: 1.1rem;
        padding: 0.75rem 1.25rem;
    }
}





/* ==========================================
   MINIMAL TOP NAVIGATION - CHALKBOARD STYLE
   ========================================== */

   .top-nav {
    position: static !important;
    top: 1.5rem;
    right: 2rem;
    z-index: 1000;
    display: flex ;
    gap: 1.5rem;
    justify-content: flex-end;
}

.nav-link {
    color: rgba(94, 82, 64, 0.95);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: rgb(5, 4, 0);
    transform: scale(1.2);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(201, 121, 2, 0.4);
    transition: width 0.2s ease;
}

.nav-link:hover:after {
    width: 100%;
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */
   @media (max-width: 768px) {
    .top-nav {
        justify-content: center; /* CENTER ALIGNED ON MOBILE */
        padding: 1rem 1rem 0 1rem;
        gap: 1.5rem; /* Keep horizontal spacing */
        flex-direction: row; /* KEEP HORIZONTAL */
        align-items: center;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .top-nav {
        justify-content: center; /* STILL CENTERED ON SMALL SCREENS */
        padding: 0.75rem 0.75rem 0 0.75rem;
        gap: 1rem; /* Slightly smaller gap */
        flex-direction: row; /* KEEP HORIZONTAL */
        align-items: center;
    }
    
    .nav-link {
        font-size: 0.7rem;
    }
}

/* ==========================================
   REMOVE ALL FOOTER CSS - CLEAN SLATE
   ========================================== */

.site-footer {
    display: none !important;
}




/* ==========================================
   404 ERROR PAGE STYLES
   ========================================== */

   .error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.error-page .hero-section {
    margin-bottom: 2rem;
}

.error-content {
    max-width: 600px;
    width: 100%;
}

.error-message {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(94, 82, 64, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.error-subtitle {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-family: 'Playfair Display', serif;
}

.error-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.error-quote {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.error-quote p {
    font-style: italic;
    font-size: 1rem;
    color: var(--color-text);
    margin: 0;
    font-weight: 400;
}

.back-home-button {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.back-home-button:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* Lost Plane Animation */
.lost-plane {
    position: absolute;
    top: 20%;
    right: 10%;
    z-index: 1;
    pointer-events: none;
}

.plane-animation {
    font-size: 2rem;
    opacity: 0.6;
    filter: grayscale(0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .error-page {
        padding: 1rem;
        justify-content: flex-start;
        padding-top: 4rem;
    }
    
    .error-message {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }
    
    .error-subtitle {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }
    
    .error-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .error-quote {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .back-home-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .lost-plane {
        top: 15%;
        right: 5%;
    }
    
    .plane-animation {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .error-page {
        padding-top: 3rem;
    }
    
    .lost-plane {
        display: none; /* Hide on very small screens */
    }
}






/* COMPOSER LOADER - DESKTOP & MOBILE */
.composer-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(252, 252, 249, 0.95);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
    z-index: 1005;
    border-radius: 24px;
    backdrop-filter: blur(8px);
    /* border: 1px solid rgba(94, 82, 64, 0.2); */
}

.composer-loader.show {
    display: flex;
}

/* DESKTOP - Floating loader in center-bottom */
@media (min-width: 769px) {
    .composer-loader {
        position: fixed !important; /* Fixed to viewport, not absolute */
        top: auto !important; /* Don't anchor to top */
        bottom: 120px !important; /* 120px from bottom (above composer) */
        left: 50% !important; /* Center horizontally */
        transform: translateX(-50%) !important; /* Perfect centering */
        width: 400px !important; /* Fixed width instead of 100% */
        height: 200px !important; /* Fixed height instead of 100% */
        background: rgba(252, 252, 249, 0.98) !important; /* Slightly more opaque */
        backdrop-filter: blur(15px) !important;
        border-radius: 20px !important;
        /* border: 1px solid rgba(94, 82, 64, 0.3) !important; */
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important; /* Nice shadow */
        z-index: 1010 !important; /* Above everything */
        justify-content: center !important;
        align-items: center !important;
        padding: 20px !important;
    }
    
    .composer-loader.show {
        display: flex !important;
    }
    
    /* Center loading content properly on desktop */
    .composer-loader .loading-content {
        transform: translateY(0) !important; /* No offset */
        gap: 1rem !important;
    }
}

/* MOBILE - Full screen overlay (keep existing) */
@media (max-width: 768px) {
    .composer-loader {
        position: fixed;
        z-index: 1005;
        border-radius: 24px;
        display: none;
    }
    
    .composer-loader.show {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 10000 !important;
        background: rgba(252, 252, 249, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        border-radius: 0 !important;
        border: none !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
    }
    
    .composer-loader.show .loading-content {
        transform: translateY(0) !important;
        position: relative !important;
    }
}

/* Loading content styles */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    /* Remove the translateY(-200px) since we're centering properly */
}

.loading-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c2c2c;
    text-align: center;
}

/* Keep all your existing loader animations... */
#loader {
    width: 80px;
    height: 80px;
    display: block;
}

#progress {
    width: 160px;
    height: 12px;
    display: block;
}




/* Mobile - center the content
@media (max-width: 768px) {
    .composer-loader.show .loading-content {
        transform: translateY(0) !important;
    }
} */

