/* Hero (biolab blend) */
.front-page .hero {
  --hero-base: #f6f7fb;
  --hero-ink: #1c2430;
  --hero-ink-muted: #4c5768;
  --hero-accent-1: 110, 150, 255;
  --hero-accent-2: 96, 208, 255;
  --hero-accent-3: 178, 132, 255;
  --hero-accent-4: 255, 172, 220;
  --hero-blur: 58px;
  --hero-speed-1: 16s;
  --hero-speed-2: 20s;
  --hero-speed-3: 22s;
  --hero-speed-4: 18s;
  background: var(--hero-base);
  color: var(--hero-ink);
  text-align: left;
  display: block;
}

.front-page .hero::before {
  content: none;
}

.front-page .hero-contents {
  text-align: left;
}

.front-page .hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(24px, 6vw, 84px);
}

.front-page .hero__content {
  max-width: 560px;
  padding: clamp(22px, 3.5vw, 36px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 40px rgba(22, 35, 67, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.front-page .hero h1 {
  color: var(--hero-ink);
  text-shadow: none;
  letter-spacing: 0.02em;
  margin-bottom: 0.6em;
}

.front-page .hero__lead {
  color: var(--hero-ink-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.9;
  margin-bottom: 1.6em;
}

.front-page .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.front-page .hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.front-page .hero__btn--primary {
  background: linear-gradient(135deg, rgba(96, 160, 255, 0.95), rgba(140, 120, 255, 0.95));
  color: #fff;
  box-shadow: 0 12px 26px rgba(90, 120, 255, 0.3);
}

.front-page .hero__btn--secondary {
  background: #fff;
  color: var(--hero-ink);
  border-color: rgba(30, 40, 60, 0.12);
}

.front-page .hero__btn:hover {
  transform: translateY(-2px);
}

.front-page .hero-bg {
  position: absolute;
  inset: -12% -8%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: normal;
  opacity: 1;
}

.front-page .hero-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(var(--hero-blur));
  opacity: 0.9;
  transform: translateZ(0);
  animation: heroDrift var(--hero-speed-1) ease-in-out infinite;
}

.front-page .hero-blob--1 {
  width: 60vmin;
  height: 60vmin;
  top: -12%;
  left: -6%;
  background: radial-gradient(circle at 35% 35%, rgba(var(--hero-accent-1), 0.45), transparent 70%);
  animation-duration: var(--hero-speed-1);
  --hero-shift-x: 5%;
  --hero-shift-y: 3%;
  --hero-scale: 1.05;
}

.front-page .hero-blob--2 {
  width: 56vmin;
  height: 56vmin;
  top: 5%;
  right: -8%;
  background: radial-gradient(circle at 40% 40%, rgba(var(--hero-accent-3), 0.42), transparent 68%);
  animation-duration: var(--hero-speed-2);
  --hero-shift-x: -4%;
  --hero-shift-y: 4%;
  --hero-scale: 1.08;
}

.front-page .hero-blob--3 {
  width: 52vmin;
  height: 52vmin;
  bottom: -18%;
  left: 18%;
  background: radial-gradient(circle at 45% 45%, rgba(var(--hero-accent-4), 0.38), transparent 70%);
  animation-duration: var(--hero-speed-3);
  --hero-shift-x: 3%;
  --hero-shift-y: -4%;
  --hero-scale: 1.06;
}

.front-page .hero-blob--4 {
  width: 48vmin;
  height: 48vmin;
  bottom: -8%;
  right: 22%;
  background: radial-gradient(circle at 40% 40%, rgba(var(--hero-accent-2), 0.36), transparent 70%);
  animation-duration: var(--hero-speed-4);
  --hero-shift-x: -3%;
  --hero-shift-y: -2%;
  --hero-scale: 1.04;
}

@keyframes heroDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0) scale(var(--hero-scale));
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .front-page .hero-blob {
    animation: none;
  }
}

@media (max-width: 960px) {
  .front-page .hero-inner {
    grid-template-columns: 1fr;
  }

  .front-page .hero__content {
    max-width: 100%;
  }

  .front-page .hero-contents {
    text-align: left;
  }

  .front-page .hero-blob {
    opacity: 0.72;
    filter: blur(calc(var(--hero-blur) * 0.85));
  }
}

@media (max-width: 640px) {
  .front-page .hero__content {
    padding: 20px 18px;
  }

  .front-page .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
}
