.hero {
  min-height: calc(130vh);
  text-align: center;
  padding: 200px 0 0;
}
.hero-bg {
  background-size: cover;
  background: url(../images/HOME-LIGHT.png) no-repeat center 90%;
}

.pill-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 80px;
}
.pill-left {
  transform: rotate(180deg);
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  border-radius: 999px;
  border: 2px solid rgba(232, 239, 255, 0.58);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1em;
  width: 500px;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 -7px 10px rgba(255, 255, 255, 0.62),
    inset 0 10px 20px rgba(0, 0, 0, 0.28),
    0 8px 26px rgba(0, 0, 0, 0.38);
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
  font-weight: 300;
  letter-spacing: -0.02em;
}

.hero h2 {
  margin: 15px 0 0;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.06;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
}

.hero-desc {
  margin: 24px auto 0;
  width: min(820px, 92vw);
  font-size: 16px;
  line-height: 1.65;
  color: rgb(154 154 153);
}

.hero-actions {
  margin-top: 34px;
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn-left,
.btn-right {
  min-height: 58px;
  padding: 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
}
.btn-left {
  color: #ffffff;
  background: #000;
}
.btn-left:hover {
  box-shadow: inset 1px -14px 20px 9px rgb(39 50 50);
}
.btn-right {
  color: #0c1337;
  background: #ffffff;
  font-weight: unset;
}

.hero-metrics {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.metric {
  min-width: 170px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 -7px 10px rgba(255, 255, 255, 0.62),
    inset 0 10px 20px rgba(0, 0, 0, 0.28),
    0 8px 26px rgba(0, 0, 0, 0.38);
}

.metric strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.sub-title-wrap {
  display: flex;
  margin-bottom: 50px;
  align-items: center;
  gap: 24px;
}
.sub-title-img {
  width: 82%;
  height: fit-content;
}
.metric.sub-title {
  color: #ffffff;
  width: 18%;
  text-align: center;
}

.about-sub-title-wrap,
.client-sub-title-wrap {
  position: relative;
  overflow: visible;
}

.about-sub-title-wrap .about-radial-light,
.client-sub-title-wrap .client-radial-light {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
  pointer-events: none;
  opacity: 0.95;
  z-index: -1;
}
.mt-5 {
  margin-top: 50px;
}

.banner-home-bottom {
  margin: 100px 0;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.banner-home-bottom img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  display: block;
}

.banner-home-bottom::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 10, 34, 0.95) 0%,
    rgba(7, 10, 34, 0.72) 28%,
    rgba(7, 10, 34, 0.12) 62%,
    rgba(7, 10, 34, 0) 100%
  );
  pointer-events: none;
}

.banner-metrics {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  z-index: 2;
}

.banner-metrics-left,
.banner-metrics-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.banner-home-bottom .metric {
  min-width: 170px;
  padding: 10px 22px;
  background: rgba(8, 12, 45, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.banner-home-bottom .metric strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.banner-home-bottom .metric span {
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}
.title-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 80px;
}

.built-world-wrap {
  position: relative;
  overflow: visible;
}

.built-world-wrap .built-radial-light-left {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.95;
  z-index: -1;
}
.title-left {
  width: 50%;
}
.title-bold {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}
.title-normal {
  font-size: 40px;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 5px;
}

.title-right {
  width: 50%;
  text-align: right;
}
.title-desc {
  font-size: 14px;
  color: rgb(154 154 153);
  margin-top: 20px;
}
.title-desc.normal {
  font-size: 18px;
  color: rgb(154 154 153);
  margin-top: 20px;
}
.talent {
  width: 50%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 52px;
  overflow: hidden;
  float: right;
}

.talent-item {
  position: relative;
  padding: 30px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.talent-item:last-child {
  border-bottom: none;
}

.talent-item h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  color: #fff;
  font-weight: 700;
}

.talent-item p {
  margin: 24px 0 0;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.76);
}

.talent-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 70px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.16) 38%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 1;
  transition: background 180ms ease;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 62%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 62%,
    rgba(0, 0, 0, 0) 100%
  );
}

