: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;
}

.logo-between-sections {
  margin: 20px auto; /* Reduces vertical space around logo */
  max-width: 90%; /* Prevents logo from touching screen edges */
}

.container {
  padding: 1rem; /* Reduces container padding if needed */
}

/* Optional: Adjust section margins */
.hero {
  margin-bottom: 10px !important;
}

.secondary-section {
  margin-top: 10px !important;
}

.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 */
/* Reset and Base Styles */

/* Enhanced gradient keyframes */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradientGlow {
    0% { box-shadow: 0 0 20px rgba(0, 212, 170, 0.3); }
    50% { box-shadow: 0 0 30px rgba(107, 115, 255, 0.4); }
    100% { box-shadow: 0 0 20px rgba(0, 212, 170, 0.3); }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a1f1c 0%, #1a2a3a 50%, #2a1a3a 100%);
    min-height: 100vh;
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px;
    background: rgba(10, 31, 28, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 80px; /* Account for fixed header */
}

.page.active {
    display: block;
}



/* Secondary Section */
.secondary-section {
    padding: 60px 0;
    text-align: center;
}

.secondary-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.secondary-section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.secondary-section .btn-secondary {
    margin-top: 20px;
}

.logo-between-sections {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 22px 0; /* Adjust spacing as needed */
}
.logo-between-sections img {
  max-width: 100%;
  height: auto;
  border-radius: 12px; /* Optional: rounded corners */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* Optional: subtle shadow */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0 80px 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #b0b0b0;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}



/* Buttons */
.btn-primary, .btn-secondary, .btn-back {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.4), 0 0 20px rgba(107, 115, 255, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: #00D4AA;
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%) 1;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
}

.btn-back {
    background: #3a3a3a;
    color: #ffffff;
}

.btn-back:hover {
    background: #4a4a4a;
}

/* Elements Section */
.elements-section {
    padding: 60px 0;
}

.elements-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.element-card {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%) 1;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.element-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.2);
}

.element-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.element-pattern {
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.element-card ul {
    list-style: none;
}

.element-card li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: #b0b0b0;
}

.element-card li:before {
    content: "•";
    background: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Main Waitlist Section */
.waitlist-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08) 0%, rgba(107, 115, 255, 0.05) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    border-radius: 20px;
    margin: 40px 0;
}

.waitlist-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.waitlist-content h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.waitlist-description {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 40px;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 40px 0;
}

.benefit-item {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(107, 115, 255, 0.05) 100%);
    border: 1px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: left;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15) 0%, rgba(107, 115, 255, 0.08) 100%);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.2);
}

.main-waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.main-waitlist-form input {
    padding: 16px;
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%) 1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.main-waitlist-form input:focus {
    outline: none;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.3);
}

.main-waitlist-form input::placeholder {
    color: #888;
}

/* Medical Disclaimer */
.medical-disclaimer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
}

.medical-disclaimer p {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin: 0;
    font-style: italic;
}

/* Quiz Value Section */
.quiz-value {
    padding: 60px 0;
    text-align: center;
}

.quiz-value h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.value-card {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(107, 115, 255, 0.05) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%) 1;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.value-list {
    list-style: none;
    margin-bottom: 30px;
}

.value-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: left;
}

/* Survey Styles */
.survey-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.survey-header {
    margin-bottom: 40px;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.5);
}

.progress-text {
    text-align: center;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.survey-content {
    flex: 1;
}

.question {
    margin-bottom: 40px;
}

.question h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffffff;
    line-height: 1.3;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #ffffff;
}

.option:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #00D4AA;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.2);
}

.option.selected {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2) 0%, rgba(107, 115, 255, 0.1) 100%);
    border-color: #00D4AA;
    color: #00D4AA;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

.option.multi-select {
    position: relative;
}

.option.multi-select:before {
    content: "☐";
    margin-right: 10px;
    font-size: 1.2rem;
}

.option.multi-select.selected:before {
    content: "☑";
    background: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.survey-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

/* Advanced Question Type Styles */

/* Slider Questions */
.sliders {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 20px 0;
}

.slider-group {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 15px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.slider {
    flex: 1;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 212, 170, 0.3);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 212, 170, 0.3);
}

