.hero-slider {
  width: 100%;
  min-height: calc(100vh - 90px);
  height: calc(100vh - 90px);
  overflow: hidden;
  position: relative;
  background: #020b18;
}

.hero-slider .hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  pointer-events: none;
}

.hero-slider .hs-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* ── Background image ── */
.hero-slider .hs-slide-img {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  transform: scale(1.18);
  filter: brightness(0.85);
  will-change: transform, background-position;
}

.hero-slider .hs-slide.active .hs-slide-img {
  animation: hsKenBurns 9s ease-out forwards, hsPan 14s ease-in-out 1s infinite alternate;
}

@keyframes hsKenBurns {
  from {
    transform: scale(1.18);
    filter: brightness(0.75);
  }
  to {
    transform: scale(1.02);
    filter: brightness(0.95);
  }
}

@keyframes hsPan {
  from {
    background-position: 45% 50%;
  }
  to {
    background-position: 58% 42%;
  }
}

.hero-slider .hs-img-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(0, 196, 244, 0.08) 48%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(86, 77, 202, 0.08) 52%,
    transparent 62%
  );
  transform: translateX(-120%) skewX(-12deg);
  opacity: 0;
}

.hero-slider .hs-slide.active .hs-img-shine {
  animation: hsShineSweep 1.6s ease 0.2s forwards;
}

@keyframes hsShineSweep {
  0% {
    transform: translateX(-120%) skewX(-12deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateX(120%) skewX(-12deg);
    opacity: 0;
  }
}

.hero-slider .hs-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.hero-slider .hs-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tg-primary-color);
  opacity: 0;
  box-shadow: 0 0 8px var(--tg-primary-color);
}

.hero-slider .hs-slide.active .hs-particles span {
  animation: hsParticle 4s ease-in-out infinite;
}

.hero-slider .hs-particles span:nth-child(1) {
  left: 12%;
  bottom: 20%;
  animation-delay: 0.2s;
}
.hero-slider .hs-particles span:nth-child(2) {
  left: 28%;
  bottom: 35%;
  animation-delay: 0.8s;
  width: 3px;
  height: 3px;
}
.hero-slider .hs-particles span:nth-child(3) {
  left: 72%;
  bottom: 25%;
  animation-delay: 1.2s;
}
.hero-slider .hs-particles span:nth-child(4) {
  left: 85%;
  bottom: 45%;
  animation-delay: 0.5s;
  width: 5px;
  height: 5px;
  background: var(--tg-secondary-color);
  box-shadow: 0 0 8px var(--tg-secondary-color);
}
.hero-slider .hs-particles span:nth-child(5) {
  left: 55%;
  bottom: 15%;
  animation-delay: 1.6s;
  width: 2px;
  height: 2px;
}

@keyframes hsParticle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.2);
  }
}

.hero-slider .hs-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slider .hs-slide-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
  z-index: 5;
}

.hero-slider .hs-left {
  position: relative;
  max-width: 640px;
}

/* ── Text animations (triggered via .hs-replay) ── */
.hero-slider .hs-vbar {
  position: absolute;
  left: -22px;
  top: 8px;
  width: 4px;
  height: 0;
  background: linear-gradient(var(--tg-primary-color), var(--tg-secondary-color));
  border-radius: 4px;
  box-shadow: 0 0 12px rgb(0 196 244 / 0.5);
}

.hero-slider .hs-replay .hs-vbar {
  animation: hsVbarGrow 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes hsVbarGrow {
  to {
    height: 130px;
  }
}

.hero-slider .hs-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--tg-primary-color);
  margin-bottom: 18px;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

.hero-slider .hs-replay .hs-tag {
  animation: hsTagIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes hsTagIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-slider .hs-tag-line {
  width: 0;
  height: 2px;
  background: var(--tg-primary-color);
  display: inline-block;
  box-shadow: 0 0 6px var(--tg-primary-color);
}

.hero-slider .hs-replay .hs-tag-line {
  animation: hsLineGrow 0.7s ease 0.45s forwards;
}

@keyframes hsLineGrow {
  to {
    width: 30px;
  }
}

.hero-slider .hs-title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-slider .hs-line {
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-60px);
  filter: blur(6px);
}

.hero-slider .hs-replay .hs-line {
  animation: hsLineIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.35s + var(--line, 0) * 0.14s);
}

@keyframes hsLineIn {
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

.hero-slider .hs-title .accent-primary,
.hero-slider .hs-title .accent-secondary {
  display: inline-block;
}

.hero-slider .hs-replay .accent-primary {
  animation: hsAccentPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    hsAccentGlow 2.5s ease-in-out 0.8s infinite;
  animation-delay: calc(0.5s + var(--line, 0) * 0.14s), 1.2s;
}

.hero-slider .hs-replay .accent-secondary {
  animation: hsAccentPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    hsAccentGlowSec 2.5s ease-in-out 1s infinite;
  animation-delay: calc(0.55s + var(--line, 0) * 0.14s), 1.4s;
}

@keyframes hsAccentPop {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes hsAccentGlow {
  0%,
  100% {
    text-shadow: 0 0 8px rgb(0 196 244 / 0.3);
  }
  50% {
    text-shadow: 0 0 22px rgb(0 196 244 / 0.7), 0 0 40px rgb(0 196 244 / 0.3);
  }
}

@keyframes hsAccentGlowSec {
  0%,
  100% {
    text-shadow: 0 0 8px rgb(86 77 202 / 0.3);
  }
  50% {
    text-shadow: 0 0 22px rgb(86 77 202 / 0.7), 0 0 40px rgb(86 77 202 / 0.3);
  }
}

.hero-slider .hs-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
}

.hero-slider .hs-replay .hs-desc {
  animation: hsDescIn 0.8s ease 0.75s forwards;
}

@keyframes hsDescIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ── Buttons ── */
.hero-slider .hs-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
} 
.hs-btns .btn-alt{
  background-color: var(--tg-primary-color);
  border-color: #020b18;
  color: #020b18;
}
.hero-slider .hs-btns .btn:hover::before {
  animation: hsBtnShine 0.6s ease;
}

