
:root {
  /* Colors */
  --color-background: rgba(252, 252, 249, 1);
  --color-surface: rgba(255, 255, 253, 1);
  --color-text: rgba(19, 52, 59, 1);
  --color-text-secondary: rgba(45, 55, 65, 0.85);
  --color-primary: rgba(33, 128, 141, 1);
  --color-primary-hover: rgba(29, 116, 128, 1);
  --color-primary-active: rgba(26, 104, 115, 1);
  --color-secondary: rgba(94, 82, 64, 0.12);
  --color-secondary-hover: rgba(94, 82, 64, 0.2);
  --color-secondary-active: rgba(94, 82, 64, 0.25);
  --color-border: rgba(94, 82, 64, 0.2);
  --color-btn-primary-text: rgba(252, 252, 249, 1);
  --color-card-border: rgba(94, 82, 64, 0.12);
  --color-card-border-inner: rgba(94, 82, 64, 0.12);
  --color-error: rgba(192, 21, 47, 1);
  --color-success: rgba(33, 128, 141, 1);
  --color-warning: rgba(168, 75, 47, 1);
  --color-info: rgba(98, 108, 113, 1);
  --color-focus-ring: rgba(33, 128, 141, 0.4);
  --color-select-caret: rgba(19, 52, 59, 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 - DISABLED FOR CONSISTENT LIGHT MODE */
/* Commenting out to force light mode across all devices */
/*
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: rgba(31, 33, 33, 1);
    --color-surface: rgba(38, 40, 40, 1);
    --color-text: rgba(245, 245, 245, 1);
    --color-text-secondary: rgba(167, 169, 169, 0.7);
    --color-primary: rgba(50, 184, 198, 1);
    --color-primary-hover: rgba(45, 166, 178, 1);
    --color-primary-active: rgba(41, 150, 161, 1);
    --color-secondary: rgba(119, 124, 124, 0.15);
    --color-secondary-hover: rgba(119, 124, 124, 0.25);
    --color-secondary-active: rgba(119, 124, 124, 0.3);
    --color-border: rgba(119, 124, 124, 0.3);
    --color-error: rgba(255, 84, 89, 1);
    --color-success: rgba(50, 184, 198, 1);
    --color-warning: rgba(230, 129, 97, 1);
    --color-info: rgba(167, 169, 169, 1);
    --color-focus-ring: rgba(50, 184, 198, 0.4);
    --color-btn-primary-text: rgba(19, 52, 59, 1);
    --color-card-border: rgba(119, 124, 124, 0.2);
    --color-card-border-inner: rgba(119, 124, 124, 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(119, 124, 124, 0.2);
    --color-border-secondary: rgba(119, 124, 124, 0.2);
    --color-select-caret: rgba(245, 245, 245, 0.8);

    --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");

    --color-success-rgb: 50, 184, 198;
    --color-error-rgb: 255, 84, 89;
    --color-warning-rgb: 230, 129, 97;
    --color-info-rgb: 167, 169, 169;
  }
}
*/

/* Force light mode on all devices */
@media (prefers-color-scheme: dark) {
  :root {
    /* Override dark mode with light mode colors */
    --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(45, 55, 65, 0.85) !important;
    --color-primary: rgba(33, 128, 141, 1) !important;
    --color-primary-hover: rgba(29, 116, 128, 1) !important;
    --color-primary-active: rgba(26, 104, 115, 1) !important;
    --color-secondary: rgba(94, 82, 64, 0.12) !important;
    --color-secondary-hover: rgba(94, 82, 64, 0.2) !important;
    --color-secondary-active: rgba(94, 82, 64, 0.25) !important;
    --color-border: rgba(94, 82, 64, 0.2) !important;
    --color-btn-primary-text: rgba(252, 252, 249, 1) !important;
    --color-card-border: rgba(94, 82, 64, 0.12) !important;
    --color-card-border-inner: rgba(94, 82, 64, 0.12) !important;
    --color-error: rgba(192, 21, 47, 1) !important;
    --color-success: rgba(33, 128, 141, 1) !important;
    --color-warning: rgba(168, 75, 47, 1) !important;
    --color-info: rgba(98, 108, 113, 1) !important;
    --color-focus-ring: rgba(33, 128, 141, 0.4) !important;
    --color-select-caret: rgba(19, 52, 59, 0.8) !important;

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

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  --color-background: rgba(31, 33, 33, 1);
  --color-surface: rgba(38, 40, 40, 1);
  --color-text: rgba(245, 245, 245, 1);
  --color-text-secondary: rgba(167, 169, 169, 0.7);
  --color-primary: rgba(50, 184, 198, 1);
  --color-primary-hover: rgba(45, 166, 178, 1);
  --color-primary-active: rgba(41, 150, 161, 1);
  --color-secondary: rgba(119, 124, 124, 0.15);
  --color-secondary-hover: rgba(119, 124, 124, 0.25);
  --color-secondary-active: rgba(119, 124, 124, 0.3);
  --color-border: rgba(119, 124, 124, 0.3);
  --color-error: rgba(255, 84, 89, 1);
  --color-success: rgba(50, 184, 198, 1);
  --color-warning: rgba(230, 129, 97, 1);
  --color-info: rgba(167, 169, 169, 1);
  --color-focus-ring: rgba(50, 184, 198, 0.4);
  --color-btn-primary-text: rgba(19, 52, 59, 1);
  --color-card-border: rgba(119, 124, 124, 0.15);
  --color-card-border-inner: rgba(119, 124, 124, 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(119, 124, 124, 0.2);
  --color-select-caret: rgba(245, 245, 245, 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: 50, 184, 198;
  --color-error-rgb: 255, 84, 89;
  --color-warning-rgb: 230, 129, 97;
  --color-info-rgb: 167, 169, 169;
}

[data-color-scheme="light"] {
  --color-background: rgba(252, 252, 249, 1);
  --color-surface: rgba(255, 255, 253, 1);
  --color-text: rgba(19, 52, 59, 1);
  --color-text-secondary: rgba(45, 55, 65, 0.85);
  --color-primary: rgba(33, 128, 141, 1);
  --color-primary-hover: rgba(29, 116, 128, 1);
  --color-primary-active: rgba(26, 104, 115, 1);
  --color-secondary: rgba(94, 82, 64, 0.12);
  --color-secondary-hover: rgba(94, 82, 64, 0.2);
  --color-secondary-active: rgba(94, 82, 64, 0.25);
  --color-border: rgba(94, 82, 64, 0.2);
  --color-btn-primary-text: rgba(252, 252, 249, 1);
  --color-card-border: rgba(94, 82, 64, 0.12);
  --color-card-border-inner: rgba(94, 82, 64, 0.12);
  --color-error: rgba(192, 21, 47, 1);
  --color-success: rgba(33, 128, 141, 1);
  --color-warning: rgba(168, 75, 47, 1);
  --color-info: rgba(98, 108, 113, 1);
  --color-focus-ring: rgba(33, 128, 141, 0.4);

  /* RGB versions for light mode */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;
}

/* 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 - DISABLED for light mode consistency */
/* 
@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');
}

/* Custom design system extensions for Apollo */
:root {
  /* Apollo color palette - health/wellness theme with purple gradient */
  --color-apollo-primary: #22c55e;
  --color-apollo-primary-hover: #16a34a;
  --color-apollo-secondary: #3b82f6;
  --color-apollo-secondary-hover: #2563eb;
  --color-apollo-accent: #06b6d4;
  --color-apollo-gradient: linear-gradient(180deg, #c084fc 0%, #a855f7 25%, #9333ea 50%, #7c3aed 75%, #6d28d9 100%);
  --color-apollo-gradient-soft: linear-gradient(180deg, rgba(192, 132, 252, 0.3) 0%, rgba(168, 85, 247, 0.2) 25%, rgba(147, 51, 234, 0.15) 50%, rgba(124, 58, 237, 0.1) 75%, rgba(109, 40, 217, 0.05) 100%);
  
  /* Modern shadows */
  --shadow-glow: 0 0 30px rgba(34, 197, 94, 0.3);
  --shadow-card-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
  --backdrop-blur: blur(10px);
}

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

body {
  overflow-x: hidden;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--duration-normal) var(--ease-standard);
}

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

.header__logo h1 {
  background: var(--color-apollo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin: 0;
}

.header__nav {
  display: flex;
  gap: var(--space-32);
}

.header__nav a {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  transition: color var(--duration-fast) var(--ease-standard);
  position: relative;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-apollo-gradient);
  transition: width var(--duration-normal) var(--ease-standard);
}

.header__nav a:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.language-switcher {
  display: flex;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
  padding: var(--space-4);
}

.lang-btn {
  padding: var(--space-6) var(--space-12);
  border: none;
  background: none;
  border-radius: var(--radius-full);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
}

.lang-btn.active {
  background: var(--color-apollo-primary);
  color: white;
}

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

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--duration-normal) var(--ease-standard);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--color-border);
  z-index: 999;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: var(--space-24);
  gap: var(--space-16);
}

.mobile-nav a {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  padding: var(--space-12);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-apollo-gradient);
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-apollo-gradient-soft);
  opacity: 0.8;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(-10px) scale(1.05); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-32);
  align-items: center;
  padding-top: 100px;
}

