.index-page .hero {
  min-height: 680px;
  padding: 145px 0 72px;
  color: #263f68;
  background: #fff;
}

.index-page .hero::before { display: none; }

.index-page .hero h1 {
  max-width: 590px;
  margin: 0;
  color: #101828;
  font-size: clamp(52px, 5.6vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -3.4px;
}

.index-page .hero p {
  max-width: 600px;
  margin: 25px 0 31px;
  color: #5d6879;
  font-size: 16px;
  line-height: 1.8;
}

.index-page .hero-actions {
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.index-page .hero .btn-get-started {
  margin: 0;
  padding: 14px 24px;
  border-radius: 999px;
  color: #fff;
  background: #263f68;
  box-shadow: none;
}

.index-page .hero .btn-get-started:hover {
  color: #fff;
  background: #172b4d;
}

.index-page .hero .btn-watch-video {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  color: #263f68;
  background: transparent;
  font-family: var(--default-font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.index-page .hero .btn-watch-video .play-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #47b2e4;
  box-shadow: 0 8px 20px rgba(71, 178, 228, 0.25);
  transition: transform 0.25s ease, background 0.25s ease;
}

.index-page .hero .btn-watch-video .play-icon i {
  margin-left: 2px;
  font-size: 20px;
}

.index-page .hero .btn-watch-video:hover .play-icon,
.index-page .hero .btn-watch-video:focus-visible .play-icon {
  background: #329dce;
  transform: scale(1.07);
}

.index-page .hero .btn-watch-video:focus-visible {
  border-radius: 999px;
  outline: 3px solid rgba(71, 178, 228, 0.25);
  outline-offset: 5px;
}

.index-page .hero .hero-img { min-height: 470px; }

.index-page .hero .hero-img::before {
  width: min(430px, 84%);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 1px, transparent 1px 15px), #37517e;
}

.index-page .hero .hero-img::after {
  position: absolute;
  z-index: 0;
  width: min(480px, 92%);
  aspect-ratio: 1;
  border: 22px solid #47b2e4;
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
  transform: rotate(-18deg);
}

.index-page .hero .hero-img img {
  z-index: 1;
  max-height: 420px;
}

.home-video-modal .modal-dialog { max-width: min(1050px, calc(100vw - 32px)); }

.home-video-modal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #0b1424;
  box-shadow: 0 30px 90px rgba(14, 32, 60, 0.35);
}

.home-video-modal .modal-header {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 0;
  border: 0;
}

.home-video-modal .btn-close {
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  background-size: 12px;
  opacity: 1;
}

.home-video-modal .modal-body { padding: 0; }

.home-video-modal video {
  display: block;
  width: 100%;
  max-height: 82vh;
  background: #000;
}

@media (max-width: 991px) {
  .index-page .hero h1 {
    margin-right: auto;
    margin-left: auto;
    letter-spacing: -2.5px;
  }

  .index-page .hero-actions { justify-content: center; }
  .index-page .hero .hero-img { min-height: 390px; }
}

@media (max-width: 575px) {
  .index-page .hero { padding-top: 120px; }

  .index-page .hero h1 {
    font-size: 43px;
    letter-spacing: -1.8px;
  }

  .index-page .hero .hero-img { min-height: 320px; }

  .index-page .hero .hero-img::after {
    width: 310px;
    border-width: 15px;
  }

  .index-page .hero .hero-img img { max-height: 290px; }
}

/* Restore the original MicroIT hero and navigation color */
.index-page .header {
  color: #fff;
  background: #37517e;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 7px 24px rgba(23, 43, 77, 0.16);
}

.index-page .header .logo h3,
.index-page .header .navmenu > ul > li > a,
.index-page .header .navmenu > ul > li > a:focus,
.index-page .header .mobile-nav-toggle {
  color: #fff;
}

.index-page .header .navmenu > ul > li > a:hover,
.index-page .header .navmenu > ul > li > a.active,
.index-page .header .navmenu > ul > li > a.active:focus {
  color: #47b2e4;
}

.index-page .header .btn-getstarted,
.index-page .header .btn-getstarted:focus {
  border-color: #47b2e4;
  color: #fff;
  background: #47b2e4;
}

.index-page .header .btn-getstarted:hover,
.index-page .header .btn-getstarted:focus:hover {
  border-color: #329dce;
  background: #329dce;
}

.index-page.scrolled .header {
  color: #263f68;
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: #e4ebf2;
  box-shadow: 0 8px 28px rgba(35, 62, 105, 0.12);
}

.index-page.scrolled .header .logo h3,
.index-page.scrolled .header .navmenu > ul > li > a,
.index-page.scrolled .header .navmenu > ul > li > a:focus,
.index-page.scrolled .header .mobile-nav-toggle {
  color: #263f68;
}

.index-page.scrolled .header .navmenu > ul > li > a:hover,
.index-page.scrolled .header .navmenu > ul > li > a.active,
.index-page.scrolled .header .navmenu > ul > li > a.active:focus {
  color: #47b2e4;
}

.index-page .hero {
  color: #fff;
  background: #37517e;
}

.index-page .hero h1 {
  color: #fff;
}

.index-page .hero p {
  color: rgba(255, 255, 255, 0.76);
}

.index-page .hero .btn-get-started {
  color: #fff;
  background: #47b2e4;
}

.index-page .hero .btn-get-started:hover {
  color: #fff;
  background: #329dce;
}

.index-page .hero .btn-watch-video {
  color: #fff;
}

.index-page .hero .hero-img::before {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.2) 0 1px, transparent 1px 15px), #2f4770;
}