@keyframes hsBtnShine {
  to {
    left: 150%;
  }
}

.hero-slider .hs-btns .btn:hover {
  transform: translateY(-3px) scale(1.04);
} 

/* ── Right visual / image ── */
.hero-slider .hs-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-slider .hs-visual {
  width: clamp(220px, 32vw, 340px);
  height: clamp(220px, 32vw, 340px);
  position: relative;
  opacity: 0;
  transform: scale(0.75) translateX(50px) rotate(-8deg);
}

.hero-slider .hs-replay .hs-visual {
  animation: hsVisualIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

@keyframes hsVisualIn {
  to {
    opacity: 1;
    transform: scale(1) translateX(0) rotate(0deg);
  }
}

.hero-slider .hs-visual-img {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  z-index: 2;
  box-shadow: 0 0 40px rgb(0 196 244 / 0.25), inset 0 0 30px rgb(0 0 0 / 0.4);
  animation: hsVisualPulse 4s ease-in-out infinite;
}

@keyframes hsVisualPulse {
  0%,
  100% {
    box-shadow: 0 0 40px rgb(0 196 244 / 0.25), inset 0 0 30px rgb(0 0 0 / 0.4);
  }
  50% {
    box-shadow: 0 0 60px rgb(0 196 244 / 0.45), inset 0 0 20px rgb(0 0 0 / 0.3);
  }
}

.hero-slider .hs-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(0, 196, 244, 0.25);
}

.hero-slider .hs-ring-1 {
  animation: hsSpin 18s linear infinite;
}

.hero-slider .hs-ring-2 {
  inset: -18px;
  border-color: rgba(86, 77, 202, 0.15);
  animation: hsSpin 26s linear infinite reverse;
}

.hero-slider .hs-orb {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--tg-primary-color);
  box-shadow: 0 0 16px var(--tg-primary-color);
  z-index: 3;
  animation: hsOrbPulse 2s ease-in-out infinite;
}

@keyframes hsSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hsOrbPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 16px var(--tg-primary-color);
  }
  50% {
    transform: scale(1.3);
    box-shadow: 0 0 28px var(--tg-primary-color);
  }
}

.hero-slider .hs-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(0 196 244 / 0.14) 0%, transparent 68%);
  right: 8%;
  top: 50%;
  transform: translateY(-50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.hero-slider .hs-slide.active .hs-glow {
  animation: hsGlowIn 1.2s ease 0.3s forwards, hsGlowFloat 7s ease-in-out 1.5s infinite;
}

@keyframes hsGlowIn {
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes hsGlowFloat {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-54%) scale(1.08);
  }
}

/* ── Nav & dots ── */
.hero-slider .hs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

.hero-slider .hs-nav-l {
  left: 20px;
}

.hero-slider .hs-nav-r {
  right: 20px;
}

.hero-slider .hs-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(4, 14, 24, 0.75);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: var(--tg-primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.35s ease;
  backdrop-filter: blur(6px);
}

.hero-slider .hs-arrow:hover {
  border-color: var(--tg-primary-color);
  color: #fff;
  transform: scale(1.1) translateX(var(--shift, 0));
  box-shadow: 0 0 24px rgb(0 196 244 / 0.35);
}

.hero-slider .hs-nav-l .hs-arrow {
  --shift: -3px;
}

.hero-slider .hs-nav-r .hs-arrow {
  --shift: 3px;
}

.hero-slider .hs-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.hero-slider .hs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-slider .hs-dot.on {
  background: var(--tg-primary-color);
  width: 28px;
  border-radius: 4px;
  box-shadow: 0 0 14px rgb(0 196 244 / 0.55);
}

.hero-slider .hs-prog {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tg-primary-color), var(--tg-secondary-color));
  z-index: 20;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgb(0 196 244 / 0.45);
}

@media (max-width: 991px) {
  .hero-slider .hs-slide-content {
    grid-template-columns: 1fr;
  }

  .hero-slider .hs-right {
    display: none;
  }

  .hero-slider .hs-glow {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-slider {
    min-height: 520px;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .hero-slider .hs-nav-l {
    left: 10px;
  }

  .hero-slider .hs-nav-r {
    right: 10px;
  }

  .hero-slider .hs-arrow {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .hero-slider .hs-vbar {
    display: none;
  }

  .hero-slider .hs-btns .btn {
    padding: 14px 28px;
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider *,
  .hero-slider *::before,
  .hero-slider *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
