: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 Diet AI */
:root {
  /* Apollo Diet AI color palette - nutrition/food AI theme */
  --color-apollo-primary: #16a34a; /* Fresh green for healthy nutrition */
  --color-apollo-primary-hover: #15803d;
  --color-apollo-secondary: #f97316; /* Orange for food/energy */
  --color-apollo-secondary-hover: #ea580c;
  --color-apollo-accent: #0891b2; /* Tech blue for AI */
  --color-apollo-gradient: linear-gradient(180deg, #16a34a 0%, #22c55e 25%, #34d399 50%, #10b981 75%, #059669 100%);
  --color-apollo-gradient-soft: linear-gradient(180deg, rgba(22, 163, 74, 0.3) 0%, rgba(34, 197, 94, 0.2) 25%, rgba(52, 211, 153, 0.15) 50%, rgba(16, 185, 129, 0.1) 75%, rgba(5, 150, 105, 0.05) 100%);
  
  /* AI/Tech accent gradients */
  --color-ai-gradient: linear-gradient(135deg, #0891b2 0%, #0ea5e9 50%, #38bdf8 100%);
  --color-food-gradient: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fdba74 100%);
  
  /* Modern shadows with nutrition theme */
  --shadow-glow: 0 0 30px rgba(22, 163, 74, 0.3);
  --shadow-food-glow: 0 0 20px rgba(249, 115, 22, 0.2);
  --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;
}









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

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

.food-diary-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; }
}

.food-diary-widget__date {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

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

.food-entry {
  background: var(--color-surface);
  border-radius: var(--radius-base);
  padding: var(--space-16);
  border: 1px solid var(--color-border);
  animation: foodEntrySlideIn 0.6s var(--ease-standard);
  box-shadow: var(--shadow-sm);
}

.food-entry__photo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f97316, #fb923c, #fdba74);
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: var(--space-12);
  position: relative;
  overflow: hidden;
}

.food-entry__photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: photoScan 2s ease-in-out infinite;
}

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

.food-entry__info {
  flex: 1;
}