@media (max-width: 1199px) {
  .index-page .header .navmenu > ul {
    background: #fff;
  }

  .index-page .header .navmenu > ul > li > a,
  .index-page .header .navmenu > ul > li > a:focus {
    color: #263f68;
  }

  .index-page .header .navmenu > ul > li > a:hover,
  .index-page .header .navmenu > ul > li > a.active,
  .index-page .header .navmenu > ul > li > a.active:focus {
    color: #47b2e4;
  }
}

/* Keep the wide logo mark legible without increasing the menu height */
.index-page .header .logo img {
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}

.index-page .header .logo h3 {
  display: none;
}

@media (max-width: 575px) {
  .index-page .header .logo img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

/* Welcome title reveal */
.index-page #hero h1 .hero-title-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease calc(var(--word-index) * 0.11s),
    transform 0.65s cubic-bezier(.22, 1, .36, 1) calc(var(--word-index) * 0.11s);
}

.index-page #hero h1.is-animated .hero-title-word {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial arrows overlay the cards; pagination remains below */
.index-page .testimonial-slider {
  position: relative;
}

.index-page .testimonial-controls {
  min-height: 16px;
  margin-top: 25px;
}

.index-page .testimonial-prev,
.index-page .testimonial-next {
  position: absolute;
  z-index: 12;
  top: 50%;
  width: 52px;
  height: 72px;
  border: 0;
  border-radius: 0;
  color: #47b2e4;
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
}

.index-page .testimonial-prev i,
.index-page .testimonial-next i {
  font-size: 40px;
  line-height: 1;
  -webkit-text-stroke: 0.3px currentColor;
}

.index-page .testimonial-prev { left: 12px; }
.index-page .testimonial-next { right: 12px; }

.index-page .testimonial-prev:hover,
.index-page .testimonial-next:hover {
  color: #4f6ff2;
  background: transparent;
  transform: translateY(-50%) scale(1.1);
}

.index-page .testimonial-prev.swiper-button-disabled,
.index-page .testimonial-next.swiper-button-disabled {
  opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {
  .index-page #hero h1 .hero-title-word {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 575px) {
  .index-page .testimonial-prev,
  .index-page .testimonial-next {
    width: 42px;
    height: 60px;
  }

  .index-page .testimonial-prev i,
  .index-page .testimonial-next i { font-size: 34px; }

  .index-page .testimonial-prev { left: 8px; }
  .index-page .testimonial-next { right: 8px; }
}

/* Refined hero actions */
.index-page .hero-actions {
  gap: 14px;
}

.index-page .hero .btn-get-started {
  display: inline-flex;
  min-height: 54px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #47b2e4, #329dce);
  box-shadow: 0 12px 28px rgba(17, 40, 75, 0.24);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.index-page .hero .btn-get-started i {
  font-size: 13px;
  transition: transform 0.25s ease;
}

.index-page .hero .btn-get-started:hover {
  color: #fff;
  background: linear-gradient(135deg, #53bceb, #2c95c6);
  box-shadow: 0 15px 34px rgba(17, 40, 75, 0.3);
  transform: translateY(-3px);
}

.index-page .hero .btn-get-started:hover i {
  transform: translateX(4px);
}

.index-page .hero .btn-watch-video {
  min-height: 54px;
  gap: 11px;
  padding: 8px 19px 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.index-page .hero .btn-watch-video .play-icon {
  width: 36px;
  height: 36px;
  color: #37517e;
  background: #fff;
  box-shadow: none;
}

.index-page .hero .btn-watch-video .play-icon i {
  font-size: 18px;
}

.index-page .hero .btn-watch-video:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.index-page .hero .btn-watch-video:hover .play-icon,
.index-page .hero .btn-watch-video:focus-visible .play-icon {
  color: #263f68;
  background: #fff;
  transform: scale(1.05);
}

@media (max-width: 575px) {
  .index-page .hero .btn-get-started,
  .index-page .hero .btn-watch-video {
    min-height: 50px;
  }
}
