/* Reusable Components - DRY component system */

/* Typography hierarchy - Following design system with 8px line-height multiples */
h1 {
  font-size: var(--text-3xl);
  line-height: var(--lh-56);
  font-weight: 700;
  font-family: var(--font-family-display);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-6);
  text-transform: none;
}

[data-theme="dark"] h1 {
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--text) 80%, transparent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] h1 {
  color: var(--text);
}

h2 {
  font-size: var(--text-2xl);
  line-height: var(--lh-48);
  font-weight: 700;
  font-family: var(--font-family-display);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-5);
}

h3 {
  font-size: var(--text-xl);
  line-height: var(--lh-32);
  font-weight: var(--font-semibold);
  font-family: var(--font-family-display);
  margin: 0 0 var(--space-4);
  color: var(--text);
}

h4 {
  font-size: var(--text-lg);
  line-height: var(--lh-32);
  font-weight: var(--font-semibold);
  font-family: var(--font-family-display);
  margin: 0 0 var(--space-3);
}

p, li {
  font-size: var(--text-base);
  line-height: var(--lh-24);
  max-width: 70ch;
  font-family: var(--font-family-base);
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--lh-32);
  color: var(--text);
  max-width: 75ch;
  font-family: var(--font-family-base);
}

.lead.text-center {
  margin-left: auto;
  margin-right: auto;
}

/* Contact heading - larger size */
.contact-heading {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: 1.2;
}

/* Quote section - centered with glass container - redesigned with elegant styling */
.quote-centered {
  max-width: calc(var(--space-13) * 9.375);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.quote-text {
  font-size: var(--text-lg);
  line-height: var(--lh-32);
  color: var(--text);
  margin-bottom: var(--space-5);
  font-weight: var(--font-normal);
  font-style: normal;
  font-family: var(--font-family-base);
  position: relative;
  padding: 0 var(--space-11);
  max-width: 100%;
}

.quote-text span {
  display: block;
}

.quote-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: calc(var(--space-5) * -1);
  font-size: calc(var(--text-3xl) * 1.5);
  color: var(--brand);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-text::after {
  content: '"';
  position: absolute;
  right: 0;
  bottom: calc(var(--space-5) * -1);
  font-size: calc(var(--text-3xl) * 1.5);
  color: var(--brand);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.quote-author {
  font-size: var(--text-base);
  color: var(--text);
  font-style: italic;
  font-weight: var(--font-semibold);
  font-family: var(--font-family-display);
  margin: var(--space-4) auto 0;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: var(--lh-24);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.quote-author-role {
  font-size: var(--text-sm);
  font-style: normal;
  font-weight: var(--font-normal);
  opacity: 0.8;
}

/* Compact quote version - for team section */
.quote-compact {
  width: 100%;
  max-width: calc(var(--space-13) * 9.375);
  margin: var(--space-8) auto 0;
}

.quote-compact .glass {
  padding: var(--space-6) var(--space-8);
  overflow: visible;
  position: relative;
}

.quote-text-compact {
  font-size: var(--text-sm);
  line-height: var(--lh-24);
  color: var(--text);
  margin: 0;
  font-weight: var(--font-normal);
  font-style: italic;
  font-family: var(--font-family-base);
  text-align: justify;
  position: relative;
  padding: 0;
  width: 100%;
  max-width: 100%;
  z-index: 2;
}

.quote-text-compact span {
  display: inline;
}

.quote-text-compact span:last-child {
  margin-right: 0;
}

/* Responsive adjustments for compact quote */
@media (max-width: 768px) {
  .quote-compact {
    margin-top: var(--space-7);
    max-width: 100%;
  }
  
  .quote-compact .glass {
    padding: var(--space-5) var(--space-6);
  }
  
  .quote-text-compact {
    font-size: var(--text-xs);
    line-height: var(--lh-24);
  }
}

/* Card layout with icon at description level */
.card-header-inline {
  display: block;
  margin-bottom: 0;
}

.card-header-inline h3 {
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: var(--lh-32);
  color: var(--text);
}

.card-header-inline p {
  margin: 0;
  line-height: var(--lh-24);
  max-width: none;
}

/* Icon positioning - floated left at description level */
.card-header-inline .card-icon {
  float: left;
  margin-right: var(--space-3);
  margin-bottom: var(--space-2);
  width: var(--space-9);
  height: var(--space-9);
  flex-shrink: 0;
}

/* Base interactive element (shared by buttons, inputs, toggle) - Pure glass */
.interactive {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: var(--radius-md);
  font-weight: var(--font-semibold);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15),
              0 2px 8px rgba(0, 0, 0, 0.12),
              inset 0 1px 1px rgba(255, 255, 255, 0.1),
              inset 0 -1px 1px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition-fast),
              background var(--transition-base),
              box-shadow var(--transition-base);
  position: relative;
}

.interactive::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glass-frost);
  border-radius: var(--radius-md);
  pointer-events: none;
}

.interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.20),
              0 4px 12px rgba(0, 0, 0, 0.15),
              inset 0 1px 2px rgba(255, 255, 255, 0.15),
              inset 0 -1px 2px rgba(0, 0, 0, 0.08);
}

.interactive:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25),
              0 8px 24px rgba(0, 0, 0, 0.20),
              inset 0 1px 2px rgba(255, 255, 255, 0.15);
  animation: focusPulse 1s ease-out forwards;
}

@keyframes focusPulse {
  0% {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25),
                0 8px 24px rgba(0, 0, 0, 0.20),
                inset 0 1px 2px rgba(255, 255, 255, 0.15);
  }
  70% {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25),
                0 8px 24px rgba(0, 0, 0, 0.20),
                inset 0 1px 2px rgba(255, 255, 255, 0.15);
  }
  100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15),
                0 2px 8px rgba(0, 0, 0, 0.12),
                inset 0 1px 1px rgba(255, 255, 255, 0.1),
                inset 0 -1px 1px rgba(0, 0, 0, 0.08);
  }
}

/* Button component - Following design system specs */
.btn {
  min-height: var(--space-10);
  padding: var(--space-3) var(--space-5);
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.01em;
  font-family: var(--font-family-ui);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  line-height: var(--lh-24);
  white-space: nowrap;
}

/* Navbar buttons - more compact */
header .btn {
  min-height: var(--space-8);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

/* Navbar toggle buttons - more compact */
header .toggle {
  min-width: var(--space-8);
  min-height: var(--space-8);
  padding: var(--space-1);
}

header .toggle svg {
  width: var(--space-4);
  height: var(--space-4);
}

.btn-primary {
  background: var(--gradient-brand-dark);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.20),
              0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25),
              0 4px 12px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  min-height: var(--space-9);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-lg {
  min-height: var(--space-11);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-lg);
}

/* Theme toggle button */
.toggle {
  min-width: var(--space-10);
  min-height: var(--space-10);
  padding: var(--space-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.toggle svg {
  width: var(--space-5);
  height: var(--space-5);
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

/* Toggle tooltip - appears below button with high contrast solid background */
.toggle-tooltip {
  position: absolute;
  top: calc(100% + var(--space-3));
  right: 0;
  background: var(--text);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  white-space: nowrap;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35),
              0 4px 12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  transform: translateY(-5px);
  z-index: var(--z-tooltip);
}

.toggle-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  right: var(--space-4);
  width: 0;
  height: 0;
  border-left: var(--space-2) solid transparent;
  border-right: var(--space-2) solid transparent;
  border-bottom: var(--space-2) solid var(--text);
}

.toggle:hover .toggle-tooltip,
.toggle-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

/* Language toggle button */
.lang-toggle {
  min-width: var(--space-10);
  min-height: var(--space-10);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: var(--radius-md);
  border: var(--border-thin) solid rgba(var(--text-rgb), 0.15);
  background: rgba(var(--bg-rgb), 0.02);
  transition: all var(--transition-base);
}

/* Navbar language toggle - more compact */
header .lang-toggle {
  min-width: var(--space-8);
  min-height: var(--space-8);
  padding: var(--space-1) var(--space-2);
}

.lang-toggle:hover {
  background: rgba(var(--text-rgb), 0.05);
  border-color: rgba(var(--text-rgb), 0.25);
}

.lang-toggle-text {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text);
  letter-spacing: 0.5px;
}

