/**
 * Home hero — stability-style accent background
 */

.page-home-enterprise .hero-section--cyber-attack {
  background: #000;
  isolation: isolate;
}

.page-home-enterprise .hero-section--cyber-attack .cyber-status {
  animation: heroStatusPulse 3s ease-in-out infinite;
}

.page-home-enterprise .hero-section--cyber-attack .cyber-status__dot {
  animation: cyberThreatPulse 1.4s ease-in-out infinite;
}

@keyframes heroStatusPulse {
  0%, 100% {
    border-color: rgba(219, 9, 77, 0.28);
    box-shadow: 0 0 0 rgba(219, 9, 77, 0);
  }
  50% {
    border-color: rgba(219, 9, 77, 0.55);
    box-shadow: 0 0 24px rgba(219, 9, 77, 0.18);
  }
}

@keyframes cyberThreatPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08), 0 0 12px rgba(219, 9, 77, 0.35);
  }
}

.page-home-enterprise .hero-section--cyber-attack .hero-headline__accent {
  animation: heroAccentThreat 4s ease-in-out infinite;
}

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

.page-home-enterprise .hero-section--cyber-attack .hero-visual--soc .hero-visual__ring--pulse {
  animation-duration: 2.2s;
}

.page-home-enterprise .hero-section--cyber-attack .hero-hud__pulse {
  animation-duration: 1.1s;
}

.page-home-enterprise .hero-section--hero-image .hero-section__orbs,
.page-home-enterprise .hero-section--hero-image .hero-section__canvas {
  display: none;
}

.hero-section__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-section__backdrop-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-section__backdrop-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.82) 32%,
    rgba(0, 0, 0, 0.45) 48%,
    rgba(0, 0, 0, 0.08) 62%,
    transparent 75%
  );
}

.hero-section__backdrop-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 18%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 28%);
}

[dir="rtl"] .hero-section__backdrop-img {
  object-position: left center;
}

[dir="rtl"] .hero-section__backdrop-fade {
  background: linear-gradient(
    270deg,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.82) 32%,
    rgba(0, 0, 0, 0.45) 48%,
    rgba(0, 0, 0, 0.08) 62%,
    transparent 75%
  );
}

.page-home-enterprise .hero-section--hero-image .hero-container {
  position: relative;
  z-index: 2;
}

.page-home-enterprise .hero-section--hero-image .hero-aside {
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .page-home-enterprise .hero-section--hero-image .hero-container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  }
}

@media (min-width: 1024px) {
  .page-home-enterprise .hero-section--hero-image .hero-container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  }

  .page-home-enterprise .hero-section--hero-image .hero-content {
    max-width: 40rem;
  }
}

.page-home-enterprise .hero-section--hero-image .hero-scroll-hint,
.page-home-enterprise .hero-section--hero-image .hero-clients {
  position: relative;
  z-index: 2;
}

/* Glass status + CTAs on image hero */
.page-home-enterprise .hero-section--hero-image .cyber-status {
  padding: 0.5rem 1.15rem 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(219, 9, 77, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.88);
}

.page-home-enterprise .hero-section--hero-image .hero-btn--primary {
  box-shadow: 0 0 40px rgba(219, 9, 77, 0.45);
}

.page-home-enterprise .hero-section--hero-image .hero-btn--primary:hover {
  box-shadow: 0 0 48px rgba(219, 9, 77, 0.55);
}

.page-home-enterprise .hero-section--hero-image .hero-btn--secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-home-enterprise .hero-section--hero-image .hero-btn--secondary:hover {
  border-color: rgba(219, 9, 77, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

/* Image entrance */
.page-home-enterprise.motion-3d.hero-motion-play .hero-section__backdrop-img {
  animation: heroImageIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 767px) {
  .page-home-enterprise .hero-section--hero-image {
    min-height: auto;
  }

  .hero-section__backdrop-img {
    object-position: 65% 40%;
  }

  .page-home-enterprise .hero-section--hero-image .hero-content {
    text-align: center;
  }

  .page-home-enterprise .hero-section--hero-image .hero-meta {
    justify-content: center;
  }

  .page-home-enterprise .hero-section--hero-image .hero-lead {
    margin-inline: auto;
    padding-inline-start: 0;
    border-inline-start: none;
    max-width: 26rem;
  }

  .page-home-enterprise .hero-section--hero-image .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 20rem;
    margin-inline: auto;
  }

  .page-home-enterprise .hero-section--hero-image .hero-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home-enterprise.motion-3d.hero-motion-play .hero-section__backdrop-img {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .page-home-enterprise .hero-section--cyber-attack .cyber-status,
  .page-home-enterprise .hero-section--cyber-attack .cyber-status__dot,
  .page-home-enterprise .hero-section--cyber-attack .hero-headline__accent {
    animation: none;
  }
}