.slider-min, .slider-max {
    color: #b0b0b0;
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.slider-value {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #00D4AA;
    background: rgba(0, 212, 170, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    min-width: 40px;
}

/* Compound Questions */
.compound-question {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
}

.sub-questions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-question {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
}

.sub-question h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 500;
}

.sub-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sub-option {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #ffffff;
}

.sub-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00D4AA;
}

.sub-option.selected {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15) 0%, rgba(107, 115, 255, 0.08) 100%);
    border-color: #00D4AA;
    color: #00D4AA;
}

/* Grouped Questions */
.grouped-question {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
}

.question-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-group {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
}

.question-group h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 500;
}

.group-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.group-option {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #ffffff;
}

.group-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00D4AA;
}

.group-option.selected {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15) 0%, rgba(107, 115, 255, 0.08) 100%);
    border-color: #00D4AA;
    color: #00D4AA;
}

/* Results Styles */
.results-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
}

.results-card {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(107, 115, 255, 0.08) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%) 1;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.results-card h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-card h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.results-card .pattern-description {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 30px;
    font-style: italic;
}

.characteristics {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.characteristics li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    color: #b0b0b0;
}

.characteristics li:before {
    content: "•";
    background: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Enhanced visual feedback */
.option:active,
.sub-option:active,
.group-option:active,
.mode-option:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Progressive disclosure animations */
@keyframes questionSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question {
    animation: questionSlideIn 0.5s ease-out;
}

/* Enhanced button states */
.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-pro:active {
    transform: translateY(-1px) scale(0.98);
}

.enhanced-pro-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.enhanced-pro-button:hover:before {
    left: 100%;
}

/* Pro Enhancement Styling */
.pro-enhancement {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15) 0%, rgba(107, 115, 255, 0.10) 100%);
    border: 1px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    padding: 15px 20px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #00D4AA;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.2);
}

.email-section {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(107, 115, 255, 0.08) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%) 1;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.15);
}

.gradient-title {
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 700;
    animation: gradientShift 3s ease infinite;
}

.email-description {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.benefits-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin: 25px 0;
}

.benefit-preview {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.12) 0%, rgba(107, 115, 255, 0.08) 100%);
    border: 1px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.benefit-preview:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.18) 0%, rgba(107, 115, 255, 0.12) 100%);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.2);
}

.gradient-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(107, 115, 255, 0.05) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    border-radius: 16px;
}

.gradient-form input {
    padding: 18px 20px;
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%) 1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.gradient-form input:focus {
    outline: none;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.4), 0 0 40px rgba(107, 115, 255, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.gradient-form input::placeholder {
    color: #999;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.email-form input {
    padding: 16px;
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%) 1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-form input:focus {
    outline: none;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.3);
}

.email-form input::placeholder {
    color: #888;
}