/* Form inputs - Pure glass with proper sizing */
input, textarea {
  padding: var(--space-3) var(--space-4);
  min-height: var(--space-10);
  width: 100%;
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  line-height: var(--lh-24);
  border: none;
  background: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12),
              0 1px 4px rgba(0, 0, 0, 0.08);
}

input:hover, textarea:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
              0 2px 6px rgba(0, 0, 0, 0.10);
}

input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.20),
              0 4px 16px rgba(0, 0, 0, 0.18),
              0 2px 8px rgba(0, 0, 0, 0.12),
              inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--text);
  opacity: 0.6;
}

textarea {
  min-height: calc(var(--space-10) * 2.5);
  resize: vertical;
  padding: var(--space-4);
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  color: var(--text);
  line-height: var(--lh-24);
}

/* Form responsive adjustments */
@media (max-width: 640px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  input, textarea {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Glass morphism component - Pure transparent with frosting */
.glass {
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18),
              0 4px 16px rgba(0, 0, 0, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.10),
              inset 0 1px 2px rgba(255, 255, 255, 0.1),
              inset 0 -1px 2px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

/* Hover effect for interactive glass cards */
.cards .glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25),
              0 6px 20px rgba(0, 0, 0, 0.18),
              0 3px 10px rgba(0, 0, 0, 0.12),
              inset 0 1px 2px rgba(255, 255, 255, 0.15),
              inset 0 -1px 2px rgba(0, 0, 0, 0.08);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--glass-frost);
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.glass::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg,
    var(--glass-border-top) 0%,
    transparent 100%);
  pointer-events: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.3;
}

/* Border modifiers - Enhanced shadow instead of border */
.border-accent {
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18),
              0 4px 16px rgba(0, 0, 0, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.10),
              inset 0 1px 2px rgba(255, 255, 255, 0.15),
              inset 0 -1px 2px rgba(0, 0, 0, 0.08);
}

/* Badge component */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--brand-subtle);
  color: var(--brand-strong);
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-weight: var(--font-bold);
  font-size: var(--text-xs);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
              0 1px 4px rgba(0, 0, 0, 0.10),
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Pill component */
.pill {
  background: var(--brand-subtle);
  border: none;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  color: var(--text);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  font-family: var(--font-family-ui);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12),
              0 1px 3px rgba(0, 0, 0, 0.08),
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
}

.pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18),
              0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Card icon component */
.card-icon {
  width: var(--space-9);
  height: var(--space-9);
  display: inline-grid;
  place-items: center;
  margin-bottom: var(--space-2);
  background: var(--brand-subtle);
  border: none;
  border-radius: var(--radius-md);
  color: var(--brand-strong);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
              0 1px 4px rgba(0, 0, 0, 0.10),
              inset 0 1px 1px rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.card-icon svg {
  width: var(--space-6);
  height: var(--space-6);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Card icon responsive adjustments */
@media (max-width: 640px) {
  .card-icon {
    width: var(--space-8);
    height: var(--space-8);
  }
  
  .card-icon svg {
    width: var(--space-5);
    height: var(--space-5);
  }
}

/* Avatar component - responsive sizing */
.avatar {
  width: clamp(var(--space-13) * 2.5, 25vw, var(--space-13) * 3.33);
  height: clamp(var(--space-13) * 2.5, 25vw, var(--space-13) * 3.33);
  border-radius: 50%;
  overflow: hidden;
  border: none;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.20),
              0 10px 24px rgba(0, 0, 0, 0.15),
              0 4px 12px rgba(0, 0, 0, 0.10);
  position: relative;
  margin: 0 auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Image placeholder component */
.img-placeholder {
  position: relative;
  background: var(--brand-subtle);
  border: none;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: calc(var(--space-13) * 3.125);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15),
              0 2px 6px rgba(0, 0, 0, 0.10),
              inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.img-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    color-mix(in srgb, var(--line) 30%, transparent) 10px,
    color-mix(in srgb, var(--line) 30%, transparent) 20px
  );
  opacity: 0.3;
}

.img-placeholder-icon {
  position: relative;
  z-index: 1;
  width: var(--space-11);
  height: var(--space-11);
  color: var(--text);
  opacity: 0.5;
}

.img-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Animated Steps Component */
.steps-animated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  max-width: calc(var(--space-13) * 12.5);
  margin: 0 auto;
}