.talent-item:hover::after {
  background: linear-gradient(
    to top,
    rgba(59, 255, 140, 0.45) 0%,
    rgba(59, 255, 140, 0.16) 38%,
    rgba(59, 255, 140, 0) 100%
  );
}

.carousel {
  width: 100%;
  margin: 0 0 180px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: clamp(14px, 1.6vw, 24px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 12px clamp(24px, 5vw, 72px) 20px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  align-items: stretch;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.carousel-track.is-dragging .service-card {
  transition: none !important;
  filter: none !important;
}

[data-carousel-track].is-dragging [data-carousel-item] {
  transition: none !important;
  filter: none !important;
}

.service-card {
  flex: 0 0 clamp(340px, 30vw, 460px);
  box-sizing: border-box;
  position: relative;
  height: clamp(440px, 38vw, 560px);
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
  background: #0d1234;
  transform: scale(0.94) translateZ(0);
  opacity: 0.56;
  /* filter: blur(1.2px); */
  transition:
    transform 160ms ease-out,
    opacity 160ms ease-out,
    filter 160ms ease-out;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.service-card,
.service-content,
.service-overlay,
.service-card img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* default tanpa hover: card paling kiri yang terlihat jadi featured */
.carousel-track:not(:hover) .service-card.is-default-featured {
  transform: scale(1.01);
  opacity: 1;
  /* filter: blur(0); */
  z-index: 3;
}

.carousel-track:hover .service-card {
  transform: scale(0.95);
  opacity: 0.46;
  /* filter: blur(1.4px); */
}

.carousel-track:hover .service-card:hover {
  transform: scale(1.01);
  opacity: 1;
  /* filter: blur(0); */
  z-index: 3;
}

.carousel-track:hover .service-card:hover + .service-card {
  transform: scale(0.98);
  opacity: 0.95;
  /* filter: blur(0); */
  z-index: 2;
}

.service-card img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  display: block;
  pointer-events: none;

  /* fade opacity ke bawah */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 62%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 62%,
    rgba(0, 0, 0, 0) 100%
  );
}

.service-card:hover .service-overlay::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 160%; /* lebar lingkaran */
  height: 160px; /* tebal lingkaran */
  background: radial-gradient(
    ellipse at center bottom,
    rgb(39 50 50 / 0.95) 0%,
    rgb(39 50 50 / 0.6) 40%,
    transparent 70%
  );
  border-radius: 50%;
}

.service-content {
  color: #fff;
  padding: 30px;
}

.service-number {
  font-size: 14px;
  opacity: 0.9;
}

.service-content h3 {
  margin: 20px 0 8px;
  font-size: clamp(20px, 2vw, 40px);
  line-height: 1.06;
  font-weight: 400;
}

.service-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgb(154 154 153);
  max-width: 95%;
}

.services-grid-compact {
  width: 100%;
  margin: 100px 0 180px;
  padding: 12px clamp(24px, 5vw, 72px) 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.services-grid-compact .service-card--grid {
  flex: none;
  width: 100%;
  height: clamp(280px, 22vw, 340px);
  scroll-snap-align: initial;
  border-radius: 14px;
  transform: none;
  opacity: 1;
  transition: transform 180ms ease;
}

.services-grid-compact .service-card--grid img {
  height: 42%;
}

.services-grid-compact .service-card--grid .service-content {
  padding: 16px 18px 18px;
}

.services-grid-compact .service-card--grid .service-number {
  font-size: 12px;
}

.services-grid-compact .service-card--grid .service-content h3 {
  margin: 10px 0 6px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.15;
}

.services-grid-compact .service-card--grid .service-content p {
  font-size: 11px;
  line-height: 1.4;
}

@media (hover: hover) {
  .services-grid-compact .service-card--grid:hover {
    transform: scale(1.02);
    opacity: 1;
    z-index: 2;
  }
}

.services-grid-compact .service-card--grid:hover .service-overlay::after {
  bottom: -30px;
  width: 150%;
  height: 150px;
}

@media (max-width: 1100px) {
  .services-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 72px 0 88px;
  }
}