.food-entry__name {
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.food-entry__details {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.food-entry__analysis {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nutrients-breakdown {
  display: flex;
  gap: var(--space-12);
  font-size: var(--font-size-xs);
}

.nutrient-item {
  text-align: center;
}

.nutrient-value {
  font-weight: var(--font-weight-medium);
  color: var(--color-apollo-primary);
  display: block;
}

.nutrient-label {
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

.calories-badge {
  background: var(--color-apollo-primary);
  color: white;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.ai-analysis-card {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: var(--radius-base);
  padding: var(--space-12);
  margin-top: var(--space-12);
}

.ai-analysis-card__title {
  font-weight: var(--font-weight-medium);
  color: var(--color-apollo-primary);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.ai-analysis-card__content {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  line-height: 1.4;
}

.photo-upload-simulation {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-base);
  background: var(--color-secondary);
  transition: all var(--duration-normal) var(--ease-standard);
  animation: uploadPulse 3s ease-in-out infinite;
}

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

.upload-icon {
  font-size: 48px;
  color: var(--color-apollo-primary);
  margin-bottom: var(--space-8);
}

.upload-text {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

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

.daily-summary {
  text-align: center;
}

.calories-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calories-number {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-apollo-primary);
  animation: calorieCount 0.5s ease-out;
}

@keyframes calorieCount {
  from { transform: scale(1.2); }
  to { transform: scale(1); }
}

.calories-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.macro-progress {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.macro-item {
  text-align: center;
  flex: 1;
}

.macro-name {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.macro-value {
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.macro-bar {
  width: 100%;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
  overflow: hidden;
}

.macro-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease-out;
}

.macro-fill--protein {
  background: var(--color-apollo-primary);
}

.macro-fill--carbs {
  background: var(--color-apollo-secondary);
}

.macro-fill--fat {
  background: var(--color-apollo-accent);
}

@keyframes foodEntrySlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Special styling for AI/nutrition feature cards */
.feature-card:nth-child(1) {
  border-left: 4px solid var(--color-apollo-accent);
}

.feature-card:nth-child(2) {
  border-left: 4px solid var(--color-apollo-primary);
}

.feature-card:nth-child(3) {
  border-left: 4px solid var(--color-apollo-secondary);
}

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

/* Apps Section */
.apps {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.05) 0%, rgba(34, 197, 94, 0.03) 50%, rgba(52, 211, 153, 0.02) 100%);
}

.apps-grid {
  display: flex;
  justify-content: center;
  max-width: 1200px;
  margin: var(--space-32) auto 0;
}

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

/* Platform-specific styling for app cards */
.app-card:nth-child(1) h3 {
  color: var(--color-apollo-primary); /* Android - green */
}

.app-card:nth-child(2) h3 {
  color: var(--color-apollo-accent); /* iOS - blue */
}

.app-card:nth-child(3) h3 {
  color: var(--color-apollo-secondary); /* Telegram - orange */
}

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

/* Category-specific colors for blog posts */
.blog-card:nth-child(1) .blog-card__category {
  background: var(--color-ai-gradient); /* AI Technology */
}

.blog-card:nth-child(2) .blog-card__category {
  background: var(--color-apollo-primary); /* Personalized Nutrition */
}

.blog-card:nth-child(3) .blog-card__category {
  background: var(--color-food-gradient); /* Diet Science */
}

.blog-card:nth-child(4) .blog-card__category {
  background: var(--color-apollo-accent); /* Health Technology */
}

.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, #16a34a 0%, #15803d 50%, #14532d 100%);
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 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;
  }
  
  .food-diary-widget {
    max-width: 100%;
    height: 500px;
    margin: 0 auto;
  }
  
  .food-entry {
    padding: var(--space-12);
  }
  
  .food-entry__photo {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .nutrients-breakdown {
    gap: var(--space-8);
  }
  
  .nutrient-item {
    font-size: 10px;
  }
  
  .calories-badge {
    font-size: var(--font-size-xs);
    padding: var(--space-2) var(--space-6);
  }
  
  .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: 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);
  }
  
  .food-diary-widget {
    height: 450px;
  }
  
  .food-diary-widget__header {
    padding: var(--space-12);
  }
  
  .food-diary-widget__content {
    padding: var(--space-12);
    gap: var(--space-12);
  }
  
  .food-entry {
    padding: var(--space-8);
  }
  
  .food-entry__photo {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .food-entry__name {
    font-size: var(--font-size-sm);
  }
  
  .food-entry__details {
    font-size: var(--font-size-xs);
  }
  
  .ai-analysis-card {
    padding: var(--space-8);
  }
  
  .ai-analysis-card__title,
  .ai-analysis-card__content {
    font-size: var(--font-size-xs);
  }
  
  .calories-number {
    font-size: var(--font-size-2xl);
  }
  
  .macro-progress {
    gap: var(--space-8);
  }
  
  .macro-item {
    font-size: var(--font-size-xs);
  }
}

/* Feature Widget Animations */
.feature-widget {
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-16);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-standard);
}

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

/* AI Photo Analysis Widget */
.ai-photo-widget {
  background: linear-gradient(135deg, #0891b2 0%, #0ea5e9 50%, #38bdf8 100%);
  border-color: #0891b2;
}

.camera-viewfinder {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.viewfinder-frame {
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-base);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.viewfinder-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  animation: viewfinderPulse 2s ease-in-out infinite;
}

@keyframes viewfinderPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.food-image {
  font-size: 40px;
  animation: foodRotate 4s linear infinite;
}

@keyframes foodRotate {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.1); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
  animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.recognition-dots {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 4px;
}

.dot {
  width: 4px;
  height: 4px;
  background: #22c55e;
  border-radius: 50%;
  opacity: 0;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.dot-1 { animation-delay: 0s; }
.dot-2 { animation-delay: 0.2s; }
.dot-3 { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.analysis-result {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-base);
  font-size: 10px;
  text-align: center;
  color: var(--color-text);
  opacity: 0;
  animation: resultFadeIn 3s ease-in-out infinite;
}

@keyframes resultFadeIn {
  0%, 60% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  80%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.result-text {
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-1);
}

.confidence {
  font-size: 8px;
  color: var(--color-apollo-primary);
}

/* Calorie Tracking Widget */
.calorie-tracking-widget {
  background: var(--color-apollo-gradient);
  border-color: var(--color-apollo-primary);
}

.calorie-counter-widget {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.counter-display {
  text-align: center;
  margin-bottom: var(--space-8);
  z-index: 2;
}

.counter-number {
  font-size: 28px;
  font-weight: var(--font-weight-bold);
  animation: counterIncrement 4s ease-in-out infinite;
}

@keyframes counterIncrement {
  0% { transform: scale(1); }
  10% { transform: scale(1.1); }
  20% { transform: scale(1); }
  30% { transform: scale(1.1); }
  40% { transform: scale(1); }
  50% { transform: scale(1.1); }
  60% { transform: scale(1); }
  100% { transform: scale(1); }
}

.counter-label {
  font-size: 10px;
  opacity: 0.8;
  display: block;
  margin-top: var(--space-2);
}

.macro-rings {
  display: flex;
  gap: var(--space-4);
  z-index: 2;
}

.macro-ring {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.ring-fill {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: ringFill 3s ease-in-out infinite;
}

.protein-ring .ring-fill {
  border-top-color: #fbbf24;
  animation-delay: 0.5s;
}

.carbs-ring .ring-fill {
  border-top-color: #f97316;
  animation-delay: 1s;
}

.fat-ring .ring-fill {
  border-top-color: #ef4444;
  animation-delay: 1.5s;
}

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

.ring-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  font-weight: var(--font-weight-bold);
}

.tracking-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: trackingPulse 2s ease-in-out infinite;
}

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

/* Personalized Nutrition Widget */
.personalized-widget {
  background: var(--color-food-gradient);
  border-color: var(--color-apollo-secondary);
}

.recommendation-engine {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: var(--space-8);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.profile-avatar {
  font-size: 20px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-data {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.data-point {
  font-size: 10px;
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  opacity: 0.5;
  transition: all var(--duration-fast) var(--ease-standard);
}

.data-point.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  animation: dataPointActive 3s ease-in-out infinite;
}

@keyframes dataPointActive {
  0%, 100% { transform: scale(1); }
  33% { transform: scale(1.05); }
  66% { transform: scale(1); }
}

.ai-processing {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-4) 0;
}

.processing-line {
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.processing-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: processingFlow 2s ease-in-out infinite;
}

@keyframes processingFlow {
  0% { left: -100%; }
  100% { left: 100%; }
}

.ai-brain {
  font-size: 16px;
  animation: brainThink 2s ease-in-out infinite;
}

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

.recommendations {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.recommendation-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  font-size: 10px;
  opacity: 0;
  animation: recommendationFadeIn 4s ease-in-out infinite;
}

.recommendation-item:nth-child(1) {
  animation-delay: 2s;
}

.recommendation-item:nth-child(2) {
  animation-delay: 2.5s;
}

@keyframes recommendationFadeIn {
  0%, 50% { opacity: 0; transform: translateX(-10px); }
  60%, 90% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-10px); }
}

.rec-icon {
  font-size: 12px;
}

.rec-text {
  font-weight: var(--font-weight-medium);
}

/* Responsive adjustments for feature widgets */
@media (max-width: 768px) {
  .feature-widget {
    width: 130px;
    height: 130px;
  }
  
  .viewfinder-frame {
    width: 80px;
    height: 80px;
  }
  
  .food-image {
    font-size: 32px;
  }
  
  .counter-number {
    font-size: 24px;
  }
  
  .macro-ring {
    width: 20px;
    height: 20px;
  }
  
  .ring-fill {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .feature-widget {
    width: 110px;
    height: 110px;
  }
  
  .viewfinder-frame {
    width: 70px;
    height: 70px;
  }
  
  .food-image {
    font-size: 28px;
  }
  
  .counter-number {
    font-size: 20px;
  }
  
  .macro-ring {
    width: 18px;
    height: 18px;
  }
  
  .ring-fill {
    width: 18px;
    height: 18px;
  }
  
  .analysis-result {
    font-size: 9px;
    padding: var(--space-4) var(--space-6);
  }
}

/* Telegram Widget Styles */
.app-card--featured {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-32);
  padding: var(--space-32);
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 2px solid rgba(22, 163, 74, 0.2);
  box-shadow: 0 20px 40px rgba(22, 163, 74, 0.1);
}

.app-card--featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(22, 163, 74, 0.15);
}

.telegram-widget {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.telegram-phone-frame {
  position: relative;
  width: 280px;
  height: 520px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-24);
}

.telegram-phone-frame::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.telegram-chat {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.chat-header {
  padding: var(--space-16) var(--space-20);
  background: #0088cc;
  color: white;
  display: flex;
  align-items: center;
  gap: var(--space-12);
  box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bot-info {
  flex: 1;
}

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

.bot-status {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  animation: statusPulse 2s ease-in-out infinite;
}

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

.chat-messages {
  flex: 1;
  padding: var(--space-16);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.message {
  max-width: 85%;
  animation: messageSlideIn 0.5s ease-out;
}

.bot-message {
  max-width: 90%;
}

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

.bot-message {
  align-self: flex-start;
}

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

.message-text {
  background: #f1f3f4;
  padding: var(--space-12) var(--space-16);
  border-radius: 18px;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.user-message .message-text {
  background: #0088cc;
  color: white;
}

.message-photo {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: photoScale 0.8s ease-in-out;
}

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

.bot-message.typing .message-text {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
}

.bot-message.typing .message-text,
.bot-message.typing .analysis-result,
.bot-message.typing .detailed-nutrition {
  opacity: 1;
  visibility: visible;
}

.analysis-result {
  animation: analysisReveal 1s ease-out;
}

@keyframes analysisReveal {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.food-detected {
  font-weight: 700;
  margin-bottom: var(--space-8);
  color: #ffffff;
  font-size: var(--font-size-sm);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.detailed-nutrition {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  opacity: 1;
  visibility: visible;
}

.nutrition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calories-main {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: #ffeb3b;
}

.portion-info {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.macros-detailed {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.macro-item {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.macro-icon {
  font-size: var(--font-size-xs);
  width: 16px;
  text-align: center;
}

.macro-name {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: #ffffff;
  flex: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.macro-amount {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.macro-percent {
  font-size: var(--font-size-xs);
  color: #ffeb3b;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.key-nutrients {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.nutrient-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ai-insights {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  color: #ffffff;
  line-height: 1.4;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.insight-icon {
  font-size: var(--font-size-xs);
  color: #ffeb3b;
  margin-top: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.chat-typing-indicator {
  padding: var(--space-8) var(--space-16);
  opacity: 0.7;
}

.typing-dots {
  display: flex;
  gap: var(--space-4);
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #888;
  animation: typingDots 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDots {
  0%, 60%, 100% { transform: scale(1); opacity: 0.5; }
  30% { transform: scale(1.2); opacity: 1; }
}

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

/* Calories Analytics Screen */
.calories-analytics-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: var(--space-20);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease-out, transform 1s ease-out;
  border-radius: 20px;
  overflow: hidden;
}

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

.analytics-header h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin: 0;
  color: white;
}

.analytics-date {
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

.calories-display {
  text-align: center;
  margin-bottom: var(--space-24);
}

.calories-large {
  font-size: 48px;
  font-weight: 700;
  color: #ffeb3b;
  text-shadow: 0 2px 8px rgba(255, 235, 59, 0.3);
  display: block;
  line-height: 1;
}

.calories-unit {
  font-size: var(--font-size-lg);
  opacity: 0.9;
  margin-left: var(--space-8);
}

.macro-breakdown {
  display: flex;
  justify-content: space-around;
  margin-bottom: var(--space-24);
  gap: var(--space-12);
}

.macro-circle {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.macro-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    currentColor 0%,
    currentColor var(--progress, 0%),
    rgba(255, 255, 255, 0.2) var(--progress, 0%),
    rgba(255, 255, 255, 0.2) 100%
  );
  transition: --progress 1.5s ease-out;
}

.macro-progress.animated {
  animation: macroFillAnimation 1.5s ease-out;
}

@keyframes macroFillAnimation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.protein-circle .macro-progress {
  color: #4CAF50;
}

.carbs-circle .macro-progress {
  color: #ff9800;
}

.fat-circle .macro-progress {
  color: #e91e63;
}

.macro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.macro-value {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: white;
  line-height: 1;
}

.macro-label {
  font-size: 10px;
  opacity: 0.8;
  margin-top: 2px;
}

.daily-progress {
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-8);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 50%, #CDDC39 100%);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 2s ease-out;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.progress-text {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  font-weight: 500;
}

/* Responsive adjustments for analytics screen */
@media (max-width: 768px) {
  .calories-analytics-screen {
    padding: var(--space-16);
  }
  
  .calories-large {
    font-size: 36px;
  }
  
  .macro-circle {
    width: 55px;
    height: 55px;
  }
  
  .macro-content {
    width: 44px;
    height: 44px;
  }
  
  .macro-value {
    font-size: 11px;
  }
  
  .macro-label {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .calories-analytics-screen {
    padding: var(--space-12);
  }
  
  .calories-large {
    font-size: 28px;
  }
  
  .macro-circle {
    width: 45px;
    height: 45px;
  }
  
  .macro-content {
    width: 36px;
    height: 36px;
  }
  
  .macro-value {
    font-size: 10px;
  }
  
  .macro-label {
    font-size: 8px;
  }
  
  .analytics-header h4 {
    font-size: var(--font-size-base);
  }
}

.telegram-features {
  display: flex;
  justify-content: space-between;
  gap: var(--space-16);
  margin-top: var(--space-20);
}

.feature-highlight {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-16);
  background: rgba(22, 163, 74, 0.1);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-apollo-primary);
  animation: featureGlow 2s ease-in-out infinite;
}

@keyframes featureGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(22, 163, 74, 0.3); }
  50% { box-shadow: 0 0 20px rgba(22, 163, 74, 0.3); }
}

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

.app-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-content h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-16);
  color: var(--color-apollo-primary);
}

.app-content p {
  font-size: var(--font-size-lg);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-24);
}

.app-content .app-features {
  margin-bottom: var(--space-32);
}

.app-content .app-features li {
  font-size: var(--font-size-base);
  padding: var(--space-8) 0;
  color: var(--color-text);
}

.cta-section {
  margin-top: var(--space-32);
}

.cta-text {
  text-align: center;
  margin-bottom: var(--space-24);
}

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

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

.btn--telegram {
  position: relative;
  background: linear-gradient(135deg, #0088cc 0%, #006bb3 100%);
  color: white;
  padding: var(--space-16) var(--space-32);
  border-radius: var(--radius-full);
  font-size: var(--font-size-lg);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
  text-decoration: none;
  border: none;
  cursor: pointer;
  overflow: hidden;
}

.btn--telegram::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--telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 136, 204, 0.4);
}

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

.btn--telegram:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: var(--font-size-xl);
  animation: iconBounce 2s ease-in-out infinite;
}

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

.btn-arrow {
  font-size: var(--font-size-xl);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.btn--telegram:hover .btn-arrow {
  transform: translateX(3px);
}

/* Responsive Design for Telegram Widget */
@media (max-width: 768px) {
  .app-card--featured {
    flex-direction: column;
    text-align: center;
    gap: var(--space-24);
    padding: var(--space-24);
  }
  
  .telegram-widget {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .telegram-phone-frame {
    width: 240px;
    height: 420px;
    margin: 0 auto var(--space-16);
  }
  
  .telegram-features {
    flex-direction: column;
    gap: var(--space-8);
    max-width: 280px;
    margin: 0 auto;
  }
  
  .app-content {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .app-content h3 {
    font-size: var(--font-size-xl);
  }
  
  .app-content p {
    font-size: var(--font-size-base);
  }
  
  .btn--telegram {
    width: 100%;
    justify-content: center;
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .app-card--featured {
    padding: var(--space-16);
    gap: var(--space-16);
  }
  
  .telegram-widget {
    max-width: 280px;
  }
  
  .telegram-phone-frame {
    width: 200px;
    height: 360px;
  }
  
  .chat-messages {
    padding: var(--space-12);
    overflow-y: auto;
  }
  
  .message-text {
    font-size: var(--font-size-xs);
    padding: var(--space-8) var(--space-12);
  }
  
  .detailed-nutrition {
    gap: var(--space-6);
  }
  
  .nutrition-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  
  .macro-item {
    padding: var(--space-3);
    gap: var(--space-4);
  }
  
  .key-nutrients {
    gap: var(--space-2);
  }
  
  .nutrient-tag {
    padding: var(--space-1) var(--space-4);
    font-size: 9px;
  }
  
  .ai-insights {
    padding: var(--space-4);
    gap: var(--space-4);
  }
  
  .feature-highlight {
    font-size: var(--font-size-xs);
    padding: var(--space-6) var(--space-12);
  }
  
  .telegram-features {
    max-width: 240px;
  }
  
  .app-content {
    max-width: 280px;
  }
  
  .app-content h3 {
    font-size: var(--font-size-lg);
  }
  
  .app-content p {
    font-size: var(--font-size-sm);
  }
  
  .cta-text strong {
    font-size: var(--font-size-lg);
  }
  
  .btn--telegram {
    font-size: var(--font-size-base);
    padding: var(--space-12) var(--space-24);
    max-width: 240px;
  }
}