.step-animated {
  flex: 1;
  min-width: var(--space-13) * 2.5;
  max-width: var(--space-13) * 3.33;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-5);
  animation: fadeInUp 0.6s ease-out backwards;
}

.step-animated[data-step="1"] {
  animation-delay: 0.1s;
}

.step-animated[data-step="2"] {
  animation-delay: 0.3s;
}

.step-animated[data-step="3"] {
  animation-delay: 0.5s;
}

.step-animated-icon {
  width: var(--space-12);
  height: var(--space-12);
  display: grid;
  place-items: center;
  background: var(--brand-subtle);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18),
              0 2px 8px rgba(0, 0, 0, 0.12),
              inset 0 1px 2px rgba(255, 255, 255, 0.1);
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.step-animated:hover .step-animated-icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25),
              0 4px 12px rgba(0, 0, 0, 0.18);
}

.step-animated-icon svg {
  width: calc(var(--space-8) - var(--space-1));
  height: calc(var(--space-8) - var(--space-1));
  stroke: var(--brand-strong);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Icon-specific animations */
.upload-icon {
  animation: pulseUpload 2s ease-in-out infinite;
}

.ai-icon {
  animation: pulseGlow 2s ease-in-out infinite;
}

.dashboard-icon {
  animation: pulseDashboard 2s ease-in-out infinite;
}

@keyframes pulseUpload {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.12);
  }
  50% {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), 0 3px 12px rgba(0, 0, 0, 0.18);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.12);
  }
  50% {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), 0 3px 12px rgba(0, 0, 0, 0.18);
  }
}

@keyframes pulseDashboard {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.12);
  }
  50% {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), 0 3px 12px rgba(0, 0, 0, 0.18);
  }
}

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

.step-animated-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-animated-number {
  width: calc(var(--space-11) * 1.875);
  height: calc(var(--space-11) * 1.875);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  color: var(--brand);
  border-radius: var(--radius-full);
  border: var(--border-thick) solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-extrabold);
  font-size: var(--space-12);
  line-height: 1;
  margin-bottom: var(--space-5);
  box-shadow: 0 8px 24px rgba(0, 100, 255, 0.15),
              0 4px 12px rgba(0, 100, 255, 0.10),
              inset 0 1px 2px rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.3s ease;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  padding-top: var(--space-1);
}

.step-animated-number::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at center, 
    rgba(0, 100, 255, 0.08) 0%, 
    rgba(0, 100, 255, 0.02) 50%, 
    transparent 100%);
  z-index: -1;
}

.step-animated:hover .step-animated-number {
  transform: scale(1.05);
  border-color: var(--brand-strong);
  box-shadow: 0 12px 32px rgba(0, 100, 255, 0.20),
              0 6px 16px rgba(0, 100, 255, 0.15),
              inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.step-animated-content h4 {
  margin-bottom: var(--space-3);
  color: var(--text);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
}

.step-animated-content p {
  color: var(--text);
  line-height: var(--lh-24);
  margin: 0 auto;
  max-width: 100%;
  font-size: var(--text-base);
}

.step-animated-arrow {
  flex-shrink: 0;
  width: var(--space-11);
  height: var(--space-11);
  display: grid;
  place-items: center;
  color: var(--brand);
  opacity: 0.5;
  animation: arrowPulse 2s ease-in-out infinite;
}

.step-animated-arrow svg {
  width: var(--space-8);
  height: var(--space-8);
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes arrowPulse {
  0%, 100% {
    opacity: 0.3;
    transform: translateX(0);
  }
  50% {
    opacity: 0.6;
    transform: translateX(4px);
  }
}

/* Mobile animation for rotated arrows (vertical movement) */
@keyframes arrowPulseMobile {
  0%, 100% {
    opacity: 0.3;
    transform: rotate(90deg) translateX(0);
  }
  50% {
    opacity: 0.6;
    transform: rotate(90deg) translateX(4px);
  }
}

/* LinkedIn icon styling */
.linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-7);
  height: var(--space-7);
  color: var(--brand-strong);
  transition: color var(--transition-base), transform var(--transition-base);
}

.linkedin-icon svg {
  width: var(--space-6);
  height: var(--space-6);
}