@media (max-width: 680px) {
  .services-grid-compact {
    grid-template-columns: 1fr;
    padding: 8px 16px 12px;
  }
}

.title-center-with-gap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.title-center-with-gap .metric {
  font-size: 18px;
  color: #ffffff;
  margin: 80px 0;
  text-align: center;
}
.left-light-img {
  width: 50%;
  height: fit-content;
  object-fit: contain;
  transform: rotate(180deg);
  display: block;
}

.right-light-img {
  width: 50%;
  height: fit-content;
  object-fit: contain;
  display: block;
}
.title-center {
  margin: 0 auto;
  text-align: center;
}

.how-it-works-card {
  width: 90%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 120px auto 120px;
  padding: 0 clamp(12px, 1.4vw, 24px);
  justify-content: center;
}

.how-card {
  position: relative;
  min-height: 450px;
  border-radius: 28px;
  padding: 30px 26px;
  overflow: hidden;
  /* Simulate border with a pseudo-element for masking */
  background: linear-gradient(180deg, #0c1123 0%, #0c1123 100%);
  /* Tambah box shadow: inset dan luar */
  box-shadow:
    0 8px 32px 0 rgba(16, 24, 56, 0.22),
    /* luar */ inset 0 4px 12px 0 rgba(255, 255, 255, 0.05),
    /* inset lebih kuat */ inset 0 1px 0 rgba(255, 255, 255, 0.08); /* inset lama */
  transition: transform 180ms ease;
  transform-origin: center;
}

.how-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  pointer-events: none;
  /* Mask only the border at the bottom left */
  -webkit-mask-image: linear-gradient(
    to top right,
    transparent 0%,
    transparent 23%,
    white 41%,
    white 100%
  );
  mask-image: linear-gradient(
    to top right,
    transparent 0%,
    transparent 23%,
    white 41%,
    white 100%
  );
  z-index: 1;
}
.how-card-title {
  font-size: 24px;
  line-height: 1.1;
  color: #ffffff;
  font-weight: 700;
  max-width: 90%;
  margin-top: 30px;
}
/* Mask the number: fade downwards */
.how-card-number {
  position: absolute;
  right: -20px;
  bottom: -58px;
  font-size: clamp(380px, 50vw, 210px);
  line-height: 0.86;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
  /* Fade number downward */
  -webkit-mask-image: linear-gradient(to bottom, white 60%, transparent 80%);
  mask-image: linear-gradient(to bottom, white 60%, transparent 80%);
}

.how-card:hover {
  transform: scale(1.08);
  cursor: pointer;
}

.how-card h3 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 40px);
  line-height: 1.1;
  color: #ffffff;
  font-weight: 700;
  max-width: 90%;
}

.how-card p {
  margin: 22px 0 0;
  max-width: 92%;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.76);
}

.testimonials {
  width: min(1320px, 94vw);
  margin: 30px auto 120px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.testimonial-card {
  position: relative;
  /* min-height: 460px; */
  border-radius: 34px;
  padding: 26px 30px 30px;
  overflow: hidden;
  /* Mirip .how-card: masked border via pseudo, improved background below */
  background:
    linear-gradient(180deg, #0c1123 0%, #0c1123 70%),
    radial-gradient(
      120% 80% at 50% 100%,
      rgba(133, 131, 201, 0.2) 0%,
      rgba(12, 17, 35, 0) 65%
    );
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.25),
    inset 0 4px 12px 0 rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease;
  transform-origin: center;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  pointer-events: none;
  /* Mask border similar to .how-card - faded diagonally towards top right */
  -webkit-mask-image: linear-gradient(
    to top right,
    transparent 0%,
    transparent 23%,
    white 41%,
    white 100%
  );
  mask-image: linear-gradient(
    to top right,
    transparent 0%,
    transparent 23%,
    white 41%,
    white 100%
  );
  z-index: 1;
}

.testimonial-card--middle {
  margin-top: 70px;
}

.testimonial-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  color: #fff;
}

