/* ===== HERO LAYOUT ===== */
.hero {
  padding-top: 32px;
  padding-bottom: 40px;
  width: 100%;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

/* ===== RIGHT COLUMN ===== */
.hero__panels-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}

/* ===== HERO SLIDER ===== */
.hero-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  background: #0b1220;
}

.hero-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 700ms cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.hero-slider__slide {
  position: relative;
  height: clamp(320px, 42vw, 500px);
  overflow: hidden;
}

.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(0.80) saturate(1.1);
  transition: transform 8s ease;
}

.hero-slider__slide.is-active img {
  transform: scale(1.03);
}

/* Caption overlay */
.hero-slider__caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.20) 30%,
    rgba(0,0,0,0.70) 70%,
    rgba(0,0,0,0.85) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 28px 28px 28px;
  gap: 8px;
}

.hero-slider__caption--light {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.05) 0%,
    rgba(0,0,0,0.10) 30%,
    rgba(0,0,0,0.65) 65%,
    rgba(0,0,0,0.85) 100%
  );
}

.hero-slider__caption .badge {
  display: inline-block;
  width: fit-content;
  margin-bottom: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(110,168,255,0.18);
  border: 1px solid rgba(110,168,255,0.30);
  font-size: 12px;
  font-weight: 600;
  color: #a8ccff;
}

.hero__title {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.hero__subtitle {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  max-width: 480px;
}

.hero__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Slider controls */
.hero-slider__ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s;
  z-index: 5;
}
.hero-slider__ctrl:hover { background: rgba(0,0,0,0.70); }
.hero-slider__ctrl--prev { left: 12px; }
.hero-slider__ctrl--next { right: 12px; }

/* Slider dots */
.hero-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  display: flex;
  gap: 7px;
  justify-content: center;
  z-index: 5;
}
.hero-slider__dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.2s, width 0.3s;
  padding: 0;
}
.hero-slider__dots button[aria-selected="true"] {
  background: #fff;
  width: 22px;
}

/* ===== STATS ROW ===== */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.hero__stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero__stat strong {
  font-size: 18px;
  font-weight: 700;
  color: #6ea8ff;
}

.hero__stat small {
  font-size: 11px;
  color: #8a9cc0;
}

/* ===== CARD WRAPPER (form) ===== */
.hero__card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  overflow: hidden;
}

.hero__cardTop {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.dot { width: 10px; height: 10px; border-radius: 999px; }
.dot--red    { background: #ff6b6b; }
.dot--yellow { background: #ffd166; }
.dot--green  { background: #6ee7b7; }

.hero__cardTitle {
  margin-left: 6px;
  color: #b9c3de;
  font-size: 13px;
}

.hero__cardFooter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.09);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__panels-col {
    position: static;
  }
}

@media (max-width: 600px) {
  .hero-slider__slide {
    height: 260px;
  }
  .hero-slider__caption {
    padding: 18px 16px;
  }
  .hero__title {
    font-size: 20px;
  }
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__track    { transition: none; }
  .hero-slider__slide img { transition: none; transform: none; }
}