.hero__headline {
  font-size: clamp(var(--font-size-3xl), 5vw, 72px);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-24);
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s var(--ease-standard);
}

.hero__subheadline {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-32);
  line-height: 1.6;
  animation: fadeInUp 1s var(--ease-standard) 0.2s both;
  font-weight: var(--font-weight-medium);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero__actions {
  display: flex;
  gap: var(--space-16);
  animation: fadeInUp 1s var(--ease-standard) 0.4s both;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInUp 1s var(--ease-standard) 0.6s both;
}

.hero__icon {
  font-size: 120px;
  animation: float 3s ease-in-out infinite;
}







/* Chat Widget Styles */
.chat-widget {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
  height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  animation: fadeInUp 1s var(--ease-standard) 0.6s both;
}

.chat-widget__header {
  background: var(--color-apollo-primary);
  color: white;
  padding: var(--space-16);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-widget__status {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-weight: var(--font-weight-medium);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chat-widget__time {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.chat-widget__messages {
  flex: 1;
  padding: var(--space-16);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  background: linear-gradient(180deg, var(--color-surface) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: messageSlideIn 0.5s var(--ease-standard);
}

.chat-message--ai {
  align-self: flex-start;
}

.chat-message--user {
  align-self: flex-end;
}

.chat-message__bubble {
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-message--ai .chat-message__bubble {
  background: var(--color-secondary);
  color: var(--color-text);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-message--user .chat-message__bubble {
  background: var(--color-apollo-primary);
  color: white;
  border-bottom-right-radius: var(--radius-sm);
}

.chat-message__time {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-top: var(--space-4);
  align-self: flex-end;
}

.chat-message--ai .chat-message__time {
  align-self: flex-start;
}

.mood-selector {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.mood-option {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-6) var(--space-12);
  font-size: var(--font-size-xs);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-standard);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.mood-option:hover {
  background: var(--color-apollo-primary);
  color: white;
  transform: translateY(-1px);
}

.mood-option.selected {
  background: var(--color-apollo-primary);
  color: white;
  border-color: var(--color-apollo-primary);
}

.chat-widget__input {
  padding: var(--space-16);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-standard);
}

.typing-indicator.show {
  opacity: 1;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--color-text-secondary);
  border-radius: 50%;
  animation: typingDots 1.5s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDots {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.insights-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-base);
  padding: var(--space-12);
  margin-top: var(--space-8);
}

.insights-card__title {
  font-weight: var(--font-weight-medium);
  color: var(--color-apollo-primary);
  font-size: var(--font-size-xs);
  margin-bottom: var(--space-6);
}

.insights-card__content {
  font-size: var(--font-size-xs);
  color: var(--color-text);
  line-height: 1.3;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Styles */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-32);
}

.section-header h2 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-16);
  background: var(--color-apollo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Introduction Section */
.introduction {
  background: var(--color-surface);
}

.introduction__content {
  display: grid;
  gap: var(--space-32);
}

.introduction__description {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--color-surface);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-standard);
  border: 1px solid var(--color-border);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.feature-card__icon {
  font-size: 48px;
  margin-bottom: var(--space-16);
}

.feature-card h3 {
  margin-bottom: var(--space-12);
  color: var(--color-apollo-primary);
}

.feature-card p {
  color: var(--color-text);
}

/* Apps Section */
.apps {
  background: linear-gradient(180deg, rgba(192, 132, 252, 0.05) 0%, rgba(168, 85, 247, 0.03) 50%, rgba(147, 51, 234, 0.02) 100%);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-32);
}

.app-card {
  background: var(--color-surface);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-standard);
  border: 1px solid var(--color-border);
}