.linkedin-icon:hover {
  color: var(--brand);
  transform: translateY(-2px);
}

/* Brand logo - responsive sizing */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  color: var(--text);
  font-weight: var(--font-extrabold);
  position: relative;
  flex-shrink: 0; /* Prevent logo from shrinking at any breakpoint */
}

.brand img {
  height: clamp(56px, 7vw, 72px);
  width: auto;
  transition: opacity var(--transition-base);
  flex-shrink: 0; /* Prevent logo image from shrinking */
  display: block; /* Ensure image displays properly */
}

/* Logo theme switching - display controlled by theme classes */
.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

/* Light theme explicitly uses dark/colored logo */
[data-theme="light"] .logo-light {
  display: block !important;
}

[data-theme="light"] .logo-dark {
  display: none !important;
}

/* Dark theme uses white logo */
[data-theme="dark"] .logo-light {
  display: none !important;
}

[data-theme="dark"] .logo-dark {
  display: block !important;
}

/* Pastel theme uses dark logo (same as light theme) */
[data-theme="pastel"] .logo-light {
  display: block !important;
}

[data-theme="pastel"] .logo-dark {
  display: none !important;
}

/* Dashboard screenshot theme switching */
.dashboard-light {
  display: block;
}

.dashboard-dark {
  display: none;
}

[data-theme="dark"] .dashboard-light {
  display: none !important;
}

[data-theme="dark"] .dashboard-dark {
  display: block !important;
}

/* Navigation links */
nav ul {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  font-family: var(--font-family-ui);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  transition: color var(--transition-base), background var(--transition-base);
  white-space: nowrap;
}

nav a:hover {
  color: var(--text);
  background: var(--brand-subtle);
}

/* Smooth theme transitions */
body, body * {
  transition: background-color var(--transition-slow),
              color var(--transition-slow),
              border-color var(--transition-slow);
}

/* Prevent transition on page load */
body.preload * {
  transition: none !important;
}

/* Key Values Grid - side by side layout like hero */
.key-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-11);
  align-items: center;
}

.key-values-image {
  width: 100%;
}

.key-values-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.key-values-content h2 {
  text-align: center;
  margin-bottom: var(--space-4);
}

.key-values-content .lead {
  text-align: center;
}

/* Value Cards Grid - for Key Value Proposition section */
.value-cards-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: 0;
  max-width: calc(var(--space-13) * 6.56);
  width: 100%;
}

/* Desktop: Slightly wider */
@media (min-width: 1024px) {
  .value-cards-grid {
    max-width: calc(var(--space-13) * 7.08);
  }
}

/* Mobile/Tablet: key-values-grid becomes single column */
@media (max-width: 980px) {
  .key-values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .key-values-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .key-values-content h2 {
    text-align: center;
  }
  
  .key-values-content .lead {
    text-align: center;
  }
  
  .key-values-image img {
    width: 100% !important;
    max-width: calc(var(--space-13) * 5.21);
  }
  
  .value-cards-grid {
    max-width: calc(var(--space-13) * 6.25);
  }
}

/* Mobile: Full width cards, remove max-width constraint */
@media (max-width: 640px) {
  .value-cards-grid {
    max-width: 100%;
  }
}

.value-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-6);
  transition: transform var(--transition-base);
  width: 100%;
}

/* Desktop: Use larger gap for better proportions with 64px icons */
@media (min-width: 641px) {
  .value-card {
    gap: var(--space-8);
  }
}

.value-card:hover {
  transform: translateY(-4px);
}

.value-card:hover .value-card-content {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18),
              0 4px 12px rgba(0, 0, 0, 0.12),
              inset 0 1px 2px rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.value-card .micro-icon {
  width: var(--space-9);
  height: var(--space-9);
  color: var(--brand);
  stroke-width: 1.8;
  flex-shrink: 0;
  padding-left: var(--space-5);
}

/* Desktop: Larger icons */
@media (min-width: 641px) {
  .value-card .micro-icon {
    width: var(--space-11);
    height: var(--space-11);
  }
}

.value-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: transparent;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6) var(--space-5) var(--space-6);
  text-align: left;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.08),
              inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.value-card h4 {
  margin-bottom: 0;
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text);
  line-height: var(--lh-24);
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--lh-24);
  margin: 0;
}

