/* Cynesra cinematic background treatment */
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #07111f;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: -5%;
  background: url("assets/cynesra-soc-hero.webp") center center / cover no-repeat;
  filter: brightness(1.20) saturate(1.04) contrast(1.06);
  transform: scale(1.04);
  animation: cynesraHeroDrift 22s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 76% 42%, rgba(45, 118, 255, .13), transparent 35%),
    linear-gradient(90deg, rgba(5, 13, 25, .90) 0%, rgba(5, 13, 25, .72) 38%, rgba(5, 13, 25, .30) 70%, rgba(5, 13, 25, .42) 100%);
}

.hero .h-grid,
.hero .logos {
  position: relative;
  z-index: 1;
}

.hero .glass {
  background: linear-gradient(145deg, rgba(12, 34, 61, .66), rgba(5, 19, 37, .48));
  border-color: rgba(153, 211, 255, .38);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .10);
  backdrop-filter: blur(8px) saturate(125%);
}

.hero .glass .card,
.hero .metric {
  background: rgba(5, 19, 37, .64);
  border-color: rgba(167, 213, 244, .24);
  backdrop-filter: blur(5px);
}

.hero h1,
.hero .eyebrow,
.hero > .wrap .sub {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .72);
}

.hero .glass::after {
  content: "";
  position: absolute;
  inset: -45% -70%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 44%, rgba(106, 210, 255, .10) 50%, transparent 56%);
  transform: translateX(-34%);
  animation: cynesraGlassScan 9s ease-in-out infinite;
}

.hero .integration-logo {
  background: rgba(7, 18, 34, .74);
  border-color: rgba(180, 213, 235, .18);
  backdrop-filter: blur(8px);
}

#demo {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  background: #07111f;
}

#demo::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: -7%;
  background: url("assets/cynesra-data-center.webp") center 48% / cover no-repeat;
  filter: brightness(1.18) saturate(1.08);
  transform: scale(1.06);
  animation: cynesraServerDrift 26s ease-in-out infinite alternate;
}

#demo::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 13, 25, .84), rgba(5, 13, 25, .50) 60%, rgba(5, 13, 25, .62));
}

#demo .wrap {
  position: relative;
  z-index: 1;
}

@keyframes cynesraHeroDrift {
  from { transform: scale(1.04) translate3d(-.4%, 0, 0); }
  to { transform: scale(1.10) translate3d(.8%, -.7%, 0); }
}

@keyframes cynesraServerDrift {
  from { transform: scale(1.06) translate3d(0, .5%, 0); }
  to { transform: scale(1.12) translate3d(0, -1.1%, 0); }
}

@keyframes cynesraGlassScan {
  0%, 24% { transform: translateX(-34%); opacity: 0; }
  42%, 58% { opacity: 1; }
  76%, 100% { transform: translateX(34%); opacity: 0; }
}

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero::before { background-position: 62% center; }
  .hero::after {
    background: linear-gradient(180deg, rgba(5, 13, 25, .87), rgba(5, 13, 25, .62) 56%, rgba(5, 13, 25, .82));
  }
}

@media (max-width: 620px) {
  .hero::before { background-position: 70% center; opacity: .92; }
  #demo { min-height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero .glass::after,
  #demo::before {
    animation: none;
  }
}