.app-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
}

.app-card__icon {
  font-size: 64px;
  margin-bottom: var(--space-16);
}

.app-card h3 {
  margin-bottom: var(--space-12);
  color: var(--color-apollo-secondary);
}

.app-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-20);
}

.app-features {
  list-style: none;
  padding: 0;
  margin: var(--space-20) 0;
}

.app-features li {
  padding: var(--space-8) 0;
  position: relative;
  padding-left: var(--space-24);
}

.app-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-apollo-primary);
  font-weight: bold;
}

/* Blog Section */
.blog {
  background: var(--color-surface);
}

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

.blog-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-standard);
  border: 1px solid var(--color-border);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.blog-card__category {
  background: var(--color-apollo-primary);
  color: white;
  padding: var(--space-6) var(--space-12);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  display: inline-block;
  margin: var(--space-16) var(--space-24) var(--space-12);
  border-radius: var(--radius-full);
}

.blog-card h3 {
  padding: 0 var(--space-24);
  margin-bottom: var(--space-12);
  color: var(--color-text);
}

.blog-card p {
  padding: 0 var(--space-24);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-16);
}

.blog-card__meta {
  padding: var(--space-16) var(--space-24);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
}

.blog-card__link {
  color: var(--color-apollo-primary);
  font-weight: var(--font-weight-medium);
}