.testimonial-author span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-style: italic;
}

.testimonial-quote-mark {
  margin-top: 22px;
  line-height: 0;
}

.testimonial-quote-mark img {
  width: 48px;
  height: auto;
  display: block;
  opacity: 0.9;
}

.testimonial-card p {
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
  font-style: italic;
  margin-top: 30px;
  text-align: center;
}

.testimonial-quote-mark.quote-end {
  text-align: right;
  margin-top: 12px;
}

.testimonial-quote-mark.quote-end img {
  margin-left: auto;
  transform: rotate(180deg);
}

.testimonial-stars {
  margin-top: 20px;
  text-align: center;
  letter-spacing: 8px;
  font-size: 38px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}

.last-section {
  margin: 110px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  background: linear-gradient(180deg, #16182b 0%, #16182b 100%);
}

.last-section-inner {
  width: min(1100px, 92vw);
  margin: 0 auto;
  text-align: center;
  padding: 72px 20px 64px;
}

.last-section h2 {
  margin: 0;
  font-size: clamp(34px, 3.2vw, 56px);
  line-height: 1.12;
  color: #fff;
  font-weight: 700;
}

.last-section p {
  margin: 18px auto 0;
  max-width: 860px;
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.76);
}

.last-section-actions {
  margin-top: 30px;
}

.last-section-actions .btn-left,
.last-section-actions .btn-right {
  min-height: 56px;
  padding: 0 34px;
  font-size: 15px;
}

@media (max-width: 980px) {
  .pill-left,
  .pill-right {
    display: none;
  }

  .pill-wrap {
    margin-bottom: 42px;
  }

  .hero-pill {
    width: min(100%, 420px);
    min-height: 52px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hero {
    padding-top: 110px;
  }

  .title-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .title-left,
  .title-desc {
    width: 100%;
    text-align: left;
  }

  .services-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 80px;
    padding: 8px 18px 12px;
  }

  .services-grid-compact .service-card--grid {
    height: 380px;
  }

  .banner-home-bottom {
    min-height: 380px;
  }

  .banner-home-bottom img {
    min-height: 380px;
  }

  .banner-metrics {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .banner-metrics-left,
  .banner-metrics-right {
    justify-content: center;
  }

  .banner-home-bottom .metric {
    min-width: min(46vw, 210px);
    text-align: center;
  }

  .banner-home-bottom .metric strong {
    font-size: 30px;
  }

  .title-right {
    width: 100%;
    margin-top: 18px;
  }

  .talent {
    width: 100%;
    float: none;
    border-radius: 30px;
  }

  .talent-item {
    min-height: auto;
    padding: 24px 22px;
    text-align: center;
  }

  .talent-item h3 {
    font-size: clamp(30px, 8vw, 44px);
  }

  .talent-item p {
    max-width: 100%;
    font-size: 18px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 1280px) {
  .how-it-works-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials {
    grid-template-columns: 1fr;
    width: min(780px, 92vw);
  }

  .testimonial-card--middle {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .sub-title-wrap {
    margin-top: 0;
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .metric.sub-title,
  .sub-title-img {
    width: 100%;
  }

  .title-center-with-gap .left-light-img,
  .title-center-with-gap .right-light-img {
    display: none;
  }

  .how-it-works-card {
    grid-template-columns: 1fr;
    margin-bottom: 80px;
  }

  .how-card {
    min-height: 280px;
    padding: 24px 20px;
  }

  .how-card-number {
    font-size: 110px;
    right: 10px;
    bottom: -10px;
  }

  .last-section-inner {
    padding: 52px 14px 46px;
  }

  .last-section-actions {
    flex-direction: column;
    border-radius: 16px;
    width: min(360px, 100%);
  }

  .last-section-actions .btn-left,
  .last-section-actions .btn-right {
    width: 100%;
  }

  .testimonial-card {
    padding: 20px 18px 20px;
    border-radius: 24px;
  }

  .testimonial-stars {
    font-size: 28px;
    letter-spacing: 5px;
  }
}