/* Tablet adjustments for value cards */
@media (max-width: 980px) and (min-width: 641px) {
  .value-card-content {
    padding: var(--space-4);
  }
}

/* Mobile adjustments for value cards */
@media (max-width: 640px) {
  .value-card {
    gap: var(--space-3);
  }
  
  .value-card-content {
    padding: var(--space-4);
  }
  
  .value-card h4 {
    font-size: var(--text-base);
  }
  
  .value-card p {
    font-size: var(--text-xs);
  }
}

/* Feature Cards Grid - for Features section */
/* Using auto-fit with fixed size to allow last row centering */
.feature-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-7);
  justify-content: center;
}

/* Mobile: 2 columns with auto-fit for centering */
@media (min-width: 480px) {
  .feature-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-4);
  }
}

/* Tablet: 3 columns with auto-fit */
@media (min-width: 768px) {
  .feature-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
  }
}

/* Desktop: 4 columns with auto-fit */
@media (min-width: 1024px) {
  .feature-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-5);
  }
}

/* Large Desktop: will naturally create ~6 columns with auto-fit */
@media (min-width: 1400px) {
  .feature-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
  }
}

.feature-card {
  background: transparent;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.08),
              inset 0 1px 2px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18),
              0 4px 12px rgba(0, 0, 0, 0.12),
              inset 0 1px 2px rgba(255, 255, 255, 0.15);
  border-color: var(--brand);
}

.feature-card .feature-icon {
  width: var(--space-10);
  height: var(--space-10);
  color: var(--brand);
  margin-bottom: var(--space-4);
  stroke-width: 1.8;
  flex-shrink: 0;
}

.feature-card h4 {
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text);
  text-align: center;
  line-height: var(--lh-24);
}

.feature-card p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  text-align: center;
  max-width: 100%;
}

/* Feature card tooltips - temporarily disabled */
.feature-tooltip {
  display: none;
}

/* Responsive adjustments for cards */
@media (max-width: 640px) {
  .value-cards-grid,
  .feature-cards-grid {
    gap: var(--space-4);
  }
  
  .value-card,
  .feature-card {
    padding: var(--space-5);
  }
}

/* Demo Video Styling */
.demo-video-container {
  margin-top: 0;
  margin-bottom: var(--space-11);
  max-width: calc(var(--space-13) * 12.5);
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25),
              0 6px 20px rgba(0, 0, 0, 0.18),
              0 2px 8px rgba(0, 0, 0, 0.10);
  position: relative;
  aspect-ratio: 16 / 3.6;
}

.demo-video {
  width: 111.11%;
  height: 250%;
  display: block;
  background-color: rgba(0, 0, 0, 0.1);
  object-fit: cover;
  object-position: center center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Add a subtle border around the video */
.demo-video-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

@media (max-width: 768px) {
  .demo-video-container {
    margin-bottom: var(--space-9);
    border-radius: var(--radius-md);
  }
}

/* Team Section with Layered Background */
.team-section-with-bg {
  position: relative;
  overflow: hidden;
  min-height: calc(var(--space-13) * 7.29);
}

.team-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.team-background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.team-section-with-bg .container {
  position: relative;
  z-index: 1;
}

.team-content-float {
  background: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-7);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25),
              0 6px 20px rgba(0, 0, 0, 0.18),
              0 2px 8px rgba(0, 0, 0, 0.10),
              inset 0 1px 2px rgba(255, 255, 255, 0.15);
  border: var(--border-thin) solid rgba(255, 255, 255, 0.2);
  max-width: calc(var(--space-13) * 10.42);
  margin: 0 auto;
}