/* Legal Section */
.legal {
  background: var(--color-background);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-32);
}

.legal-card {
  background: var(--color-surface);
  padding: var(--space-32);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  text-align: center;
}

.legal-card h3 {
  margin-bottom: var(--space-16);
  color: var(--color-apollo-secondary);
}

.legal-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
}

/* Footer */
.footer {
  background: var(--color-text);
  color: white;
  padding: var(--space-32) 0;
}

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

.footer__brand h3 {
  background: var(--color-apollo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-8);
}

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

.footer__section h4 {
  margin-bottom: var(--space-16);
  color: var(--color-apollo-accent);
}

.footer__section a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer__section a:hover {
  color: var(--color-apollo-accent);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-24);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Button Overrides */
.btn--primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

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

.btn--primary:hover::before {
  left: 100%;
}

.btn--outline {
  border: 2px solid var(--color-apollo-primary);
  color: var(--color-apollo-primary);
}

.btn--outline:hover {
  background: var(--color-apollo-primary);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header__nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero {
    min-height: auto;
    padding: 80px 0 60px 0;
  }
  
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-24);
    padding-top: 0;
  }
  
  .hero__headline {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-16);
  }
  
  .hero__subheadline {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-24);
  }
  
  .hero__actions {
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-24);
  }
  
  .hero__actions .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .features-grid,
  .apps-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
  }
  
  .footer__links {
    grid-template-columns: 1fr;
  }
  
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .chat-widget {
    max-width: 100%;
    height: 350px;
    margin: 0 auto;
  }
  
  .chat-widget__messages {
    padding: var(--space-12);
  }
  
  .mood-selector {
    gap: var(--space-6);
  }
  
  .mood-option {
    font-size: var(--font-size-xs);
    padding: var(--space-4) var(--space-8);
  }
}

@media (max-width: 480px) {
  .header__content {
    padding: var(--space-12) 0;
  }
  
  .hero {
    padding: 70px 0 40px 0;
  }
  
  .hero__headline {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-12);
  }
  
  .hero__subheadline {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-20);
  }
  
  .hero__actions {
    margin-bottom: var(--space-16);
  }
  
  .section-header h2 {
    font-size: var(--font-size-3xl);
  }
  
  .feature-card,
  .app-card,
  .legal-card {
    padding: var(--space-24);
  }
  
  .chat-widget {
    height: 300px;
  }
  
  .chat-widget__header {
    padding: var(--space-12);
  }
  
  .chat-widget__messages {
    padding: var(--space-8);
    gap: var(--space-8);
  }
  
  .chat-message__bubble {
    padding: var(--space-8) var(--space-12);
    font-size: var(--font-size-xs);
  }
  
  .mood-option {
    padding: var(--space-4) var(--space-6);
    font-size: 10px;
  }
  
  .insights-card {
    padding: var(--space-8);
  }
  
  .insights-card__title,
  .insights-card__content {
    font-size: 10px;
  }
}