.pro-section {
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Simplified PRO Button */
.simplified-pro-button {
    background: linear-gradient(135deg, #6B73FF 0%, #9C44DC 50%, #FF6B9D 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 16px;
    padding: 16px 32px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(107, 115, 255, 0.3);
    animation: gradientShift 3s ease infinite;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.simplified-pro-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(107, 115, 255, 0.4), 0 0 30px rgba(255, 107, 157, 0.3);
    animation-duration: 2s;
}

.simplified-pro-button:active {
    transform: translateY(-1px) scale(0.98);
}

@media (max-width: 768px) {
    .simplified-pro-button {
        padding: 14px 28px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .simplified-pro-button {
        padding: 12px 24px;
        font-size: 1rem;
        margin: 0 -10px;
    }
}

/* Enhanced PRO Button */
.enhanced-pro-button {
    background: linear-gradient(135deg, #6B73FF 0%, #9C44DC 50%, #FF6B9D 100%);
    background-size: 200% 200%;
    border: 2px solid rgba(107, 115, 255, 0.3);
    border-radius: 16px;
    padding: 20px 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(107, 115, 255, 0.3);
    animation: gradientShift 3s ease infinite;
}

.enhanced-pro-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(107, 115, 255, 0.4), 0 0 30px rgba(255, 107, 157, 0.3);
    animation-duration: 2s;
}

.enhanced-pro-button:active {
    transform: translateY(-1px) scale(0.98);
}

.pro-badge {
    position: absolute;
    top: -8px;
    right: 15px;
    background: #FF6B9D;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    transform: rotate(8deg);
}

.pro-content {
    text-align: center;
    margin-bottom: 15px;
}

.pro-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pro-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 20px 0;
    font-weight: 500;
}

.pro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin: 15px 0;
}

.feature-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 500;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pro-action {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pro-cta {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

/* Legacy pro button styles for backwards compatibility */
.pro-btn {
    background: transparent;
    color: #00D4AA;
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.pro-btn:hover {
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
    transform: translateY(-2px);
}

.pro-description {
    color: #999;
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
}

/* Mobile responsive for enhanced PRO button */
@media (max-width: 768px) {
    .enhanced-pro-button {
        padding: 18px 25px;
    }
    
    .pro-title {
        font-size: 1.2rem;
    }
    
    .pro-features {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        font-size: 0.8rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .enhanced-pro-button {
        padding: 15px 20px;
        margin: 0 -10px;
    }
    
    .pro-badge {
        right: 10px;
        font-size: 0.65rem;
        padding: 3px 10px;
    }
    
    .pro-title {
        font-size: 1.1rem;
    }
    
    .pro-subtitle {
        font-size: 0.9rem;
    }
    
    .pro-cta {
        font-size: 1rem;
    }
}

/* Waitlist Styles */
.waitlist-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.waitlist-content h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.benefits-list {
    margin: 40px 0;
}

.benefit {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(107, 115, 255, 0.05) 100%);
    border: 1px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-align: left;
    font-size: 1.1rem;
}

.launch-date {
    background: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.waitlist-form input {
    padding: 16px;
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%) 1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.waitlist-form input:focus {
    outline: none;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.3);
}

.waitlist-form input::placeholder {
    color: #888;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a2a3a 0%, #2a1a3a 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.2);
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid;
    border-left-color: #00D4AA;
    border-top: 4px solid #00A8CC;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional gradient animations */
@keyframes pulseGradient {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.progress-fill {
    animation: pulseGradient 2s ease-in-out infinite;
}

/* Disclaimer */
.disclaimer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #888;
    text-align: left;
}

/* Enhanced Results Styling */
.scores-breakdown {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(107, 115, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.scores-breakdown h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 500;
}

.score-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 0;
}

.score-label {
    min-width: 120px;
    font-size: 0.9rem;
    color: #b0b0b0;
    font-weight: 500;
}

.score-progress {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%);
    border-radius: 4px;
    transition: width 0.8s ease;
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.4);
}

.score-value {
    min-width: 30px;
    text-align: right;
    font-size: 0.9rem;
    color: #00D4AA;
    font-weight: 600;
}

.recommendations {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.recommendations h4 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 500;
    background: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.recommendations-list li {
    margin-bottom: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    padding-left: 35px;
}

.recommendations-list li:before {
    content: "💡";
    position: absolute;
    left: 12px;
    top: 12px;
    font-size: 1rem;
}

/* Results Footer Enhancement */
.results-footer {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.08) 0%, rgba(107, 115, 255, 0.05) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    border-radius: 20px;
    text-align: center;
}

.results-footer h3 {
    font-size: 2rem;
    background: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.results-footer-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.results-footer-form input {
    padding: 16px;
    border: 2px solid;
    border-image: linear-gradient(135deg, #00D4AA 0%, #00A8CC 50%, #6B73FF 100%) 1;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.results-footer-form input:focus {
    outline: none;
    border-image: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%) 1;
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.3);
}

.results-footer-form input::placeholder {
    color: #888;
}

/* Enhanced gradient backgrounds for mobile */
.survey-container {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.03) 0%, rgba(107, 115, 255, 0.03) 100%);
    border-radius: 20px;
    margin: 20px;
}

/* Animation for score bars */
@keyframes scoreBarFill {
    from { width: 0%; }
    to { width: var(--target-width); }
}

.score-fill {
    animation: scoreBarFill 1s ease-out 0.5s both;
}

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

/* Loading states for dynamic content */
.loading-content {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.content-loaded {
    opacity: 1;
    pointer-events: auto;
}

/* Enhanced focus states for accessibility */
.slider:focus,
.sub-option:focus,
.group-option:focus,
.mode-option:focus {
    outline: 2px solid #00D4AA;
    outline-offset: 2px;
}

/* Improved visual hierarchy */
.question h3 {
    position: relative;
    padding-bottom: 15px;
}

.question h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%);
    border-radius: 1px;
}