/* Dark mode adjustment for team-content-float */
[data-theme="dark"] .team-content-float {
  background: rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments for team section */
@media (max-width: 1024px) {
  .team-section-with-bg {
    min-height: calc(var(--space-13) * 6.25);
  }
  
  .team-content-float {
    padding: var(--space-7) var(--space-6);
  }
}

@media (max-width: 768px) {
  .team-section-with-bg {
    min-height: calc(var(--space-13) * 5.21);
  }
  
  .team-content-float {
    padding: var(--space-6) var(--space-5);
    border-radius: var(--radius-md);
  }
}

@media (max-width: 640px) {
  .team-section-with-bg {
    min-height: auto;
    padding-top: var(--section-padding-mobile);
    padding-bottom: var(--section-padding-mobile);
  }
  
  .team-content-float {
    padding: var(--space-5) var(--space-4);
  }
}

/* ============================================
   PASTEL THEME COLOR VARIATIONS
   ============================================ */

/* Add vibrant color variations to different components in pastel theme */
[data-theme="pastel"] {
  
  /* Pills - Different colors for variety with strong backgrounds for readability */
  .pill:nth-child(1) {
    background: var(--pastel-lavender-strong);
    color: white;
    border: var(--border-medium) solid var(--pastel-lavender-strong);
    font-weight: var(--font-bold);
  }
  
  .pill:nth-child(2) {
    background: var(--pastel-mint-strong);
    color: white;
    border: var(--border-medium) solid var(--pastel-mint-strong);
    font-weight: var(--font-bold);
  }
  
  .pill:nth-child(3) {
    background: var(--pastel-green-strong);
    color: white;
    border: var(--border-medium) solid var(--pastel-green-strong);
    font-weight: var(--font-bold);
  }
  
  .pill:nth-child(4) {
    background: var(--pastel-peach-strong);
    color: white;
    border: var(--border-medium) solid var(--pastel-peach-strong);
    font-weight: var(--font-bold);
  }
  
  .pill:nth-child(5) {
    background: var(--pastel-yellow-strong);
    color: white;
    border: var(--border-medium) solid var(--pastel-yellow-strong);
    font-weight: var(--font-bold);
  }
  
  /* Value Cards - Alternating accent colors */
  .value-card:nth-child(1) {
    background: linear-gradient(135deg, var(--pastel-lavender-subtle) 0%, transparent 100%);
    border-color: var(--pastel-lavender-strong);
  }
  
  .value-card:nth-child(1) .micro-icon {
    color: var(--pastel-lavender-strong);
    stroke-width: 2.2;
  }
  
  .value-card:nth-child(2) {
    background: linear-gradient(135deg, var(--pastel-mint-subtle) 0%, transparent 100%);
    border-color: var(--pastel-mint-strong);
  }
  
  .value-card:nth-child(2) .micro-icon {
    color: var(--pastel-mint-strong);
    stroke-width: 2.2;
  }
  
  .value-card:nth-child(3) {
    background: linear-gradient(135deg, var(--pastel-green-subtle) 0%, transparent 100%);
    border-color: var(--pastel-green-strong);
  }
  
  .value-card:nth-child(3) .micro-icon {
    color: var(--pastel-green-strong);
    stroke-width: 2.2;
  }
  
  .value-card:nth-child(4) {
    background: linear-gradient(135deg, var(--pastel-peach-subtle) 0%, transparent 100%);
    border-color: var(--pastel-peach-strong);
  }
  
  .value-card:nth-child(4) .micro-icon {
    color: var(--pastel-peach-strong);
    stroke-width: 2.2;
  }
  
  /* Feature Cards - Rotating colors */
  .feature-card:nth-child(1) {
    border-color: var(--pastel-lavender-strong);
  }
  
  .feature-card:nth-child(1) .feature-icon {
    color: var(--pastel-lavender-strong);
    stroke-width: 2.2;
  }
  
  .feature-card:nth-child(2) {
    border-color: var(--pastel-mint-strong);
  }
  
  .feature-card:nth-child(2) .feature-icon {
    color: var(--pastel-mint-strong);
    stroke-width: 2.2;
  }
  
  .feature-card:nth-child(3) {
    border-color: var(--pastel-green-strong);
  }
  
  .feature-card:nth-child(3) .feature-icon {
    color: var(--pastel-green-strong);
    stroke-width: 2.2;
  }
  
  .feature-card:nth-child(4) {
    border-color: var(--pastel-peach-strong);
  }
  
  .feature-card:nth-child(4) .feature-icon {
    color: var(--pastel-peach-strong);
    stroke-width: 2.2;
  }
  
  .feature-card:nth-child(5) {
    border-color: var(--pastel-yellow-strong);
  }
  
  .feature-card:nth-child(5) .feature-icon {
    color: var(--pastel-yellow-strong);
    stroke-width: 2.2;
  }
  
  .feature-card:nth-child(6) {
    border-color: var(--pastel-lavender-strong);
  }
  
  .feature-card:nth-child(6) .feature-icon {
    color: var(--pastel-lavender-strong);
    stroke-width: 2.2;
  }
  
  .feature-card:nth-child(7) {
    border-color: var(--pastel-mint-strong);
  }
  
  .feature-card:nth-child(7) .feature-icon {
    color: var(--pastel-mint-strong);
    stroke-width: 2.2;
  }
  
  /* Buttons - Very dark gray text color for better readability */
  .btn,
  .interactive {
    color: #1a1a1a !important;
  }
  
  /* Primary button - very dark gray text as requested */
  .btn-primary {
    background: var(--gradient-brand);
    border-color: var(--brand);
    color: #1a1a1a !important;
  }
  
  .btn-primary:hover {
    background: var(--gradient-brand-dark);
    box-shadow: 0 8px 24px rgba(139, 159, 217, 0.3);
  }
  
  /* Ghost button and link buttons - keep background gradients but use gray text */
  .btn-ghost,
  a.btn:not(.btn-primary):not(.btn-ghost) {
    background: linear-gradient(135deg, var(--pastel-green-strong) 0%, var(--pastel-mint-strong) 100%);
    border: var(--border-medium) solid var(--pastel-green);
  }
  
  .btn-ghost:hover,
  a.btn:not(.btn-primary):not(.btn-ghost):hover {
    background: linear-gradient(135deg, var(--pastel-green) 0%, var(--pastel-mint) 100%);
    border-color: var(--pastel-mint);
    box-shadow: 0 8px 24px rgba(129, 199, 132, 0.3);
  }
  
  /* Glass containers with subtle color tints */
  .glass.border-accent {
    background: linear-gradient(135deg, 
      var(--pastel-lavender-subtle) 0%, 
      var(--pastel-mint-subtle) 50%,
      var(--pastel-green-subtle) 100%
    );
    border-color: var(--pastel-lavender);
  }
  
  /* Step indicators with colors */
  .step-animated:nth-child(1) .step-animated-number {
    background: linear-gradient(135deg, var(--pastel-lavender-strong) 0%, var(--pastel-lavender) 100%);
    color: white;
  }
  
  .step-animated:nth-child(3) .step-animated-number {
    background: linear-gradient(135deg, var(--pastel-mint-strong) 0%, var(--pastel-mint) 100%);
    color: white;
  }
  
  .step-animated:nth-child(5) .step-animated-number {
    background: linear-gradient(135deg, var(--pastel-green-strong) 0%, var(--pastel-green) 100%);
    color: white;
  }
  
  /* Section backgrounds - subtle color variations */
  #key-values {
    background: linear-gradient(180deg, 
      rgba(178, 223, 219, 0.05) 0%, 
      rgba(165, 214, 167, 0.05) 100%
    );
  }
  
  #losninger {
    background: linear-gradient(180deg, 
      rgba(180, 167, 214, 0.05) 0%, 
      rgba(255, 245, 157, 0.05) 100%
    );
  }
  
  #team {
    background: linear-gradient(180deg, 
      rgba(165, 214, 167, 0.05) 0%, 
      rgba(178, 223, 219, 0.05) 100%
    );
  }
  
  /* Contact form - Darker text for better readability */
  #kontakt label,
  #kontakt .text-muted,
  #kontakt input,
  #kontakt textarea {
    color: var(--contact-text);
  }
  
  #kontakt input::placeholder,
  #kontakt textarea::placeholder {
    color: var(--contact-text);
    opacity: 0.7;
  }
}

/* Light theme - Contact form darker text for better readability */
[data-theme="light"] #kontakt label,
[data-theme="light"] #kontakt .text-muted,
[data-theme="light"] #kontakt input,
[data-theme="light"] #kontakt textarea {
  color: var(--contact-text);
}

[data-theme="light"] #kontakt input::placeholder,
[data-theme="light"] #kontakt textarea::placeholder {
  color: var(--contact-text);
  opacity: 0.7;
}

/* All themes - Dark gray text in submit buttons for accessibility */
#kontakt button[type="submit"] {
  color: #1a1a1a !important;
}