/* Feature Card Widgets */
.feature-card__widget {
  height: 200px;
  margin-bottom: var(--space-24);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* AI Therapy Sessions Widget */
.ai-therapy-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  padding: var(--space-16);
}

.ai-voice-assistant {
  position: relative;
  margin-bottom: var(--space-16);
}

.voice-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
}

.voice-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 246, 0.3);
  animation: voiceRing 2s ease-in-out infinite;
}

.voice-ring--1 {
  width: 60px;
  height: 60px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0s;
}

.voice-ring--2 {
  width: 80px;
  height: 80px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0.3s;
}

.voice-ring--3 {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0.6s;
}

@keyframes voiceRing {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.4;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
}

.ai-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.ai-face {
  position: relative;
  width: 30px;
  height: 30px;
}

.ai-eye {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: aiEyeBlink 3s infinite;
}

.ai-eye--left {
  top: 8px;
  left: 8px;
}

.ai-eye--right {
  top: 8px;
  right: 8px;
}

.ai-mouth {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 2px;
  background: white;
  border-radius: 2px;
  animation: aiMouthTalk 1.5s infinite;
}

@keyframes aiEyeBlink {
  0%, 90%, 100% { opacity: 1; }
  95% { opacity: 0; }
}

@keyframes aiMouthTalk {
  0%, 100% { transform: translateX(-50%) scaleY(1); }
  50% { transform: translateX(-50%) scaleY(0.5); }
}

.therapy-conversation {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  width: 100%;
}

.conversation-bubble {
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-xs);
  max-width: 70%;
  position: relative;
  animation: conversationSlide 0.5s ease-out;
}

.conversation-bubble--ai {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  align-self: flex-start;
}

.conversation-bubble--user {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  align-self: flex-end;
  animation-delay: 0.3s;
}

@keyframes conversationSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sound-waves {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: var(--space-4);
}

.wave {
  width: 2px;
  height: 8px;
  background: rgba(139, 92, 246, 0.6);
  border-radius: 1px;
  animation: soundWave 1s infinite;
}

.wave:nth-child(1) { animation-delay: 0s; }
.wave:nth-child(2) { animation-delay: 0.1s; }
.wave:nth-child(3) { animation-delay: 0.2s; }
.wave:nth-child(4) { animation-delay: 0.3s; }

@keyframes soundWave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(2); }
}

/* Mood & Symptom Tracking Widget */
.mood-tracking-widget {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-16);
  justify-content: space-between;
}

.mood-chart {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-12);
}

.chart-title {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
  text-align: center;
}

.chart-bars {
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 60px;
  gap: 4px;
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border-radius: var(--radius-sm);
  height: var(--height);
  position: relative;
  animation: chartBarGrow 1s ease-out;
  transition: all 0.3s ease;
}

.chart-bar:hover {
  transform: scaleY(1.1);
  filter: brightness(1.1);
}

.chart-bar::after {
  content: attr(data-day);
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--color-text-secondary);
}

@keyframes chartBarGrow {
  from {
    height: 0;
  }
  to {
    height: var(--height);
  }
}

.mood-indicators {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.mood-indicator {
  font-size: var(--font-size-lg);
  padding: var(--space-4);
  border-radius: 50%;
  transition: all 0.3s ease;
  animation: moodPulse 2s infinite;
}

.mood-indicator--happy {
  animation-delay: 0s;
}

.mood-indicator--neutral {
  animation-delay: 0.7s;
}

.mood-indicator--sad {
  animation-delay: 1.4s;
}

@keyframes moodPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.tracking-metrics {
  display: flex;
  justify-content: space-between;
}

.metric {
  text-align: center;
  flex: 1;
}

.metric-value {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-apollo-primary);
  animation: metricCount 2s ease-out;
}

.metric-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  margin-top: var(--space-2);
}

@keyframes metricCount {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Crisis Intervention Widget */
.crisis-intervention-widget {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-16);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(220, 38, 38, 0.03) 100%);
}

.crisis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-16);
}

.crisis-status {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}

.status-indicator--safe {
  background: #22c55e;
}

.status-indicator--alert {
  background: #ef4444;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.crisis-time {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-apollo-primary);
  animation: timeGlow 3s infinite;
}