/* Survey Mode Indicator */
.pro-mode-indicator {
    text-align: center;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.survey-mode-indicator {
    text-align: center;
    margin-bottom: 15px;
}

.mode-badge {
    background: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

/* Mode Selection Styles */
.mode-option {
    position: relative;
    padding: 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-option:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #00D4AA;
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.2);
    transform: translateY(-2px);
}

.mode-option.selected {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2) 0%, rgba(107, 115, 255, 0.1) 100%);
    border-color: #00D4AA;
    color: #00D4AA;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.3);
}

.option-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.mode-option.selected .option-label {
    background: linear-gradient(135deg, #00D4AA 0%, #6B73FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.option-description {
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.4;
}

.mode-option.selected .option-description {
    color: #d0d0d0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header responsive */
    .app-header {
        padding: 15px 20px;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .page {
        padding-top: 70px;
    }
    
    .secondary-section h2 {
        font-size: 1.8rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-preview {
        grid-template-columns: 1fr;
    }
    
    .waitlist-section {
        margin: 20px;
        padding: 40px 20px;
    }
    
    .gradient-title {
        font-size: 1.7rem;
    }
    
    .gradient-form {
        padding: 20px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .elements-grid {
        grid-template-columns: 1fr;
    }

    .survey-navigation {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary, .btn-back {
        width: 100%;
        margin-bottom: 10px;
    }

    .results-card {
        padding: 25px;
        background-size: 200% 200%;
        animation: gradientShift 4s ease infinite;
    }

    .email-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    /* Advanced Question Types - Mobile */
    .sliders {
        gap: 20px;
    }
    
    .slider-group {
        padding: 15px;
    }
    
    .compound-question,
    .grouped-question {
        padding: 20px;
    }
    
    .sub-questions,
    .question-groups {
        gap: 15px;
    }
    
    .mode-option {
        padding: 15px;
    }
    
    .option-label {
        font-size: 1.1rem;
    }
    
    .scores-breakdown,
    .recommendations {
        padding: 15px;
    }
    
    .score-bar {
        gap: 8px;
    }
    
    .score-label {
        min-width: 100px;
        font-size: 0.85rem;
    }
    
    .email-benefits {
        grid-template-columns: 1fr;
    }
    
    .results-footer {
        padding: 25px;
    }
    
    .results-footer h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    /* Header mobile */
    .app-header {
        padding: 12px 15px;
    }
    
    .brand-name {
        font-size: 1.3rem;
    }
    
    .page {
        padding-top: 65px;
    }
    
    .secondary-section {
        padding: 40px 0;
    }
    
    .secondary-section h2 {
        font-size: 1.6rem;
    }
    
    .waitlist-content h2 {
        font-size: 2rem;
    }
    
    .benefit-item {
        text-align: center;
    }
    
    .gradient-title {
        font-size: 1.5rem;
    }
    
    .email-section {
        padding: 25px;
    }
    
    .gradient-form {
        padding: 15px;
    }
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .element-card {
        padding: 20px;
    }

    .survey-container {
        padding: 20px 15px;
        margin: 10px;
        background: linear-gradient(135deg, rgba(0, 212, 170, 0.05) 0%, rgba(107, 115, 255, 0.05) 100%);
    }
    
    .pro-mode-indicator {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .results-container {
        padding: 20px 15px;
    }
    
    /* Mobile optimizations for advanced question types */
    .slider-container {
        gap: 10px;
    }
    
    .slider-min, .slider-max {
        font-size: 0.8rem;
        min-width: 15px;
    }
    
    .mode-option {
        padding: 12px;
    }
    
    .option-label {
        font-size: 1rem;
    }
    
    .option-description {
        font-size: 0.9rem;
    }
    
    .compound-question,
    .grouped-question {
        padding: 15px;
    }
    
    .scores-breakdown h4,
    .recommendations h4 {
        font-size: 1rem;
    }
    
    .score-label {
        min-width: 80px;
        font-size: 0.8rem;
    }
    
    .recommendations-list li {
        padding: 10px 12px;
        padding-left: 30px;
        font-size: 0.9rem;
    }
    
    .recommendations-list li:before {
        left: 10px;
        top: 10px;
        font-size: 0.9rem;
    }
    
    .results-footer {
        padding: 20px;
    }
    
    .results-footer h3 {
        font-size: 1.6rem;
    }
    
    .email-title {
        font-size: 1.5rem;
    }
}