@keyframes timeGlow {
  0%, 100% { text-shadow: 0 0 5px rgba(34, 197, 94, 0.5); }
  50% { text-shadow: 0 0 10px rgba(34, 197, 94, 0.8); }
}

.crisis-dashboard {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.crisis-alert {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-12);
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-base);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-icon {
  font-size: var(--font-size-base);
  animation: alertBounce 2s infinite;
}

@keyframes alertBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.alert-text {
  font-size: var(--font-size-xs);
  color: var(--color-text);
}

.crisis-buttons {
  display: flex;
  gap: var(--space-8);
}

.crisis-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-8);
  border-radius: var(--radius-base);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.crisis-btn--emergency {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.crisis-btn--emergency:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-2px);
}

.crisis-btn--support {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.crisis-btn--support:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: var(--font-size-base);
}

.btn-text {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.crisis-monitoring {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.monitoring-pulse {
  width: 6px;
  height: 6px;
  background: var(--color-apollo-primary);
  border-radius: 50%;
  animation: monitoringPulse 1.5s infinite;
}

@keyframes monitoringPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.5);
    opacity: 0.5;
  }
}

.monitoring-text {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
}

/* Responsive Widget Styles */
@media (max-width: 768px) {
  .feature-card__widget {
    height: 150px;
  }
  
  .ai-therapy-widget {
    padding: var(--space-12);
  }
  
  .voice-rings {
    width: 80px;
    height: 80px;
  }
  
  .voice-ring--1 {
    width: 40px;
    height: 40px;
  }
  
  .voice-ring--2 {
    width: 60px;
    height: 60px;
  }
  
  .voice-ring--3 {
    width: 80px;
    height: 80px;
  }
  
  .ai-avatar {
    width: 40px;
    height: 40px;
  }
  
  .ai-face {
    width: 24px;
    height: 24px;
  }
  
  .conversation-bubble {
    padding: var(--space-6) var(--space-8);
    font-size: 10px;
  }
  
  .mood-tracking-widget,
  .crisis-intervention-widget {
    padding: var(--space-12);
  }
  
  .chart-bars {
    height: 40px;
  }
  
  .mood-indicator {
    font-size: var(--font-size-base);
  }
  
  .metric-value {
    font-size: var(--font-size-base);
  }
  
  .crisis-btn {
    padding: var(--space-6);
  }
}

/* Telegram Bot Widget Styles */
.app-card--telegram {
  max-width: 600px;
  margin: 0 auto;
}

.app-card--telegram .app-card__widget {
  height: 400px;
  background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
  border: 1px solid rgba(0, 136, 204, 0.3);
  overflow: hidden;
  position: relative;
}

.telegram-bot-widget {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.telegram-chat-interface {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-lg);
  margin: var(--space-8);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.telegram-header {
  display: flex;
  align-items: center;
  padding: var(--space-12) var(--space-16);
  background: linear-gradient(135deg, #0088cc 0%, #229ED9 100%);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.telegram-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: var(--space-12);
}

.avatar-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: avatarPulse 2s ease-in-out infinite;
}

@keyframes avatarPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
}

.avatar-inner {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  backdrop-filter: blur(10px);
}

.telegram-info {
  flex: 1;
}

.bot-name {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-2);
}

.bot-status {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--font-size-xs);
  opacity: 0.9;
}

.online-indicator {
  width: 8px;
  height: 8px;
  background: #4CAF50;
  border-radius: 50%;
  animation: onlinePulse 2s infinite;
}

@keyframes onlinePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.telegram-messages {
  flex: 1;
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  overflow-y: auto;
  background: #f8f9fa;
}

.telegram-message {
  display: flex;
  animation: messageSlideIn 0.5s ease-out;
}

.telegram-message--bot {
  justify-content: flex-start;
}

.telegram-message--user {
  justify-content: flex-end;
  animation-delay: 0.3s;
}

.telegram-message--bot:nth-child(3) {
  animation-delay: 0.6s;
}

.message-bubble {
  max-width: 80%;
  padding: var(--space-8) var(--space-12);
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.telegram-message--bot .message-bubble {
  background: white;
  border: 1px solid #e0e0e0;
  border-bottom-left-radius: var(--radius-sm);
}

.telegram-message--user .message-bubble {
  background: #0088cc;
  color: white;
  border-bottom-right-radius: var(--radius-sm);
}

.message-text {
  font-size: var(--font-size-sm);
  line-height: 1.4;
  margin-bottom: var(--space-4);
}

.message-time {
  font-size: var(--font-size-xs);
  opacity: 0.6;
  text-align: right;
}

.telegram-quick-actions {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8) var(--space-12);
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
  overflow-x: auto;
}

.quick-action {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-full);
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-xs);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: quickActionSlide 0.8s ease-out;
}

.quick-action:nth-child(1) { animation-delay: 0.9s; }
.quick-action:nth-child(2) { animation-delay: 1.1s; }
.quick-action:nth-child(3) { animation-delay: 1.3s; }

@keyframes quickActionSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-action:hover {
  background: #0088cc;
  color: white;
  transform: translateY(-1px);
}

.telegram-input {
  padding: var(--space-8) var(--space-12);
  background: white;
  border-top: 1px solid #e0e0e0;
}

.input-field {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-12);
  background: #f8f9fa;
  border-radius: var(--radius-full);
  border: 1px solid #e0e0e0;
}

.typing-placeholder {
  flex: 1;
  font-size: var(--font-size-sm);
  color: #666;
  animation: typingBlink 1.5s infinite;
}

@keyframes typingBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.5; }
}

.send-button {
  font-size: var(--font-size-base);
  color: #0088cc;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.send-button:hover {
  transform: scale(1.1);
}

.telegram-features {
  display: flex;
  justify-content: space-around;
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.feature-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  animation: featureBounce 2s ease-in-out infinite;
}

.feature-badge:nth-child(1) { animation-delay: 0s; }
.feature-badge:nth-child(2) { animation-delay: 0.7s; }
.feature-badge:nth-child(3) { animation-delay: 1.4s; }

@keyframes featureBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.badge-icon {
  font-size: var(--font-size-lg);
  animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.badge-text {
  font-size: var(--font-size-xs);
  color: white;
  font-weight: var(--font-weight-medium);
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* CTA Section Styles */
.cta-section {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
  padding: var(--space-24);
  border-radius: var(--radius-lg);
  margin-top: var(--space-24);
  text-align: center;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.cta-text {
  margin-bottom: var(--space-20);
}

.cta-text strong {
  display: block;
  font-size: var(--font-size-xl);
  color: var(--color-apollo-primary);
  margin-bottom: var(--space-8);
}

.cta-text p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  margin: 0;
}

.btn--pulse {
  animation: buttonPulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

@keyframes buttonPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
  }
}

.btn--pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: buttonShine 3s ease-in-out infinite;
}

@keyframes buttonShine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.btn-icon {
  margin-right: var(--space-8);
  font-size: var(--font-size-lg);
}

/* Apps Grid Adjustment for Single Card */
.apps-grid {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Responsive Telegram Widget */
@media (max-width: 768px) {
  .app-card--telegram .app-card__widget {
    height: 300px;
  }
  
  .telegram-chat-interface {
    margin: var(--space-6);
  }
  
  .telegram-header {
    padding: var(--space-8) var(--space-12);
  }
  
  .telegram-avatar {
    width: 32px;
    height: 32px;
    margin-right: var(--space-8);
  }
  
  .bot-name {
    font-size: var(--font-size-sm);
  }
  
  .bot-status {
    font-size: 10px;
  }
  
  .telegram-messages {
    padding: var(--space-8);
    gap: var(--space-6);
  }
  
  .message-bubble {
    padding: var(--space-6) var(--space-8);
  }
  
  .message-text {
    font-size: var(--font-size-xs);
  }
  
  .telegram-quick-actions {
    padding: var(--space-6) var(--space-8);
    gap: var(--space-4);
  }
  
  .quick-action {
    padding: var(--space-4) var(--space-6);
    font-size: 10px;
  }
  
  .telegram-input {
    padding: var(--space-6) var(--space-8);
  }
  
  .input-field {
    padding: var(--space-6) var(--space-8);
  }
  
  .typing-placeholder {
    font-size: var(--font-size-xs);
  }
  
  .telegram-features {
    padding: var(--space-6);
  }
  
  .badge-text {
    font-size: 10px;
  }
  
  .cta-section {
    padding: var(--space-16);
  }
  
  .cta-text strong {
    font-size: var(--font-size-lg);
  }
  
  .cta-text p {
    font-size: var(--font-size-sm);
  }
}